Giter Site home page Giter Site 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/novascript/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

cat5tv avatar dctxmei avatar novaspirit avatar puregrain avatar sherylynn avatar

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.