-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Perf Recording
Vincent JARDIN edited this page Sep 19, 2017
·
10 revisions
Basic steps to get Perf Reports
- Install Perf (make sure perf version matches kernel version)
- Install debug symbols for frr (for RHEL, frr-debuginfo)
- Run
perf top -F 99 --call-graph=dwarf -p <pid>to get a generic overview of the system. Screenshots of this are useful - Slightly more advanced usage:
perf record -F 99 -g --call-graph=dwarf -- /usr/lib/frr/bgpd -A 127.0.0.1then runvtysh -b, and wait for whatever event. Kill -9 bgpd after you'd like to stop recording - run perf with -K to hide kernel symbols so we can focus on bgpd, ospfd, or zebra daemon.