Skip to content

Commit c3fb40c

Browse files
committed
aendernix: add nvme scheduler
1 parent f9208e8 commit c3fb40c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

modules/hardware/hardware-aendernix.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@
3131
"kvm.report_ignored_msrs=0"
3232
];
3333

34+
# at which dirty page amount the kernel will start writeback (default 10% of RAM -> ~3GB)
35+
# vm.dirty_background_bytes 256 * 1024 * 1024 (0.25GB)
36+
37+
# at which dirty page amount the process iself will start writeback (default 20% of RAM -> ~6GB)
38+
# vm.dirty_bytes 512 * 1024 * 1024 (0.5GB)
39+
40+
hardware.block.scheduler = {
41+
"nvme*" = "mq-deadline"; # seems to make io scheduling fair between slices
42+
};
43+
3444
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
3545
boot.initrd.kernelModules = [ "dm-snapshot" "vfio_pci" "vfio" "vfio_iommu_type1" ];
3646
# with linux 5.10 lts, BT audio works. With latest it doesnt.

0 commit comments

Comments
 (0)