dbus performance with large payloads
Thomas Kluyver
thomas at kluyver.me.uk
Sun Jun 4 16:55:51 UTC 2023
Hi Rohit,
D-Bus isn't designed for speed, as far as I know, but 5 KB every 500 ms doesn't sound like a lot, and I'd be surprised if this caused an issue. The specification (https://dbus.freedesktop.org/doc/dbus-specification.html ) says the maximum message size is 128 MiB. Of course, valid messages may slow things down, especially if you send a lot of them, but this suggests that D-Bus is designed to handle bigger messages than the ones you're using.
Best wishes,
Thomas
On Sat, 3 Jun 2023, at 10:02, Rohit Pai wrote:
> Hello,
>
> Is there any recommendation around the maximum size of the payload that can be exchanged over dbus IPC without impacting much on the system performance and IPC turn around time ?
> In our platform we have an API which has around 5KB of data which is exchanged between two processes every 500ms.
> Can we still use regular dbus method call for such large payload ? Is there any recommended alternative to this ? I have heard of passing fd between two processes over dbus for large amount of data.
> Is there any guideline on when to use what method.
>
> We must use only system bus because of the way services are designed.
> Thanks for any guidance and feedback.
>
> -Rohit PAI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20230604/a0a02f0f/attachment.htm>
More information about the dbus
mailing list