PLDWWW: Docs/Vserver
arekm
arekm at pld-linux.org
Tue Mar 22 10:58:23 CET 2011
Author: arekm Date: Tue Mar 22 09:58:23 2011 GMT
Module: PLDWWW URL: http://www.pld-linux.org/Docs/Vserver?action=diff&rev2=167&rev1=166
---- Log message:
from wojtosz, needs more work
---- Page affected: Docs/Vserver
---- Diffs:
================================================================
The comment on the change is:
from wojtosz, needs more work
* enabling pid namespace is likely to break post-start script (part with guest pid fetching for iproute2 netns use). Using vps (aka context 1 spectacor mode) to find guest process pid but in host namespace is likely to solve this problem.
+ == cgroups ==
+
+ Example cgroups usage:
+
+ * create "cgroup" directory in /etc/vserver/test/
+ * put files there like:
+ * cpuset.cpus - numbers of cores used by Vserver: 0-4
+ * cpuset.mems - memory migration: (1 - do memory migration when shuting down cores or 0 - not)
+ * cpu.shares - Vserver's CPU share: 256
+ * memory.limit_in_bytes - Vserver's RAM: 256M
+
+ Important:
+ The share you get is equal to the guest's share divided by the sum of the cpu shares of all the guest.
+
More information about the pld-cvs-commit
mailing list