@bhepler
in general it’s not bad for a raspi3 to increase the swapfile from 100MB to a higher level.
at first check your status:
sudo service dphys-swapfile status
U see something like this:
● dphys-swapfile.service - LSB: Autogenerate and use a swap file
Loaded: loaded (/etc/init.d/dphys-swapfile)
Active: active (exited) since Mi 2016-11-30 13:17:14 CET; 6h ago
Process: 613 ExecStart=/etc/init.d/dphys-swapfile start (code=exited, status=0 /SUCCESS)
Nov 30 13:17:13 raspi3 systemd[1]: Starting LSB: Autogenerate and use a swa…
Nov 30 13:17:14 raspi3 dphys-swapfile[613]: Starting dphys-swapfile swapfile…
Nov 30 13:17:14 raspi3 dphys-swapfile[613]: want /var/swap=1024MByte, checki…t
Nov 30 13:17:14 raspi3 dphys-swapfile[613]: done.
Nov 30 13:17:14 raspi3 systemd[1]: Started LSB: Autogenerate and use a swap…e.
Hint: Some lines were ellipsized, use -l to show in full.
Maybe u have 100MB instead of 1024 like in my case.
If u want to change this value the edit your
sudo nano /etc/dphys-swapfile
change to this value and save your file
CONF_SWAPSIZE=1024
the do a
sudo dphys-swapfile setup
and activate your new swap level:
sudo dphys-swapfile swapon
thats all. Now your System can handle wit more than his physical RAM.
In My case i do in raspi-config a new
“Expand File system”
to reorganize the file system an reboot after that my raspi.
If you are a owner of a raspi 2 it’s more common to change the swap file to max 512MB.
please inform me what’s your experience after this change
you can also check very niche your tasks mem, swap and other things in a ssh session on your PC with htop
sudo apt-get install htop
have a nice try