Mailinglist Archive: opensuse-programming (60 mails)
| < Previous | Next > |
Re: [suse-programming-e] for local communication only - UNIX or INET?
- From: Andreas Winkelmann <ml@xxxxxxxxxxxxxx>
- Date: Fri, 16 Jun 2006 12:12:59 +0200
- Message-id: <200606161212.59259.ml@xxxxxxxxxxxxxx>
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.
--
Andreas
> >> 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.
--
Andreas
| < Previous | Next > |