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

NAME

6       ext4dist - Summarize ext4 operation latency. Uses Linux eBPF/bcc.
7

SYNOPSIS

9       ext4dist [-h] [-T] [-m] [-p PID] [interval] [count]
10

DESCRIPTION

12       This  tool  summarizes  time (latency) spent in common ext4 file opera‐
13       tions: reads, writes, opens, and syncs, and presents it as a power-of-2
14       histogram.  It  uses  an  in-kernel eBPF map to store the histogram for
15       efficiency.
16
17       Since this works by tracing the  ext4_file_operations  interface  func‐
18       tions, it will need updating to match any changes to these functions.
19
20       Since this uses BPF, only the root user can use this tool.
21

REQUIREMENTS

23       CONFIG_BPF and bcc.
24

OPTIONS

26       -h     Print usage message.
27
28       -T     Don't include timestamps on interval output.
29
30       -m     Output in milliseconds.
31
32       -p PID Trace this PID only.
33

EXAMPLES

35       Trace ext4 operation time, and print a summary on Ctrl-C:
36              # ext4dist
37
38       Trace PID 181 only:
39              # ext4dist -p 181
40
41       Print 1 second summaries, 10 times:
42              # ext4dist 1 10
43
44       1 second summaries, printed in milliseconds
45              # ext4dist -m 1
46

FIELDS

48       msecs  Range of milliseconds for this bucket.
49
50       usecs  Range of microseconds for this bucket.
51
52       count  Number of operations in this time range.
53
54       distribution
55              ASCII representation of the distribution (the count column).
56

OVERHEAD

58       This  adds  low-overhead  instrumentation  to  these  ext4  operations,
59       including reads and writes from the file system cache. Such  reads  and
60       writes can be very frequent (depending on the workload; eg, 1M/sec), at
61       which point the overhead of this tool may become  noticeable.   Measure
62       and quantify before use.
63

SOURCE

65       This is from bcc.
66
67              https://github.com/iovisor/bcc
68
69       Also  look  in  the bcc distribution for a companion _examples.txt file
70       containing example usage, output, and commentary for this tool.
71

OS

73       Linux
74

STABILITY

76       Unstable - in development.
77

AUTHOR

79       Brendan Gregg
80

SEE ALSO

82       ext4snoop(8)
83
84
85
86USER COMMANDS                     2016-02-12                       ext4dist(8)
Impressum