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

NAME

6       xfsdist.bt - Summarize XFS operation latency. Uses bpftrace/eBPF.
7

SYNOPSIS

9       xfsdist.bt
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 ef‐
15       ficiency.
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 bpftrace.
24

EXAMPLES

26       Trace XFS operation time, and print a summary on Ctrl-C:
27              # xfsdist.bt
28

FIELDS

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

OVERHEAD

42       This adds low-overhead instrumentation to these XFS operations, includ‐
43       ing reads and writes from the file system cache. Such reads and  writes
44       can  be very frequent (depending on the workload; eg, 1M/sec), at which
45       point the overhead of this tool may  become  noticeable.   Measure  and
46       quantify before use.
47

SOURCE

49       This is from bpftrace.
50
51              https://github.com/iovisor/bpftrace
52
53       Also  look  in  the bpftrace distribution for a companion _examples.txt
54       file containing example usage, output, and commentary for this tool.
55
56       This is a bpftrace version of the bcc tool of the same  name.  The  bcc
57       tool may provide more options and customizations.
58
59              https://github.com/iovisor/bcc
60

OS

62       Linux
63

STABILITY

65       Unstable - in development.
66

AUTHOR

68       Brendan Gregg
69

SEE ALSO

71       biolatency(8)
72
73
74
75USER COMMANDS                     2018-09-08                        xfsdist(8)
Impressum