vserver and cgroups

Tomasz Pajor <[email protected]>
Newsgroups gmane.linux.vserver
Message-ID <[email protected]>
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 Pajor
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.