|
To me, the problem seems to lie in the documentation, how the load average is defined
there. The man page of w(1) says:
The load average numbers give the number of jobs in the run queue
averaged over 1, 5 and 15 minutes
Based on Ariane's explanation (and I trust her), the number you get is not
what is written in the man page. It is not an average number of jobs in
the run queue in the past 1, 5 and 15 minutes. Length of a run queue is
not taken into account. It is rather "a number of jobs that had been
placed in the run queue during a 5-second window averaged over windows in
last 1, 5 and 15 minutes". To me, definition in the man page is not exact,
it is almost misleading.
As for the comparison of OpenBSD and Linux load average, look at how both
system describe it in their man pages of getloadavg(3) and watch the
difference.
OpenBSD here.
DESCRIPTION
The getloadavg() function returns the number of processes in the system
run queue averaged over various periods of time. Up to nelem samples are
retrieved and assigned to successive elements of loadavg[]. The system
imposes a maximum of 3 samples, representing averages over the last 1, 5,
and 15 minutes, respectively.
Linux, for example, at linux.die.net or at ubuntu.com.
DESCRIPTION
The getloadavg() function returns the number of processes in the system
run queue averaged over various periods of time. Up to nelem samples
are retrieved and assigned to successive elements of loadavg[]. The
system imposes a maximum of 3 samples, representing averages over the
last 1, 5, and 15 minutes, respectively.
How many differences did you spot? Yes, there are none. Both DESCRIPTIONs
are identical.
While I really hate other people (and companies and government agencies
too) blindly supposing you use the same software and hardware platform as
they do and demanding from you and your system to behave according to
their expectations ("now click with your mouse on the taskbar"), in this
case, based on the two identical DESCRIPTIONs of load average above,
expectations of Linux people in respect to load average seem to be
legitimate. There is a fault either on side of Linux, on side of
OpenBSD, or on both. It is in the documentation. Both systems try to
approximate the same number (number of runnable processes, "load"), each in
its own way. Hence the difference and the reocurring topic.
|