Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm doing some load testing on a new dedicated web server, and after a certain amount of strain is put on the server I have to wait a minute for the one-minute load average to climb back down so that my testing remains fairly accurate.

Is there any way to set the load averages back to 0, or whatever they are normally at, without rebooting?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

There is not. It's a rolling average.

share|improve this answer
    
Technically, "the kernel can't actually keep a rolling average". Thanks for the input though. I'll see if anyone else has any ideas before I possibly accept this. –  ITS Alaska Jun 21 '13 at 0:40

I don't know of any possibility to influence the kernel load counters but if you are willing to do some coding then you can do without them. You could simply read the absolute values from /proc/stat and do your own calculation. Which you can reset whenever you want.

share|improve this answer
    
or they could force sadc to collect and examine the values in sar -p –  Joel Davis Jun 21 '13 at 0:19
    
The command/files might be different for my exact flavor. I'll do some research and see if this approach will work though. –  ITS Alaska Jun 21 '13 at 0:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.