[lxc-devel] systemd release agent in container is spamming the host

Cyrill Gorcunov gorcunov at gmail.com
Tue Feb 10 09:41:36 UTC 2015


Hello guys! I've been playing with lxc to figure out how systemd
based conatiners are implemented and got a bit weird situation:
the container's systemd-journal is eating all the cpu resources

	http://s7.hostingkartinok.com/uploads/images/2015/02/5ff8e2e7a5dbae8f361f504fe3b085bf.png

been googling but didn't find similar problems. On the host system
the dmesg if full of

[ 6989.116454] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent
[ 6989.120315] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local
[ 6989.125285] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent
[ 6989.128832] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local

iow looks like system'd release agent from inside of container is spamming the system.
Is it known issue?

Another question would be really appreciated if answered: does container's systemd
has access to host's cgroup root?

Container:

[root at my-container ~]# cat /proc/self/mountinfo
...
50 49 0:21 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime - cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd

Host:

[root at pcs system]# cat /proc/self/mountinfo
...
24 23 0:21 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:9 - cgroup cgroup rw,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd

The node's kernel is latest vanilla 3.19 linux (centos7 distro with vanilla kernel).
lxc is

Name        : lxc
Arch        : x86_64
Version     : 1.0.7

The container is fedora 20. Config is

[root at pcs ~]# cat /var/lib/lxc/my-container/config
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template:
# For additional config options, please look at lxc.container.conf(5)

# Distribution configuration
lxc.include = /usr/share/lxc/config/fedora.common.conf
lxc.arch = x86_64

# Container specific configuration
lxc.rootfs = /var/lib/lxc/my-container/rootfs
lxc.utsname = my-container

# Network configuration
lxc.network.type = empty
#lxc.network.flags = up
#lxc.network.link = virbr0

lxc.kmsg = 0
lxc.console.logfile=/root/my-container-log.txt
lxc.autodev=1
lxc.cap.drop=sys_module mac_admin mac_override sys_time


More information about the lxc-devel mailing list