[vserver] vserver and cgroups

From: Tomasz Pajor <n_at_servercrunch.com>
Date: Mon 31 Mar 2014 - 15:37:59 BST
Message-ID: <53397DC7.9040508@servercrunch.com>


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.

- added "cgroup_enable=memory swapaccount=1" to GRUB_CMDLINE_LINUX
- added "none /dev/cgroup cgroup cpu,cpuset,memory 0 0" to /etc/fstab
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
Received on Mon Mar 31 15:38:29 2014
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 31 Mar 2014 - 15:38:29 BST by hypermail 2.1.8