1
0
Fork 0

Khanda: add some more kernel params to (hopefully) increase performance

This commit is contained in:
Aires 2024-09-28 13:18:04 -04:00
parent ae63ed7767
commit 21a8933a96

View file

@ -61,9 +61,11 @@ in
]; ];
}; };
# Improve Khanda's responsiveness
kernel.sysctl = { kernel.sysctl = {
# Try to reduce swappiness - Khanda hates paging, even to NVMe storage "vm.swappiness" = 20; # Try to reduce swappiness - Khanda hates paging, even to NVMe storage
"vm.swappiness" = 20; "vm.vfs_cache_pressure" = 50; # https://wiki.archlinux.org/title/Sysctl#VFS_cache
"kernel.core_pattern" = "|${pkgs.coreutils}/bin/false"; # Disable core dumps per https://wiki.archlinux.org/title/Core_dump#Using_sysctl
}; };
kernelModules = [ kernelModules = [
@ -100,6 +102,12 @@ in
}; };
}; };
# Change I/O scheduler to Kyber to try and reduce stuttering under load.
# NVME supports `mq-deadline` and `kyber` schedulers
services.udev.extraRules = ''
ACTION=="add|change", KERNEL=="nvme0n1", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="kyber"
'';
hardware = { hardware = {
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
ipu6 = { ipu6 = {