<!DOCTYPE html><html><head><title></title><style type="text/css">#qt p.qt-MsoNormal{margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:0in;font-size:11pt;font-family:"Calibri", sans-serif;}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Rohit,<br></div><div><br></div><div>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 (<a href="https://dbus.freedesktop.org/doc/dbus-specification.html">https://dbus.freedesktop.org/doc/dbus-specification.html</a> ) 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.<br></div><div><br></div><div>Best wishes,<br></div><div>Thomas<br></div><div><br></div><div>On Sat, 3 Jun 2023, at 10:02, Rohit Pai wrote:<br></div><blockquote type="cite" id="qt" style="overflow-wrap:break-word;"><div class="qt-WordSection1"><p class="qt-MsoNormal">Hello,<br></p><p class="qt-MsoNormal"> <br></p><p class="qt-MsoNormal">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 ?<br></p><p class="qt-MsoNormal">In our platform we have an API which has around 5KB of data which is exchanged between two processes every 500ms.<br></p><p class="qt-MsoNormal">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.<br></p><p class="qt-MsoNormal">Is there any guideline on when to use what method.<br></p><p class="qt-MsoNormal"> <br></p><p class="qt-MsoNormal">We must use only system bus because of the way services are designed.<br></p><p class="qt-MsoNormal">Thanks for any guidance and feedback.<br></p><p class="qt-MsoNormal"> <br></p><p class="qt-MsoNormal">-Rohit PAI<br></p></div></blockquote><div><br></div></body></html>