Last active
November 5, 2022 14:04
-
-
Save C0nw0nk/d617d0842bd6d3a1b53903484aa1164b to your computer and use it in GitHub Desktop.
RaspberryPI VRAM boost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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