• Tycho Andersen's avatar
    cgroup: don't try to write the default value for memory.swappiness · de76a07e
    Tycho Andersen authored
    This is a little bit of a hack. The problem is that we can't actually write
    this value if memory.use_hierarchy is set, which it is by default.
    Additionally, we can't do a hack like unsetting memory.use_hierarchy and
    then writing this, because if the bit is set on the parent, unsetting it
    will fail. So the restore *can* succeed if things are configured correctly
    initially, but won't by default, which is annoying for the tests.
    
    Plus in the case of systemd, there are child cgroups, so we can't ever
    unset the root's memroy.use_hierarchy anyway, meaning we could never
    actually restore correctly. Instead, let's just not try to write the
    default value, which is probably what everyone is using anyway.
    Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
    CC: Andrew Vagin <avagin@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    de76a07e
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...