Support #969
Increase Swap File Size on Raspberry Pi OS
Start date:
02/09/2022
Due date:
% Done:
100%
Estimated time:
Description
The default swap size on Raspberry Pi OS is 100MB and my use case requires a little bit more than that. This is a guide to show how to increase the swap file size on Raspberry Pi OS (Debian Bullseye)
Increase Swap¶
- Turn the swap off:
sudo dphys-swapfile swapoff
- Edit the dphys-swapfile config:
sudo nano /etc/dphys-swapfile
- And change the following:
CONF_SWAPSIZE=1024
- And change the following:
- Update the swap file:
sudo dphys-swapfile setup
- Start the swap file:
sudo dphys-swapfile swapon
Resources¶
Updated by Daniel Curtis almost 3 years ago
- % Done changed from 0 to 100
- Status changed from New to Resolved