Re: dbus performance with large payloads
"Thomas Kluyver" <[email protected]> Sun, 04 Jun 2023 17:55:51 +0100
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <[email protected]> |
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