Change I/O scheduler to NOOP when installing in SSD Drive or virtual machines

Bug #390247 reported by Cleber Santz
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Wishlist
Unassigned
Nominated for Karmic by Cleber Santz

Bug Description

  When install Linux in SSD Drives ( EeePC, pendrive, etc ) or Virtual machines the default Linux I/O scheduler ( CFQ ) make disk access very slower, causing sometimes system/application freeze.

  If the scheduler is changed to NOOP the access to disk have a big improvement :

  Kernel compilation
  CFQ : 4161 seconds
  NOOP: 3653 seconds ( 13% faster )

  Link: http://www.alphatek.info/2009/02/02/ssd-performance-vs-linux-kernel-io-scheduler-in-fedora-10/

  "The NOOP scheduler is a simple FIFO queue and uses the minimal amount of CPU/instructions per I/O to accomplish the basic merging and sorting functionality to complete the I/O. It assumes performance of the I/O has been or will be optimized at the block device (memory-disk) or with an intelligent HBA or externally attached controller."

  Link: http://www.redhat.com/magazine/008jun05/features/schedulers/

  But, the most end-users don't know about this option/tunning and will very helpful automatic add "elevator=noop" to kernel initialization when ubiquity is installing Ubuntu in this devices.

description: updated
tags: added: feature request
Phillip Susi (psusi)
Changed in ubiquity (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

I saw a very easy way to add this here: http://www.danielscottlawrence.com/should-i-changing-my-disk-scheduler-to-noop-from-cfq-for-my-ssd/#comment-144

using a udev rule like this:

ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="noop"

Revision history for this message
Pander (pander) wrote :

There are multiple tips and tricks to improve performance and longevity of SSD such as https://sites.google.com/site/easylinuxtipsproject/ssd and https://askubuntu.com/questions/674320/what-ssd-optimization-are-needed-on-latest-ubuntu-version and https://wiki.debian.org/SSD%20Installation Could these be included in the installer?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers