You are not logged in.

#1 2013-07-13 09:24:48

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Setting scheduler for SSD devices only on a multiple device system

Hi!

I have a homebuild NAS with a SSD for OS and /home and a RAID controllor with 4 HD configured with md/lvm.

On the SSD I want to specify the the scheduler to deadline, on the HD it should stay cfq.

In https://wiki.archlinux.org/index.php/So … _Scheduler it is explained how to do that persistantly with rc.local but since systemd that is not the way to go anymore. (don't want to have a mixed initscripts/systemd system).

What is the recommended way to set the scheduler on a multi device system?


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#2 2013-07-13 09:34:53

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,465
Website

Re: Setting scheduler for SSD devices only on a multiple device system

Hmm... wiki is dated if recommending rc.local... use tmpfiles.

% cat /etc/tmpfiles.d/IO_scheduler.conf 
w /sys/block/sda/queue/scheduler - - - - deadline

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2013-07-13 11:39:06

theking2
Banned
From: Romanshorn Switzerland
Registered: 2009-03-04
Posts: 372

Re: Setting scheduler for SSD devices only on a multiple device system

Thanks graysky. Works as breeze.

the one problem I might still have is that the devices are not always recognized in the same order. So I need somehow to find out how to target the SSD only even when it is not on sde as it is currently.


archlinux on a Gigabyte C1037UN-EU, 16GiB
a Promise  PDC40718 based ZFS set
root on a Samsung SSD PB22-J
running LogitechMediaServer(-git), Samba, MiniDLNA, TOR

Offline

#4 2013-07-13 11:40:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,465
Website

Re: Setting scheduler for SSD devices only on a multiple device system

I believe the udev solution on the wiki will do this but it just needs to be started with a systemd service.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB