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

NAME

6       nfsdist - Summarize NFS operation latency. Uses Linux eBPF/bcc.
7

SYNOPSIS

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

DESCRIPTION

12       This  tool  summarizes  time  (latency) spent in common NFS file opera‐
13       tions: reads, writes, opens, and getattrs, and presents it as a  power-
14       of-2  histogram.  It  uses an in-kernel eBPF map to store the histogram
15       for efficiency.
16
17       Since this works by tracing  the  nfs_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 NFS operation time, and print a summary on Ctrl-C:
36              # nfsdist
37
38       Trace PID 181 only:
39              # nfsdist -p 181
40
41       Print 1 second summaries, 10 times:
42              # nfsdist 1 10
43
44       1 second summaries, printed in milliseconds
45              # nfsdist -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 NFS 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       Samuel Nair
80

SEE ALSO

82       nfsslower(8)
83
84
85
86USER COMMANDS                     2017-09-08                        nfsdist(8)
Impressum