Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do I optimize the OS for SSDs?

I need to tweak my Dell XPS 13z SSD for maximum performance and life cycle than I read the solutions explained here, but it is for 11.10 and my fstab is different.

For now my fstab is looks like this:

    proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=abf5ce9e-bdb7-4b2f-a7bd-bbd9efa72a98 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sda2 during installation
UUID=491427b2-7482-4483-b6eb-7c564b991aff /home           ext4    defaults        0       2
# swap was on /dev/sda3 during installation
#UUID=7551000d-e708-4e0f-9fd2-9f93119f63fb none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0
tmpfs     /tmp         tmpfs      mode=1777

And my rc.local is looks like this:

echo noop > /sys/block/sda/queue/scheduler
echo deadline > /sys/block/sda/queue/scheduler
echo 1 > /sys/block/sda/queue/iosched/fifo_batch

exit 0

Do you have any suggestions, what should I do?


share|improve this question

marked as duplicate by Eliah Kagan, Thomas Ward, jokerdino, Amith KK, Mitch Jul 18 '12 at 16:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

"maximum performance and life cycle" those 2 things wont be maxed at even rates – Dr_Bunsen Jun 13 '12 at 9:08
Consider just not worrying about it. I'm using 2 SSDs and see a massive performance increase with no tweaks. The life cycle concerns have been debunked as well. Also, try editing your fstab to mount by label instead of UUID if you are seeing duplicate entries in Nautilus, it's a known bug. – Tom Brossman Jun 13 '12 at 11:41
up vote 3 down vote accepted

There are lots of tips out there for tweaking your SSD in Linux and lots of anecdotal reports on what works and what doesn’t. Below are things that can be done to improve performance.

  • Prominent Tweaks
  • Eschewing Access Times
  • Enabling TRIM
  • Tmpfs
  • Switching IO Schedulers

These are some things that you can try. For complete explanation on how to use the above mentioned steps, Have a look at How to Tweak Your SSD in Ubuntu for Better Performance and How to tweak and optimize SSD for Ubuntu, Linux Mint


share|improve this answer

Link you are referring to is totally valid for 12.04 as well. However:

Your fstab looks different because partitions are specified using UUID's, rather than device labels as it is done in this answer.
Google for "fstab uuid vs label", and you'll see there is no real technical difference.

/sys/block/sda/queue/scheduler can accept only one value, but are setting scheduler to noop and then to deadline. Remove this line, it's not needed:

echo deadline > /sys/block/sda/queue/scheduler
share|improve this answer

Your second line countermands your first line, changing the scheduler from noop to deadline. Don't do that.

share|improve this answer
This is a comment, not an answer, right? – Tom Brossman Jun 14 '12 at 6:54
@TomBrossman, no? – psusi Jun 14 '12 at 14:27
Had to read it again, sorry. D'oh! – Tom Brossman Jun 14 '12 at 16:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.