ubuntu查看linux cpu,Ubuntu上查看CPU/System Load Average

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值