Subject: Re: [vserver] Assigning whole CPUs to contexts
From: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Date: Wed, 23 Apr 2008 19:45:40 +0200 (CEST)

Jiri Denemark wrote:
>> If this is what you want, using the scheduler parameters is just
>> unnecessary overhead. Setup cpusets instead, e.g.:
>> echo 0 > /etc/vservers/<guest0>/cpuset/cpus
>> echo 0 > /etc/vservers/<guest0>/cpuset/mems
>> echo cpu0 > /etc/vservers/<guest0>/cpuset/name
>
> Well, that might help, but is it possible to change it in runtime? To
> change
> number of CPUs assigned to each context? And how scheduler interacts with
> cpusets, are parameters still global or only related to the particular
> cpuset?

Yes, that can also be changed at run-time. Simply echo the new CPUs/memory
banks to /dev/cpuset/<name>/{cpus,mems}, and you're set.

Obviously parameters set for a cpuset only affect that cpuset.

-- 
Daniel Hokka Zakrisson