You are not logged in.

#1 2015-03-02 09:41:02

zabrielza
Member
Registered: 2015-03-02
Posts: 125

Cannot set deadline scheduler for my SSD. Rule does not apply.

Hello,

First day with Arch Linux on my computer and first time i post a question here.

I followed arch wiki beginner's guide to install arch on my system. I have a HDD and an SSD.

SSD Partitions:   /, /boot, /usr, /usr/local, /opt and 4G free space ( TOTAL 60GB)
HDD Partitions:  /home, swap, /var, /data, /tmp                          ( TOTAL 1000GB)

Now i am trying to optimize ssd performance. This Solid State Drives Article in arch wiki suggests using noop or deadline. So a rule under /etc/udev/ruled.d named 60-___.rules could do the trick.

Contents of this file:

# set deadline scheduler for non-rotating 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"

also, /sys/block/sdb/queue/rotational reports 0 ( sdb is my ssd)

When i boot on my system nothing changes. /sys/block/sdb/queue/scheduler reports cfg as scheduler.

What is wrong?

Thanks in advance

Offline

#2 2015-03-02 10:21:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot set deadline scheduler for my SSD. Rule does not apply.

Does doing it manually with

# echo deadline > /sys/block/sdb/queue/scheduler

work?

Offline

#3 2015-03-02 11:09:16

zabrielza
Member
Registered: 2015-03-02
Posts: 125

Re: Cannot set deadline scheduler for my SSD. Rule does not apply.

No, It does not. After reboot same thing. cfq is on. Have U any idea why rules do not work?

Offline

#4 2015-03-02 11:11:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot set deadline scheduler for my SSD. Rule does not apply.

I know it won't survive the reboot https://wiki.archlinux.org/index.php/So … _Scheduler , but does it work?

Offline

#5 2015-03-02 11:39:35

zabrielza
Member
Registered: 2015-03-02
Posts: 125

Re: Cannot set deadline scheduler for my SSD. Rule does not apply.

Oh, Ok. Yes it works. I have already done this before as the guide in the link suggests.

Offline

Board footer

Powered by FluxBB