You are not logged in.

#1 Yesterday 08:14:04

archbaby
Member
Registered: 2022-09-02
Posts: 20

How do I install the CFQ IO scheduler? [solved]

$ cat /sys/block/sdb/queue/scheduler
[none] mq-deadline kyber bfq

As you can see from the output of cat /sys/block/sdb/queue/scheduler, the CFQ IO scheduler is not there.
Now How do I install it?
Or is it already installed but not enabled?
Do I have to use another kernel version from the Arch repo?
Or do I have to compile a kernel version from kernel.org?

I'm currently using linux-lts 5.15.64-1 from the Arch repo.

Here are the outputs of the uname command:

$ uname -a
Linux ArchBaby 5.15.64-1-lts #1 SMP Wed, 31 Aug 2022 17:46:31 +0000 x86_64 GNU/Linux

$ uname -r
5.15.64-1-lts

Oh, and I'm using the "none" scheduler because I tried mq-deadline, kyber, and bfq, and "none" seemed to worked better with my slow USB stick (where I have Arch installed). I couldn't try out CFQ because it's not on the list.


I just want to know how to get the CFQ IO scheduler on Arch.

Thanks for all the help in advance. wink

Last edited by archbaby (Yesterday 10:10:38)

Offline

#2 Yesterday 08:21:14

stanczew
Member
Registered: 2021-03-02
Posts: 41

Re: How do I install the CFQ IO scheduler? [solved]

Offline

#3 Yesterday 08:27:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,018

Re: How do I install the CFQ IO scheduler? [solved]

BFQ maps the most to what CFQ used to be and has similar scheduling policies support for setting batch io and the like.

Offline

#4 Yesterday 08:33:50

archbaby
Member
Registered: 2022-09-02
Posts: 20

Re: How do I install the CFQ IO scheduler? [solved]

Thanks, stanczew and V1del, for the answers. Love you both! wink

How do I mark a a question "answered or solved"? Do I edit and append "[solved]" to the post's subject?

Last edited by archbaby (Yesterday 08:38:13)

Offline

#5 Yesterday 08:40:58

archbaby
Member
Registered: 2022-09-02
Posts: 20

Re: How do I install the CFQ IO scheduler? [solved]

big_smile Oh, and one more question: is using "none" as my IO scheduler safe?

Offline

#6 Yesterday 08:50:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 17,018

Re: How do I install the CFQ IO scheduler? [solved]

Yes add it ot the title by editing your first post. Depends on how you define "safe" none simply means your USB will be given all IO directly with any scheduling/priorisation happening that's generally not a pleasant experience on a slow USB stick if you do a lot of IO but it shouldn't be inherently more dangerous than doing anything else (... all of the writes will happen eventually anyway) the main benefits of the schedulers are mostly visible on HDDs to optimize head seek/movment times.

Offline

Board footer

Powered by FluxBB