From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21120 invoked from network); 17 Nov 1998 16:17:43 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 17 Nov 1998 16:17:43 -0000 Received: from buffalo.ens-lyon.fr (buffalo.ens-lyon.fr [140.77.1.8]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA22887 for ; Tue, 17 Nov 1998 11:17:41 -0500 Received: from porto.ens-lyon.fr (porto [140.77.11.25]) by buffalo.ens-lyon.fr (8.9.1a/8.9.1) with ESMTP id RAA21277 for ; Tue, 17 Nov 1998 17:17:36 +0100 (MET) Received: (from lprylli@localhost) by porto.ens-lyon.fr (8.9.1a/8.9.1) id RAA17068; Tue, 17 Nov 1998 17:17:36 +0100 (MET) From: Loic Prylli MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 17 Nov 1998 17:17:35 +0100 (MET) To: axp-list@redhat.com Subject: RE: mpi performance consideration In-Reply-To: References: <13904.6959.900552.749927@porto> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <13905.36820.585522.987216@porto> Content-Transfer-Encoding: quoted-printable Bernard Van Renterghem writes: > > [...] > The lam used on the OSF1 are from OSS too (LAM 6.1 - Ohio Supercompu= ter Center) > > and I got this (-c2c) > Send_time (Latency measurement): 1.12 sec. > Latency: 22.361679 =B5sec > Send_time (Bandwidth measurement): 13.26 sec. > Bandwidth: 5.753 MB/s > > But whith Linux 2.0.35, the fasted (!): > Send_time (Latency measurement): 2.94 sec. > Latency: 58.886719 =B5sec > Send_time (Bandwidth measurement): 10.01 sec. > Bandwidth: 7.623 MB/s I gave a second look at your program, what you are doing is: node0 node1 send recv send recv send recv send recv ... The LAM MPI implementation disable the NAGLE algorithm on the underlying TCP connection which means most small sends will be sent in a different network/buffer (Ethernet frame), except if contention occurs. For some reason DU seems to do better at being more intelligent than the MPI implementation and doing some aggregation of messages, thus leading to better peformance. But you should also do other comparisons like a ping-pong test instead of your original benchmark. You can also change the LAM code to remove the=20 TCP_NODELAY option, and then Linux will perform much better. Altough there is no ideal benchmark, the one you choose is probably not a very significant one, not because it does show Linux at its best, but because any parallel application decently written will aggregate a bunch of small consecutive sends in bigger messages, and then it looks like Linux beat DU in this area. In conclusion, I admit that for your particular example, DU is better (but this is because the design of LAM, and the linux network stack consider this situation irrelevant in the real world). If you want even this example to go faster on Linux, disable TCP_NODELAY in LAM, or you can also try to apply the patch below to the Linux kernel. That should improve TCP_NODELAY use for these kind of communication patterns. But anyway, but I would bet that latency in the more usual senses (either half round-trip time, round-trip time or CPU usage time in communication) is much better under Linux than under DU. Regards, Loic --- linux/net/ipv4/tcp.c.std=09Sat Oct 3 20:22:17 1998 +++ linux/net/ipv4/tcp.c=09Sat Oct 3 20:30:20 1998 @@ -1310,7 +1310,9 @@ =09=09=09 * level code in tcp_sendmsg() will force any partial packets= out =09=09=09 * after we finish building the largest packets this write al= lows. =09=09=09 */ -=09=09=09if (copy < sk->mss && !(flags & MSG_OOB)) { + if (copy < sk->mss && !(flags & MSG_OOB) && + // if nonagle the pack is likely to go now + !(sk->nonagle && sk->window_seq - sk->write_se= q >=3D seglen && iovlen =3D=3D 0)) { =09=09=09=09tmp =3D tmp - copy + sk->mtu + 128; =09=09=09=09delay =3D 1; =09=09=09}