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

NAME

6       xfsdist - Summarize XFS operation latency. Uses Linux eBPF/bcc.
7

SYNOPSIS

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

DESCRIPTION

12       This  tool  summarizes  time  (latency) spent in common XFS 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  xfs_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 XFS operation time, and print a summary on Ctrl-C:
36              # xfsdist
37
38       Trace PID 181 only:
39              # xfsdist -p 181
40
41       Print 1 second summaries, 10 times:
42              # xfsdist 1 10
43
44       1 second summaries, printed in milliseconds
45              # xfsdist -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 XFS operations, includ‐
59       ing reads and writes from the file system cache. Such reads and  writes
60       can  be very frequent (depending on the workload; eg, 1M/sec), at which
61       point the overhead of this tool may  become  noticeable.   Measure  and
62       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       xfssnoop(8)
83
84
85
86USER COMMANDS                     2016-02-12                        xfsdist(8)
Impressum