CPU load
来源:互联网 发布:教育事业统计软件安装 编辑:程序博客网 时间:2024/05/22 14:58
转自: http://en.wikipedia.org/wiki/Load_(computing)
很清楚
All Unix and Unix-like systems generate a metric of three "load average" numbers in the kernel. Users can easily query the current result from a Unix shell by running the uptime command:
$ uptime 14:34:03 up 10:43, 4 users, load average: 0.06, 0.11, 0.09
The w andtop commands show the same three load average numbers, as do a range ofgraphical user interface utilities. In Linux, they can also be accessed by reading the /proc/loadavg
file.
An idle computer has a load number of 0. Each process using or waiting for CPU (the ready queue or run queue) increments the load number by 1. Most UNIX systems count only processes in therunning (on CPU) or runnable (waiting for CPU) states. However, Linux also includes processes in uninterruptible sleep states (usually waiting for disk activity), which can lead to markedly different results if many processes remain blocked inI/O due to a busy or stalled I/O system. This, for example, includes processes blocking due to anNFS server failure or to slow media (e.g., USB 1.x storage devices). Such circumstances can result in an elevated load average, which does not reflect an actual increase in CPU use (but still gives an idea on how long users have to wait).
Systems calculate the load average as the exponentially damped/weighted moving average of the load number. The three values of load average refer to the past one, five, and fifteen minutes of system operation.[1]
For single-CPU systems that are CPU bound, one can think of load average as a percentage of system utilization during the respective time period. For systems with multiple CPUs, one must divide the number by the number of processors in order to get a comparable percentage.
For example, one can interpret a load average of "1.73 0.60 7.98" on a single-CPU system as:
- during the last minute, the system was overloaded by 73% on average (1.73 runnable processes, so that 0.73 processes had to wait for a turn for a single CPU system on average).
- during the last 5 minutes, the CPU was idling 40% of the time on average.
- during the last 15 minutes, the system was overloaded 698% on average (7.98 runnable processes, so that 6.98 processes had to wait for a turn for a single CPU system on average).
This means that this system (CPU, disk, memory, etc.) could have handled all of the work scheduled for the last minute if it were 1.73 times as fast.
In a system with four CPUs, a load average of 3.73 would indicate that there were, on average, 3.73 processes ready to run, and each one could be scheduled into a CPU.
On modern UNIX systems, the treatment of threading with respect to load averages varies. Some systems treat threads as processes for the purposes of load average calculation: each thread waiting to run will add 1 to the load. However, other systems, especially systems implementing so-calledM:N threading, use different strategies, such as counting the process exactly once for the purpose of load (regardless of the number of threads), or counting only threads currently exposed by the user-thread scheduler to the kernel, which may depend on the level of concurrency set on the process.
- CPU load
- cpu load
- CPU load 和 CPU utilization
- CPU Load Monitor
- Documentation/cpu-load.txt
- 关于CPU Load
- cpu load measurement
- cpu中的load average
- linux cpu load
- Load和CPU利用率
- 理解linux cpu load
- CPU使用率 VS Load
- cpu使用率与cpu Load Average区别
- cpu load 的计算方式
- 如何理解Linux CPU Load?
- top cpu avg load计算
- CPU负载计数load average
- cpu load过高问题排查
- JQUERY:this与$(this)
- 二进制向十进制转换
- CRC-16-CCITT
- freebsd手工安装perl @INC错误
- KMP算法
- CPU load
- SQL Server2005-数据库置灰(备用/只读)的解决方法
- 编写PL/SQL编码规则
- 信号量学习笔记
- 10大最适合编程的字体推荐下载,让代码看起来更美更舒服!
- 【软件-InstallAnywhere】Java软件打包:将指定的文件创建快捷方式并安装到桌面(工具installanywhere2012)
- delphi完美经典--第十五章
- Visual Studio调试之断点进阶篇
- 物理学陷入困境:接下来该怎么办?