Update 2: below I share how to enable TRIM for your SSD with the discard keyword. For some specific SSD models this may in fact cause file deletions you do to take more time than without the discard keyword. If that is the case for your SSD, here is the alternative of enabling TRIM with the fstrim command run once daily through cron: http://www.webupd8.org/2013/01/enable-t ... rives.html
Update: if you are using the MATE desktop, replace the editor "gedit" in below commands with "pluma". Or for KDE replace it with "kate.
Hi, first off, it is Klingon. You don't want to get caught by these guys misspelling their language
As for swap, that depends on how much main memory your machine has. (You can see this in Menu -> Control Center -> System Profiler and Benchmark, then under Devices click Memory and look at Total Memory--roughly devide by 1,000,000 to get to how much GB that is.) If you have 1GB or less, you really need swap. If you have around 2GB it depends on what you use your machine for (Internet and Office will run fine without swap, but if you do movie editing, rendering, DAW or such things you need swap). At 4GB or over you don't really need swap, I run without it. If however you want to hibernate your machine, you need swap at least equal to how much main memory your machine has.
On to optimizing for SSD. For this you need to open Terminal (find it in Menu). Normally the system is optimized to work with a normal harddisk, but this is actually all overhead for a SSD that is slowing the system down.To fix this, in Terminal type:
Enter your password when asked, and then change the line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
To:
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash elevator=noop"
Save & close the file. Then do the following to activate the changes from next reboot:
Next up, you need to find out if your SSD supports TRIM. Just copy & paste the following command string to the Terminal and execute it. When asked type your password (nothing will seem to happen as you type, this is normal):
Code: Select all
for h in /dev/sd?; do if [ `sudo hdparm -I $h | grep TRIM | wc -l` != 0 ]; then sudo hdparm -I $h | egrep "/dev/|Model"; fi; done
Did it list your SSD? Then it supports TRIM, if it didn't show anything your SSD doesn't support TRIM. Remember that, and continue with:
First the easy part, at the end of this file add the following line. These change it so temporary files are stored in memory instead of on your SSD.
Code: Select all
none /tmp tmpfs nodev,nosuid,mode=1777 0 0
Now for the hard part. Probably you have a line like something like the following in your file:
UUID=0c4de1f6-b77b-49d7-bccf-63c4268e8f43 / ext4 errors=remount-ro 0 1
You need to change the:
errors=remount-ro
To read (this disables writing to disk each time a file is read):
And if your SSD supported TRIM, instead change it to (this does the same as above, but enables TRIM use on your SSD):
Finally, save & close this file. Then run the following two commands. This will reboot your system to activate all changes.
After the rebot, you'll want to start Firefox, type in the address bar:
And hit enter. Accept the warning and continue. Right click on an empty part, and select New -> String from the context menu that popped up. Enter:
Code: Select all
browser.cache.disk.parent_directory
And give it the value:
This makes the Firefox cache also be stored in memory instead of on disk. If you have 2GB or less, you might not want to do this though.
Edit: some questions answered about mounting options and scheduler, here
http://forums.linuxmint.com/viewtopic.p ... 0&p=578163.