[packagekit] The new daemon

Richard Hughes hughsient at gmail.com
Fri Jan 18 14:47:56 PST 2008


I've been working on a new daemon for a few days now. I've got it to the
state where most stuff works, although there are quite a few regressions
compared to the current codebase. pk-structure-old.png shows what we
used to do, i.e. spawn a new backend module for each running task.

The new model has separate PkRunner tasks (responsible for managing the
task lifetime and scheduling), and PkBackend which is persistent and
reused over and over. This lets us keep the backend in memory and not
keep dlload'ing it and setting it up each time.

This now also means we have threaded backends (ipkg, apt), spawned
backends (yum and conary) *and* persistent dbus backends. DBUS backends
are designed to be kept running as a process and manually destroyed when
the daemon exits. We start them using dbus-activation. See
pk-structure.png for more information. I think Robin is working on a
dbusified version of the yum backend.

So, presently now in git we have stable code, which I'm about to make a
stable release with. After that, I'll check in a metric load of code
which will eat babies. I promise.

Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pk-structure-old.png
Type: image/png
Size: 33765 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20080118/9b67f1b0/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pk-structure.png
Type: image/png
Size: 39510 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20080118/9b67f1b0/attachment-0009.png>


More information about the PackageKit mailing list