Created
August 10, 2016 08:14
-
-
Save maxux/2aaa4082584b669b926a925b2c6d2e15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mount -t tmpfs cgroup_root /sys/fs/cgroup | |
subsys="cpuset cpu cpuacct blkio memory devices freezer net_cls perf_event net_prio hugetlb" | |
for sys in $subsys; do | |
mkdir -p /sys/fs/cgroup/$sys | |
mount -t cgroup $sys -o $sys /sys/fs/cgroup/$sys/ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment