Raspberry Pi Optimizations and Tricks

Raspberry Pi Optimizations and Tricks

raspberry pi

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