From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,92658dd14a253e50 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-06-28 15:01:48 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!news.cpqcorp.net!not-for-mail Message-ID: <3B3BA94A.8C1AB2C1@zk3.dec.com> From: Tony Verhulst X-Mailer: Mozilla 4.77 [en] (X11; U; OSF1 V5.1 alpha) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: average load References: <9hg6g0$u6$07$1@news.t-online.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 28 Jun 2001 18:01:46 -0400 NNTP-Posting-Host: 16.140.128.246 X-Complaints-To: abuse@Compaq.com X-Trace: news.cpqcorp.net 993765707 16.140.128.246 (Thu, 28 Jun 2001 15:01:47 PDT) NNTP-Posting-Date: Thu, 28 Jun 2001 15:01:47 PDT Organization: Compaq Computer Corporation Xref: archiver1.google.com comp.unix.tru64:2743 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.