Xref: utzoo comp.unix.misc:1585 comp.unix.questions:32424 Newsgroups: comp.unix.misc,comp.unix.questions Path: utzoo!utgpu!cunews!bnrgate!bmers145!bnr.ca!jasonc From: jasonc@bnr.ca (Jason Chen) Subject: Re: Processor Loading Message-ID: <1991Jun25.183716.14714@bmers145.bnr.ca> Sender: news@bmers145.bnr.ca Reply-To: jasonc@bnr.ca (Jason Chen) Organization: Bell-Northern Research Ltd. References: <6649@baird.cs.strath.ac.uk> Date: Tue, 25 Jun 91 18:37:16 GMT 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@bnr.ca Ottawa, Ontario, Canada, K1Y 4H7 Question