From: Loic Prylli <Loic.Prylli@ens-lyon.fr>
To: axp-list@redhat.com
Subject: RE: mpi performance consideration
Date: Tue, 17 Nov 1998 17:17:35 +0100 (MET) [thread overview]
Message-ID: <13905.36820.585522.987216@porto> (raw)
In-Reply-To: <XFMail.981116163514.vanrent@pcpm.ucl.ac.be>
Bernard Van Renterghem writes:
>
> [...]
> The lam used on the OSF1 are from OSS too (LAM 6.1 - Ohio Supercomputer Center)
>
> and I got this (-c2c)
> Send_time (Latency measurement): 1.12 sec.
> Latency: 22.361679 µsec
> 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 µsec
> 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
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 Sat Oct 3 20:22:17 1998
+++ linux/net/ipv4/tcp.c Sat Oct 3 20:30:20 1998
@@ -1310,7 +1310,9 @@
* level code in tcp_sendmsg() will force any partial packets out
* after we finish building the largest packets this write allows.
*/
- if (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_seq >= seglen && iovlen == 0)) {
tmp = tmp - copy + sk->mtu + 128;
delay = 1;
}
next prev parent reply other threads:[~1998-11-17 16:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-16 11:02 mpi performance consideration Bernard Van Renterghem
1998-11-16 12:39 ` Loic Prylli
1998-11-16 15:35 ` Bernard Van Renterghem
1998-11-16 20:10 ` Wes Bauske
1998-11-17 16:17 ` Loic Prylli [this message]
1998-11-17 2:47 ` Mike
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox