Processor Loading

Gordon Russell gor at cs.strath.ac.uk
Tue Jun 25 20:18:12 AEST 1991



  Hi there,

     Is there anyone out their who could supply me with some pointers
on developing a C routine to calculate the current loading on a UNIX
processor. Currently I am using the sun3 operating system, but I am looking
for a generic routine.

     The best I can currently do is to get the user and system time
for parent processes and for terminated children. What I would really
like is complete processor loading (as a percentage) , perhaps with
another routine returning percentage CPU time for one specified user.

     Does anyone have such routine(s) already written? If so, could
you EMAIL them to me....All suggestions will appreciated for writing
such routines.

   Thanx in advance.

 Gordon Russell ,
Research Student, University of Strathclyde.



More information about the Comp.unix.questions mailing list