From a0280721112be0049f466dc3ce5c1ef5fec3c00b Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 8 Dec 2024 18:49:59 +0100 Subject: [PATCH] allow proper perf usage --- share/common.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/common.nix b/share/common.nix index a98f73b..3d34426 100644 --- a/share/common.nix +++ b/share/common.nix @@ -57,6 +57,9 @@ in boot.kernel.sysctl = { # allow dmesg for all users "kernel.dmesg_restrict" = 0; + + # allow proper perf usage + "kernel.perf_event_mlock_kb" = 16777216; }; # Use the systemd-boot EFI boot loader.