translator
11,127
edits
(Created page with "Далее необходимо включить раздел подкачки с помощью команды {{ic|swapon}}. Следуя нашему примеру выш...") |
(Created page with "=Использование файла подкачки=") Tags: Mobile web edit Mobile edit |
||
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 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. |