4

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?

tshepang
  • 64,472
  • 86
  • 223
  • 290
ITS Alaska
  • 143
  • 1
  • 4

2 Answers2

3

There is not. It's a rolling average.

bahamat
  • 38,658
  • 4
  • 70
  • 103
  • Technically, ["the kernel can't actually keep a rolling average"](http://unix.stackexchange.com/questions/8895/why-isnt-a-straightforward-1-5-15-minute-moving-average-used-in-linux-load-calc). 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 00:40
0

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.

Hauke Laging
  • 88,146
  • 18
  • 125
  • 174