Skip to content

Instantly share code, notes, and snippets.

@ronin13 ronin13/gist_content1 Secret
Created May 4, 2014

Embed
What would you like to do?
[root@Archie ~]# grep 'resident' /proc/$$/limits
Max resident set unlimited unlimited bytes
[root@Archie ~]# ulimit -m 10240
[root@Archie ~]# grep 'resident' /proc/$$/limits
Max resident set 10485760 10485760 bytes
[root@Archie ~]# mkdir /sys/fs/cgroup/memory/11
[root@Archie ~]# echo $$ > /sys/fs/cgroup/memory/11/tasks
[root@Archie ~]# echo 4M > /sys/fs/cgroup/memory/11/memory.limit_in_bytes
[root@Archie ~]# cat /sys/fs/cgroup/memory/11/memory.limit_in_bytes
4194304
[root@Archie ~]# grep 'resident' /proc/$$/limits
Max resident set 10485760 10485760 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.