1
0
Fork 0

Try and reduce Khanda's swappiness

This commit is contained in:
Aires 2024-06-21 14:26:32 -04:00
parent a73a6eda64
commit fc0494bb63
2 changed files with 12 additions and 7 deletions

View file

@ -252,11 +252,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1718883385, "lastModified": 1718894893,
"narHash": "sha256-nLKMEZc6im82lfSdVPIBwff8OEYLlGVPpcZPvtpOFx4=", "narHash": "sha256-hxQBUtDbFOCCW1CsFZTS9Q5Ov1ZKdJgbBZHSez1M6iA=",
"ref": "master", "ref": "master",
"rev": "0307a32b553f81056edd6455168c635aeda6743b", "rev": "083823b7904e43a4fc1c7229781417e875359a42",
"revCount": 1730, "revCount": 1733,
"type": "git", "type": "git",
"url": "https://github.com/NixOS/nixos-hardware" "url": "https://github.com/NixOS/nixos-hardware"
}, },
@ -300,11 +300,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1718530797, "lastModified": 1718895438,
"narHash": "sha256-pup6cYwtgvzDpvpSCFh1TEUjw2zkNpk8iolbKnyFmmU=", "narHash": "sha256-k3JqJrkdoYwE3fHE6xGDY676AYmyh4U2Zw+0Bwe5DLU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b60ebf54c15553b393d144357375ea956f89e9a9", "rev": "d603719ec6e294f034936c0d0dc06f689d91b6c3",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -53,6 +53,11 @@
}; };
}; };
kernel.sysctl = {
# Try to reduce swappiness - Khanda hates paging, even to NVMe storage
"vm.swappiness" = 20;
};
kernelModules = [ kernelModules = [
"kvm-intel" "kvm-intel"
"tpm_crb" "tpm_crb"