免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2686 | 回复: 6
打印 上一主题 下一主题

感觉非常不正常的top信息。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-19 11:18 |只看该作者 |倒序浏览
  1. top - 11:14:53 up 29 days,  3:31,  1 user,  load average: 253.50, 255.19, 255.7
  2. Tasks: 495 total, 264 running, 209 sleeping,   0 stopped,  22 zombie
  3. Cpu(s):  1.3%us, 68.4%sy, 30.3%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
  4. Mem:   2052188k total,  1873996k used,   178192k free,   153452k buffers
  5. Swap:  3219448k total,   421768k used,  2797680k free,   577988k cached

  6.   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
  7. 24256 root      15   0 10996 1640  956 R    5  0.1   0:04.61 top
  8. 12694 vu2004    27  10 75524 4988 4704 R    3  0.2  38:55.63 php5-cgi
  9. 26408 vu2004    27  10  107m 9428 5328 R    3  0.5   6:33.94 php5-cgi
  10. 23524 vu2004    27  10  107m 9428 5328 R    3  0.5   4:53.80 php5-cgi
  11. 30828 vu2004    27  10     0    0    0 Z    3  0.0   0:00.01 php5-cgi <defunct>
  12. 30830 vu2006    27  10     0    0    0 Z    3  0.0   0:00.01 php5-cgi <defunct>
  13. 30832 vu2004    27  10     0    0    0 Z    3  0.0   0:00.01 php5-cgi <defunct>
  14. 30836 vu2011    27  10     0    0    0 Z    3  0.0   0:00.01 php5-cgi <defunct>
  15. 30838 vu2007    27  10     0    0    0 Z    3  0.0   0:00.01 php5-cgi <defunct>
  16. 30842 vu2004    27  10     0    0    0 Z    3  0.0   0:00.01 php5-cgi <defunct>
  17. 30844 vu2004    27  10     0    0    0 Z    3  0.0   0:00.01 php5-cgi <defunct>
  18. 30848 vu2006    27  10     0    0    0 Z    3  0.0   0:00.01 php5-cgi <defunct>
  19. 30957 vu2004    30  10 38540 3856 1716 R    3  0.2   0:00.01 php5-cgi
  20.     1 root      15   0  6120  496  464 S    0  0.0   0:03.80 init
  21.     2 root      RT   0     0    0    0 S    0  0.0   0:00.42 migration/0
  22.     3 root      34  19     0    0    0 R    0  0.0   0:00.05 ksoftirqd/0
  23.     4 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0
复制代码



我这个机器load average特别高而且不断增加,还有cpu sy那项总是占很高CPU,应该是内核占CPU的百分比,不知道为什么这样?

论坛徽章:
8
戌狗
日期:2014-09-26 16:39:44水瓶座
日期:2014-10-10 02:06:57金牛座
日期:2014-10-11 23:04:042015亚冠之首尔
日期:2015-06-23 15:37:0015-16赛季CBA联赛之天津
日期:2016-01-22 18:58:2915-16赛季CBA联赛之佛山
日期:2016-05-31 19:18:0815-16赛季CBA联赛之同曦
日期:2016-08-10 16:26:3315-16赛季CBA联赛之辽宁
日期:2018-01-10 11:47:40
2 [报告]
发表于 2008-11-19 11:46 |只看该作者
没有看到有22个僵死进程啊
应该是这22个僵死进程导致的

ps aux 看看吧

论坛徽章:
0
3 [报告]
发表于 2008-11-19 12:02 |只看该作者
22 zombie,查查看

论坛徽章:
0
4 [报告]
发表于 2008-11-19 12:27 |只看该作者
刚才重启了一下,刚开始正常,过一段时间又开始升高了

僵死进程有时有,一刷可能就消失了。

跑得是fastcgi 的php系统。

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.1  0.0   6120   692 ?        Ss   12:07   0:01 init [2]
root         2  0.0  0.0      0     0 ?        S    12:07   0:00 [migration/0]
root         3  0.0  0.0      0     0 ?        SN   12:07   0:00 [ksoftirqd/0]
root         4  0.0  0.0      0     0 ?        S    12:07   0:00 [watchdog/0]
root         5  0.0  0.0      0     0 ?        S    12:07   0:00 [migration/1]
root         6  0.0  0.0      0     0 ?        SN   12:07   0:00 [ksoftirqd/1]
root         7  0.0  0.0      0     0 ?        S    12:07   0:00 [watchdog/1]
root         8  0.0  0.0      0     0 ?        S<   12:07   0:00 [events/0]
root         9  0.0  0.0      0     0 ?        S<   12:07   0:00 [events/1]
root        10  0.0  0.0      0     0 ?        S<   12:07   0:00 [khelper]
root        11  0.0  0.0      0     0 ?        S<   12:07   0:00 [kthread]
root        16  0.0  0.0      0     0 ?        S<   12:07   0:00 [kblockd/0]
root        17  0.0  0.0      0     0 ?        S<   12:07   0:00 [kblockd/1]
root        18  0.0  0.0      0     0 ?        S<   12:07   0:00 [kacpid]
root       116  0.0  0.0      0     0 ?        S<   12:07   0:00 [khubd]
root       118  0.0  0.0      0     0 ?        S<   12:07   0:00 [kseriod]
root       165  0.0  0.0      0     0 ?        S    12:07   0:00 [pdflush]
root       166  0.0  0.0      0     0 ?        S    12:07   0:00 [pdflush]
root       167  0.0  0.0      0     0 ?        S<   12:07   0:00 [kswapd0]
root       168  0.0  0.0      0     0 ?        S<   12:07   0:00 [aio/0]
root       169  0.0  0.0      0     0 ?        S<   12:07   0:00 [aio/1]
root       688  0.0  0.0      0     0 ?        S<   12:07   0:00 [khpsbpkt]
root       706  0.0  0.0      0     0 ?        S<   12:07   0:00 [ata/0]
root       707  0.0  0.0      0     0 ?        S<   12:07   0:00 [ata/1]
root       708  0.0  0.0      0     0 ?        S<   12:07   0:00 [ata_aux]
root       775  0.0  0.0      0     0 ?        S    12:07   0:00 [knodemgrd_0]
root       787  0.0  0.0      0     0 ?        S<   12:07   0:00 [scsi_eh_0]
root       788  0.0  0.0      0     0 ?        S<   12:07   0:00 [scsi_eh_1]
root       789  0.0  0.0      0     0 ?        S<   12:07   0:00 [scsi_eh_2]
root       790  0.0  0.0      0     0 ?        S<   12:07   0:00 [scsi_eh_3]
root      1009  0.0  0.0      0     0 ?        S<   12:07   0:00 [kmirrord]
root      1117  0.0  0.0      0     0 ?        S<   12:07   0:00 [kjournald]
root      1317  0.0  0.0  11428  1584 ?        S<s  12:07   0:00 udevd --daemon
root      1688  0.0  0.0      0     0 ?        S<   12:07   0:00 [kpsmoused]
root      1760  0.0  0.0      0     0 ?        S<   12:07   0:00 [hda_codec]
root      2051  0.0  0.0      0     0 ?        S<   12:07   0:00 [kjournald]
daemon    2337  0.0  0.0   4824   396 ?        Ss   12:07   0:00 /sbin/portmap
root      2526  0.0  0.0   7944   776 ?        Ss   12:07   0:00 /sbin/syslogd
root      2553  0.0  0.0   2660   392 ?        Ss   12:07   0:00 /sbin/klogd -x
bind      2567  0.0  0.1  55964  3804 ?        Ssl  12:07   0:00 /usr/sbin/named
root      2611  0.0  0.0  16008  1040 ?        Ss   12:07   0:00 /usr/sbin/hpiod
hplip     2614  0.0  0.3  48356  7128 ?        S    12:07   0:00 python /usr/sbi
root      2662  0.0  0.0  10108  1512 ?        S    12:07   0:00 /bin/sh /usr/bi
mysql     2699  0.5  1.6 148244 33868 ?        Sl   12:07   0:06 /usr/sbin/mysql
root      2700  0.0  0.0   2640   540 ?        S    12:07   0:00 logger -p daemo
polw      2760  0.0  0.5  30568 11488 ?        Ss   12:07   0:00 policyd-weight
polw      2762  0.0  0.5  30568 11160 ?        Ss   12:07   0:00 policyd-weight
postgrey  2764  0.0  0.5  34248 11484 ?        Ss   12:07   0:00 /usr/sbin/postg
root      2839  0.0  0.0   2652   588 ?        Ss   12:07   0:00 /usr/sbin/acpid
root      2844  0.0  0.0   3876   416 ?        S    12:07   0:00 /usr/sbin/couri
root      2845  0.0  0.0  12260   680 ?        S    12:07   0:00 /usr/lib/courie
root      2854  0.0  0.0   3876   336 ?        S    12:07   0:00 /usr/sbin/couri
root      2855  0.0  0.0   6024   612 ?        S    12:07   0:00 /usr/sbin/couri
root      2860  0.0  0.0   6028   544 ?        S    12:07   0:00 /usr/sbin/couri
root      2863  0.0  0.0   3748   368 ?        S    12:07   0:00 /usr/sbin/couri
root      2873  0.0  0.0  12260   272 ?        S    12:07   0:00 /usr/lib/courie
root      2874  0.0  0.0  12260   272 ?        S    12:07   0:00 /usr/lib/courie
root      2875  0.0  0.0  12260   272 ?        S    12:07   0:00 /usr/lib/courie
root      2876  0.0  0.0  12260   272 ?        S    12:07   0:00 /usr/lib/courie
root      2877  0.0  0.0  12260   272 ?        S    12:07   0:00 /usr/lib/courie
root      2888  0.0  0.1  31908  2060 ?        Ss   12:07   0:00 /usr/sbin/cupsd
103       2906  0.0  0.0   9520   896 ?        Ss   12:07   0:00 /usr/bin/dbus-d
105       2914  0.1  0.2  19728  4348 ?        Ss   12:07   0:01 /usr/sbin/hald
root      2915  0.0  0.0  11272  1124 ?        S    12:07   0:00 hald-runner
105       2921  0.0  0.0   9264   892 ?        S    12:07   0:00 hald-addon-acpi
root      2943  0.0  0.0   4012   692 ?        Ss   12:08   0:00 /usr/sbin/dhcdb
root      2950  0.0  0.0  20968  1940 ?        Ss   12:08   0:00 /usr/sbin/Netwo
avahi     2962  0.0  0.0  16108  1460 ?        Ss   12:08   0:00 avahi-daemon: r
avahi     2963  0.0  0.0  15988   512 ?        Ss   12:08   0:00 avahi-daemon: c
root      2970  0.0  0.0  12312  1180 ?        Ss   12:08   0:00 /usr/sbin/Netwo
root      2989  0.0  0.0   5912   592 ?        Ss   12:08   0:00 /usr/sbin/inetd
root      3053  0.0  0.1  19616  2088 ?        Ss   12:08   0:00 /usr/lib/postfi
postfix   3056  0.0  0.1  20652  2064 ?        S    12:08   0:00 pickup -l -t fi
postfix   3057  0.0  0.1  20692  2116 ?        S    12:08   0:00 qmgr -l -t fifo
root      3076  0.0  0.0  25844  1240 ?        Ss   12:08   0:00 /usr/sbin/sshd
root      3127  0.0  0.0  54888  1992 ?        Ss   12:08   0:00 /usr/sbin/gdm
root      3132  0.0  0.1  61396  2740 ?        S    12:08   0:00 /usr/sbin/gdm
root      3134  0.0  0.3  46580  7412 tty7     Ss+  12:08   0:00 /usr/bin/X :0 -
statd     3139  0.0  0.0   9100   856 ?        Ss   12:08   0:00 /sbin/rpc.statd
ntp       3157  0.0  0.0  15108  1484 ?        Ss   12:08   0:00 /usr/sbin/ntpd
gdm       3206  0.0  0.9 103680 18992 ?        Ss   12:08   0:00 /usr/lib/gdm/gd
nobody    3207  0.0  0.0  56456  1812 ?        Ss   12:08   0:00 proftpd: (accep
daemon    3226  0.0  0.0   9056   424 ?        Ss   12:08   0:00 /usr/sbin/atd
root      3233  0.0  0.0  11500   940 ?        Ss   12:08   0:00 /usr/sbin/cron
root      3266  0.0  0.0   2640   416 ?        S    12:08   0:00 /var/www/ispcp/
root      3601  0.0  0.0   2652   540 tty1     Ss+  12:08   0:00 /sbin/getty 384
root      3602  0.0  0.0   2656   540 tty2     Ss+  12:08   0:00 /sbin/getty 384
root      3603  0.0  0.0   2652   536 tty3     Ss+  12:08   0:00 /sbin/getty 384
root      3604  0.0  0.0   2656   536 tty4     Ss+  12:08   0:00 /sbin/getty 384
root      3605  0.0  0.0   2656   536 tty5     Ss+  12:08   0:00 /sbin/getty 384
root      3606  0.0  0.0   2656   536 tty6     Ss+  12:08   0:00 /sbin/getty 384
root      3758  0.0  0.1  39136  2980 ?        Ss   12:15   0:00 sshd: root@pts/
root      3764  0.0  0.0  11556  2032 pts/0    Ss   12:15   0:00 -bash
vu2000    3820 11.2  0.4 109592  9428 ?        RNs  12:15   1:08 /usr/bin/php5-c
vu2000    5026 13.3  0.4 109596  9432 ?        RNs  12:15   1:20 /usr/bin/php5-c
root      8163  0.0  2.6 118232 53760 ?        SNs  12:16   0:00 /usr/sbin/apach
www-data  8165  0.0  0.1  68072  3604 ?        SN   12:16   0:00 /usr/sbin/apach
www-data  8177  0.0  0.1  68072  3496 ?        SN   12:16   0:00 /usr/sbin/fcgi-
vu2000    8178  0.0  0.4 109596  9428 ?        SNs  12:16   0:00 /usr/bin/php5-c
www-data  8196  0.0  0.2 546048  6008 ?        SNl  12:16   0:00 /usr/sbin/apach
www-data  8198  0.0  0.2 546180  6040 ?        SNl  12:16   0:00 /usr/sbin/apach
www-data  8200  0.0  0.2 546036  5984 ?        SNl  12:16   0:00 /usr/sbin/apach
www-data  8202  0.0  0.2 546048  5964 ?        SNl  12:16   0:00 /usr/sbin/apach
www-data  8214  0.0  0.2 546032  5944 ?        SNl  12:16   0:00 /usr/sbin/apach
vu2000    9444  0.0  0.6 112000 12984 ?        SN   12:16   0:00 /usr/bin/php5-c
vu2000    9445  0.0  0.2 109596  4572 ?        SN   12:16   0:00 /usr/bin/php5-c
vu2012   15447  0.0  0.4 109592  9424 ?        SNs  12:16   0:00 /usr/bin/php5-c
vu2012   16506  0.1  0.5 111760 11620 ?        SN   12:16   0:00 /usr/bin/php5-c
vu2012   16507  0.0  0.5 110900 10388 ?        SN   12:16   0:00 /usr/bin/php5-c
vu2008   17327  0.0  0.4 109596  9428 ?        SNs  12:16   0:00 /usr/bin/php5-c
vu2008   18376  0.0  0.8 112604 16952 ?        SN   12:17   0:00 /usr/bin/php5-c
vu2008   18378  0.0  0.7 113008 15928 ?        SN   12:17   0:00 /usr/bin/php5-c
vu2007   20378  0.0  0.4 109592  9424 ?        SNs  12:17   0:00 /usr/bin/php5-c
vu2007   21469  0.2  1.0 113348 21976 ?        SN   12:17   0:01 /usr/bin/php5-c
vu2007   21471  0.2  0.4 111980  9584 ?        SN   12:17   0:01 /usr/bin/php5-c
vu2006   22849  0.0  0.4 109592  9424 ?        SNs  12:17   0:00 /usr/bin/php5-c
vu2006   23854  0.4  0.4 111244 10220 ?        SN   12:17   0:02 /usr/bin/php5-c
vu2006   23856  0.3  0.4 110976  9876 ?        SN   12:17   0:01 /usr/bin/php5-c
vu2000   24371  0.0  0.2  91404  5000 ?        RN   12:25   0:00 /usr/bin/php5-c
vu2000   24370  0.0  0.2 106260  5032 ?        RN   12:25   0:00 /usr/bin/php5-c
vu2000   24372  0.0  0.2 105116  5028 ?        RN   12:25   0:00 /usr/bin/php5-c
root     24374  0.0  0.0   8444   952 pts/0    R+   12:25   0:00 ps aux


上面是PS的信息,多数都是PHP-CGI的程序。

论坛徽章:
0
5 [报告]
发表于 2008-11-19 12:28 |只看该作者
  1. top - 12:28:03 up 21 min,  1 user,  load average: 5.20, 5.12, 3.20
  2. Tasks: 123 total,   8 running, 115 sleeping,   0 stopped,   0 zombie
  3. Cpu(s):  0.0%us, 65.1%sy, 34.8%ni,  0.0%id,  0.0%wa,  0.2%hi,  0.0%si,  0.0%st
  4. Mem:   2052188k total,   970908k used,  1081280k free,   149288k buffers
  5. Swap:  3219448k total,        0k used,  3219448k free,   422204k cached
复制代码


现在没有僵尸进程了,也是这样,晕啊

论坛徽章:
0
6 [报告]
发表于 2008-11-19 21:04 |只看该作者
这么多PHP进程,负载高是正常的吧

论坛徽章:
0
7 [报告]
发表于 2008-11-20 01:31 |只看该作者
Tasks: 495 total, 264 running, 209 sleeping,   0 stopped,  22 zombie

你的系统运行了什么程序? 如果是高负荷的话也可能正常
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP