photobooth-app / wigglecam

Experimental wigglecam based on picamera2 and raspberry pi 5
MIT License
0 stars 0 forks source link

Optimize Memory Consumption for Pi Zero2 #1

Open mgineer85 opened 3 weeks ago

mgineer85 commented 3 weeks ago

Optimize Memory for Pi Zero 2

Before total: 427 started: avail: 303 swap used: 2 app started and in idle: avail: 87 swap used: 77 app started some photos taken: avail: 200 swap used: 150

After total: 459 started: avail: 330 swap used: 0 app started and in idle: avail: 106 swap used: 2 app started some photos taken: total: 200 swap used: 25

sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.service
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily.service
gpu_mem=32
arm_boost=0
max_framebuffers=1
dtoverlay=disable-bt
dtparam=audio=off
mgineer85 commented 1 week ago

should be fixed by switching to YUV420 now for main/lores: https://github.com/raspberrypi/picamera2/discussions/1158 also disable denoiser in pipeline to avoid sync issues.