Daily Archives: August 25, 2010

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)