Xref: utzoo comp.unix.misc:1583 comp.unix.questions:32422 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!mcsun!ukc!strath-cs!gor@cs.strath.ac.uk From: gor@cs.strath.ac.uk (Gordon Russell) Newsgroups: comp.unix.misc,comp.unix.questions Subject: Processor Loading Message-ID: <6649@baird.cs.strath.ac.uk> Date: 25 Jun 91 10:18:12 GMT Sender: news@cs.strath.ac.uk Organization: Comp. Sci. Dept., Strathclyde Univ., Scotland. Lines: 22 Nntp-Posting-Host: maxwell 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.