bitesize(8)

πŸ“¦
version 0.35.0 Β· 2 versions
  • 0.35.0 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.18.0 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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) 🧚✨