Re: [Vserver] vserver cpu scheduling

From: Andreas Baetz <lac01_at_web.de>
Date: Fri 24 Nov 2006 - 07:43:03 GMT
Message-Id: <200611240843.03332.lac01@web.de>

On Thursday 23 November 2006 20:29, Herbert Poetzl wrote:
> On Tue, Nov 21, 2006 at 10:05:07AM +0100, Andreas Baetz wrote:
> > Hi,
> >
> > I updated to another kernel (2.6.18.2) and another vserver version
> > (vs2.0.2.2-rc6), and I think the hard cpu scheduling doesn't work as
> > expected.
>
> works here as expected (with 2.6.18.3-vs2.0.2.2-rc8)
>
> > What I'm trying to do is to limit the CPU cycles for xid 8004 (deb4).
> >
> > In vserver 8004 the following command is running:
> >
> > cat /dev/zero | gzip | gzip | gzip > /dev/null
>
> hmm, strange, could you try with the following sequence
> (see links for the sources) and let me know what top
> and vtop report on that?
>
> vcmd -i 666 -BC ctx_create .flagword=^34^33^32^8 -- cpuhog

I tested with 2.6.18.2-vs2.0.2.2-rc6, because 2.6.18.3-vs2.0.2.2-rc8 freezed, see my other post.
CPU Scheduling doesn't seem to work.

vtop:
op - 08:30:31 up 39 min, 6 users, load average: 0.38, 0.31, 0.20
Tasks: 160 total, 7 running, 153 sleeping, 0 stopped, 0 zombie
Cpu(s): 98.7%us, 1.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st
Mem: 904876k total, 559776k used, 345100k free, 52368k buffers
Swap: 1003960k total, 0k used, 1003960k free, 313956k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 8219 root 25 0 1424 244 192 R 94.7 0.0 0:17.17 cpuhog

top:
top - 08:31:43 up 41 min, 6 users, load average: 1.14, 0.58, 0.30
Tasks: 146 total, 3 running, 143 sleeping, 0 stopped, 0 zombie
Cpu(s): 98.0%us, 1.7%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st
Mem: 904876k total, 561456k used, 343420k free, 52552k buffers
Swap: 1003960k total, 0k used, 1003960k free, 314244k cached

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 3768 root 15 0 53680 11m 4680 S 2.0 1.3 1:07.79 Xorg
 

Maybe there is generally something wrong with my config ?
Do I need "Limit the idle task" in the kernel config ?
I always used a vanilla kernel for patching in all cases.

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.
**********************************************************************

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Nov 24 07:45:02 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 24 Nov 2006 - 07:45:07 GMT by hypermail 2.1.8