-
-
Save ronin13/1f9156e14d50226c0b1e 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
[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