Return to BSD News archive
Xref: sserve comp.unix.programmer:16857 comp.unix.misc:12286 comp.unix.questions:49110 comp.unix.aix:37314 comp.unix.bsd:13886 Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!convex!convex!news.duke.edu!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!vixen.cso.uiuc.edu!rasputin.ncsa.uiuc.edu!libor From: libor@rasputin.ncsa.uiuc.edu (Libor Michalek) Newsgroups: comp.unix.programmer,comp.unix.misc,comp.unix.questions,comp.unix.aix,comp.unix.bsd Subject: %CPU usage for a process ? Date: 4 May 1994 03:45:23 GMT Organization: University of Illinois at Urbana Lines: 21 Distribution: world Message-ID: <2q75oj$s1c@vixen.cso.uiuc.edu> NNTP-Posting-Host: rasputin.ncsa.uiuc.edu I was wondering if anyone knows how to calculate %CPU usage for a process. I know how to get information from the kernals memory, but the kernal does NOT keep %CPU usage for a process (altough it does keep CPU time for a process), so I assume that you use some of the fields from the process table to calculate this information. So does any one know how to do this calculation??? I don't care which unix you can help me with since the process table for most unices are pretty similar, and I'm far too familiar with alot of them :-) but if you really want to pick one heres a list of OS's that I'll need the information for: Unicos ConvexOS SunOS IRIX System V.4 HP-UX AIX Thank You Very Much -Libor