Re: [Vserver] using of 'vlimit --cpu', problems with 'gcc'

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Wed 01 Nov 2006 - 03:55:01 GMT
Message-ID: <20061101035501.GB3300@MAIL.13thfloor.at>

On Mon, Oct 30, 2006 at 03:34:28PM +0100, Rik Bobbaers wrote:
>
>
> Jaroslav Tomecek wrote:
> >I'm testing 'vserver' for some organisation. They want me to test
> >everything ;-). Btw. I tried cpu scheduling. I set 1/5 of cpu for
> >the first and 4/5 of cpu for the second 'vserver'. Then I ran two
> >identical programs, each in one 'vserver'. It computed some floating
> >stuff. After each e.g. 1000 cycles it printed dot. I expected that
> >there would be five times more dots in the second vserver after some
> >time. But the numbers of dots were identical.
> >
> ># cat /etc/vservers/test1/schedule
> >1
> >5
> >100
> >200
> >10
> >dummy
> >
> ># cat /etc/vservers/test1/schedule
> >
> >4
> >5
> >100
> >200
> >10
> >dummy
> >
> >Is it the right way?
>
> it is, but can you do a :
> cat /etc/vservers/test1/flags
> ?
>
> you should ENABLE the scheduler like this:
> echo sched_prio > /etc/vservers/test1/flags

this will enable priority adjusted scheduling

> then restart your vps'es and see what happens then...
> you could also do sched_hard which... wel... read the docs ;)

while this will give you the 'hard' limits
you are looking for ...

best,
Herbert

> good luck
>
> --
> harry
> aka Rik Bobbaers
>
> K.U.Leuven - LUDIT -=- Tel: +32 485 52 71 50
> Rik.Bobbaers_at_cc.kuleuven.be -=- http://harry.ulyssis.org
>
> thinking always leads to conclusions... and those can be extremely dangerous
> -- me ;)
>
> Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
>
> _______________________________________________
> 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 Wed Nov 1 03:56:40 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 01 Nov 2006 - 03:56:43 GMT by hypermail 2.1.8