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

NAME

6       dcstat - Directory entry cache (dcache) stats. Uses Linux eBPF/bcc.
7

SYNOPSIS

9       dcstat [interval [count]]
10

DESCRIPTION

12       The  Linux  directory  entry cache (dcache) improves the performance of
13       file and directory name lookups. This tool provides per-second  summary
14       statistics of dcache performance.
15
16       This uses kernel dynamic tracing of kernel functions, lookup_fast() and
17       d_lookup(), which will need to be modified to match kernel changes.
18
19       Since this uses BPF, only the root user can use this tool.
20

REQUIREMENTS

22       CONFIG_BPF and bcc.
23

EXAMPLES

25       Print summaries each second:
26              # dcstat
27
28       Print output every five seconds, three times:
29              # dcstat 5 3
30

FIELDS

32       REFS/s Number dcache lookups (references) per second.
33
34       SLOW/s Number of dcache lookups that failed the lookup_fast() path  and
35              executed the lookup_slow() path instead.
36
37       MISS/s Number of dcache misses (failed both fast and slow lookups).
38
39       HIT%   Percentage of dcache hits over total references.
40

OVERHEAD

42       The  overhead  depends  on  the  frequency  of  file and directory name
43       lookups.  While the per-event overhead is low,  some  applications  may
44       make  over 100k lookups per second, and the low per-event overhead will
45       begin to add up, and could begin to be measurable (over 10% CPU usage).
46       Measure in a test environment.
47

SOURCE

49       This is from bcc.
50
51              https://github.com/iovisor/bcc
52
53       Also  look  in  the bcc distribution for a companion _examples.txt file
54       containing example usage, output, and commentary for this tool.
55

OS

57       Linux
58

STABILITY

60       Unstable - in development.
61

AUTHOR

63       Brendan Gregg
64

SEE ALSO

66       dcsnoop(8)
67
68
69
70USER COMMANDS                     2016-02-09                         dcstat(8)
Impressum