tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
743 stars 73 forks source link

kernel: disable IO scheduler on Apple NVME #158

Closed zzywysm closed 3 months ago

zzywysm commented 4 months ago

By default the internal NVME SSD gets the "mq-deadline" IO scheduler applied to it.

According to Ubuntu's documentation, choosing "none" as the IO scheduler provides "minimal overhead" and is "Ideal for fast random I/O devices such as NVME".

https://wiki.ubuntu.com/Kernel/Reference/IOSchedulers

According to benchmarks compiled by Phoronix, "overall though, using 'none' as your I/O scheduler option will still generally offer the best performance for speedy NVMe SSD storage with a few exceptions".

https://www.phoronix.com/review/linux-56-nvme/4

This commit changes the IO scheduler for NVME devices from mq-deadline to none. Successfully tested on my MacBook Air M1.

zzywysm commented 3 months ago

@tpwrules Will you be reviewing this pull request, or shall I close it?

tpwrules commented 3 months ago

I am not interested in having an opinion on this right now.