Browse Source

Enable cgroups memory hierarchy

Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
master^2
Gerard Ryan 1 year ago
parent
commit
f1304b5261
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      cgroupfs-mount

+ 7
- 0
cgroupfs-mount View File

@@ -51,4 +51,11 @@ done
# freezer 7 3 1
# blkio 8 3 1

# enable cgroups memory hierarchy, like systemd does (and lxc/docker desires)
# https://github.com/systemd/systemd/blob/v245/src/core/cgroup.c#L2983
# https://bugs.debian.org/940713
if [ -e /sys/fs/cgroup/memory/memory.use_hierarchy ]; then
echo 1 > /sys/fs/cgroup/memory/memory.use_hierarchy
fi

exit 0

Loading…
Cancel
Save