biopattern(8)
β¨ biopattern(8) β System Manager's Manual β¨
π NAME
biopattern - Identify random/sequential disk access patterns. π¦
π SYNOPSIS
biopattern [-h] [-d DISK] [interval] [count]
πΈ DESCRIPTION
okay so bestie, this one traces block device I/O (aka disk I/O) and spits out the ratio of random vs sequential I/O π for each disk, or just the specified disk if you ask for one. You get the summary either when you hit Ctrl-C or after a given interval in seconds β¨
this works by tracing the kernel tracepoint block:block_rq_complete π₯
heads up π since this uses BPF, only the root user can use this tool. no cap, you need to be root.
π REQUIREMENTS
you'll need CONFIG_BPF and bcc π«Ά
β¨ OPTIONS β¨
-hβ show the help message and exit π-dβ trace this disk only π―- interval β print output every interval seconds, if any π
- count β number of interval summaries π
π§ EXAMPLES
trace access patterns of all disks, and print a summary on Ctrl-C:
# biopattern
trace disk sdb only:
# biopattern -d sdb
print 1 second summaries, 10 times:
# biopattern 1 10
π FIELDS
TIMEβ time of the output, inHH:MM:SSformat βDISKβ disk device name π%RNDβ ratio of random I/O πΈ%SEQβ ratio of sequential I/O π¦COUNTβ number of I/O during the interval π₯KBYTESβ total Kbytes for these I/O, during the interval π
π«§ OVERHEAD
block device I/O usually has a relatively low frequency (< 10,000/s), so the overhead for this tool is expected to be low or negligible. ngl, for high IOPS storage systems, test and quantify 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 π
π« AUTHOR
Rocky Xing β¨
π¦ SEE ALSO
biosnoop(8), biolatency(8), iostat(1) π«Ά
bye bestie, that's the whole tea βπΈ biopattern(8) from the bcc crew, last updated 2022-02-21, under USER COMMANDS π stay iconic π§β¨
π¦ where this page comes from
- alpine 3.24: bcc-doc 0.36.1-r1 Β· Apache-2.0
- nixpkgs unstable: bcc 0.37.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- opensuse-leap 16.0: bcc-tools 0.35.0-160000.2.2 Β· Apache-2.0
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms