Processor Loading
Jason Chen
jasonc at bnr.ca
Wed Jun 26 04:37:16 AEST 1991
You may want to pull the p-table and the u-areas out from /dev/kmem, /dev/mem,
and /dev/swap. You can use nlist(3c) to figure out addresses of the p-table and u-areas.
Once you have the p-table and the u-areas, you will be able to calculate the current
load. However, the code will be system dependent, if you do it this way.
Jason
--
Jason X.G. Chen Dept. 1B84, "WHY???"
Ph: (613) 763-4844 Bell-Northern Research Ltd.,
Fax: (613) 763-2202 P.O. Box 3511, Station C, -Ancient Primate
Email: jasonc at bnr.ca Ottawa, Ontario, Canada, K1Y 4H7 Question
More information about the Comp.unix.misc
mailing list