我今天早上重新启动了我们的服务器,但是有无数的进程似乎已经运行了600天?
有人可以请一些亮点吗?
机器的日期时间是正确的:
[root@abc youdev]# hwclock Wed 23 Jul 2014 15:50:35 BST -0.828434 seconds [root@abc youdev]# date Wed Jul 23 15:50:35 BST 2014 [root@abc youdev]#
这是“顶部”和“正常运行时间”的输出
[youdev@abc ~]$top top - 15:13:40 up 6:52,4 users,load average: 22.18,21.86,21.23 Tasks: 452 total,11 running,441 sleeping,0 stopped,0 zombie Cpu(s): 0.0%us,0.0%sy,0.0%ni,100.0%id,0.0%wa,0.0%hi,0.0%si,0.0%st Mem: 32829408k total,4504280k used,28325128k free,317572k buffers Swap: 16482296k total,0k used,16482296k free,574688k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 113 root 20 0 0 0 0 S 0.3 0.0 300194:22 events/14 1 root 20 0 19356 1540 1224 S 0.0 0.0 9712065h init 2 root 20 0 0 0 0 S 0.0 0.0 4788099h kthreadd 3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 4 root 20 0 0 0 0 S 0.0 0.0 10237405h ksoftirqd/0 ... snip ... 55 root RT 0 0 0 0 R 0.0 0.0 300194:20 migration/13 56 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/13 [youdev@abc ~]$uptime 15:13:47 up 6:52,load average: 22.16,21.24 [youdev@abc ~]$
运行CentOS 6.4版(最终版)
解决方法
时间表示CPU时间,或者更具体地说,“进程和进程的子进程使用的累积CPU时间”.
Total CPU time the task has used since it started. When ‘Cumulative
mode’ is On,each process is listed with the cpu time that it and
its dead children has used. You toggle ‘Cumulative mode’ with ‘S’,
which is a command-line option and an interactive command. See the
‘S’ interactive command for additional information regarding this
mode.
Source
Here’s链接解释CPU时间,如果你很好奇.