LWN.net Logo

Kroah-Hartman: AF_BUS, D-Bus, and the Linux kernel

Kroah-Hartman: AF_BUS, D-Bus, and the Linux kernel

Posted Feb 9, 2013 17:03 UTC (Sat) by quanstro (guest, #77996)
In reply to: Kroah-Hartman: AF_BUS, D-Bus, and the Linux kernel by brouhaha
Parent article: Kroah-Hartman: AF_BUS, D-Bus, and the Linux kernel

it's interesting to me to compare the plan 9 plumber to D-BUS. the plumber
is a dynamic uni/multicast router built from a regular 9p file server.

at a very high level they seem to fill similar roles. (i know there's a lot
more in d-bus, but i'm going for the idea.)

with this in mind, if going to the trouble of reworking d-bus, why not think
big? why not consider a file server approach?


(Log in to post comments)

Kroah-Hartman: AF_BUS, D-Bus, and the Linux kernel

Posted Feb 9, 2013 18:40 UTC (Sat) by Cyberax (✭ supporter ✭, #52523) [Link]

Because it's retarded and stupid.

DBUS is not in the business of sending/sharing files.

Kroah-Hartman: AF_BUS, D-Bus, and the Linux kernel

Posted Feb 10, 2013 15:02 UTC (Sun) by quanstro (guest, #77996) [Link]

this sort of response misses the point, and misunderstands the mechanism.
the plumber doesn't pass the file around, it passes a message around,
usually with a pointer (path) to the file. here's a direct link
http://www.plan9.bell-labs.com/magic/man2html/4/plumber
the literal plumber however isn't even the point. the point is that plumber
is an example of a file server which routes messages.

also, there is a long tradition in plan 9 of using file servers for messaging.
there are many more "virtual" file servers than there are disk file servers.
this avoids having to invent new address families. (and getting permission
from the kernel, libc, etc. to add them.) plan 9 uses regular 9p. network
transparency may be accomplished the same way as on-disk file systems. and
if one wants to see plumb messages on the edit port, just "cat /mnt/plumb/edit".
cat will block until a message arrives, display it and repeat. i don't need
a special plumbcat program.

whatever happened to the idea that "everything is a file"?

Kroah-Hartman: AF_BUS, D-Bus, and the Linux kernel

Posted Feb 10, 2013 17:04 UTC (Sun) by hitmark (guest, #34609) [Link]

People either took it too literary, or didn't get the performance they wanted to they fell back to passing memory address ranges back and forth.

Kroah-Hartman: AF_BUS, D-Bus, and the Linux kernel

Posted Feb 10, 2013 4:51 UTC (Sun) by bronson (subscriber, #4806) [Link]

Because the plumber is based on regexes with almost no prescribed policy. It sure looks like an unscalable maintenance nightmare to me. But, I admit, I haven't used it myself... Curious if my worries are unfounded.

Kroah-Hartman: AF_BUS, D-Bus, and the Linux kernel

Posted Feb 10, 2013 14:33 UTC (Sun) by quanstro (guest, #77996) [Link]

don't get me wrong, i wasn't saying the plumber solved this problem, i
just think it solves a similar problem. and it's worth considering if
some of the mechanism might be right for this problem.

there are a few reasons this is never a problem on plan 9
1. private namespaces. each user has his own set of private namespaces.
users don't interfere with one another.
2. on a shared machine, the user imports the plumber from their terminal,
so if they plumb a pdf, the viewer starts on the terminal.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds