Enabling & Increasing Raspberry Pi Swap! 🖥️

parmarjatin4911@gmail.com - Jan 11 - - Dev Community

Note. Due to RAM limitations in Raspberry Pi 3 and earlier versions, we now recommend ALL users to use Neblio with Raspberry Pi 4. Any model of Raspberry Pi 4 should work, models with more RAM are more likely to run Neblio.

Users of Neblio who stake on Raspberry Pis earlier than the Raspberry Pi 3 (such as the Original Raspberry Pi, Raspberry Pi Zero, and potentially the Raspberry Pi 2) may benefit from a significant increase in performance by enabling and/or increasing the size of the Raspberry Pi's swap file.

To enable the Raspberry Pi swap file and set it to a size of 1 GB (1024 MB), run the following commands on the Raspberry Pi in a terminal window:

COPY and Paste Terminal

  1. Temporarily Stop Swap:

sudo dphys-swapfile swapoff

  1. Modify the size of the swap

As root, edit the file /etc/dphys-swapfile and modify the variable CONF_SWAPSIZE to 1024:

CONF_SWAPSIZE=1024

Using a command such as:

sudo nano /etc/dphys-swapfile

  1. Initialize Swap File

sudo dphys-swapfile setup

  1. Start Swap

sudo dphys-swapfile swapon

That's it! Now simply restart neblio-Qt or nebliod on your Raspberry Pi for increased performance!

Note: Using a swap file could potentially result in an increase in writes & reads to your Raspberry Pi's SD card, possibly lowering the lifespan of the card. However in most cases Raspbian ships with a default swap file with a size of 100 MB and in this case we are simply increasing that to 1024 MB.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .