Linux – How to determine the number of seeks performed on Linux

benchmarkhard drivelinuxperformance-monitoring

I have two programs that write to my servers disk.

One I wrote, it does linear writes, it's writing data quickly. Another I'm benchmarking, it's writing data at a 3rd of the speed. It doesn't do much else, and I believe the problem is caused by the second program seeking more (i.e. it does more random file access).

Is there a tool on Linux I can use to determine the number of seeks being performed on a particular disk? Or by a particular process?

Best Answer

This tool might help you http://sourceforge.net/projects/hdparm/ - i have used this in the past with some success. The other tools which can give you a benchmark is iometer. Iostat is another tool but that might not show you processes and this tool might also help http://www.atoptool.nl/. Hope that helps!

Related Topic