How is system load determined?

Hello!

I'm wondering what factors are used to determine the "system load"

Where can i look to get more information on this?

Patrick

system load is the average length of the processor queue.

I would be interested to know where you found that particular language. The man page for uptime says

which is very close to your language. I encountered many cases where this didn't seem to jibe with reality so I took a peek at the source code.

Rather than looking at the run queue, the load is actually computed by scanning the proc table. A process is counted if

  • it is runnable (in the run queue)
  • if it is running (in a cpu)
  • if it sleeping with a priority lower than PZERO

That last one is intended to cover processes that are waiting for disk i/o to complete. And the load is divided by the number of cpu's.

The extract above is from this paper..... CLICK HERE.