How to identify I/O bottlenecks on a Linux server?

76,899

Solution 1

I wrote a comprehensive guide to tracking down performance bottlenecks on Linux systems for work: http://web.archive.org/web/20101028025942/https://anchor.com.au/hosting/development/HuntingThePerformanceWumpus . Covers more than you asked for, but it'll (hopefully) help you track down the problem you're seeing regardless of the actual source.

Solution 2

Top has a field called "iowait". If your system is seeing a lot of that, you know something's up. There's also iotop!

Package: iotop:
Description: simple top-like I/O monitor
 iotop does for I/O usage what top(1) does for CPU usage. It watches I/O
 usage information output by the Linux kernel (requires 2.6.20 or later)
 and displays a table of current I/O usage by processes on the system.
 Handy for answering the question "Why is my disk churning so much?".
Homepage: http://guichaz.free.fr/iotop/

Solution 3

IoTop is probably what you're looking for.

Share:
76,899

Related videos on Youtube

cletus
Author by

cletus

I am a software developer from Perth, Western Australia with roughly 13 years experience in developing end-to-end solutions in Java, C#, C, C++, Perl, PHP and HTML/CSS/Javascript. I have experience in developing user interfaces (Web and desktop), database design and development (Oracle, SQL Server, MySQL), data modelling, software design, data conversion, Web application development and high-performance high-availability computing. Creator of the pbatis project, a port of the popular Apache ibatis project to PHP.

Updated on September 17, 2022

Comments

  • cletus
    cletus over 1 year

    How do you determine that the performance of your Linux server is I/O bound and, perhaps more importantly, what process or processes are casuing the problem?

  • womble
    womble almost 15 years
    Yeah, it's a bit wordy, I'm sure plenty of people have gone "TL;DR" at it. I prefer to give people the tools to solve problems generally rather than give pat answers to specific instances of problems, which leaves them dependent. This stuff is Hard, though, and if tracking down a performance problem isn't what you want to spend your time doing, well, you can always hire someone who's already read the article... <grin>
  • John Gardeniers
    John Gardeniers about 11 years
    That's far too vague to be an answer. How about at least listing some of those commands.
  • Michael Hampton
    Michael Hampton about 11 years
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.
  • womble
    womble almost 10 years
    Fixed the link good and proper now. Marketing don't understand the concept of "stable links"...