From fc0494bb63bbc98393734a7c4c96ab11ba12a9e5 Mon Sep 17 00:00:00 2001 From: Andre Date: Fri, 21 Jun 2024 14:26:32 -0400 Subject: [PATCH] Try and reduce Khanda's swappiness --- flake.lock | 14 +++++++------- hosts/Khanda/hardware-configuration.nix | 5 +++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index 84a0cc3..3f0e41e 100644 --- a/flake.lock +++ b/flake.lock @@ -252,11 +252,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1718883385, - "narHash": "sha256-nLKMEZc6im82lfSdVPIBwff8OEYLlGVPpcZPvtpOFx4=", + "lastModified": 1718894893, + "narHash": "sha256-hxQBUtDbFOCCW1CsFZTS9Q5Ov1ZKdJgbBZHSez1M6iA=", "ref": "master", - "rev": "0307a32b553f81056edd6455168c635aeda6743b", - "revCount": 1730, + "rev": "083823b7904e43a4fc1c7229781417e875359a42", + "revCount": 1733, "type": "git", "url": "https://github.com/NixOS/nixos-hardware" }, @@ -300,11 +300,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1718530797, - "narHash": "sha256-pup6cYwtgvzDpvpSCFh1TEUjw2zkNpk8iolbKnyFmmU=", + "lastModified": 1718895438, + "narHash": "sha256-k3JqJrkdoYwE3fHE6xGDY676AYmyh4U2Zw+0Bwe5DLU=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b60ebf54c15553b393d144357375ea956f89e9a9", + "rev": "d603719ec6e294f034936c0d0dc06f689d91b6c3", "type": "github" }, "original": { diff --git a/hosts/Khanda/hardware-configuration.nix b/hosts/Khanda/hardware-configuration.nix index 4c77da0..8e5dfc1 100644 --- a/hosts/Khanda/hardware-configuration.nix +++ b/hosts/Khanda/hardware-configuration.nix @@ -53,6 +53,11 @@ }; }; + kernel.sysctl = { + # Try to reduce swappiness - Khanda hates paging, even to NVMe storage + "vm.swappiness" = 20; + }; + kernelModules = [ "kvm-intel" "tpm_crb"