1vfscount(8) System Manager's Manual vfscount(8)
2
3
4
6 vfscount - Count VFS calls ("vfs_*"). Uses Linux eBPF/bcc.
7
9 vfscount [duration]
10
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
22 CONFIG_BPF and bcc.
23
25 duration
26 duration of the trace in seconds.
27
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
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
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
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
62 Linux
63
65 Unstable - in development.
66
68 Brendan Gregg
69
71 vfsstat(8)
72
73
74
75USER COMMANDS 2015-08-18 vfscount(8)