nixos/solitary: Pre‐allocate a single hugepage
This commit is contained in:
parent
d5e69efdbb
commit
4d9d033d4c
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ in {
|
|||
device = "/dev/vda";
|
||||
};
|
||||
|
||||
boot.kernelParams = [
|
||||
"hugepagesz=1G" "hugepages=1"
|
||||
];
|
||||
|
||||
boot.kernelPackages = let
|
||||
inherit (self.packages.x86_64-linux) linux-hardened;
|
||||
in pkgs.linuxPackagesFor (linux-hardened.override {
|
||||
|
|
Loading…
Reference in a new issue