From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,be866b13a7621818 X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Load Average (avenrun)? Date: 1996/02/01 Message-ID: <4ep169$7km@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 137574343 distribution: world references: <310E7ECD.3A1@oac.hsc.uth.tmc.edu> organization: Digital Equipment Corporation reply-to: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) newsgroups: comp.unix.osf.osf1 In article <310E7ECD.3A1@oac.hsc.uth.tmc.edu>, "Steven E.Newton" writes: > >What nlist symbols point to the load average of a running kernel >on 3.2? I have tried avenrun but the values I get are extremely >small, on the order of N^-321. I checked with dbx as well and it believed that avenrun was a single integer: (dbx) whatis avenrun int avenrun; Searching the source files of V3.2A didn't show it declared anywhere, but looking through the .h files show a: extern long avenrun[3] ; in . Assuming this is right it is probably a fixed point number. A closer look at kernel.h, suggests the scale is 1000. There was also a mention of avenrun in suggesting that the table(2) interface allows collecting it. Since this is what *I* use in Monitor, it is probably a safer interface. > >Or is there another programmatic interface to get the load averages? I use table(2) with TBL_LOADAVE. Recent versions include a manual page for the table(2) call. > >s > -- Alan Rollow alan@nabeth.cxo.dec.com