LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2015, 12:44 AM   #1
the dsc
Member
 
Registered: May 2009
Distribution: Debian
Posts: 175
Blog Entries: 243

Rep: Reputation: 47
Question Old-fashioned HDDs and multi-queue block layer / lack of I/O scheduler


I know less about it than it may sound... pretty much clueless, really.

If you don't have an SSD, would you be better off with the old "equivalent" of blk-mq, or however you'd properly phrase the previous state, with I/O schedulers instead? (Lacking as of kernel 3.17, and I think 3.18 too -- thread on Gentoo forums about this issue)



I ask because if I cat /sys/block/sda/queue/scheduler

The output is "none". The same for any "sd".


Is the previous state something that requires compiling a new kernel, or can it usually be set by grub parameters?


Answering myself on the last question, at least, it seems that "yes":


Quote:
Note:
Kernel defaults to using BFS CPU scheduler and CFQ IO scheduler.
Add elevator=bfq in kernel command line to use BFQ IO scheduler instead without recompiling.

https://pateo.wordpress.com/2014/08/...ng-2014-07-19/
Valid at least for liquorix 3.15 -- seems to not work anymore for the most recent one, 3.18. The grub line gave me "none" when I run "cat", and even echoing wouldn't change anything. With the stock Debian kernel it's normal, showing the scheduler set at boot time.

Last edited by the dsc; 02-14-2015 at 01:31 AM. Reason: found sort of 8/10 of an answer
 
Old 02-14-2015, 10:08 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Yes, you can compile multiple i/o schedulers into the kernel and select them by passing a boot parameter to the kernel.

Last edited by Keruskerfuerst; 02-14-2015 at 12:38 PM.
 
1 members found this post helpful.
  


Reply

Tags
hdd, scheduler



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Lock-Free Multi-Producer Multi-Consumer Queue on Ring Buffer LXer Syndicated Linux News 0 06-13-2013 01:01 AM
scheduler for multi core architecture sachinchhatna Linux - Software 3 07-06-2012 12:04 PM
Need layer 7 filter rule to block .teamviewer tranceash Linux - Security 2 07-27-2009 02:30 PM
best way to block layer ads in firefox? ylikone Linux - Software 2 04-25-2005 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration