Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
Well, that was quick. Fixed it not working on restart.
  • Loading branch information
theredbaron1834 committed Jun 12, 2014
1 parent 66c8606 commit 2075e68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ram-limiter
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ if cat /etc/cgconfig.conf | grep "group limited {"
memory.limit_in_bytes = 400M;
}
}" | sudo tee -a /etc/cgconfig.conf #This adds the group limited to cgroup. If you want different memory limits, either change 400M before first run, or run sudo $EDITOR /etc/cgconfig.conf and edit the file to read whatever you need.

sudo systemctl restart cgconfig
fi



sudo systemctl restart cgconfig
sudo chown -R $USER /sys/fs/cgroup/memory/limited #Allows your user to run apps with the cgroup settings.


Expand Down

0 comments on commit 2075e68

Please sign in to comment.