Bug#803013: systemd should not destroy application created cgroups

Tomasz Janowski t.j at duke.edu
Wed May 18 16:22:19 BST 2016


Package: systemd
Version: 215-17+deb8u4
Followup-For: Bug #803013

Dear Maintainer,

It seems  that an option Delegate=yes was introduced upstream, but
this does not seem to be available in Jessie. The current mode of
operation for systemd is to destroy all the cgroup subtree of a
service in e.g. memory controller. I use SLURM scheduler that utilizes
cgroups to maintain resource limits and every time when I reload
configuration followed by a restart of any service unit, my memory:/
controller gets cleaned and all processes are moved to the root
(interestingly, the tree is still there, but tasks files are emptied).
Interesting fact is that this was apparently fixed before, here is an
entry from a package log:

systemd (215-13) unstable; urgency=medium
[ Christian Seiler ]
  * core: Don't migrate PIDs for units that may contain subcgroups.
    This stops messing up lxc/libvirt/other custom cgroup layouts
after
    daemon-reload. (Closes: #777164)

And now we are back again facing the same problems.

Best,
Tomasz

-- Package-specific info:

-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages systemd depends on:
ii  acl             2.2.52-2
ii  adduser         3.113+nmu3
ii  initscripts     2.88dsf-59
ii  libacl1         2.2.52-2
ii  libaudit1       1:2.4-1+b1
ii  libblkid1       2.25.2-6
ii  libc6           2.19-18+deb8u4
ii  libcap2         1:2.24-8
ii  libcap2-bin     1:2.24-8
ii  libcryptsetup4  2:1.6.6-5
ii  libgcrypt20     1.6.3-2+deb8u1
ii  libkmod2        18-3
ii  liblzma5        5.1.1alpha+20120614-2+b3
ii  libpam0g        1.1.8-3.1+deb8u1+b1
ii  libselinux1     2.3-2
ii  libsystemd0     215-17+deb8u4
ii  mount           2.25.2-6
ii  sysv-rc         2.88dsf-59
ii  udev            215-17+deb8u4
ii  util-linux      2.25.2-6

Versions of packages systemd recommends:
ii  dbus            1.8.20-0+deb8u1
ii  libpam-systemd  215-17+deb8u4

Versions of packages systemd suggests:
pn  systemd-ui  <none>

-- Configuration Files:
/etc/systemd/journald.conf changed:
[Journal]
ForwardToWall=no


-- no debconf information



More information about the Pkg-systemd-maintainers mailing list