Swap linux

From Teknologisk videncenter
Revision as of 12:50, 4 April 2024 by Heth (talk | contribs) (Created page with "Using file as temporary swap <source> free ... dd if=/dev/zero of=/swapfile bs=1M count=1000 # Create swapfile on 1GB chmod 0600 /swapfile # Make it secure mkswap /swapfi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Using file as temporary swap

free
...

dd if=/dev/zero of=/swapfile bs=1M count=1000    # Create swapfile on 1GB 
chmod 0600 /swapfile # Make it secure
mkswap /swapfile   # Prepare swapfiile for use
swapon /swapfile   # Start usiong it
free
....