Messages in this thread | | | Date | Wed, 29 Oct 1997 12:02:14 +0100 | From | Pavel Machek <> | Subject | Unix domain sockets being slooooooooooooooooooooooooowwwwwwwww |
| |
Hi!
I wold like to have some _usable_ interrprocess comunications under linux. Tough.
sys V IPC messages are broken by design. Too bad.
system build over shared memory and sys V semaphores - insecure, and only marginaly faster than sys V messages.
unix domain sockets would be usable, but they are slow. My test was 'ping-pong' with 10^6 messages (really short ones - 1 byte). With messages, it took ~1:30, with unix domain sockets it was ~3 minutes (which is 2 times slower) and number of task switches was 2259000 instead of 2000108 with ipc messages, and with much more time spent in scheduler.
Does anybody have idea what is going on? I would like to make unix domain socket faster, so they are usable as ipc messages.
Pavel
-- I'm really pavel@atrey.karlin.mff.cuni.cz. Pavel Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).
| |