Skipping the session bus hop for RPC

Avery Pennarun apenwarr at
Mon Feb 9 11:07:32 PST 2009

On Mon, Feb 9, 2009 at 1:55 PM, Andrew Sherk <ASherk at> wrote:
> Is it possible? I'm looking at ways to reduce IPC traffic. i.e. use
> session bus as basic publish/subscribe and routing of first contact, but
> have all subsequent mc's and mr's go between the processes without
> overhead of context switch/copy forward of data by session bus.

Are you sure that's really necessary?  Have you benchmarked it?

A really good way to reduce context switches is to send messages
asynchronously instead of waiting after each one.  Then theoretically
you only need a few context switches even to process hundreds of

I've done some pretty high-performance, very large database queries
over dbus (yes, yes, I know it's not designed for that, but it works
great :)) using this technique, and the dbus-daemon slows things down,
but by a much smaller percentage than you'd expect.

Have fun,


More information about the dbus mailing list