Q

How do I check disk seeks per second on a Linux server?

There are several common tools that can check disk seeks per second on a Linux server, but they may not give you all the information you require.

What's the best way to monitor overall disk seeks per second on a Linux server?

There are different tools to monitor disk performance on a Linux machine. If you want to see specific disk-related parameters, common tools such as iostat, vmstat and iotop might not give you all the information you need. They do have a big advantage though: It's easy to read the output that is generated by these tools.

For more detail, blktrace is an excellent tool, but it is not easy to use. To start, use the command blktrace --d /dev/sda --o disktrace. This writes the output of the blktrace command to a binary file with the name disktrace.

You can read the contents of this file by piping it to the blkparse command. If the results of the original blktrace command were written to the file disktrace, use blkparse disktrace- and then press the tab key for automatic completion of the file name to view the contents of that file and get all disk statistics to be visible.

For more specific information, you can use blktrace --a to filter specific information. For instance, blktrace --d /dev/sda --o diskqueue --a queue would create a file with the name diskqueue in the current directory and filter on queuing actions only.

Leave the command running for some time, and then interrupt it with Ctrl-C to create the file. You can check its contents using the blkparse command.

About the author:

Sander van Vugt is an independent trainer and consultant based in the Netherlands. He is an expert in Linux high availability, virtualization and performance. He has authored many books on Linux topics, including Beginning the Linux Command LineBeginning Ubuntu LTS Server Administration and Pro Ubuntu Server Administration.

mail@sandervanvugt.nl

This was first published in April 2013

Dig deeper on Linux servers

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

SearchEnterpriseLinux

SearchServerVirtualization

SearchCloudComputing

Close