From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,15fb39ffc0a4452c X-Google-Attributes: gidfee84,public From: pm@katz.cc.univie.ac.at (Peter Marksteiner) Subject: Re: Getting process usage data / OSF1 Date: 1995/12/28 Message-ID: <4bto9d$172e@ftp.univie.ac.at>#1/1 X-Deja-AN: 123035301 references: <4bs5sf$ktr@newsroom.hitc.com> organization: Vienna University, Austria newsgroups: comp.unix.osf.osf1 Chris Ruegger (cruegger@eos.hitc.com) wrote: : I need to write a program that will gather system resource usage of : another process: : 1. max amount of shared memory used : 2. max amount of virtual memory used : 3. # of I/O blocks read/written : 4. # of page faults : 5. # of page swaps Check the source code of top version 3.3 (available from eecs.nwu.edu), the OSF/1 stuff is in "machine/m_decosf1.c". They use "task_info" from the Mach library. Working with undocumented system calls is fun. -- Peter Marksteiner Vienna University Computer Center