Hi friends, I need to find average load on my server. The problem would have been quite simple had I required the load averaged over 1 min,5 min or 15 min which I can easily find reading /proc/loadavg (the same as shown by 'uptime') but my requirement compels me to find load averaged over 10 sec or 20 sec.
I went through the linux source code (esp. linux/include/linux/sched.h, linux/fs/proc/proc_misc.c, linux/kernel/timer.c) these gave me an idea that may be changing EXP_1, EXP_5, EXP_15 might help my case but I want to be sure if I'm thinking is right also I want to be careful that I don't effect other things.
Thanks for any help.