Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th March 2012, 12:17 PM
rehcla's Avatar
rehcla Offline
Registered User
 
Join Date: Sep 2005
Location: Austria
Age: 32
Posts: 47
linuxfirefox
Changing disk schedule to noop in F16

Hi all!

I try to setup my SSD Drive and followed the new "SSD Guide" in this forum:

Quote:
Eliminate "Elevator" disk scheduler. [PERFORMANCE, RELIABILITY]

Rotating disks use the 'elevator' algorithm to schedule block access. This algorithm makes no sense for a SSD media where there are no cylinders and seek time is nearly constant.

Individual drives can use distinct scheduling algorithms by adding the following line to /etc/rc.d/rc.local
echo noop > /sys/block/sda/queue/scheduler
My problem is, that I cant find the file /etc/rc.d/rc.local on my Fedora 16 system!
Until now, I was editing /etc/sysctl.conf and adding a line;

Quote:
block.sdb.queue.scheduler = noop
but that is not advised anymore!

Can someone point me in the right direction here?

Greetings
Reply With Quote
  #2  
Old 28th March 2012, 12:22 PM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
linuxfirefox
Re: Changing disk schedule to noop in F16

No - that won't work. Never did.
The sysctl.conf file manipulates the pseudo filesystem under /proc/sys NOT /sys


Quote:
My problem is, that I cant find the file /etc/rc.d/rc.local on my Fedora 16 system!
Just create the file as an executable bash script owned by root.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 28th March 2012, 12:34 PM
rehcla's Avatar
rehcla Offline
Registered User
 
Join Date: Sep 2005
Location: Austria
Age: 32
Posts: 47
linuxfirefox
Re: Changing disk schedule to noop in F16

Hi Stevea!

Thanks for the quick reply!

Ho do I do that?
Just create the /etc/rc.d/rc.local file and make it executable via chmod?

Thanks
Reply With Quote
  #4  
Old 28th March 2012, 02:29 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,613
linuxfirefox
Re: Changing disk schedule to noop in F16

would adding the kernel parameter elevator=noop do the same thing without having to go about all of the script stuff?

Edit:

Forget that. You can't set it for just one drive using the kernel parameter. It would set it for all drives.

and you are correct..

Just create the create the /etc/rc.d/rc.local file and make it executable via chmod.

If systemd doesn't automatically pick it up once it is created and set executable, the try enabling the rc-local.service.

Code:
systemctl enable rc-local.service

Last edited by DBelton; 28th March 2012 at 02:44 PM.
Reply With Quote
  #5  
Old 28th March 2012, 04:09 PM
Gareth Jones Offline
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,689
linuxfirefox
Re: Changing disk schedule to noop in F16

I suspect that the preferred method these days would be to add a udev rule rather than use rc.local. At a guess something like
Code:
ACTION=="add", KERNEL=="sda", RUN+="echo noop > /sys/block/sda/queue/scheduler"
in e.g. /etc/udev/rules.d/50-ssd.rules, but I don't know if that's quite correct. Also, there may be a more general way of detecting whether a device is solid-state or rotating (although if there was I'd assume udisks would already do so, so maybe not).
Reply With Quote
Reply

Tags
changing, disk, f16, noop, schedule

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Size of the disk space is changing bharatt Using Fedora 3 13th December 2008 06:42 PM
schedule Zyqwux Fedora Core 5 - Dev 7 15th January 2006 07:00 AM
Is FC4 on schedule ? Joe48 Programming & Packaging 39 7th June 2005 09:44 PM
New FC3 Schedule ilja News 23 8th July 2004 08:44 PM


Current GMT-time: 14:36 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat