From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,46bfbe51a6a5da16,start X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,46bfbe51a6a5da16,start X-Google-Attributes: gidfee84,public From: Raj Calisa Subject: CPU load and Disk I/O and load Date: 2000/04/17 Message-ID: <38FA916C.11B07EC0@ot.com.au>#1/1 X-Deja-AN: 612090335 Cache-Post-Path: emissary!unknown@203.5.4.67 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 955945060 203.42.249.64 (Mon, 17 Apr 2000 14:17:40 EST) Organization: Open Telecommunications Limited X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) MIME-Version: 1.0 NNTP-Posting-Date: Mon, 17 Apr 2000 14:17:40 EST Newsgroups: comp.unix.osf.osf1,comp.unix.programmer Hi all, I work on Digital Unix V4.0D. I need to write a program that determines the load on the CPU and also gather disk I/O statistics. From these two things, I need to determine if the system is loaded or not based some some user defined threshold(s). I figured that I need to use the table(2) system call. Does the load average that is returned by table() reflect (at least to some extent) the load on the CPU? If not what else determines it? For disk statistics, I am not sure how to interpret tbl_dkinfo struct. Any help in this is appreciated. thanks. raj...