About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Tue 05 Apr 2005 - 23:42:35 BST


On Tue, Apr 05, 2005 at 08:43:25PM +0400, Peter V. Saveliev wrote:
> ...
>
> Two contexts: xids 100 & 200 (not hard scheduled):
>
> 8<---------------------------------------------
> vcontext --create --xid 100 -- vsched --fill-rate 30 --interval 100 --tokens 100 --tokens-max 100 -- sh
> vcontext --create --xid 200 -- vsched --fill-rate 60 --interval 100 --tokens 100 --tokens-max 100 -- sh
> 8<---------------------------------------------
>
> In the contexts: burnP6 &
>
> 8<---------------------------------------------
> ~ # vcontext --migrate --xid 100 -- ps aux
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 3759 58.3 0.0 92 12 pts/1 R 00:31 9:48 burnP6
> root 4302 0.0 0.1 2256 764 pts/3 R+ 00:48 0:00 ps aux
>
> ~ # vcontext --migrate --xid 200 -- ps aux
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 3977 49.9 0.0 92 12 pts/1 R 00:38 5:17 burnP6
> root 4308 0.0 0.1 2256 764 pts/3 R+ 00:48 0:00 ps aux
> 8<---------------------------------------------
>
> details:
>
> 8<---------------------------------------------
> ~ # cat /proc/virtual/100/sched
> Token: 0
> FillRate: 30
> Interval: 100
> TokensMin: 62
> TokensMax: 100
> PrioBias: 0
> VaVaVoom: 0
> cpu 0: 0 0 0
>
> ~ # cat /proc/virtual/200/sched
> Token: 0
> FillRate: 60
> Interval: 100
> TokensMin: 62
> TokensMax: 100
> PrioBias: 0
> VaVaVoom: 0
> cpu 0: 0 0 0
> 8<---------------------------------------------
>
> I thought, that there must be another CPU utilization ratios, I was wrong?

well, you probably didn't activate the sched_prio
either, so the token bucket is not active at all ...

without the hard scheduler (but with sched_prio), the only
thing changed by the token bucket (and it's fill level)
is the tasks priority, so don't expect it to be precise

the hard scheduler (with sched_hard as cflag) will make
sure that the contexts do not get more cpu time than the
bucket contains tokens ...

HTH,
Herbert

> --
> Peter V. Saveliev
> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 05 Apr 2005 - 23:42:54 BST by hypermail 2.1.3