zfs: unset disk scheduler for zfs
This commit is contained in:
parent
205f520e66
commit
e348437df4
1 changed files with 5 additions and 0 deletions
|
@ -7,4 +7,9 @@
|
|||
};
|
||||
# zfs is not available for latest lts kenrel
|
||||
boot.zfs.enableUnstable = true;
|
||||
|
||||
# ZFS already has its own scheduler. Without this my(@Artturin) computer froze for a second when i nix build something.
|
||||
services.udev.extraRules = ''
|
||||
ACTION=="add|change", KERNEL=="sd[a-z]*[0-9]*|mmcblk[0-9]*p[0-9]*|nvme[0-9]*n[0-9]*p[0-9]*", ENV{ID_FS_TYPE}=="zfs_member", ATTR{../queue/scheduler}="none"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue