[lxc-devel] About PID in cgroup.procs

Tian, Xianting (NSB - CN/Hangzhou) xianting.tian at nokia-sbell.com
Wed Nov 29 09:31:08 UTC 2017


Hi,
Sorry to trouble you, lxc experts. I met one confusion as below, could you spare one minute to help me?
I created a container by "lxc-create" on CentOS host(lxc tool version is lxc-1.0.1.tar.gz<https://linuxcontainers.org/downloads/lxc/lxc-1.0.1.tar.gz> ), its name is "cn-centos", I login the container by "lxc-console", then run a task: "while true; do echo "xxx">/dev/null &". I checked and found the task is not in /sys/fs/cgroup/cpu/lxc/cn-centos/cgroup.procs(only /sbin/init 's PID in this file), but it is in /sys/fs/cgroup/cpu/cgroup.procs.
After I upgrade lxc to version 2.0.9(lxc-2.0.9.tar.gz<https://linuxcontainers.org/downloads/lxc/lxc-2.0.9.tar.gz>), the task I create in container "cn-centos" is automatically added to "/sys/fs/cgroup/cpu/lxc/cn-centos/cgroup.procs", which is our expectation.

I really want to know how you fix the issue, could you show the fix code or the commit id?  Thanks in advance



Br,
Tian Xianting(Tyron)
HangZhou
Mobile: +8615858134382




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171129/1de91947/attachment.html>


More information about the lxc-devel mailing list