Difference between revisions of "Swap/fr"

Created page with "=Utiliser un ficher swap="
(Created page with "Pour assurer que le swap est activé au démarrage (« boot ») il faudra ajouter une entrée au fichier {{ic|/etc/fstab}}. Comme d'habitude, il vaut mieux utiliser le UUID qu...")
(Created page with "=Utiliser un ficher swap=")
Line 109: Line 109:
{{note|Be sure to replace /dev/sda3 in the above commands with your actual swap partition.}}
{{note|Be sure to replace /dev/sda3 in the above commands with your actual swap partition.}}
{{tip|''If you're using a HDD'' (spinning rust) put the swap partition *at the beginning of the disk* as the speed of the disk is higher on the inside tracks. On an SSD this doesn't matter.}}
{{tip|''If you're using a HDD'' (spinning rust) put the swap partition *at the beginning of the disk* as the speed of the disk is higher on the inside tracks. On an SSD this doesn't matter.}}
=Using a Swapfile=
=Utiliser un ficher swap=


Using a swap partition has one major disadvantage:  Changing the size of swap or adding swap requires repartitioning the disk.  In current Linux kernels, it is possible to use a swap file instead of a dedicated partition and as from kernel 2.6 onwards there is no performance difference any more between the two.
Using a swap partition has one major disadvantage:  Changing the size of swap or adding swap requires repartitioning the disk.  In current Linux kernels, it is possible to use a swap file instead of a dedicated partition and as from kernel 2.6 onwards there is no performance difference any more between the two.
Moderators, translator
286

edits