CPU usage is incorrect on server-status page
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
linux (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Binary package hint: apache2
1. lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04
2. Version of package: 2.2.14
3. I do expect CPU Usage and CPU Load to be correct in server-status page in apache2.
4. What happened instead? - See below:
CPU usage in apache2 server-status page is incorrect, and it's value is also decreasing sometimes.
Following statuses were obtained in 5seconds interval:
Server Version: Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.
Server Built: Nov 18 2010 21:19:09
Current Time: Sunday, 30-Jan-2011 21:06:49 CET
Restart Time: Sunday, 30-Jan-2011 19:27:27 CET
Parent Server Generation: 0
Server uptime: 1 hour 39 minutes 22 seconds
Total accesses: 349255 - Total Traffic: 5.9 GB
CPU Usage: u388.82 s69.29 cu5.11 cs0 - 7.77% CPU load
58.6 requests/sec - 1.0 MB/second - 17.6 kB/request
141 requests currently being processed, 12 idle workers
Server Version: Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.
Server Built: Nov 18 2010 21:19:09
Current Time: Sunday, 30-Jan-2011 21:06:54 CET
Restart Time: Sunday, 30-Jan-2011 19:27:27 CET
Parent Server Generation: 0
Server uptime: 1 hour 39 minutes 27 seconds
Total accesses: 349480 - Total Traffic: 5.9 GB
CPU Usage: u384.43 s67.96 cu5.1 cs0 - 7.67% CPU load
58.6 requests/sec - 1.0 MB/second - 17.6 kB/request
125 requests currently being processed, 32 idle workers
CPU Usage in second status is smaller then in the first (obtained 5seconds earlier) (384.43 vs 388.2).
This leads to incorrect CPU load and so on.
I'm fairly sure that the bug that was reported here is due to a kernel bug where utime can decrease. kerneltrap. org/mailarchive /linux- kernel/ 2009/12/ 2/4514350
http://
I've verified the test program shown in that thread reproduces on my lucid system: $(uname -r) image-2. 6.32-24- server: /boot/vmlinuz- 2.6.32- 24-server 2.6.32- 24-server image-2. 6.32-24- server 2.6.32-24.43
$ dpkg -S /boot/vmlinuz-
linux-
$ dpkg-query --show linux-image-
linux-
A single test on my natty system with 2.6.38-1-generic did not reproduce.
Source code review indicates both natty and lucid kernels have [1] applied.
One way or another this is almost certainly a kernel bug, as mod_status just reads kernel tms. git.kernel. org/?p= linux/kernel/ git/torvalds/ linux-2. 6.git;a= commitdiff; h=0cf55e1ec08bb 5a22e068309e2d8 ba1180ab4239
--
[1] http://