iT邦幫忙

0

Linux系統中的Load averages代表什麼意思?

在Linux系統中下top或uptime指令會有三個load average的數字,請問這個數字代表什麼意思?對系統的performance的真正影響為何?

鐵殼心 iT邦高手 1 級 ‧ 2008-04-25 09:31:22 檢舉
感謝 Jessy 提出三個數字的代表意義
davistai iT邦大師 1 級 ‧ 2008-04-26 21:48:57 檢舉
Thanks to all.
huichung iT邦新手 2 級 ‧ 2008-04-29 13:27:53 檢舉
又學到了一課,謝謝各位的意見
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
30
john651216
iT邦研究生 1 級 ‧ 2008-04-23 10:43:02
最佳解答

top 中的 load average 對 performance 的真正影響為何?

通常聽到的說法是, 如果 CPU 有 4 顆, load average 超過 8 (CPU 個數的兩倍) 的時候, 代表 CPU 的 loading 很重, 但往往此時還有 idle, 也許是 10% ~ 20%, 雖然有 idle 但真的覺得慢

  1. 如果load average/CPU數量 < 3, performance is good
  2. 如果load average/CPU數量 > 5, performance is very bad
22
海綿寶寶
iT邦大神 1 級 ‧ 2008-04-23 10:44:38

The first CPU-related information is present on the very first line: the load average. The load average is a number that corresponds to the average number of runnable processes on the system. The load average is often listed as three sets of numbers (as seen here), which represent the load average for the past 1, 5, and 15 minutes, indicating that the system in this example was not very busy.

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/admin-primer/s1-bandwidth-rhlspec.html

18
jessy
iT邦新手 4 級 ‧ 2008-04-24 09:37:47

在console端,查看系统负载的运行状况,可以key入指令top
显示 load average,此处有三个值显示,明细如下:
load average: 0.00, 0.00, 0.00
这表示系统前5 分钟,前15分钟,前30分钟,系统负截的情况,一般此处值不超6~7,为正常

我要發表回答

立即登入回答