View Issue Details

IDProjectCategoryView StatusLast Update
0005263CentOS-6-OTHERpublic2011-11-24 18:53
ReporterAsim 
PrioritynormalSeveritymajorReproducibilityrandom
Status newResolutionopen 
Platform64bitOSCentOSOS Version6.0 FINAL
Product Version6.0 
Target VersionFixed in Version 
Summary0005263: 'ps' reports incorrect CPU usage
Description'ps' showing incorrect CPU% e.g. right now its showing

mysql using 46877444% CPU
rsyslogd using 12352426% CPU

which is impossible since the load average is 0 (zero) and CPUs are idle
Steps To ReproduceInstall CentOS 6.0 64bit template on XEN PV VPS and run some applications on it (after some time) verify that the 'ps' would be reporting incorrect values

Where as 'top' reports it to be correctly. I contacted cPanel too (I have cPanel installed on it) and they confirmed and reconfirmed its NOT because of their software. I also tested this on a fresh CentOS 6.0 64bit install too (without installing anything else) and the weird CPU issue came back as soon as I started using it
Additional Informationroot@sirius [~]# cat /etc/centos-release
CentOS Linux release 6.0 (Final)


root@sirius [~]# uptime
 23:44:45 up 1 day, 17:31, 1 user, load average: 0.08, 0.03, 0.01


root@sirius [~]# free -m
             total used free shared buffers cached
Mem: 993 921 71 0 44 556
-/+ buffers/cache: 320 673
Swap: 2047 9 2038



root@sirius [~]# ps aufx
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2 0.0 0.0 0 0 ? S Nov23 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S Nov23 0:00 \_ [migration/0]
root 4 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S Nov23 0:00 \_ [watchdog/0]
root 6 0.0 0.0 0 0 ? S Nov23 0:00 \_ [migration/1]
root 7 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ksoftirqd/1]
root 8 0.0 0.0 0 0 ? S Nov23 0:00 \_ [watchdog/1]
root 9 0.0 0.0 0 0 ? S Nov23 0:00 \_ [migration/2]
root 10 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ksoftirqd/2]
root 11 0.0 0.0 0 0 ? S Nov23 0:00 \_ [watchdog/2]
root 12 0.0 0.0 0 0 ? S Nov23 0:00 \_ [migration/3]
root 13 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ksoftirqd/3]
root 14 0.0 0.0 0 0 ? S Nov23 0:00 \_ [watchdog/3]
root 15 0.0 0.0 0 0 ? S Nov23 0:00 \_ [events/0]
root 16 0.0 0.0 0 0 ? S Nov23 0:00 \_ [events/1]
root 17 0.0 0.0 0 0 ? S Nov23 0:00 \_ [events/2]
root 18 0.0 0.0 0 0 ? S Nov23 0:00 \_ [events/3]
root 19 0.0 0.0 0 0 ? S Nov23 0:00 \_ [cpuset]
root 20 0.0 0.0 0 0 ? S Nov23 0:00 \_ [khelper]
root 21 0.0 0.0 0 0 ? S Nov23 0:00 \_ [netns]
root 22 0.0 0.0 0 0 ? S Nov23 0:00 \_ [async/mgr]
root 23 0.0 0.0 0 0 ? S Nov23 0:00 \_ [pm]
root 24 0.0 0.0 0 0 ? S Nov23 0:00 \_ [xenwatch]
root 25 0.0 0.0 0 0 ? S Nov23 0:00 \_ [xenbus]
root 26 0.0 0.0 0 0 ? S Nov23 0:00 \_ [sync_supers]
root 27 0.0 0.0 0 0 ? S Nov23 0:00 \_ [bdi-default]
root 28 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kintegrityd/0]
root 29 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kintegrityd/1]
root 30 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kintegrityd/2]
root 31 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kintegrityd/3]
root 32 0.0 0.0 0 0 ? S Nov23 0:01 \_ [kblockd/0]
root 33 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kblockd/1]
root 34 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kblockd/2]
root 35 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kblockd/3]
root 36 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ata/0]
root 37 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ata/1]
root 38 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ata/2]
root 39 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ata/3]
root 40 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ata_aux]
root 41 0.0 0.0 0 0 ? S Nov23 0:00 \_ [ksuspend_usbd]
root 42 0.0 0.0 0 0 ? S Nov23 0:00 \_ [khubd]
root 43 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kseriod]
root 48 0.0 0.0 0 0 ? S Nov23 0:00 \_ [khungtaskd]
root 49 0.0 0.0 0 0 ? S Nov23 0:13 \_ [kswapd0]
root 50 0.0 0.0 0 0 ? SN Nov23 0:00 \_ [ksmd]
root 51 0.0 0.0 0 0 ? S Nov23 0:00 \_ [aio/0]
root 52 0.0 0.0 0 0 ? S Nov23 0:00 \_ [aio/1]
root 53 0.0 0.0 0 0 ? S Nov23 0:00 \_ [aio/2]
root 54 0.0 0.0 0 0 ? S Nov23 0:00 \_ [aio/3]
root 55 0.0 0.0 0 0 ? S Nov23 0:00 \_ [crypto/0]
root 56 0.0 0.0 0 0 ? S Nov23 0:00 \_ [crypto/1]
root 57 0.0 0.0 0 0 ? S Nov23 0:00 \_ [crypto/2]
root 58 0.0 0.0 0 0 ? S Nov23 0:00 \_ [crypto/3]
root 64 0.0 0.0 0 0 ? S Nov23 0:00 \_ [khvcd]
root 65 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kpsmoused]
root 66 0.0 0.0 0 0 ? S Nov23 0:00 \_ [usbhid_resumer]
root 94 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kstriped]
root 230 0.0 0.0 0 0 ? S Nov23 0:07 \_ [flush-202:1]
root 237 0.0 0.0 0 0 ? S Nov23 0:11 \_ [kjournald]
root 606 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kauditd]
root 629 0.0 0.0 0 0 ? S< Nov23 0:00 \_ [loop0]
root 631 0.0 0.0 0 0 ? S Nov23 0:00 \_ [kjournald]
root 24801 0.0 0.0 0 0 ? S 22:59 0:00 \_ [flush-7:0]
root 1 0.0 0.0 19112 976 ? Ss Nov23 0:00 /sbin/init
root 300 0.0 0.0 10700 356 ? S<s Nov23 0:00 /sbin/udevd -d
root 1696 0.0 0.0 10688 300 ? S< Nov23 0:00 \_ /sbin/udevd -d
root 1697 0.0 0.0 10668 300 ? S< Nov23 0:00 \_ /sbin/udevd -d
root 936 12377042 0.1 248576 1084 ? Sl Nov23 21114574:23 /sbin/rsyslogd -c 4
root 954 0.0 0.0 63756 820 ? Ss Nov23 0:00 /usr/sbin/sshd
root 26555 0.0 0.3 99520 3652 ? Rs 23:35 0:00 \_ sshd: root@pts/0
root 26557 0.0 0.1 11344 1728 pts/0 Ss 23:35 0:00 \_ -bash
root 26666 0.0 0.0 11220 1012 pts/0 R+ 23:39 0:00 \_ ps aufx
nrpe 1164 0.0 0.0 40456 780 ? Ss Nov23 0:01 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
root 1347 0.0 0.5 73480 5576 ? Ss Nov23 0:04 /usr/local/apache/bin/httpd -k start -DSSL
root 25833 0.0 0.8 51300 8336 ? S 23:18 0:00 \_ /usr/bin/perl /usr/local/cpanel/bin/leechprotect
root 25844 0.0 0.3 73480 3232 ? S 23:18 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 25847 0.0 0.4 73612 5060 ? S 23:18 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 25848 0.0 0.4 73616 4996 ? S 23:18 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 25850 0.0 0.4 73616 4956 ? S 23:18 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 25955 0.0 0.4 73620 5036 ? S 23:19 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 25958 0.0 0.4 73612 4900 ? S 23:19 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 25959 0.0 0.4 73612 4892 ? S 23:19 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 25960 0.0 0.4 73612 5036 ? S 23:19 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 26405 0.0 0.4 73616 4932 ? S 23:29 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 26408 0.0 0.4 73588 4912 ? S 23:29 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
nobody 26502 0.0 0.4 73616 4868 ? S 23:32 0:00 \_ /usr/local/apache/bin/httpd -k start -DSSL
root 1375 0.0 0.1 138384 1264 ? Ss Nov23 0:00 pure-ftpd (SERVER)
root 1377 0.0 0.1 39060 1236 ? S Nov23 0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
root 1416 0.0 0.1 20264 1124 ? Ss Nov23 0:03 crond
root 1684 0.0 0.0 3972 472 tty1 Ss+ Nov23 0:00 /sbin/mingetty /dev/tty1
root 1686 0.0 0.0 3972 472 tty2 Ss+ Nov23 0:00 /sbin/mingetty /dev/tty2
root 1688 0.0 0.0 3972 472 tty3 Ss+ Nov23 0:00 /sbin/mingetty /dev/tty3
root 1690 0.0 0.0 3972 472 tty4 Ss+ Nov23 0:00 /sbin/mingetty /dev/tty4
root 1692 0.0 0.0 3972 472 tty5 Ss+ Nov23 0:00 /sbin/mingetty /dev/tty5
root 1694 0.0 0.0 3972 472 tty6 Ss+ Nov23 0:00 /sbin/mingetty /dev/tty6
root 1699 0.0 0.0 3984 484 hvc0 Ss+ Nov23 0:00 /sbin/agetty /dev/hvc0 38400 vt100-nav
root 10228 0.0 0.0 10536 704 ? Ss Nov23 0:00 /usr/sbin/dovecot
root 10229 0.0 0.1 21668 1052 ? S Nov23 0:00 \_ dovecot-auth
dovecot 10312 0.0 0.1 36768 1812 ? S Nov23 0:00 \_ pop3-login
dovecot 10313 0.0 0.1 36768 1812 ? S Nov23 0:00 \_ pop3-login
dovecot 10314 0.0 0.2 36784 2128 ? S Nov23 0:00 \_ imap-login
dovecot 10315 0.0 0.2 36784 2076 ? S Nov23 0:00 \_ imap-login
mailnull 10424 0.0 0.0 66084 788 ? Ss Nov23 0:00 /usr/sbin/exim -bd -q60m
root 10453 0.0 4.7 146072 47956 ? Ss Nov23 0:10 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=3 --ma
root 10454 0.0 4.7 146504 48320 ? S Nov23 0:00 \_ spamd child
root 10953 0.0 0.6 40108 6568 ? S Nov23 0:00 queueprocd - wait to process a task
root 10964 0.0 0.8 47172 8140 ? S Nov23 0:13 tailwatchd
mailman 10969 0.0 0.8 104324 8420 ? Ss Nov23 0:00 /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl -s s
mailman 10982 0.0 1.0 102084 10696 ? S Nov23 0:07 \_ /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --r
mailman 10983 0.0 1.0 102108 10788 ? S Nov23 0:11 \_ /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --r
mailman 10984 0.0 1.0 102100 10720 ? S Nov23 0:07 \_ /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --r
mailman 10985 0.0 1.0 102076 10720 ? S Nov23 0:07 \_ /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --r
mailman 10986 0.0 1.0 102104 10788 ? S Nov23 0:07 \_ /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --r
mailman 10987 0.0 1.0 102424 10872 ? S Nov23 0:08 \_ /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --r
mailman 10988 0.0 1.0 102128 10716 ? S Nov23 0:07 \_ /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --r
mailman 10990 0.0 1.0 102092 10724 ? S Nov23 0:00 \_ /usr/local/cpanel/3rdparty/bin/python /usr/local/cpanel/3rdparty/mailman/bin/qrunner --r
root 11027 0.0 1.1 91132 11548 ? S Nov23 0:04 cpsrvd - waiting for connections
root 11033 0.0 1.4 96300 14748 ? S Nov23 0:00 cpdavd - accepting connections on 2077 and 2078
root 11043 0.0 0.2 26600 2744 ? SN Nov23 0:00 cpanellogd - sleeping for logs
root 3352 0.0 0.1 11212 1420 ? S 12:48 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/sirius.asimz
mysql 3416 47233940 4.2 682000 43108 ? Sl 12:48 21114565:22 \_ /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --log-error=/var
TagsNo tags attached.

Activities

Asim

Asim

2011-11-24 18:53

reporter   ~0013830

I have just verified that even though ps reports bad values for CPU%, 'top' shows it correctly

Issue History

Date Modified Username Field Change
2011-11-24 18:51 Asim New Issue
2011-11-24 18:53 Asim Note Added: 0013830