Skip to content

Instantly share code, notes, and snippets.

@cantremember
Last active April 30, 2017 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cantremember/dac60c9b210baf89947f49cfabf4cad6 to your computer and use it in GitHub Desktop.
Save cantremember/dac60c9b210baf89947f49cfabf4cad6 to your computer and use it in GitHub Desktop.
`perf` will complain about "WARNING: Kernel *blah blah*"
#!/bin/bash
#
# https://gist.github.com/trevnorris/9616784
sudo sysctl kernel.kptr_restrict=0
sudo sysctl kernel.perf_event_paranoid=0
sudo sysctl kernel.perf_event_mlock_kb=65536
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment