User Tools

Site Tools


swapfile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
swapfile [2024/04/30 21:10] wigumsswapfile [2024/07/23 16:19] (current) – external edit 127.0.0.1
Line 1: Line 1:
 i dont bother with swap as ive ALMOST never needed it. if you find yourself in a situation where you do need swap just spin up a swapfile. i dont bother with swap as ive ALMOST never needed it. if you find yourself in a situation where you do need swap just spin up a swapfile.
  
-create a file with the size of swap space you want. Let’s say that I want to add GB of swap space to my system. Use the fallocate command to create a file of size 32 GB.+create a file with the size of swap space you want. Let’s say that I want to add 32 GB of swap space to my system. Use the fallocate command to create a file of size 32 GB.
  
  
Line 23: Line 23:
  
 <code>swapon /swapfile</code> <code>swapon /swapfile</code>
 +
 +when youre done just do 
 +
 +<code>swapoff /swapfile</code>
 +
 +if you want to reclaim your disk space just rm it
 +
 +<code>rm -rf /swapfile</code>
  
swapfile.1714511451.txt.gz · Last modified: 2024/07/23 16:19 (external edit)