Raspberry Pi Optimizations and Tricks
Raspberry Pi Optimizations and Tricks
- https://github.com/azlux/log2ram
- https://piratebox.cc/raspberry_pi:mods
- https://smalldata.tech/blog/2019/07/12/setting-up-a-raspberry-pi-4-home-server
- https://haydenjames.io/raspberry-pi-performance-add-zram-kernel-parameters/
Current working plan:
echo "
# default 3000 => 30s , we use 5 minutes = 30000
vm.dirty_expire_centisecs = 30000
vm.vfs_cache_pressure=500
vm.swappiness=100
vm.dirty_background_ratio=1
vm.dirty_ratio=50
" > /etc/sysctl.d/50-sdcard.conf
sudo apt install zram-tools
sudo apt purge dphys-swapfile
sudo sed -i '/^ALLOCATION=.*$/ALLOCATION=1024/' /etc/default/zramswap
Share this post
Twitter
Facebook
Reddit
LinkedIn
StumbleUpon
Pinterest
Email