Raspberry Pi RAM Swap drive

Anything on and off topic
User avatar
DJ-Daz
Site Admin
Posts: 463
Joined: Tue Nov 03, 2020 2:16 pm

Unread post

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
Image
──────────────────◉──────────────────                  
I◄◄⠀▐▐ ⠀►►I  ───○  02:05 / 04:10  ᴴᴰ ⚙ ❐ ⥂
Autism is a neuro-developmental condition characterised
by difficulties in social interaction and communication,
as well as restricted and repetitive behaviours or interests.
Post Reply