Project

General

Profile

Support #969

Increase Swap File Size on Raspberry Pi OS

Added by Daniel Curtis almost 3 years ago. Updated almost 3 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

#1

Updated by Daniel Curtis almost 3 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved
#2

Updated by Daniel Curtis almost 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF