I've put LMDE2 on a SSD. The SSD is recognized, as
/sys/block/sda/queue/rotational is reporting a '0'
Everything is fine except that I can't change scheduler to deadline at boot time.
If I type
Code: Select all
cat /sys/block/sda/queue/scheduler
(meaning cfq is enabled and deadline is not enabled but available)noop deadline [cfq] bfq
If I run
Code: Select all
echo deadline >/sys/block/sda/queue/scheduler
cat /sys/block/sda/queue/scheduler will output
but after rebooting it will default back tonoop [deadline] cfq bfq
Note: If I runnoop deadline [cfq] bfq
Code: Select all
echo deadline >/sys/block/sda/queue/scheduler
bash: /sys/block/sda/queue/scheduler: Permission denied
If I add
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="elevator=deadline quiet splash"
On /etc/rc.local I've added
Code: Select all
echo deadline >/sys/block/sda/queue/scheduler
echo 1 > /sys/block/sda/queue/iosched/fifo_batch
and it still does nothing.
I've created a
/etc/udev/rules.d/60-ssd-scheduler.rules
having inside it
Code: Select all
# Set deadline scheduler for non-rotational disks
ACTION=="add|change", KERNEL=="sd[a-z]", TEST!="queue/rotational", ATTR{queue/scheduler}="deadline"
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"
Code: Select all
sudo update-initramfs -u
Notes:
- I have not installed LMDE2 on this SSD from scratch. Instead, I've restored a backup (using fsarchiver) of this system while using a HDD;
- I'm using the Liquorix Kernel (4.10.0-11.1-liquorix-amd64). Could this have an impact on this issue?
I've ran out of options and ideas. Any hints, please? Thanks!