Swap files

From Bitnami MediaWiki
Revision as of 18:46, 11 July 2024 by User (talk | contribs) (Created page with "===Creating a swap file=== Te create a swapfile on the fly, without partitioning etc., do the following: # makeswap -U clear --size XG --file /swapfile Activate it: # swap...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creating a swap file

Te create a swapfile on the fly, without partitioning etc., do the following:

 # makeswap -U clear --size XG --file /swapfile

Activate it:

 # swapon /swapfile

Last, add an entry to the filesystem table (fstab):

 /swapfile  none  swap defaults 0 0