Skip to content

Instantly share code, notes, and snippets.

@mnp
Created April 28, 2017 20:28
Show Gist options
  • Save mnp/ff0b957d2ff13e03dcd19849e956727e to your computer and use it in GitHub Desktop.
Save mnp/ff0b957d2ff13e03dcd19849e956727e to your computer and use it in GitHub Desktop.
PERF dump for Consul issue driving high cpu
# Samples: 21K of event 'cpu-clock'
# Event count (approx.): 5466750000
#
# Children Self Command Shared Object Symbol
# ........ ........ ....... ................. ...................................................................................................................................................................
#
96.75% 0.00% consul consul [.] runtime.goexit
|
---runtime.goexit
|
|--81.81%--runtime.main
| main.main
| main.realMain
| |
| --81.57%--github.com/hashicorp/consul/vendor/github.com/mitchellh/cli.(*CLI).Run
| |
| --81.55%--github.com/hashicorp/consul/command/agent.(*Command).Run
| |
| --81.16%--github.com/hashicorp/consul/command/agent.(*Command).handleSignals
| |
| |--62.50%--github.com/hashicorp/consul/vendor/github.com/mitchellh/cli.(*PrefixedUi).Output
| | |
| | |--59.45%--github.com/hashicorp/consul/vendor/github.com/mitchellh/cli.(*BasicUi).Output
| | | |
| | | |--57.95%--fmt.Fprint
| | | | |
| | | | |--55.12%--os.(*File).Write
| | | | | |
| | | | | |--50.67%--os.(*File).write
| | | | | | |
| | | | | | --50.07%--syscall.Write
| | | | | | |
| | | | | | |--24.14%--runtime.sigreturn
| | | | | | | |
| | | | | | | |--22.90%--runtime.sigtramp
| | | | | | | | |
| | | | | | | | --22.50%--runtime.sigtrampgo
| | | | | | | | |
| | | | | | | | --21.85%--runtime.sighandler
| | | | | | | | |
| | | | | | | | --21.25%--runtime.sigsend
| | | | | | | | |
| | | | | | | | --20.89%--runtime.notewakeup
| | | | | | | | |
| | | | | | | | --20.81%--runtime.futex
| | | | | | | | |
| | | | | | | | --20.27%--system_call_fastpath
| | | | | | | | |
| | | | | | | | --20.25%--sys_futex
| | | | | | | | |
| | | | | | | | --20.18%--do_futex
| | | | | | | | |
| | | | | | | | --19.81%--futex_wake
| | | | | | | | |
| | | | | | | | |--18.09%--wake_futex
| | | | | | | | | |
| | | | | | | | | --17.82%--wake_up_state
| | | | | | | | | |
| | | | | | | | | --17.78%--try_to_wake_up
| | | | | | | | | |
| | | | | | | | | --17.44%--_raw_spin_unlock_irqrestore
| | | | | | | | |
| | | | | | | | --1.24%--get_futex_key
| | | | | | | | |
| | | | | | | | --0.82%--get_user_pages_fast
| | | | | | | |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment