Ubuntu 10.04 SSD Tweaks

Reduce “swappiness” to 0

This prevents the swap file from being used unless it is actually needed, preventing unnecessary write cycles on the drive.


Edit /etc/sysctl.conf by using your favorite editor :
$sudo gedit /etc/sysctl.conf

If the line doesn’t exist, you will need to create it.

After reboot vm.swappiness is 0

Enable TRIM (if applicable)

Uninstall proprietary (ie, video card) drivers first. The 10.6 cats included didn’t like the newer kernel and it really garbled up the video driver install process.

Update to a newer kernel. 2.6.33+

Edit your /etc/fstab file so your SSD line looks like this:

UUID=of your SSD here / ext4 noatime,discard,errors=remount-ro 0 1

After reboot TRIM should function.

Links I found useful:

http://ubuntuforums.org/showpost.php…1&postcount=43 (swapiness syntax)
http://ubuntuforums.org/showthread.php?p=9740235 (fstab discussion)
https://help.ubuntu.com/community/RadeonHD (link to Kernel versions and an explanation of how to update)

http://forums.anandtech.com/showthread.php?t=2069761 (incredibly informative forum posting about SSD drives in general)



2 thoughts on “Ubuntu 10.04 SSD Tweaks

  1. Jesse Nicholson

    Hi there,

    Even following these instructions, i cant get this working it throws a mount error which is a real pain. I am running however the absolute latest kernel 2.38 rc2. Only step I didnt follow was to delete video drivers. Any thoughts??

  2. Nat Post author

    @Jesse Nicholson:

    Sorry to hear that! Like you mentioned, it might be a kernel issue so you might want to back off to a possible more predictable kernel. I find it hard to believe that it would be an issue with the video drivers, for me that manifested as an X issue. One thing you may want to try is to change the way the mount options are laid out. As I had found on the internet, http://ubuntuforums.org/showthread.php?t=1463870&page=12 , can you confirm the SSD entry in your fstab file reads like that? Good luck – sorry if my post has brought you trouble…

Leave a Reply

Your email address will not be published. Required fields are marked *