Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm considering upgrading the storage system for some of my servers, and all the guides and manuals advise to consider the storage usage patterns of your app before deciding on a (RAID? SSD? iSCSI? NAS?) solution.

Is there a tool I can use which can tell me:

  1. if my servers are doing mostly sequential or random IO,
  2. if I'm doing more reads or more writes,
  3. the average read and write size,
  4. and whatever other info I can use to make a decision?

I know about iostat, and it seems I can use it to answer question 2. But I think I need other tools to answer the other questions.

It seems that people usually like to make educated guesses in these matters based on the running software, but I would much rather measure than reason.

The OS is ubuntu 8.04, but I'm willing to change the OS if something else has better measuring tools.

share|improve this question
1  
This is kind of a dupe - serverfault.com/questions/88954 –  Dan Carley Dec 3 '09 at 10:24

3 Answers 3

up vote 3 down vote accepted

collectl can answer your questions 1, 2, and 3.

Also you might check out seekwatcher.

share|improve this answer

You might also check out munin and specifically the diskstat plugin which will give you nice fun graphs of:

  • iostat outputs
  • disk throughput (read, write)
  • disk IO totals (read, write, avg req size, avg read req size, avg write req size)
  • disk IO times (read, write, avg req time, avg read req time, avg write req time)
  • disk utilization (%)

Example: http://mirror.inode.at/munin/inode.at/mirror.inode.at.html#Disk

Perhaps one of the advantages of using something more broad in scope like munin is that you will have the ability to correlate data between different subsystems more easily than you would just looking solely at IO data.

Current distribution versions of munin(as of this writing, at least) do not have this plugin by default, so you'll have to grab it and install it manually. Here's another link worth reading about the plugin:

http://blogs.amd.co.at/robe/2008/12/graphing-linux-disk-io-statistics-with-munin.html

And the plugin itself: https://workbench.amd.co.at/trac/munin-plugins/

HTH.

share|improve this answer

Solaris/Opensolaris with DTrace will give you any information you'll ever need about this. In my opinion, DTrace gives you the measuring tools available anywhere, so if switching OS is an option, I'd give this some serious consideration.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.