Manfred Hollstein wrote:
As Curt pointed out, UNIX sockets can only be used if you are sure, communication will only be on the local machine. But performance will actually *really* benefit if you're using UNIX vs INET sockets:
Manfred, thanks, that was quite helpful. The daemon I'm writing/using will be supporting UNIX and INET sockets (doing both is no big deal), but in some situations both client and server will be on the same machine, and I was wondering about the performance.
UNIX sockets on local machine: $ ./lclient dummy MBytes per sec. : 262.23 MBytes per sec. : 284.34 MBytes per sec. : 293.61 MBytes per sec. : 307.26 MBytes per sec. : 355.33
INET sockets between two machines connected via GigE: $ ./gclient saturn MBytes per sec. : 99.18 MBytes per sec. : 94.13 MBytes per sec. : 102.68 MBytes per sec. : 103.58 MBytes per sec. : 103.69 MBytes per sec. : 97.92 MBytes per sec. : 103.15
You wouldn't happen to also have some numbers for "INET sockets on local machine"? /Per Jessen, Zürich