-
-
jjm
-
- Posts: 156
- Joined: Tue Dec 15, 2015 8:05 am
Sun Oct 09, 2016 10:34 am
by
jjm » Sun Oct 09, 2016 10:34 am
Hi,
dd if=/dev/zero of=/var/swapfile bs=1M count=128
chmod 0600 /var/swapfile
mkswap /var/swapfile
swapon -f /var/swapfile
1. Using the above commands can create a 128M size file as swap,you can change the size with the first command,after that you can use free command to check whether uses swap.
2. You should use the kernel which have opened to replace the SD card‘s, then you can type the above commands.