[CRIU] [PATCH 1/2] cgroup: drop cgroup.sane_behavior from global properties
Andrew Vagin
avagin at virtuozzo.com
Mon Feb 1 22:09:26 PST 2016
On Tue, Feb 02, 2016 at 03:46:44PM +1100, Tycho Andersen wrote:
> On Mon, Feb 01, 2016 at 07:44:50PM -0800, Andrew Vagin wrote:
> > On Tue, Feb 02, 2016 at 09:56:40AM +1100, Tycho Andersen wrote:
> > > cgroup.sane_behavior is read only (and in fact, the value is always 0), so
> > > we don't need to c/r this value.
> >
> > When do we dump and restore global props?
>
> As part of when we dump the parameters for the particular controller,
>
> https://github.com/xemul/criu/blob/master/cgroup.c#L472
I found that "global" doesn't mean that it exists only to the root
group.
cgroup.sane_behavior exists only for the root group.
[avagin at laptop linux-task-diag]$ cat
/sys/fs/cgroup/cpu/cgroup.sane_behavior
0
[avagin at laptop linux-task-diag]$ cat
/sys/fs/cgroup/cpu/system.slice/cgroup.sane_behavior
cat: /sys/fs/cgroup/cpu/system.slice/cgroup.sane_behavior: No such file
or directory
Acked-by: Andrew Vagin <avagin at virtuozzo.com>
Thanks!
>
> Tycho
More information about the CRIU
mailing list