• Stars
    star
    342
  • Rank 123,697 (Top 3 %)
  • Language
    Shell
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

script to enable zram for raspberry pi

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:

More Repositories

1

pi-hosted

Raspberry Pi Self Hosted Server Based on Docker / Portainer.io
Shell
1,043
star
2

androidauto_rpi_install

auto install script to install android auto on raspberry pi
Shell
213
star
3

PiPicoMacroKeys

Python
84
star
4

macpanda

clover files for latte panda alpha to boot mac os mojave
81
star
5

Alpine_xfce4_noVNC

Simple and minimal Alpine Docker Image providing XFCE4 with html5 noVNC connection
HTML
69
star
6

oap_start_stop

Python
62
star
7

rpi_ubu64_desktop

53
star
8

rpi_conky

50
star
9

PicoMouseJiggler

Python
44
star
10

img2bytearray

This python program will convert an Image to Bytearray for microcontrollers screens ssd1306 / ssd1106
Python
34
star
11

bluetooth_fm_pi

Setup Script and resources for bluetooth audio fm radio transmitter
Shell
32
star
12

DIY_Camera_Slider

DIY Motorized WiFi Camera Slider
Arduino
21
star
13

rpi_fan_controller

simple python script for controller fan through board pin 6 on raspberry pi
Python
19
star
14

amdgpu-rocm-ubu22

Installing amdgpu drivers for ubuntu to work with davinci resolve and blender
14
star
15

linux_autoclicker

android auto clicke with linux and scrcpy
Shell
13
star
16

antiDDos

Collection of DDOS blocking methods
Shell
12
star
17

pizero_fpv

shell script to start video stream to android
Shell
12
star
18

pizero_startpage

This is the start page i use for raspberry pi zero usb dongle
HTML
12
star
19

wolf-m7m-cpuminer-V2-RPi

cpuminer v2 for raspberry pi
C
10
star
20

pi_timelapse

using raspberry pi camera module and timelapse script
Shell
9
star
21

papirus-nasstats

Python
7
star
22

rpios_desktop

7
star
23

sgminer

sgminer for SBC with MALI GPU
C
7
star
24

pi_gpio_php

Php site to operate gpio pins for raspberry pi
PHP
5
star
25

tinkerboard_Monitor_Script

shell script to read cpu freq - cpu temp - gpu temp for tinkerboard
Shell
5
star
26

tf101-nv-linux

Forked from nvidia.
C
3
star
27

piprox-arch

Install notes for installing arch linux on pi proxmox
3
star
28

disable_journaling

program to disable hfs plus journaling under ubuntu
C
2
star
29

Ubuntu_initrd-3.x

initrd for ubuntu used with 3.1.x
Shell
2
star
30

cm4_repo

1
star
31

tf101-linux-2.6.36

Stable Linux kernel for tf101. kernel version 2.6.36.4
C
1
star
32

eloipool

Python
1
star
33

config

config files for tf101.
1
star
34

android-toolchain-4.5.4

android tool chain linaro 4.5.4
C
1
star
35

ircBot

simple irc bot
PHP
1
star