Skip to content

Commit

Permalink
Make Kernel Samepage Merging optional
Browse files Browse the repository at this point in the history
As MicroVMs work fine without KSM enabled, it should probably be
optional. While KSM can improve a lot of workloads, it can harm
others, and so this configuration should not conflict with a value
explicitly set by the user.
  • Loading branch information
KenMacD authored and astro committed Nov 18, 2023
1 parent 1301dc4 commit b16e626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos-modules/host.nix
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,6 @@ in
'';

# Enable Kernel Same-Page Merging
hardware.ksm.enable = true;
hardware.ksm.enable = lib.mkDefault true;
};
}

0 comments on commit b16e626

Please sign in to comment.