Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cpu activity



On Thu, 20 Nov 2003, Stephen Adler wrote:

> I'm thinking of writing a quick and dirty routine which
> gets the total cpu activity which top reports. I was
> wondering if there was a field under the /proc file system
> which reports system,user, idle cpu activity or if there
> is a system call which returns this.
> 
> Cheers. Steve.

/proc/loadavg
though I don't know much about it, that's the most likely candidate.

-- 
DDDD   David Kramer         david at thekramers.net       http://thekramers.net
DK KD  
DKK D  If you don't know who you are, the stock market is an expensive
DK KD  place to find out.
DDDD                                                             -Adam Smith




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org