[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-16 Thread Stefan Bader
Thanks for trying. In that case its likely somewhere else (plenty of places but hard to find). :( Regarding your question about safety: it should be relatively safe as the change is also upstream and seems to address a corner case anyway. If you want to be on the complete official side I think

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-15 Thread Stefan Bader
I took the kernel version that currently is in updates (2.6.32-28.55) and added the backport of the patch I was mentioning above. All the kernel packages are at: http://people.canonical.com/~smb/lp710319/. There are packages for all kinds of installations, so don't worry you will only need to

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-15 Thread tinodj
I have just installed 2.6.32-28. (still not rebooted) I will do what you suggest later today. I hope I shouldn't go to my data center after trying this :) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in ubuntu.

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-15 Thread tinodj
Hi, Thanks for taking care of this and preparing files, as well as manual how to do it. uname -a Linux mail 2.6.32-28-server #55+lp710319v1 SMP Tue Feb 15 09:01:19 UTC 2011 x86_64 GNU/Linux Apache CPU Usage after some threads die (e.g. after gracefull reload) still is NOT correct. Probably

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-14 Thread tinodj
Probably I can do that if it is not complicated a lot :) Please provide me a test kernel and instructions what is the best/safest way to do the test. Do you know maybe in which kernel that patch will be incorporated to wait for it? -- You received this bug notification because you are a member

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-09 Thread Stefan Bader
@tinodj, were you using the test from the reply (the original test case had a flaw)? Anyway, the patch that Scot mentioned could be fixing things. But for Lucid this was added in Ubuntu-2.6.32-25.44 and at least in the comment a -24.43 kernel was used. So first question: is this still seen with a

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-09 Thread tinodj
@Stefan Ooopsss ... I missed that point. I just tried the test from the reply, and there is no output. So probably - there is no problem there. My current kernel, once again is: 2.6.32-27 But the problem in apache persists. -- You received this bug notification because you are a member of

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-09 Thread Stefan Bader
@tinodj, ok thanks for the confirmation here. Hm, would you be able to install a test kernel on the host that exhibits the apache problem? That was a production system, right? I would try to create a test kernel based on 2.6.32-27 with just the patch added which I mentioned before. That at least

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-03 Thread Scott Moser
** Also affects: linux (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to apache2 in ubuntu. https://bugs.launchpad.net/bugs/710319 Title: CPU usage is incorrect on server-status

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-03 Thread Scott Moser
I'm fairly sure that the bug that was reported here is due to a kernel bug where utime can decrease. http://kerneltrap.org/mailarchive/linux-kernel/2009/12/2/4514350 I've verified the test program shown in that thread reproduces on my lucid system: $ dpkg -S /boot/vmlinuz-$(uname -r)

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-03 Thread Scott Moser
Could you please verify that the linked test case shows the bug? Download it to a file mytest.c, then 'gcc -o mytest mytest.c -lpthread' and ./mytest ** Changed in: linux (Ubuntu) Importance: Undecided = Medium -- You received this bug notification because you are a member of Ubuntu Server

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-03 Thread tinodj
Hi Scott, Thank you for your time. I did what you suggest, and I've noticed two strange things. 1. Compiling showed me the following warnings: gcc -o mytest mytest.c -lpthread mytest.c: In function ‘child’: mytest.c:83: warning: format ‘%3d’ expects type ‘int’, but argument 4 has type ‘

[Bug 710319] Re: CPU usage is incorrect on server-status page

2011-02-03 Thread tinodj
Update: Tried this script: http://lkml.org/lkml/2009/11/3/522 Got this: ./mytest utime decreased, was 1730, now 1577! utime decreased, was 1754, now 1656! uname -r 2.6.32-27-server -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to