On Fri, 2006-06-16 at 12:12 +0200, Andreas Winkelmann wrote:
Am Friday 16 June 2006 11:41 schrieb Per Jessen:
You wouldn't happen to also have some numbers for "INET sockets on local machine"?
Good catch! Appears that the Linux TCP stack is dealing *very well* with local INET sockets:
$ ./gclient localhost MBytes per sec. : 769.15 MBytes per sec. : 736.10 MBytes per sec. : 693.76 MBytes per sec. : 704.09 MBytes per sec. : 666.63
$ ./gclient saturn MBytes per sec. : 720.64 MBytes per sec. : 731.70 MBytes per sec. : 659.83 MBytes per sec. : 741.61 MBytes per sec. : 716.62
Wow.
localhost and saturn are the same physical machine. Hmm, zero-copying at its best. This means, you're always better using INET sockets; now, that's new to me... I remember running the same test on several Sun machines (SunOS 4.1.4, Solaris 2.6) years ago, and the results were clearly punishing users of INET sockets on local machines...
It sounds like using UNIX sockets is a thing of the past. With that kind of performance, why would anyone use them?
Security.
If Linux is not the only target platform? Don't want to do the Linux version of 'if it works on Windows...". -- Roger Oberholtzer OPQ Systems AB Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23