You are not logged in.

#1 2013-11-28 03:04:56

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

[Solved] Persistent change of filesystem scheduler?

According to ArchWiki's article on JFS, issuing

echo deadline > /sys/block/sda/queue/scheduler

should set the Deadline scheduler as the default for /dev/sda (the entire physical device). However, after rebooting the system is back with the CFQ scheduler. How can I make the change persistent between boots, given that I am using EFI and Gummiboot and don't want to compile my own kernel?

Last edited by whaler (2013-11-28 03:54:10)

Offline

#2 2013-11-28 03:28:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [Solved] Persistent change of filesystem scheduler?

systemd-tmpfiles, check the wiki.

Offline

#3 2013-11-28 03:53:08

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: [Solved] Persistent change of filesystem scheduler?

Thanks, Scimmia.

Meanwhile I tried to add "elevator=deadline" to my /boot/loader/entries/arch.conf, like this:

options         root=PARTUUID=00000000-0000-0000-0000-00000000000 rw elevator=deadline

It has survived one cold reboot.m Perhaps it will stay wink

Offline

#4 2013-11-28 04:10:05

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: [Solved] Persistent change of filesystem scheduler?

yep, that should work as well, I wasn;'t even thinking of general solutions, just a direct answer to your question of how to write that value. The booloader entry is probably the better choice.

Offline

#5 2013-11-28 05:24:05

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved] Persistent change of filesystem scheduler?

If you have more than one disk and you would like different schedulers on each, you could also use a udev rule to have this applied upon detection.  In fact, I think that a udev rule is probably more appropriate than tmpfiles.d in any case.  But if you want to have deadline on everything, what you did is probably sane.

But you should know that these days, there is really not much reason to change from the default cfq.

Offline

#6 2013-11-29 04:27:53

whaler
Member
From: Oslo, Norway
Registered: 2008-03-25
Posts: 323

Re: [Solved] Persistent change of filesystem scheduler?

WonderWoofy wrote:

(...) But you should know that these days, there is really not much reason to change from the default cfq.

Except for / and /boot, where I have ext4 and vfat, I use JFS on all partitions - possibly for sentimental reasons since my OS/2 years smile

The other day I happened to read the Wiki article on JFS, which prompted me to try 'deadline'. It may well be psychological, but I seem to notice a boost... However, the article may also be somewhat outdated and I am not an expert on scheduling, so I would be interested in reasons to choose CFQ over deadline.

Offline

Board footer

Powered by FluxBB