Code Monkey home page Code Monkey logo

rpi_zram's Introduction

PureGrain-patch-readme

RPI_ZRAM by Don (@novaspirit)

This script will enable ZRAM on a Raspberry Pi

rpi_zram

Script to dynamically enable ZRAM on a Raspberry Pi or other Linux system.

Automatically detects the number of CPU cores to allocate to ZRAM computation, disables existing swap and enables ZRAM swap.

Quick Installer

Install RPI_ZRAM from your Raspberry Pi's shell promt:

sudo wget -q https://git.io/vM1kx -O /tmp/rpizram && bash /tmp/rpizram

The installer will complete the steps in the manual installation (below) for you.

Manual Installation

Download the script and copy to /usr/local/bin/ folder

sudo wget -O /usr/local/bin/zram.sh https://raw.githubusercontent.com/novaspirit/rpi_zram/master/zram.sh

make file executable

sudo chmod +x /usr/local/bin/zram.sh

edit /etc/rc.local file to run script on boot

sudo nano /etc/rc.local

add line before exit 0

/usr/local/bin/zram.sh &

run the script to start your RPI_ZRAM sudo /usr/local/bin/zram.sh

See it in action

Use top, htop or atop. Which ever you prefer to view the swap memory in action or a simple free -m will do the trick

free -m

That command should output something like:

rpi_zram's People

Contributors

albonycal avatar cat5tv avatar dctxmei avatar novaspirit avatar puregrain avatar sherylynn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi_zram's Issues

Zero 2 compatibility

Hi Don, I tried running the scripted install listed on the main readme page. But it doesn't seem to work when running "free -m". Is this because Raspberry Pi OS is now on Bullseye? I was hoping this would help out the new Zero 2 I just got in the mail, but now I am just more confused. Thank you for all that you do!

it doesn't work

sudo nano /etc/rc.local DOES NOT MAKE ANY SENSE! it says "In order to enable or disable this script just change the execution bits." AND DOES NOT TELL YOU HOW TO DO IT!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.