Hi,
I have problem with setting up memory limit on a vserver.
I'm using 3.13.6-vs2.3.6.11-beng from repo.psand.net.
Steps
- added "cgroup_enable=memory swapaccount=1" to GRUB_CMDLINE_LINUX
- added "none /dev/cgroup cgroup cpu,cpuset,memory 0 0" to /etc/fstab
- added "INFO_INIT,VIRT_MEM,VIRT_UPTIME,VIRT_LOAD,REBOOT_KILL" to cflags
of the guest
- mkdir /etc/vservers/.defaults/cgroup
- mkdir /etc/vservers/<guest>/cgroup
- echo "4G" > /etc/vservers/<guest>/cgroup/memory.limit_in_bytes
- echo "8G" > /etc/vservers/<guest>/cgroup/memory.memsw.limit_in_bytes
When I enter the guest, limits are not applied, also when I run
vserver-stat I got "open(memory.stat): No such file or directory".
Can anyone point out what am I doing wrong?
-- Best regards Tomasz PajorReceived on Mon Mar 31 15:38:29 2014