[CRIU] [PATCH 2/2] tests: add a test for --cgroup-root

Tycho Andersen tycho.andersen at canonical.com
Tue Aug 19 06:56:38 PDT 2014


On Tue, Aug 19, 2014 at 01:31:58PM +0400, Pavel Emelyanov wrote:
> On 08/16/2014 02:02 AM, Tycho Andersen wrote:
> > Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
> 
> This one fails with
> 
> 
> Restore log: /root/criu/test/dump/static/cgroup02/7905/1/restore.log
> --------------------------------- grep Error ---------------------------------
> (00.012529)   7905: Error (cgroup.c:903): cg: Can't move into cpuset//newroot/tasks (-1/0): No space left on device

Ah, hm. cpuset.7 says:

      ENOSPC Attempted to write(2) the process ID (PID) of a process to a
             cpuset tasks file  when  the cpuset had an empty cpuset.cpus or
             empty cpuset.mems setting.

      ENOSPC Attempted  to  write(2)  an empty cpuset.cpus or cpuset.mems
             setting to a cpuset that has tasks attached.


and there is this comment in the top of cgroup.c:

        /*
         * cpuset.cpus and cpuset.mems must be set before the process moves
         * into its cgroup and hence can't be done here
         */

It looks like users still need to handle their cpuset.cpus and cpuset.mems
settings manually? I can send a patch to fix it to handle it in the test, but
it seems more like we should handle it in criu proper.

Tycho

> (00.012691) Error (cr-restore.c:1152): 7905 exited, status=255
> (00.012709) Error (cr-restore.c:1762): Restoring FAILED.
> (00.012907) Error (cgroup.c:979): cg: Failed closing cpu,cpuacct/cpu.shares: Invalid argument
> 
> 


More information about the CRIU mailing list