Azitech

Azimout's Linux weblog

Linux settings for SSD drives

leave a comment »

I recently bought an SSD drive (a Samsung 840 Pro series MZ-7PD256BW) for my root, boot and home partitions. The speed increase and system responsiveness of my Ubuntu Desktop system is really impressive; that’s what I call money well spent!

Here are a few settings to change in your Linux system to increase the lifetime of your SSD drive:

  • enable TRIM in /etc/fstab (add the ‘discard’ option to each SSD partition)
  • add the ‘noatime’ and ‘nodiratime’ options in /etc/fstab
  • enable TRIM in /etc/lvm/lvm.conf (change the value of ‘issue_discards’ to 1)
  • move /tmp to RAM (add the following line to /etc/fstab: tmpfs /tmp tmpfs size=512m 0 0)
  • minimize the use of swap memory (set vm.swappiness=1 in /etc/sysctl.conf)

Reference: https://wiki.archlinux.org/index.php/Solid_State_Drives

Advertisements

Written by azimout

03/04/2013 at 19:34

Posted in Reference

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: