[lkml]   [2015]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 00/13] Add kdbus implementation
Hi Greg and Daniel,

I don't have a clue so I need to ask some stupid questions...

On Fri, Jan 16, 2015 at 11:16:04AM -0800, Greg Kroah-Hartman wrote:
> kdbus is a kernel-level IPC implementation that aims for resemblance to
> the the protocol layer with the existing userspace D-Bus daemon while
> enabling some features that couldn't be implemented before in userspace.
> The documentation in the first patch in this series explains the
> protocol and the API details.

How about the big picture?

> Reasons why this should be done in the kernel, instead of userspace as
> it is currently done today include the following:
> - performance
> - security
> - semantics for apps with heavy data payloads

First of all I wonder about the relationship with D-Bus. says:

D-Bus is designed for two specific use cases:

A "system bus" for notifications from the system to user
sessions, and to allow the system to request input from
user sessions.

A "session bus" used to implement desktop environments such
as GNOME and KDE.

D-Bus is not intended to be a generic IPC system for any
possible application, and intentionally omits many features
found in other IPC systems for this reason.

Does this also apply to kdbus? If not, what are the
suggested uses of kdbus beyond those where D-Bus is
currently used?

Another related quote by Havoc Pennington:

In general, reading this, I think in some cases there are
problems that make sense to fix in dbus, and in other cases
there are problems that are best solved by not using dbus.
there are about 10000 IPC solutions already, from ICE (both of
them) to ZeroMQ to AMQP to CORBA to X11 to HTTP to SOAP to
WebSockets to SUN-RPC to whatever-the-heck. To me, trying to
make dbus configurable so that it can substitute for any of
these is a Bad Idea (tm).

Do you think it also applies to kdbus?

Wrt the performance improvement achieved by kdbus, my impression
about D-Bus is that the number of messages on my system is
about a dozen per minute. Are there actually any existing
applications using D-Bus that have a performance issue?
Or is this only about future possible uses?

Linked from, "The unveiling of kdbus" says:

Unlike most other kernels, Linux has never had a well-designed
IPC mechanism. Windows and Mac OS have this feature; even
Android, based on Linux, has one in the form of the "binder"
subsystem. Linux, instead, has only had the primitives —
sockets, FIFOs, and shared memory — but those have never been
knitted together into a reasonable application-level API. Kdbus
is an attempt to do that knitting and create something that is
at least as good as the mechanisms found on other systems.

These are bold words. I'm not sure what Windows and Mac OS
have in terms of IPC, but the above suggests that kdbus
is *the* new Linux IPC that everyone will use for everything,
rather than a special purpose facility.


 \ /
  Last update: 2015-01-19 19:41    [W:0.228 / U:1.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site