Subject: Re: [vserver] scheduling in vserver version vs2.3.0.36.4 CPU not working ?
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Thu, 22 Jan 2009 02:56:43 +0100

On Wed, Jan 21, 2009 at 12:22:16PM +0100, Andreas Baetz wrote:
> Hi,
> 
> I have used kernel 2.6.22.19 lately with vserver vs2.2.0.7 and the hard
> CPU scheduler worked as expected.
> 
> Now, with kernel 2.6.28.1 and vserver vs2.3.0.36.4 it doesn't seem to
> work anymore. It seems the tokens do not get decreased. See below:

yep, expected, the TB scheduler isn't available
for kernels >2.6.26 ...

best,
Herbert

> # vserver-stat
> CTX   PROC    VSZ    RSS  userTIME   sysTIME    UPTIME NAME
> 8003    12 103.4M  64.1M   0m50s80   0m10s55  31m41s46 deb3
> 
> # vattribute --xid 8003 --get
> bcapabilities:
> CHOWN,DAC_OVERRIDE,DAC_READ_SEARCH,FOWNER,FSETID,KILL,SETGID,SETUID,NET_BIND_SERVICE,SYS_CHROOT,SYS_PTRACE,SYS_BOOT,SYS_TTY_CONFIG,LEASE,AUDIT_WRITE
> ccapabilities:
> set_utsname,raw_icmp
> flags:
> fakeinit,sched_hard,virt_mem,virt_uptime,virt_cpu,virt_load,hide_netif,state_init,state_admin,sc_helper
> 
> # vsched --fill-rate 1 --interval 10000 --xid 8003 --tokens_max 10
> --tokens 10
> 
> # cat /proc/virtual/8003/sched
> FillRate:              1,1
> Interval:          10000,8
> TokensMin:            10
> TokensMax:            10
> PrioBias:              0
> cpu 0: 61067 11483 0 0 0 R- 10 10 10 1/10000 1/8 0 0
> 
> <doing some command inside xid 8003...>
> 
> # cat /proc/virtual/8003/sched
> FillRate:              1,1
> Interval:          10000,8
> TokensMin:            10
> TokensMax:            10
> PrioBias:              0
> cpu 0: 96165 17664 0 0 0 R- 10 10 10 1/10000 1/8 0 0
> 
> 
> It seems that sched_pause doesn't have an effect, too.
> 
> 
> Andreas
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> **********************************************************************