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

NAME

6       vfscount - Count VFS calls ("vfs_*"). Uses Linux eBPF/bcc.
7

SYNOPSIS

9       vfscount [duration]
10

DESCRIPTION

12       This  counts VFS calls. This can be useful for general workload charac‐
13       terization of these operations.
14
15       This works by tracing all kernel functions beginning with "vfs_"  using
16       dynamic  tracing. This may match more functions than you are interested
17       in measuring: Edit the script to customize which functions to trace.
18
19       Since this uses BPF, only the root user can use this tool.
20

REQUIREMENTS

22       CONFIG_BPF and bcc.
23

OPTIONS

25       duration
26              duration of the trace in seconds.
27

EXAMPLES

29       Count some VFS calls until Ctrl-C is hit:
30              # vfscount
31
32       Count some VFS calls in ten seconds
33              # vfscount 10
34

FIELDS

36       ADDR   Address of the instruction pointer that was traced (only  useful
37              if  the  FUNC  column is suspicious and you would like to double
38              check the translation).
39
40       FUNC   Kernel function name
41
42       COUNT  Number of calls while tracing
43

OVERHEAD

45       This traces kernel vfs functions and maintains in-kernel counts,  which
46       are  asynchronously  copied to user-space. While the rate of VFS opera‐
47       tions can be very high (>1M/sec), this is a relatively efficient way to
48       trace  these  events,  and  so the overhead is expected to be small for
49       normal workloads.  Measure in a test environment, and if overheads  are
50       an  issue,  edit the script to reduce the types of vfs functions traced
51       (currently all beginning with "vfs_").
52

SOURCE

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

OS

62       Linux
63

STABILITY

65       Unstable - in development.
66

AUTHOR

68       Brendan Gregg
69

SEE ALSO

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