红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

Ubuntu上查看CPU/System Load Average

发布时间:2008-07-08 00:50:09来源:红联作者:bmcqqi
CPU/System Load Average这些参数可以帮助我们了解系统的运行情况,那么在Ubuntu如何查看CPU/System Load Average呢?

有很多方法可以得到这些参数信息:

1.uptime

The uptime command gives information on system load averages for the past 1, 5, and 15 minutes:

[root@ubuntu 5laida]# uptime
11:25:29 up 4 days, 11:56, 15 users, load average: 0.00, 0.00, 0.00

2.w

The w command shows who is logged on and what they are doing, including system load averages for the past 1, 5, and 15 minutes.

[root@ubuntu 5laida]# w
11:26:51 up 400 days, 11:58, 1 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
5laida pts/0 192.168.1.115 11:11 0.00s 0.00s 0.00s /usr/sbin/sshd

3./proc/loadavg

The /proc/loadavg file contains information on the system load. Most likely the uptime/w commands utilize this information. The first 3 values contain system load averages for the past 1, 5, and 15 minutes.

[root@ubuntu 5laida]# cat /proc/loadavg
0.00 0.00 0.39 1/49 15352

还有其他的一些方法来得到这些参数信息,不过这些是最常用的。
文章评论

共有 0 条评论