Re: [vserver] Scheduling of cpu

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Mon 20 Aug 2007 - 23:06:30 BST
Message-ID: <36655.192.168.101.6.1187647590.squirrel@intranet>

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
Received on Mon Aug 20 23:06:45 2007
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 20 Aug 2007 - 23:06:50 BST by hypermail 2.1.8