Ceci est une ancienne révision du document !
Passer l'AHCI en SATA (au lieu de IDE)
Recherche driver Samsung SSD 840 PRO SATA
Max: 10 Go
Choisir une partition en ext4 et laisser 10Go non patitionnés
Note: don't select the BTRFS file system! Because under certain circumstances, BTRFS causes a huge amount of write actions.
With “noatime” in '/etc/fstab', you disable the write action “access time stamp”, that the operating system puts on a file whenever it's being read by the operating system. For an SSD “noatime” is much better.
sudo apt-get install gksu leafpad
gksudo leafpad /etc/fstab
Modifier le fichier /etc/fstab
pour ajouter la noatime (mais pas pour la ligne de la partition de swap).
Exemple:
UUID=f0ae2c59-83d2-42e7-81c4-2e870b6b255d / ext4 noatime,errors=remount-ro 0 1
Le TRIM est nécessaire pour que le SSD conserve de bonne performances sur le long terme.
gksudo leafpad /etc/rc.local
Avant la ligne contenant le exit 0
il faut ajouter autant fstrim
qu'il y a de partitions EXT4 partition. (ne concerne pas la partition de swap).
Exemple avec une seule partition root : rc.local
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. fstrim / exit 0
Il est toujours possible d'exécuter le TRIM manuellement (prend du temps : à faire lorsqu'il n'y a pas d'activité sur le SSD) :
sudo fstrim -v /
In Ubuntu 14.04 and Linux Mint 17.2, disable the now superfluous weekly cron job for TRIM:
sudo mv -v /etc/cron.weekly/fstrim /fstrim
With that command you've transferred the script file fstrim to the root directory, thus disabling it.
For computers that are always on (24 hours a day, seven days a week), a TRIM action that's being executed when booting, is of course not useful.
You can schedule a daily trimming as follows:
gksudo leafpad /etc/cron.daily/trim
Copier le code suivant dans un fichier:
#!/bin/sh # call fstrim-all to trim all mounted file systems which support it set -e # # This only runs on Intel and Samsung SSDs by default, as some SSDs with # faulty firmware may encounter data loss when running fstrim under high I/O # load (e. g. https://launchpad.net/bugs/1259829). You can append the # --no-model-check option here to disable the vendor check and run fstrim on # all SSD drives Like this (remove the hash): #exec fstrim-all --no-model-check exec fstrim-all
Enregistrer.
Rendre le fichier exécutable:
sudo chmod +x /etc/cron.daily/trim
10. With the action described below, you limit the use of the swap partition (the virtual memory on the SSD). Without disabling it entirely, because that would go too far: in case of extreme RAM load, Ubuntu has to be able to “swap”.
Ubuntu's inclination to use the swap, is determined by a setting. The lower the setting number, the more system load is required before Ubuntu starts using the swap.
On a scale of 0-100, the default setting is 60. Which is much too high for normal desktop use, and only fit for servers. For SSD's, it's just crazy.
A detailed explanation can be found here (link dead? Then download this pdf file with the same content).
Now the how-to:
a. First make sure that you have installed the applications gksu and leafpad.
b. Now check your current swappiness setting. Type in the terminal (use copy/paste):
cat /proc/sys/vm/swappiness
Press Enter.
The result will probably be 60.
c. Now type in the terminal (use copy/paste):
gksudo leafpad /etc/sysctl.conf
Press Enter.
d. Add the following blue lines, at the very end of the existing text in that file (use copy/paste to avoid errors):
# Sharply reduce swap inclination vm.swappiness=1
e. Save the file and close it.
f. Now proceed to the next item.
Almost ready after reboot
11. Reboot your computer.
Rebooter :
sudo shutdown -r now
sudo mv -v /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla /
Pour remettre en place l'hibernation :
sudo mv -v /com.ubuntu.enable-hibernate.pkla /etc/polkit-1/localauthority/50-local.d
Il existe une option dans le paramétrage du disque pour dire qu'il fonctionne sur un SSD.
Set the cache to 0: Firefox menu button (with the three dashes on it) - Preferences - Advanced Tab Network section “Cached Web Content”: tick Override automatic cache management and set the cache to 0 MB.
The write actions of Google Chrome and Chromium can be limited as follows.
- Launch Chrome / Chromium.
- Now press the F12 key, in order to open the developers' console. Click on the little gear wheel in the panel of the console, in order to open the settings.
In the settings window you tick: Disable cache (while DevTools is open).