bitesize(8)
π bitesize(8) β System Manager's Manual π
Okay bestie, so this one's from the System Manager's Manual section and it's genuinely iconic β introducing bitesize β¨
πΈ NAME πΈ
bitesize β summarize block device I/O size as a histogram, Linux eBPF/bcc style. That's the whole vibe fr fr π
π¦ SYNOPSIS π¦
bitesize
That's it. No flags, no args, no drama. Just run it, periodt π
β¨ DESCRIPTION β¨
Okay so what this does: it shows you the I/O distribution for requested block sizes, broken down by process name. So like, you get to see which of your little processes are asking for what sizes of I/O π«Ά
How's it work under the hood? It traces block:block_rq_issue and prints out a histogram of I/O size. Lowkey elegant, highkey useful π
Heads up bestie β since this uses BPF, only the root user can use this tool. No root, no histogram, no exceptions π«
π§ REQUIREMENTS π§
CONFIG_BPFbcc
Both. You need both. Don't skimp π
π EXAMPLES π
Count I/O size per process until you hit Ctrl+C β that's the dream scenario:
# bitesize
π FIELDS π
Kbtesβ size in kilobytes of range (yes, it's spelledKbtes, that's canon, don't @ me π)countβ how many I/O fell into this rangedistributionβ an ASCII bar chart to visualize the distribution (thecountcolumn, but make it visual π)
π₯ OVERHEAD π₯
So here's the tea: this traces a block I/O tracepoint to update a histogram, which gets asynchronously copied to user-space. That method? Extremely efficient. The overhead for most storage I/O rates β and we're talking < 10k IOPS here β should be negligible, ngl, basically nothing π¦
But if you're living that high-IOPS storage life? Test and quantify the overhead before use. Don't just yolo it into prod, bestie π
π SOURCE π
This is from bcc, the icon itself:
https://github.com/iovisor/bcc
Also like, peek inside the bcc distribution for a companion _examples.txt file β it's got example usage, output, and commentary for this tool. Free lore drop π
β OS β
Linux. Obviously. π§
π STABILITY π
Unstable - in development. It's giving main character in progress, okay? Be nice to it π
π«Ά AUTHOR π«Ά
Allan McAleavy β shoutout, absolute legend π
π§ SEE ALSO π§
https://github.com/brendangregg/systemtap-lwtools/blob/master/disk/bitesize-nd.stp
And that's a wrap! β¨ This page lived under USER COMMANDS, dated 2016-02-05, filed as bitesize(8) β go forth and histogram, bestie ππ
π
π¦ where this page comes from
- centos-stream 10: bcc-tools 0.36.1-1.el10 Β· Apache-2.0
- centos-stream 9: bcc-tools 0.36.1-1.el9 Β· ASL 2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms