nixos/kernel: Enable transparent hugepages for tmpfs

This commit is contained in:
Mikael 2024-10-18 19:10:33 +02:00
parent 9f67b81388
commit d6e14f8500
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -141,5 +141,6 @@
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"w- /sys/kernel/mm/transparent_hugepage/enabled - - - - always" "w- /sys/kernel/mm/transparent_hugepage/enabled - - - - always"
"w- /sys/kernel/mm/transparent_hugepage/defrag - - - - defer" "w- /sys/kernel/mm/transparent_hugepage/defrag - - - - defer"
"w- /sys/kernel/mm/transparent_hugepage/shmem_enabled - - - - within_size"
]; ];
} }