Skip to content

Instantly share code, notes, and snippets.

@wonderfly
wonderfly / perf-on-cos.txt
Created September 27, 2019 21:13
Running perf on COS
# Outside the container on COS:
## Enable kernel profiling
echo -1 | sudo tee /proc/sys/kernel/perf_event_paranoid
## Start a privileged container with the ability to see all system processes
## and networks.
docker run -it --privileged --net=host --pid=host debian:jessie-backports /bin/bash
# Inside the container:
## Install the correct linux-perf tool.