* average load
@ 2001-06-28 21:10 Chris
2001-06-28 22:01 ` Tony Verhulst
0 siblings, 1 reply; 3+ messages in thread
From: Chris @ 2001-06-28 21:10 UTC (permalink / raw)
How can I get the system load programmatically?
I get the number of ready processes in the run queue
through table() but that does not seem to agree
with the numbers displayed by top and w.
thanks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: average load
2001-06-28 21:10 average load Chris
@ 2001-06-28 22:01 ` Tony Verhulst
2001-06-29 19:04 ` Chris
0 siblings, 1 reply; 3+ messages in thread
From: Tony Verhulst @ 2001-06-28 22:01 UTC (permalink / raw)
Chris wrote:
>
> How can I get the system load programmatically?
>
> I get the number of ready processes in the run queue
> through table() but that does not seem to agree
> with the numbers displayed by top and w.
I see you already know about table() but maybe you missed TBL_LOADAVG in
the man page for table(2) and /usr/include/table.h. It may not help,
that's what w(1) uses.
Tony V.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: average load
2001-06-28 22:01 ` Tony Verhulst
@ 2001-06-29 19:04 ` Chris
0 siblings, 0 replies; 3+ messages in thread
From: Chris @ 2001-06-29 19:04 UTC (permalink / raw)
Do you think that TBL_LOADAVG is more accurate
than TBL_RUNQ?
It seems that maybe TBL_LOADAVG samples the run queue
more frequently than the 1 sec TBL_RUNQ uses.
Therefore, it may take into account short jobs (< 1sec) that
TBL_RUNQ misses when it checks the ready jobs queue.
I get consistently lower load-average numbers than those
from w and top, for the same time interval.
"Tony Verhulst" <verhulst@zk3.dec.com> wrote in message
news:3B3BA94A.8C1AB2C1@zk3.dec.com...
> Chris wrote:
> >
> > How can I get the system load programmatically?
> >
> > I get the number of ready processes in the run queue
> > through table() but that does not seem to agree
> > with the numbers displayed by top and w.
>
>
> I see you already know about table() but maybe you missed TBL_LOADAVG in
> the man page for table(2) and /usr/include/table.h. It may not help,
> that's what w(1) uses.
>
> Tony V.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-06-29 19:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 21:10 average load Chris
2001-06-28 22:01 ` Tony Verhulst
2001-06-29 19:04 ` Chris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox