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

NAME

6       vfsstat.bt - Count key VFS calls. Uses bpftrace/eBPF.
7

SYNOPSIS

9       vfsstat.bt
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 bpftrace.
25

EXAMPLES

27       Count some VFS calls, printing per-second  summaries  until  Ctrl-C  is
28       hit:
29              # vfsstat.bt
30

FIELDS

32       HH:MM:SS
33              Each  output  summary  is  prefixed  by  the time of printing in
34              "HH:MM:SS" format.
35
36       1st    Kernel function name (in @[])
37
38       2nd    Number of calls while tracing
39

OVERHEAD

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

SOURCE

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

OS

61       Linux
62

STABILITY

64       Unstable - in development.
65

AUTHOR

67       Brendan Gregg
68

SEE ALSO

70       vfscount.bt(8)
71
72
73
74USER COMMANDS                     2018-09-06                        vfsstat(8)
Impressum