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
> [email protected]
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to