Hi, thanks for your reply. Actually, I want to get the disk IO information in a program and use it. So, I need to know where can I get it. Using a command to get it is not what I want. I found a file namd vmstat. It contains the page in and page out information, but no disk IO information. Could someone tell me how to get it? Thanks. Raymond
From: Nick LeRoy <nleroy@cs.wisc.edu> To: suse-linux-e@suse.com Subject: Re: [SLE] How to get disk IO information? Date: Sat, 3 Sep 2005 00:36:13 -0500
On Saturday 03 September 2005 12:31 am, raymond raymond wrote:
Hi, there, I am a new guy of Suse linux. This time, I want to get the run-time disks IO,page in and page out information. I refered to some documentations and they said I can get those information from the proc/stat file.But I used "cat stat" to show that file. It gave the following information:
Have you tried looking into iostat and vmstat?
-Nick
$ vmstat procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu---- r b swpd free buff cache si so bi bo in cs us sy id wa 4 2 2800 8028 31292 276264 0 1 10063 9695 1439 1913 43 37 8 12 $ iostat Linux 2.6.11.4-21.9-default (l06) 09/03/2005
avg-cpu: %user %nice %system %iowait %idle 24.42 18.60 36.86 12.01 8.11
Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn fd0 0.00 0.00 0.00 4 0 sda 17.79 407.95 104.67 814266 208928 sdb 24.23 6675.01 10.89 13323316 21744 sdc 0.07 1.19 0.10 2372 200 sdd 22.38 7141.99 1.08 14255416 2152 sde 0.23 4.12 0.10 8216 200 hda 25.87 6.76 19327.63 13494 38577942 hdb 15.72 554.67 100.06 1107112 199728 hde 63.62 5532.09 47.10 11042056 94008
_________________________________________________________________ Take charge with a pop-up guard built on patented Microsoft® SmartScreen Technology http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*.