ADDING A SWAP FILE:
mkdir /var/swap
chmod 700 /var/swap
(create 64 nb in cfdisk swap file)
dd if=/dev/zero of=/var/swap/file1.swp bs=1024 count=65536
mkswap /var/swap/file1.swp
add to /etc/fstab to be mounted with startup
/var/swap/file1.swp swap swap defaults 0 0
free --> shows the condition of the memory
swapon /var/swap/file1.swp
free
|