Created
October 31, 2016 16:01
-
-
Save SuperQ/8188367b48c3fe8a5d0526ddaf45b376 to your computer and use it in GitHub Desktop.
Primitive init.d cgroup handler
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
cgroup=SERVICE | |
if [ ! -d /cgroup/${cgroup} ] ; then | |
mkdir -p /cgroup/${cgroup} | |
fi | |
echo 3 > /cgroup/${cgroup}/memory.move_charge_at_immigrate | |
echo $$ > /cgroup/${cgroup}/cgroup.procs | |
echo 32M > /cgroup/${cgroup}/memory.limit_in_bytes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment