Bunz_of_Steel wrote:I have fresh install Mint 14 with 32G ram and OCZ Vertex 4 SSD(256G), 2TB HDD.
Looking to optimize my system and considering moving swap to HDD not SSD.
Some tips to keep your SSD alive a lot longer...
Turn off ext4 journallingWhen installing Mint, before running the installer, open a terminal and turn off journalling, and set the fs to be checked at regular intervals:
- Code: Select all
$ sudo mke2fs -t ext4 -O ^has_journal /dev/sda1
$ sudo tune2fs -o journal_data_writeback /dev/sda1
$ sudo tune2fs -m 5 /dev/sda1
$ sudo tune2fs /dev/sda1 -i 7d
$ sudo tune2fs /dev/sda1 -c 15
$ sudo tune2fs -l /dev/sda1
Then run the installer and choose to install to the SSD with / as the mount point, but don't format it. The installer will give you a warning that can be ignored.
When the install is completed, reboot and edit etc/fstab. Change the / mount point options to:
- Code: Select all
data=writeback,noatime,discard
Making use of RAMWhile you're editing fstab, mount tmp and logs into RAM so they get deleted on every reboot or shutdown:
- Code: Select all
tmpfs /tmp tmpfs noatime,nodev,nosuid,noexec,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0
If you use firefox, set it to use memory as for its cache:
- Code: Select all
about:config
Add a new string key named:
- Code: Select all
browser.cache.disk.parent_directory
set its value to:
- Code: Select all
/tmp
The other tips you've received to set swapiness and not have a swap partition can also be applied. However in xenopeeks example, he's using the fact that you've already created the swap partition. Simply don't create one during the next installation you do. That way you don't have to later delete the partition or comment out the entry in fstab. If you get a warning about no swap during the installation, simply ignore it.
When you've added /tmp and /var/logs to fstab, don't use mount -a. You need to delete the contents of /var/log as root then reboot. If you don't do this then /var/log won't mount.
Also, see this thread
http://forums.linuxmint.com/viewtopic.php?f=47&t=126397, and read the wiki at the link.