Bug#803013: systemd should not destroy application created cgroups
Martin Pitt
mpitt at debian.org
Thu Oct 29 11:12:34 GMT 2015
paul.szabo at sydney.edu.au [2015-10-29 21:46 +1100]:
> Could do; or do on a throw-away partition; either way it takes hours,
> not minutes. I presume you have an "unstable" machine handy. Then you
> can test in seconds (as root):
>
> # Set things up
> mkdir /sys/fs/cgroup/cpu/mytest
> echo $$ > /sys/fs/cgroup/cpu/mytest/tasks
> # Check it is there
> grep . /sys/fs/cgroup/cpu/mytest/tasks
> # Do the systemd thing
> systemctl daemon-reload
> systemctl start anacron
> # See it gone
> grep . /sys/fs/cgroup/cpu/mytest/tasks
I tested this under 225 and 227, and in both cases the bash process
stayed in that cgroup. I don't currently have a jessie VM around to
confirm that I can actually reproduce the issue on 215; but I think
Michael does.
This actually sounds similar to https://bugs.debian.org/777601, but
this already got fixed in 215-12, thus in Jessie.
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
More information about the Pkg-systemd-maintainers
mailing list