Browse Source

Merge pull request #15 from G-M0N3Y-2503/set_memory_use_hierarchy

Enable cgroups memory hierarchy
master
Tianon Gravi GitHub 1 year ago
parent
commit
0549428171
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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