Subject: Re: [vserver] Scheduling of cpu
From: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Date: Tue, 21 Aug 2007 00:06:30 +0200 (CEST)

mail@cryptronic.de wrote:
> Hi all,
>
> following situation:
>
> I'm running Linux VServer v 2.2 on a dual core host with util vserver 213
>
> Now I have one guest costing much performance. My idea is to limit the cpu
> of the guest to only one core of the cpu.

If this is all you want, you might want to look at cpusets. The solution
below is far more configurable though.

> When I understood the flowerpage right, then i can set a dir
> /etc/vservers/<vsname>/sched/1 and in there the limits including cpuid for
> that cpu. But when I start the guest afterward /proc/virtual/<xid>/sched
> shows me the same values for both cpus.
>
> /etc/vservers/<vsname>/sched is completly emty expect the dir called 1.

You should set the fill-rate and fill-rate2 to 0, otherwise the other CPUs
are still going to have the default values.

-- 
Daniel Hokka Zakrisson