Changes between Version 3 and Version 4 of MaintenanceGuidelinesTips


Ignore:
Timestamp:
09/10/10 21:22:17 (11 years ago)
Author:
Fran Boon
Comment:

Adding a swapfile

Legend:

Unmodified
Added
Removed
Modified
  • MaintenanceGuidelinesTips

    v3 v4  
    6969 * http://sed.sf.net/
    7070
     71== Adding a swapfile ==
     72If you have a live system which you need to give extra swapspace too without a reboot, then can add a swapfile.
     73
     74Note that a swapfile is much slower than a swap partition, which is -of course- slower than memory. The reason for this is to save the ship when the boat's going down, not increase preformance.
     75
     76Create file:
     77{{{
     78dd if=/dev/zero of=/swapfile count=[size of swap, in 512B blocks]
     79}}}
     80Format it:
     81{{{
     82mkswap /swapfile -p 16384
     83}}}
     84Tell the kernel to use it at an lower priority (i.e. only use when swap parition is full):
     85{{{
     86swapon -p 16384 /swapfile
     87}}}
     88
     89
    7190----
    7291MaintenanceGuidelines