multiple drives io-scheduler use
I'm a little confused regarding setting up different schedulers for different drives (SSD and HDD) in the Wiki for using BFQ. The example using udev, in order to make the HDD's use BFQ, do I just add a second line to the rule and edit it for rotational = 1 and the desired scheduler, or can the one line be appended with an "else" statement, or does it require a separate rule (e.g. 61-ioscheduler.rule)? I successfully set BFQ to spin drive sda in a VirtualBox guest Arch using the udev example and grub edit, but host is Arch with multiple drives:
sda = SSD ext4 sdb = HDD ext4 sdc = HDD ext4 sdd = HDD ext4 sde = HDD ntfs I plan to use noop or deadline for the SSD and BFQ for the HDDs. Thanks anyone. EDIT (current schedulers in use): Code:
% cat /sys/block/sd*/queue/scheduler Code:
% zgrep IOSCHED /proc/config.gz |
this works for now, forgetting using other schedulers (deleted the tmpfiles.d conf file I was using to set the SSD to noop with stock kernel elevator=cfq), changed /etc/default/grub per the wiki for blk_mq, and created the udev rule:
Code:
/etc/udev/rules.d/60-schedulers.rules Code:
# for f in /sys/block/sd?/queue/scheduler; do printf "$f is "; cat $f; done |
The boot journal still shows io scheduler default as cfq.
Code:
% journalctl -b | grep scheduler Grub is set to Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet radeon.dpm=1 scsi_mod.use_blk_mq=y dm_mod.use_blk_mq=y" EDIT: so I since switched back to the stock deadline for ssd, and cfq for spin drives due to system was becoming sluggish (thunar, google-chrome (internet in general)) or intermittent noticeable lags. I used bfq in the past with Graysky's linux-ck-piledriver optimized kernel with excellent results until it switched to MuQSS which for some reason wouldn't work with cgroups on my build and I couldn't figure out how to make it. |
All times are GMT -5. The time now is 08:41 AM. |