From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,24c0ba2a9ee95ee9,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-03-09 10:15:30 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!concert!hearst.acc.Virginia.EDU!portal.gmu.edu!osf1.gmu.edu!rjackson From: rjackson@osf1.gmu.edu (Richard Jackson) Newsgroups: comp.unix.osf.osf1 Subject: OSF/1 disk/filesystem IO stats? Date: 8 Mar 1995 19:11:55 GMT Organization: George Mason University, Fairfax, Virginia, USA Message-ID: <3jkvhr$p07@portal.gmu.edu> NNTP-Posting-Host: osf1.gmu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: TIN [version 1.2 PL2] Hello, We are looking for a way to gather I/O statistics at the disk and filesystem level. We are particularly interested in the read/write transfer and byte counts. Filesystem information would be more helpful than at the disk level. This information is useful to determine if RAID is appropriate and compensate for AdvFS's affinity to CPU 0 in a SMP environment...grrrr... For example, on our DECsystem 5900/240 running Ultrix 4.3a we could use the crash utility and invoke the 'cam -transfer' command to get... SCSI/CAM data transfer information: Controller #0 Targid #0 Lun #0: read count: 0x6898 read bytes: 0xb2e9200 write count: 0x3176 write bytes: 0x627a800 How can we do this under OSF/1? We have several Alpha systems running OSF/1 3.0 and 3.2. Under OSF/1, I have a C program that uses the table() function and dkinfo structure to ascertain the following for rz0, for example. Notice it does not provide separate read and write stats. I am curious why some of the files are zero. Max. # of disks providing stats (di_ndrive) = 256 Bit mask of disks currently busy (di_busy) = 0 Amount of time requested disk is busy (di_time) = 0 Number of seeks for requested disk (di_seek) = 0 Number of data transfer operations (di_xfer) = 3361189 Number of words transferred (di_wds) = 741826192 Words transferred per millisecond (di_wpms) = 0 Disk unit (di_unit) = 0 Disk name (di_name) = rz Average # of outstanding requests (di_avque) = 0 Average time (ms) in wait queue (di_avwait) = 0 Average time (ms) for transfer completion (di_avserv)= 0 Regards, Richard Jackson.