mdflush(8) | System Manager's Manual | mdflush(8) |
mdflush.bt - Trace md flush events. Uses bpftrace/eBPF.
mdflush.bt
This tool traces flush events by md, the Linux multiple device driver (software RAID). The timestamp and md device for the flush are printed. Knowing when these flushes happen can be useful for correlation with unexplained spikes in disk latency.
This works by tracing the kernel md_flush_request() function using kernel dynamic tracing, and will need updating to match any changes to this function.
Note that the flushes themselves are likely to originate from higher in the I/O stack, such as from the file systems.
Since this uses BPF, only the root user can use this tool.
CONFIG_BPF and bpftrace.
Expected to be negligible.
This is from bpftrace.
Also look in the bpftrace distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.
This is a bpftrace version of the bcc tool of the same name. The bcc tool may provide more options and customizations.
Linux
Unstable - in development.
Brendan Gregg
2018-09-07 | USER COMMANDS |