Question: Something is thrashing my disks. How do I see block-level filesystem activity live?
Try: sudo btrace /dev/sda
Info: btrace traces block-layer I/O events in real time. It shows low-level read and write activity along with timing, process IDs, and I/O stages, helping you identify which processes are generating disk activity.
Examples:
- $
sudo blktrace -d /dev/sda -o - | blkparse -i -# Live block trace pipe - $
sudo iotop -o -d 1# Interactive process-level I/O monitor - $
sudo iostat -xz 1# Live extended device utilization statistics
Note: Install the required tools with sudo apt install blktrace. Block tracing can generate a very large amount of output, so use filters when investigating a busy system. Use iotop for a higher-level view when you mainly need to identify which processes are causing disk I/O.
Leave a Reply