Mailinglist Archive: opensuse-programming (60 mails)

< Previous Next >
Re: [suse-programming-e] for local communication only - UNIX or INET?
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Fri, 16 Jun 2006 11:41:22 +0200
  • Message-id: <e6tuc2$kl4$1@xxxxxxxxxxxxxxxx>
Manfred Hollstein wrote:

>> 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?


/Per Jessen, Z├╝rich


< Previous Next >
Follow Ups