[FFE] Add cgroup-lite package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcgroup (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The cgroup-bin package provides advanced (though racy and not quite
reliable) assignment of tasks to control groups (cgroups) based on
task name, userid, etc. This is pretty heavyweight (adding at least
several seconds to boot and shutdown, and keeping a deamon running
which watches all task creations), and due to its racy nature can
cause bugs with other applications and system functions like
suspend/resume (see bugs 693594, 756499, 598335, 827279, and 828061).
Currently there are applications which depend on cgroups being
mounted, but which have no need for the advanced cgroup management.
Libvirt and lxc are two such applications. However there is currently
nothing which provides just this.
The attached small debdiff adds a very simple package, cgroup-lite,
as an alternative to cgroup-bin which only mounts the cgroups at
boot.
With this package installed, all of the bugs listed above are fixed,
and system boot, shutdown, and overhead are improved.
Since lxc requires cgroups to be set up at boot, it would be far
better if it could depend on cgroup-lite rather than cgroup-bin.
I can confirm that this fixes the races I saw with cgroup-bin and works perfectly for me with libvirt, kvm and arkose.
I'd definitely +1 getting this uploaded and replace the current Recommends on the lxc package from "cgroup-bin" to "cgroup-lite | cgroup-bin" so that both are still allowed but cgroup-lite is preferred.