Re: [Vserver] CPU scheduling

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Tue 14 Nov 2006 - 16:08:35 GMT
Message-ID: <20061114160835.GA17249@MAIL.13thfloor.at>

On Tue, Nov 14, 2006 at 11:27:58AM +0100, Jaroslav Tomecek wrote:
> Hi,
> I used two identical vservers with the same /etc/vservers/<id>/schedule:
>
> 1
> 100
> 20
> 20
> 10
> dummy

a little more information would be of great help
like the following things:

 - kernel version
 - vserver patch version
 - tool version
 - kernel config (especially CONFIG_VSERVER_HARDCPU)
 - the guest flags (especially sched_hard and sched_prio)

> 'vtop' printed 50% for the first and 50% for the second server. Then I
> tried 'vsched --xid 1000 --fill-rate 1800' for the first server. But
> 'vtop' printed only 55% for the first and 45% for the second server.
> Why?

probably because!

> How to make it 1:2, 1:10, 1:100?

simple enable sched_hard (requires the HARDCPU config option)
and set the proper ratios .. set them sound so that they
sum up to a total of 1.0 or use the idle time feature of
recent devel kernels to get proportional fair scheduling

e.g. R/I = 1/3 and 2/3 will work as expected, while
R/I 2/3 and 4/3 will give the 1:1 ratio when both guests
are hogging the cpu

HTH,
Herbert

> Thx Jarda
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Nov 14 16:12:23 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 14 Nov 2006 - 16:12:27 GMT by hypermail 2.1.8