nixos/kernel: Enable transparent hugepages for tmpfs
This commit is contained in:
parent
9f67b81388
commit
d6e14f8500
1 changed files with 3 additions and 2 deletions
|
@ -139,7 +139,8 @@
|
|||
environment.etc."modprobe.d/nixos.conf".text = "";
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"w- /sys/kernel/mm/transparent_hugepage/enabled - - - - always"
|
||||
"w- /sys/kernel/mm/transparent_hugepage/defrag - - - - defer"
|
||||
"w- /sys/kernel/mm/transparent_hugepage/enabled - - - - always"
|
||||
"w- /sys/kernel/mm/transparent_hugepage/defrag - - - - defer"
|
||||
"w- /sys/kernel/mm/transparent_hugepage/shmem_enabled - - - - within_size"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue