From: Chris L. <ch...@ex...> - 2006-01-17 02:00:14
|
On Tue, Jan 17, 2006 at 01:04:21AM +0100, Blaisorblade wrote: [...] > However, going through ptrace for interprocess comunication is far from > optimal - using something like, say, POSIX message queues (it's a wild guess) > would be probably faster. Something purely in userspace seems difficult. > However, as shown below, if it's not purely in userspace ptrace will > intercept it, so we stop any gain. http://caesious.beasts.org/~chris/tmp/20060117/msgq-pipe-signal-costs.png (measured on 2.6.12.6, on Intel Xeon, with sending and receiving processes bound to the same CPU). So message queues don't win you much over pipes, but do (significantly!) over signals. -- ``Oh my god, I was wrong! It was Earth all along! You've finally made a monkey out of me.'' (`Stop the Planet of the Apes! I want to get off', from `The Simpsons') |