bitesize.bt(8)
π bitesize.bt β the disk I/O size histogram bestie
okay so this is bitesize.bt, a little tool from the System Manager's Manual (section 8, we love a sysadmin moment), and it shows your disk I/O sizes as a histogram. yes. a whole vibe chart for your block device. uses bpftrace/eBPF, obviously. π¦
β¨ NAME β¨
bitesize.bt β show disk I/O size as a histogram. uses bpftrace/eBPF. no cap.
πΈ SYNOPSIS πΈ
bitesize.bt
that's it. that's the whole thing. no flags, no args, just run it and let it cook. π
π DESCRIPTION π
so like, you can use this to characterize the distribution of block device (disk) I/O sizes. if you wanna study block device I/O in more detail (main character behaviour), go look at biosnoop.bt(8) instead, she's right there in SEE ALSO. π
this tool uses the tracepoint:block:block_rq_issue tracepoint, and honestly it's just a simple little example of bpftrace. a starter pack, if you will. β¨
since this uses BPF, only the root user can use this tool. periodt. root or nothing, bestie. π
π§ REQUIREMENTS π§
CONFIG_BPFbpftrace
you need both. no skipping. π
π₯ EXAMPLES π₯
trace block I/O and summarize as a histogram by process:
# bitesize.bt
one line. iconic. π
π FIELDS π
okay so the output has columns and here's what each one is giving:
- 0th β a process name (shown in
"@[...]") is printed before each I/O histogram. so you know who is being noisy. π - 1st, 2nd β this is a range of I/O sizes, in Kbytes (shown in
"[...)"set notation). maths notation but make it cute. - 3rd β a column showing the count of I/O in this range. how many times did this size show up. π’
- 4th β this is an ASCII histogram representing the count column. bars!! in your terminal!! π
π OVERHEAD π
since block device I/O usually has a relatively low frequency (< 10,000/s), the overhead for this tool is expected to be low or negligible. we're chillin. π
but fr fr, for high IOPS storage systems, test and quantify before use. don't just yolo it on prod, bestie. π
β SOURCE β
this is from bpftrace.
https://github.com/iovisor/bpftrace
also, look in the bpftrace distribution for a companion _examples.txt file containing example usage, output, and commentary for this tool. it's like the director's commentary track but for a script. π¬
this is a bpftrace version of the bcc tool of the same name. twin sisters, different ecosystems. π«Ά
https://github.com/iovisor/bcc
πΈ OS πΈ
Linux. as always. π§
π STABILITY π
Unstable - in development.
she's still growing, okay?? give her time. it's giving wip. π¦
π AUTHOR π
Brendan Gregg
the legend herself/himself. we stan. π
π SEE ALSO π
go read that one next, bestie, iykyk. π
and that's the whole page!! this was the USER COMMANDS manual, dated 2018-09-07, and it's literally called bitesize.bt(8) β remember the name, she's iconic. mwah, bye!! πβ¨
π¦ where this page comes from
- debian bookworm: bpftrace 0.17.0-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms