From b16e6261ad2f0bca6ac2a4b7a4d3377cf5e3d95d Mon Sep 17 00:00:00 2001 From: Kenny MacDermid Date: Fri, 17 Nov 2023 13:11:05 -0400 Subject: [PATCH] Make Kernel Samepage Merging optional 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. --- nixos-modules/host.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-modules/host.nix b/nixos-modules/host.nix index 75eef750..6085183b 100644 --- a/nixos-modules/host.nix +++ b/nixos-modules/host.nix @@ -466,6 +466,6 @@ in ''; # Enable Kernel Same-Page Merging - hardware.ksm.enable = true; + hardware.ksm.enable = lib.mkDefault true; }; }