Page 1 of 1

Raspberry Pi RAM Swap drive

Posted: Fri Jan 06, 2023 11:43 am
by DJ-Daz
If you have little use for the 2GB of RAM in a Raspberry Pi, then you could always use 1GB of it for a SWAP drive, this should improve performance for anyone running their Pi on a SD card.

If you want to use a SSD or USB Drive then checkout my easy as Pi tutorials here: https://the-bionic-cyclist.co.uk/catego ... tutorials/

As usual this is a quick and easy setup:
install ZRAM

Code: Select all

sudo wget -O /usr/bin/zram.sh https://raw.githubusercontent.com/ric96/zram_rpi3/master/zram.sh
Make it executable.

Code: Select all

sudo chmod +x /usr/bin/zram.sh
Edit this file to run on startup

Code: Select all

sudo nano /etc/rc.local
add line before

Code: Select all

 exit 0 /usr/bin/zram.sh &
Source: (always check before installing from any source) https://github.com/ric96/zram_rpi3