tail -f findings.out

« MySQL Bootcamp: Highly recommended!

Simple and effective Python logging »

Watching live I/O: iotop

Yet another awesome top clone for Linux, this time to make monitoring disk I/O simple: iostat. This post over at MDLog has a great introduction and explanation. For me it was available with apt-get, as iostat. Then you just run iostat. It produces a readable top-like display of what processes are currently performing the most disk I/O:

Here I have the display sorted on disk read activity, but any of the columns can be used as the sorting reference by pressing the left and right arrows. This tool could be quite useful in combination with mtop and other tools to see if, for instance, a MySQL instance is performing too much I/O, or if queries are still using memory efficiently.

Share and Enjoy:
  • email
  • LinkedIn
  • Slashdot
  • StumbleUpon
  • Technorati
  • Netvibes

Post to Twitter Post to Delicious Post to Digg Post to Reddit

Possibly Related (no promises):

  1. Watching a fork bomb explode
  2. Useful ways to list directory contents
  3. Get useful image information on the command line
  4. Useful grep incantations

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , ,
March 15, 2009 - 12:48 AM
1 comment »
  • zImage

    April 11, 2009 | 9:28 AM

    Definitely that’s a step in the right direction.

    Unfortunately it’s still hard to tell who’s wasting most disk IO in too many situations.

    Suppose you have two processes – dd and mysqld.

    dd is doing massive linear IO and its throughput is 10MB/s. Let’s say dd reads from a slow USB drive and it’s limited to 10MB/s because of the slow reads from the USB.

    At the same time MySQL is doing a lot of very small but random IO. A modern SATA 7200 rpm disk drive is only capable of about 90 IO operations per second (IOPS).

    So ultimately most of the disk time would be occupied by the mysqld. Still iotop would show dd as the bigger IO user.

    – Teodor Milkov

Leave a reply

Subscribe without commenting

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.