News: 0001494630

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

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

([systemd] 2 Hours Ago Systemd + Varlink)


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 [1]KDBUS for in-kernel IPC or then the [2]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 [3]Varlink.org for extremely simple IPC.

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 [4]media.ccc.de and embedded above. There is also the [5]PDF slide deck .



[1] https://www.phoronix.com/search/KDBUS

[2] https://www.phoronix.com/search/BUS1

[3] https://varlink.org/

[4] https://media.ccc.de/v/all-systems-go-2024-276-varlink-now-

[5] https://0pointer.net/public/asg2024-2.pdf



HEL88

oleid

Quackdoc

flower

Vermilion

hkupty

Snoopy: No problem is so big that it can't be run away from.