This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docu:csheet:sysadm:mem:add_swapfile [2020/08/18 15:55] – created admin | docu:csheet:sysadm:mem:add_swapfile [2020/08/21 10:06] (current) – admin | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| # create an empty 1G file with 1024KB block size | # create an empty 1G file with 1024KB block size | ||
| dd if=/ | dd if=/ | ||
| + | |||
| + | # or... a simpler way to do it, using fallocate (if installed) | ||
| + | fallocate -l 1G / | ||
| + | |||
| # give the swap file 0600 perms | # give the swap file 0600 perms | ||
| Line 29: | Line 33: | ||
| # or the fancy htop viewer | # or the fancy htop viewer | ||
| htop | htop | ||
| - | |||
| - | </ | ||
| </ | </ | ||