Monday, 18 May 2015 00:00

I/O tracing in Linux

Rate this item
(0 votes)

The blktrace utility (found in the Ubuntu and Debian repositories) allows monitoring what exactly data is transferred to the specified block device.

For example, you can see the general statistics and details of data exchange with /dev/sda by executing the command:

   blktrace -d /dev/sda -o - | blkparse -i - 

where blkparse is a filter for the result visualization.

If you are receiving errors about missing of /sys/kernel/debug, make sure that debugfs is mounted:

mount -t debugfs debugfs /sys/kernel/debug

You can alternatively use /proc/sys/vm/block_dump,

when writing 1 in this file the data capturing begins; when writing 0 the results are withdrawn to the dmesg buffer.

The script for simplicity of the data parsing can be downloaded here:

The I/O monitoring not on behalf of a scheduler, but of exhaustive processes is conveniently carried out by using the iotop utility (

Last modified on Monday, 18 May 2015 19:22
Data Recovery Expert

Viktor S., Ph.D. (Electrical/Computer Engineering), was hired by DataRecoup, the international data recovery corporation, in 2012. Promoted to Engineering Senior Manager in 2010 and then to his current position, as C.I.O. of DataRecoup, in 2014. Responsible for the management of critical, high-priority RAID data recovery cases and the application of his expert, comprehensive knowledge in database data retrieval. He is also responsible for planning and implementing SEO/SEM and other internet-based marketing strategies. Currently, Viktor S., Ph.D., is focusing on the further development and expansion of DataRecoup’s major internet marketing campaign for their already successful proprietary software application “Data Recovery for Windows” (an application which he developed).

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.