From: "Chris" <Christos.Triantafillou@t-online.de>
Subject: Re: average load
Date: Fri, 29 Jun 2001 21:04:55 +0200 [thread overview]
Message-ID: <9hijh9$4oi$06$1@news.t-online.com> (raw)
In-Reply-To: 3B3BA94A.8C1AB2C1@zk3.dec.com
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.
prev parent reply other threads:[~2001-06-29 19:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-28 21:10 average load Chris
2001-06-28 22:01 ` Tony Verhulst
2001-06-29 19:04 ` Chris [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox