Skip to content

Instantly share code, notes, and snippets.

@C0nw0nk
Last active November 5, 2022 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save C0nw0nk/d617d0842bd6d3a1b53903484aa1164b to your computer and use it in GitHub Desktop.
Save C0nw0nk/d617d0842bd6d3a1b53903484aa1164b to your computer and use it in GitHub Desktop.
RaspberryPI VRAM boost
#!/usr/bin/env bash
sudo wget -q https://git.io/vM1kx -O /tmp/rpizram && bash /tmp/rpizram
sudo nano /etc/sysctl.conf
vm.vfs_cache_pressure=500
vm.swappiness=100
vm.dirty_background_ratio=1
vm.dirty_ratio=50
echo 16384 | sudo tee /proc/sys/fs/inotify/max_user_watches
echo fs.inotify.max_user_watches=16384 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
echo 'CHROMIUM_FLAGS="${CHROMIUM_FLAGS} --enable-features=VaapiVideoDecoder"' | sudo tee /etc/chromium.d/92-vaapi-hardware-decoding
sudo nano /etc/rc.local
echo Y | sudo tee /sys/module/zswap/parameters/enabled
echo z3fold | sudo tee /sys/module/zswap/parameters/zpool
echo lzo | sudo tee /sys/module/zswap/parameters/compressor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment