Comment 5 for bug 1188850

Revision history for this message
ojab (ojab) wrote :

Sorry for delay, simple testcase:

sudo cgcreate -g memory:/
sudo cgcreate -g memory:/test
echo "`whoami`:python2.7 memory test/" | sudo tee -a /etc/cgrules.conf
/usr/bin/env python -c "import time; time.sleep(2)" &
export PID=$!
sudo cgclassify $PID
grep $PID /sys/fs/cgroup/memory/{,*/}cgroup.procs

In case of fixed libcgroup output will be something like
>/sys/fs/cgroup/memory/test/cgroup.procs:5778

Right now it is
>Error in determining process name of pid 2042
>/sys/fs/cgroup/memory/sysdefault/cgroup.procs:2042