bitesize-bpfcc8
Summarize block device i/o size as a histogram - linux ebpf/bcc.
Usage
bitesize
Overview
Show I/O distribution for requested block sizes, by process name.
This works by tracing block:block_rq_issue and prints a histogram of I/O size.
Since this uses BPF, only the root user can use this tool.
Requirements
CONFIG_BPF and bcc.
Examples
- Count I/O size per process until Ctrl-C is hit:
-
#
bitesize
Fields
- Kbtes
-
Size in kilobytes of range
- count
-
How many I/O fell into this range
- distribution
-
An ASCII bar chart to visualize the distribution (count column)
Overhead
This traces a block I/O tracepoint to update a histogram, which is asynchronously copied to user-space. This method is very efficient, and the overhead for most storage I/O rates (< 10k IOPS) should be negligible. If you have a higher IOPS storage environment, test and quantify the overhead before use.
Source
This is from bcc.
-
https://github.com/iovisor/bcc
Also look in the bcc distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool.
OS
Linux
Stability
Unstable - in development.
History
- Debian 13 (Trixie) to Debian 12 (Bookworm): the text shown here
- Debian 11 (Bullseye)
- Debian 10 (Buster)