Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I view I/O stats per-disk w/2.6.28
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Tue Jan 06, 2009 11:20 pm    Post subject: Can I view I/O stats per-disk w/2.6.28 Reply with quote

Hi,

Does anyone know of a utility like iostat or bwm-ng which can display I/O stats per disk with 2.6.28?

Previously, I was happily using "iostat -d -k 1", but somewhere between kernel 2.6.24 and 2.6.28, someone decided to change the /proc files, so now /proc/diskstat now contains partition iostat data as well as disk stat data (This confuses me somewhat; Wasn't that what /proc/partition was supposed to be for??)

Anyway, as a result of this, iostat now gives too much output, and just under half of it duplicated redundant data.

Now, I can tell iostat specifically which devices you want iostat to display (e.g. iostat -d -k 1 hda hdb hdd md0 etc.), but unlike the old behavior, new devices plugged in or otherwise brought online will not show up. (i.e. if I bring up the external eSATA array, I don't get any stats on it.)

I tried bwm-ng, which is slightly better as I can specify what devices NOT to display, but it displays less info than iostat and, when another device is plugged in, you still get the stats of that device AND it's partitions.

If anyone knows of a way to get some semblance of the old behavior back, either by a) Suggesting a more suitable utility, or b) Kernel hacking the stats back to how they were (Instructions suitable for an advanced n00b :P), I'd appreciate the info!

Cheers! :)
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Wed Jan 07, 2009 1:43 pm    Post subject: Reply with quote

Have you tried app-benchmarks/iozone?

I'm not sure exactly what figures it would give you tho.
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Wed Jan 07, 2009 2:29 pm    Post subject: Reply with quote

Alas IOzone seems to be a benchmarking tool; I'm more after a textmode real-time disk io monitor that can display stuff by disk instead of by partition.
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Wed Jan 07, 2009 4:17 pm    Post subject: Reply with quote

did you try iotop ? I´m not in front of linux right now but i think it can display stats by device.

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Wed Jan 07, 2009 7:02 pm    Post subject: Reply with quote

Had a look at iotop, but it complains about some kernel thing missing.
Not sure what it wants since iostat and bwm-ng can pick up diskstat data just fine...

Not a likely candidate unless it's a config error; I'm not recompiling the kernel and rebooting the server just to try a python script!! :shock:

I'm thinking maybe it'd be easier to kludge a script which repeatedly calls iostat and custom-tailor's the calling command line to only display disks and not partitions, althought I think it will be tricky writing a suitable filter to take into account virtual disks like RAID arrays and network drives...
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Wed Jan 07, 2009 8:44 pm    Post subject: Reply with quote

Quick iotop how to here if you have problems:
needed kernel includes:
Code:

General Setup -->
  [*] Export task/process statistics through netlink
  [ ]   Enable per-task delay accounting
  [*]   Enable extended accounting over taskstats
  [*]     Enable per-task storage I/O accounting


http://www.gentoo.org/news/en/gmn/20080930-newsletter.xml
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
zeek
Guru
Guru


Joined: 16 Nov 2002
Posts: 480
Location: Bantayan Island

PostPosted: Sun Jan 11, 2009 7:56 am    Post subject: Reply with quote

dstat -f does the job for me. It even shows individual disks in a md raid1.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum