3

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,
    • if I'm doing more reads or more writes,
    • the average read and write size,
    • 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.

itsadok
  • 1,869
  • 5
  • 22
  • 33

3 Answers3

3

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

Also you might check out seekwatcher.

janneb
  • 3,841
  • 19
  • 22
2

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.

Sam Halicke
  • 6,222
  • 1
  • 25
  • 35
1

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.

d.hoeffer
  • 201
  • 1
  • 6