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

NAME

6       vfsstat - Statistics for some common VFS calls. Uses Linux eBPF/bcc.
7

SYNOPSIS

9       vfsstat [interval [count]]
10

DESCRIPTION

12       This traces some common VFS calls and prints per-second summaries. This
13       can be useful for general workload characterization,  and  looking  for
14       patterns in operation usage over time.
15
16       This  works by tracing some kernel vfs functions using dynamic tracing,
17       and will need updating to match any changes to  these  functions.  Edit
18       the  script to customize which functions are traced. Also see vfscount,
19       which is more easily customized to trace multiple functions.
20
21       Since this uses BPF, only the root user can use this tool.
22

REQUIREMENTS

24       CONFIG_BPF and bcc.
25

EXAMPLES

27       Print summaries each second:
28              # vfsstat
29
30       Print output every five seconds, three times:
31              # vfsstat 5 3
32

FIELDS

34       READ/s Number of vfs_read() calls as a per-second average.
35
36       WRITE/s
37              Number of vfs_write() calls as a per-second average.
38
39       CREATE/s
40              Number of vfs_create() calls as a per-second average.
41
42       OPEN/s Number of vfs_open() calls as a per-second average.
43
44       FSYNC/s
45              Number of vfs_fsync() calls as a per-second average.
46

OVERHEAD

48       This traces  various  kernel  vfs  functions  and  maintains  in-kernel
49       counts,  which  are asynchronously copied to user-space. While the rate
50       of VFS operations can be very high  (>1M/sec),  this  is  a  relatively
51       efficient way to trace these events, and so the overhead is expected to
52       be small for normal workloads.  Measure in a test environment.
53

SOURCE

55       This is from bcc.
56
57              https://github.com/iovisor/bcc
58
59       Also look in the bcc distribution for a  companion  _examples.txt  file
60       containing example usage, output, and commentary for this tool.
61

OS

63       Linux
64

STABILITY

66       Unstable - in development.
67

AUTHOR

69       Brendan Gregg
70

SEE ALSO

72       vfscount(8)
73
74
75
76USER COMMANDS                     2015-08-18                        vfsstat(8)
Impressum