bitesize(8)
β¨ bitesize(8) β System Manager's Manual β¨
π NAME π
bitesize β okay so this one summarizes block device I/O size as a histogram. It's a Linux eBPF/bcc tool, so it's giving low-level and I'm obsessed π₯
π SYNOPSIS π
bitesize
πΈ DESCRIPTION πΈ
Bestie, this shows you the I/O distribution for requested block sizes, sorted by process name π
It works by tracing block:block_rq_issue and printing a histogram of I/O size. Literally so clean β¨
π¨ Since this uses BPF, only the root user can use this tool. Sorry bestie, no cap π
π§ REQUIREMENTS π§
You'll need CONFIG_BPF and bcc. Make sure you've got both before you try to run it π«Ά
π¦ EXAMPLES π¦
Count I/O size per process until you hit Ctrl-C:
# bitesize
π FIELDS π
Kbtesβ the size in kilobytes of the range πcountβ how many I/O fell into this range π’distributionβ an ASCII bar chart so you can vibe-check the distribution at a glance (based on the count column) π
π₯ OVERHEAD π₯
Okay so this traces a block I/O tracepoint to update a histogram, and that histogram is asynchronously copied to user-space. It's very efficient, and for most storage I/O rates (< 10k IOPS) the overhead should be negligible π
β οΈ If you're in a higher IOPS storage environment, test and quantify the overhead before use. Don't skip this one, bestie π
π SOURCE π
This is from bcc, obviously iconic π
https://github.com/iovisor/bcc
Also look in the bcc distribution for a companion _examples.txt file. It has example usage, output, and commentary for this tool, so it's lowkey required reading π
π OS π
Linux, periodt π
π STABILITY π
Unstable, still in development. Be gentle with it π₯Ί
π AUTHOR π
Allan McAleavy β¨
π« SEE ALSO π«
The lwtools systemtap script that inspired this tool lives at:
https://github.com/brendangregg/systemtap-lwtools/blob/master/disk/bitesize-nd.stp
Stay iconic, bestie π This page is from the USER COMMANDS section, dated 2016-02-05, and it's all about bitesize(8) π§β¨
π¦ where this page comes from
- debian bookworm: bpfcc-tools 0.26.0+ds-1 Β· Apache-2.0
- debian trixie: bpfcc-tools 0.31.0+ds-7 Β· Apache-2.0
- ubuntu noble: bpfcc-tools 0.29.1+ds-1ubuntu7 Β· Apache-2.0
- ubuntu questing: bpfcc-tools 0.31.0+ds-7ubuntu2 Β· Apache-2.0
- ubuntu resolute: bpfcc-tools 0.35.0+ds-1ubuntu2 Β· Apache-2.0
- ubuntu stonking: bpfcc-tools 0.35.0+ds-1ubuntu4 Β· Apache-2.0
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms