[PLDWWW] page changed: docs:vserver
"Elan Ruusamäe (glen)"
glen at pld-linux.org
Fri Dec 6 16:30:56 CET 2013
[cgroups with libcgroup]
--- https://www.pld-linux.org/docs/vserver?rev=1385458214
+++ https://www.pld-linux.org/docs/vserver
@@ -1152,10 +1152,23 @@
cgroup /sys/fs/cgroup/memory cgroup rw,relatime,memory 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,relatime,net_cls 0 0
</file>
For these to work you need at least util-vserver-0.30.216-1.pre2955.3 (that .3 is important) and turn on per subsys support by doing:
-
<file># mkdir /etc/vservers/.defaults/cgroup
# touch /etc/vservers/.defaults/cgroup/per-ss
+ </file>
+
+ ===== cgroups mountpoint =====
+
+ if you have cgroups mounted somewhere else, you can inform vserver of that (it searching in ''/sys/fs/cgroup'' by default)
+
+ <file>
+ none /dev/cgroup cgroup cpuset,cpu,cpuacct,devices,freezer,net_cls 0 0
+ </file>
+
+ you need to tell vserver where it mounted:
+ <file>
+ # cat /etc/vservers/.defaults/cgroup/mnt
+ /dev/cgroup
</file>
Diff URL:
https://www.pld-linux.org/docs/vserver?do=diff&r1=1385458214&r2=1386343855
--
This mail was generated by DokuWiki at
https://www.pld-linux.org/
More information about the pld-cvs-commit
mailing list