除了之前那篇文章还查到不少,如下一一列出:
load Average
load Average
-
来源:http://blog.csdn.net/naivebaby/article/details/1386577
load average是什么?
通过top命令可以查看系统的load average,它显示的是系统在1分钟,5分钟,15分钟之内的load情况。
通 俗的说,load是指run-queue length (i.e., the sum of the number of processes waiting in the run-queue plus the number currently executing).
[popexizhi] ie. 进程的总和 等待在运行队列的进程 加上 当前完成运行的进程
专业一点说,A exponentially-damped time-dependent average
[popexizhi] 一个依赖时间的指数衰减的 平均值
load average怎么计算?
这其中涉及到不少数学知识,发了我一个晚上才了解个大概。唉,数学差啊
为 了使内核可以高效计算load average,采用了fixed-point arithmetic。fixed-point arithmetic是一种非常快速的模拟浮点运算的方法,特别是在没有FPU(float point unit)部件的处理器上,非常有用。
计算公式:load(t) = load(t-1) e^(-5/60) + n (1 - e^(-5/60)),迭代计算,其中n为run-queue length。
为什么采用这个计算公式呢?
由Exponential Smoothing方程有,Y(t)= Y(t-1) + a*[X(t) - Y(t-1)],whereX(t) is the input raw data, Y(t - 1) is the value due to the previoussmoothing iteration and Y(t) is the new smoothed value.这个公式就当作公理吧,不要问我为什么,我也不知道。
令a=1-b,b为e^(-5/60),就可以得到load average的计算公式
采用此公式的好处:局部的load抖动不会对load average造成重大影响,使其平滑。
[popexizhi]说实话这段我也没有弄的很明白,试试看可以知道这个值应该是与上一个时间片有关系的比较值
来源: http://luv.asn.au/overheads/NJG_LUV_2002/luvSlides.html
[popexizhi] 这个文章中介绍的内容是关于load average 的内容说明和其中的hight的说明的内容 ,给的内容都很详细。
没有评论:
发表评论