1bitesize(8)                 System Manager's Manual                bitesize(8)
2
3
4

NAME

6       bitesize.bt - Show disk I/O size as a histogram. Uses bpftrace/eBPF.
7

SYNOPSIS

9       bitesize.bt
10

DESCRIPTION

12       This  can  be  used  to  characterize  the distribution of block device
13       (disk) I/O sizes. To study block device I/O in more detail,  see  bios‐
14       noop(8).
15
16       This uses the tracepoint:block:block_rq_issue tracepoint, and is a sim‐
17       ple example of bpftrace.
18
19       Since this uses BPF, only the root user can use this tool.
20

REQUIREMENTS

22       CONFIG_BPF and bpftrace.
23

EXAMPLES

25       Trace block I/O and summarize as a histogram by process:
26              # bitesize.bt
27

FIELDS

29       0th    A process name (shown in "@[...]") is printed  before  each  I/O
30              histogram.
31
32       1st, 2nd
33              This  is  a  range of I/O sizes, in Kbytes (shown in "[...)" set
34              notation).
35
36       3rd    A column showing the count of I/O in this range.
37
38       4th    This is an ASCII histogram representing the count column.
39

OVERHEAD

41       Since block device I/O  usually  has  a  relatively  low  frequency  (<
42       10,000/s), the overhead for this tool is expected to be low or negligi‐
43       ble. For high IOPS storage systems, test and quantify before use.
44

SOURCE

46       This is from bpftrace.
47
48              https://github.com/iovisor/bpftrace
49
50       Also look in the bpftrace distribution for  a  companion  _examples.txt
51       file containing example usage, output, and commentary for this tool.
52
53       This is a bpftrace version of the bcc tool of the same name.
54
55              https://github.com/iovisor/bcc
56

OS

58       Linux
59

STABILITY

61       Unstable - in development.
62

AUTHOR

64       Brendan Gregg
65

SEE ALSO

67       biosnoop.bt(8)
68
69
70
71USER COMMANDS                     2018-09-07                       bitesize(8)
Impressum