Raspberry PiでSwapをOn/Off
1.使用量はこれで見れる
>free -h
2.以下で無効化(sudoを付けて実行)
> sudo swapoff --all
> sudo systemctl stop dphys-swapfile
> sudo systemctl disable dphys-swapfile
> systemctl status dphys-swapfile
3.戻すときは、上を逆に
> sudo systemctl start dphys-swapfile
> sudo systemctl enable dphys-swapfile
> systemctl status dphys-swapfile