Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!ucsfcgl!babar.mmwb.ucsf.edu!srp From: srp@babar.mmwb.ucsf.edu (Scott R. Presnell) Newsgroups: comp.sys.sgi Subject: Re: Symbol name for kernel CPU utilization variable? Message-ID: Date: 4 Jun 91 04:12:50 GMT References: <2963@speedy.mcnc.org> Sender: daemon@cgl.ucsf.edu Lines: 30 palmer@duck.ncsc.org (Thomas C. Palmer) writes: >Can anyone tell me the kernel symbol name to pass to nlist() to >ascertain CPU utilization times (user, system, idle, etc)? The rstat >daemon does it so I know it's possible. Thanks - Try sysmp() instead, the defines in /usr/include/sys/sysinfo.h help explain the data you get back... #include #include struct sysinfo si; ... if (sysmp(MP_SAGET, MPSA_SINFO, &si, sizeof(si)) < 0) error(); else doit(&si); ... - Scott -- Scott Presnell +1 (415) 476-9890 Pharm. Chem., S-926 Internet: srp@cgl.ucsf.edu University of California UUCP: ...ucbvax!ucsfcgl!srp San Francisco, CA. 94143-0446 Bitnet: srp@ucsfcgl.bitnet