Project

General

Profile

Support #969

Increase Swap File Size on Raspberry Pi OS

Added by Daniel Curtis about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development
Target version:
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
      
  • Update the swap file:
    sudo dphys-swapfile setup
    
  • Start the swap file:
    sudo dphys-swapfile swapon
    

Resources

Also available in: Atom PDF