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

NAME

6       cpuwalk.bt  -  Sample  which  CPUs  are executing processes.. Uses bpf‐
7       trace/eBPF.
8

SYNOPSIS

10       cpuwalk.bt
11

DESCRIPTION

13       This tool samples CPUs at 99 Hertz, then  prints  a  histogram  showing
14       which  CPUs  were  active.  99 Hertz is used to avoid lockstep sampling
15       that would skew results. This tool can help identify if  your  applica‐
16       tion's  workload  is evenly using the CPUs, or if there is an imbalance
17       problem.
18
19       Since this uses BPF, only the root user can use this tool.
20

REQUIREMENTS

22       CONFIG_BPF and bpftrace.
23

EXAMPLES

25       Sample CPUs and print a summary on Ctrl-C:
26              # cpuwalk.bt
27

FIELDS

29       1st, 2nd
30              The CPU is shown in the first field, after  the  "[".  Disregard
31              the second field.
32
33       3rd    A column showing the number of samples for this CPU.
34
35       4th    This is an ASCII histogram representing the count column.
36

OVERHEAD

38       This should be negligible.
39

SOURCE

41       This is from bpftrace.
42
43              https://github.com/iovisor/bpftrace
44
45       Also  look  in  the bpftrace distribution for a companion _examples.txt
46       file containing example usage, output, and commentary for this tool.
47

OS

49       Linux
50

STABILITY

52       Unstable - in development.
53

AUTHOR

55       Brendan Gregg
56

SEE ALSO

58       mpstat(1)
59
60
61
62USER COMMANDS                     2018-09-08                        cpuwalk(8)
Impressum