Tue, 24 Feb 2009 08:30:26 +0100
Herbert Poetzl a écrit :
> On Mon, Feb 23, 2009 at 10:40:42PM +0100, ADNET Ghislain wrote:
>
>> Hello,
>>
>> Is this possible to configure cgroups in the latest vserver patch so
>> we can divide cpu between guest in a non even way. Like for exemple
>> 20%/20%/50%/10% ?
>>
>
>
>> The utils create one cgroups for each vserver but i cannnot see
>> a way to divide cpu power between them :)
>>
>
> just assign the proper shares to each cgroup,
> no idea if util-vserver has a config entry for
> them, Daniel?
>
> HTH,
> Herbert
>
>
i am not sure if this is me but i do not find anywhere anything for
giving share to different cgroups. I see how to create cpusets ok but
those are not capable of dividing the cpu power but just the cpu cores
(so you can make 1/4 x4 or 1/2 x2 but not a custom 37% for exemple. I
readed the util-vserver docs and the
http://www.mjmwired.net/kernel/Documentation/cgroups.txt docs but i do
not find any hints on it.
I have this in my cgroup for a vserver guest:
drwxr-xr-x 2 root root 0 fév 23 15:03 .
drwxr-xr-x 6 root root 0 fév 19 18:28 ..
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuacct.usage
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.cpu exclusive
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.cpus
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.mem exclusive
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.mem hardwall
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.memory migrate
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.memory pressure
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.memory spread page
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.memory spread slab
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.mems
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.sched load balance
-rw-r--r-- 1 root root 0 fév 23 15:03 cpuset.sched relax domain level
-rw-r--r-- 1 root root 0 fév 23 15:03 devices.allow
-rw-r--r-- 1 root root 0 fév 23 15:03 devices.deny
-rw-r--r-- 1 root root 0 fév 23 15:03 devices.list
-rw-r--r-- 1 root root 0 fév 23 15:03 freezer.state
-rw-r--r-- 1 root root 0 fév 23 15:03 notify on release
-rw-r--r-- 1 root root 0 fév 23 15:03 tasks
my kernel is compiled with :
CONFIG CGROUPS=y
# CONFIG CGROUP DEBUG is not set
# CONFIG CGROUP NS is not set
CONFIG CGROUP FREEZER=y
CONFIG CGROUP DEVICE=y
# CONFIG CGROUP SCHED is not set
CONFIG CGROUP CPUACCT=y
# CONFIG CGROUP MEM RES CTLR is not set
Can anyone point me toward the direction ? :)
--
Cordialement,
Ghislain
["application/x-pkcs7-signature" not shown]