Raspberry Pi RAM Swap drive
Posted: Fri Jan 06, 2023 11:43 am
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
Make it executable.
Edit this file to run on startup
add line before
Source: (always check before installing from any source) https://github.com/ric96/zram_rpi3
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
Code: Select all
sudo chmod +x /usr/bin/zram.sh
Code: Select all
sudo nano /etc/rc.local
Code: Select all
exit 0 /usr/bin/zram.sh &