i want to use cgroup to manage memory of specific processes.
I install cgroup-tools, enabled the memory controller in /etc/default/grub with
GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory swapaccount=1"
after this is update-grub.
created a group
cgcreate -g memory:1024
set my limit
cgset -r memory.limit_in_bytes=1G 1024
and put the running process pid with cgclassify to the group
cgclassify -g memory:1024 $( pidof myprocess )
The process is ignoring the Limit, but the pid is in memory/1024/tasks Where is my mistake?