I am trying to get a more responsive idea of the system run queue length to see if load balancing based on the one minute load average from sysinfo()
is having issues caused by the client processes perhaps looking in lockstep...
I've managed to find /proc/schedstats
, and it looks to be what I'm looking for, but...
I want to make sure I base my values on the actual interval between polls of /proc/schedstat
, instead of potential processing overhead (it's a shell script).
Now for the question: What is the unit of measurement used for the "timestamp" value at the top of the /proc/schedstats
file? It's sure not nanoseconds, because the value is somewhere between 258 and 260 when my script loops through with a sleep 1
between loops.