Enabling & Increasing Raspberry Pi Swap

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:
1. Temporarily Stop Swap:
2. 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:
3. Initialize Swap File
4. Start Swap
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.
Category: Tekno