Systemd Looking At A Future With More Varlink & Less D-Bus For IPC

Written by Michael Larabel in systemd on 28 September 2024 at 04:00 PM EDT. 64 Comments
SYSTEMD
Taking place this week in Berlin was systemd's annual "All Systems Go" developer conference. Among the interesting talks was Lennart Poettering talking about the ongoing challenges of D-Bus for inter-process communication (IPC) with systemd and how they are looking at Varlink for IPC needs moving forward.

Systemd's challenges around D-Bus are hardly new and need we bring up past attempts to enhance D-Bus like with the failed KDBUS for in-kernel IPC or then the BUS1 effort from systemd developers albeit the BUS1 in-kernel IPC hasn't seen much activity in years... It's just been Dbus-Broker from BUS1 for retaining D-Bus compatibility but being faster and more reliable.

With no D-Bus coming to the Linux kernel on the horizon for IPC, systemd developers are looking at Varlink for the future. Varlink as the interface description format and protocol that is documented at Varlink.org for extremely simple IPC.

systemd varlink future


Varlink isn't perfect as the marshalling can be slower than D-Bus for large objects, but is simple, leverages JSON, and makes things nicer than the D-Bus status quo for systemd. With systemd 257 there will be sd-json and sd-varlink as two new libsystemd library components. There is also varlinkctl to serve as a Varlink command line tool for systemd.


Those curious about the systemd plans for Varlink usage and challenges of D-Bus can find Lennart's presentation at media.ccc.de and embedded above. There is also the PDF slide deck.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week