Linux Raspberry Pi - increase swap size (virtual memory)
Hello, I need to increase swap size on my raspberry pi - by default, I only have 99 MB swap enabled by default.
root@raspberry:~ $
Thanks
Hello, You can enlarge the swap size of raspberry as follows:
root@raspberry:~ $
root@raspberry:~ $
free -h
total used free shared buff/cache available
Mem: 926Mi 429Mi 75Mi 46Mi 421Mi 391Mi
Swap: 99Mi 81Mi 18Mi
Thanks
REPLY
Hello, You can enlarge the swap size of raspberry as follows:
dphys-swapfile swapoff
CONF_SWAPSIZE=2048
dphys-swapfile swapon
reboot
root@raspberry:~ $
free -h
total used free shared buff/cache available
Mem: 926Mi 116Mi 665Mi 6.0Mi 144Mi 751Mi
Swap: 2.0Gi 0B 2.0Gi