Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4971

General discussion • Re: When will there be a Raspberry Pi with at least 16GB of memory?

$
0
0
Just noticed there is nothing in the official Raspberry Pi documentation that tells you how to increase the amount of swap allocated on Raspberry Pi OS. The default is 200MB (100MB on older releases). Here's how to increase it:

Edit the file /etc/dphys-swapfile:

Code:

sudo nano /etc/dphys-swapfile
Change the line that reads:

Code:

CONF_SWAPSIZE=200
To something more reasonable, for example:

Code:

CONF_SWAPSIZE=2048
for a 2GB swapfile. If you want a swap file bigger than 2GB, you will also need to change the line at the bottom of the file that reads:

Code:

#CONF_MAXSWAP=2048
Take the # symbol off the start of the line, and set this to whatever size you want the swap file to be, along with CONF_SWAPSIZE, e.g.:

Code:

CONF_MAXSWAP=8192
HTH

Statistics: Posted by andrum99 — Fri Jul 26, 2024 2:09 pm



Viewing all articles
Browse latest Browse all 4971

Trending Articles