Monthly Archives: 04月 2010

Linux中Load average的理解

Load average的定义 系统平均负载被定义为在特定时间间隔内运行队列中的平均进程树。如果一个进程满足以下条件则其就会位于运行队列中: - 它没有在等待I/O操作的结果 - 它没有主动进入等待状态(也就是没有调用’wait’) - 没有被停止(例如:等待终止) 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 … Continue reading

Posted in 未分类 | Tagged | Leave a comment

数据传输命令scp or rsync

rsync -apur --partial -e "ssh -p 22 -c arcfour" SRC DEST scp -P 22 -c arcfour SRC DEST

Posted in 未分类 | Tagged | Leave a comment