You are not logged in.

#1 2016-09-14 13:18:28

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Unable limit process memory usage through cgroups.

I tried the following commands:

Create a group limited to 400MB:

cgcreate -g memory/400
gset -r memory.limit_in_bytes=400M 400
cgexec -g memory:400 plasmashell

Other shell, check what's happening:

# pidof plasmashell
24785

#cat /sys/fs/cgroup/memory/400/cgroup.procs 
24785
24804 #(good, the main process is there)

#wc -l /sys/fs/cgroup/memory/400/tasks
24 /sys/fs/cgroup/memory/400/tasks #(good, there are a lot of threads there!)

#cat /sys/fs/cgroup/memory/400/memory.usage_in_bytes
284827648  #(good, it seems under the 400MB thershold)

# grep VmRSS /proc/24785/status
VmRSS:    472472 kB #(BAD, WHY IT IS TAKING MORE THAN 400MB?)

Any hint please?


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB