X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fvserver-setup.functions;h=31aab657483fce89a4e588004d158d4fe06a1e6f;hb=ec4370f7ebd7fb0ce7f002f5bf2c74f03acd3ec1;hp=127f42f8340d4dcb6b9741d70eb80507c90810b0;hpb=9234e6a7cb48373edec38284ba54a819037b79b2;p=util-vserver.git diff --git a/scripts/vserver-setup.functions b/scripts/vserver-setup.functions index 127f42f..31aab65 100644 --- a/scripts/vserver-setup.functions +++ b/scripts/vserver-setup.functions @@ -1,6 +1,6 @@ -# $Id: vserver-setup.functions,v 1.18 2005/02/25 23:32:02 ensc Exp $ --*- sh -*-- +# $Id: vserver-setup.functions 2517 2007-03-18 22:02:22Z dhozac $ --*- sh -*-- -# Copyright (C) 2003 Enrico Scholz +# Copyright (C) 2003,2004,2005,2006 Enrico Scholz # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,14 +24,18 @@ SETUP_LOCKFILE= SETUP_CONFDIR= SETUP_CONTEXT= SETUP_INITSTYLE= +SETUP_CPUSET= +SETUP_CPUSETCPUS= +SETUP_CPUSETMEMS= +SETUP_CPUSETVIRT= declare -a SETUP_INTERFACES=() declare -a SETUP_FLAGS=() -declare -r SETUP_OPTIONS="confdir:,lockfile:,hostname:,netdev:,netmask:,netprefix:,netbcast:,interface:,flags:,context:,initstyle:" +declare -r SETUP_OPTIONS="confdir:,lockfile:,hostname:,netdev:,netmask:,netprefix:,netbcast:,interface:,flags:,context:,initstyle:,cpuset:,cpusetcpus:,cpusetmems:,cpusetvirt" declare -r SETUP_HELPMSG=$" - --context ... the static context of the vserver [default: none; a dynamic - context will be assumed] + --context ... the static context of the vserver [default: none; one will + be generated for you] --confdir ... [default: $__CONFDIR/] --lockfile ... [default: $__RUNDIR/] @@ -55,6 +59,19 @@ declare -r SETUP_HELPMSG=$" this becomes a per vserver limit) private: No other process can join this security context. Even root + --cpuset + ... declares the CPUSET this vserver will run in [default: none] + --cpusetcpus ]> + ... sets which cpus belong to the CPUSET, + exclusive is a flag (0|1) prohibiting any other cpuset from + using those cpus + --cpusetmems ]> + ... sets which memory pools belong to the CPUSET, + exclusive is a flag (0|1) prohibiting any other cpuset from + using those memory pools + --cpusetvirt + ... virtualize cpuset (guest will see only CPUs defined in cpuset) + Requires kernel patch from http://www.bullopensource.org/cpuset/ --initstyle