How do I set `perf_event_paranoid`?

This is a kernel sysctl, which you can set here: boot.kernel.sysctl.

It’s probably best not to set it permanently unless you have to, it has security implications. Simply writing 1 to the file as suggested by that readme is the recommended way on NixOS too (note it will revert back to 2 on your next reboot).

1 Like