Option to increase swapfile size for memory limited systems e.g. RPi Zero 2
rikgale opened this issue · 1 comments
Would it be possible to add something to the install script to increase the size of the swapfile on memory limited systems e.g. Raspberry Pi Zero 2?. Running more that about 7 containers in Docker will cause the Pi to lock up on boot when starting the containers due to lack of available RAM/default swap file size.
If this is doable I would give the user the option to input value to setswap file with a suggested minimum of 512Mb, but that 1024Mb give more flexibility and futureproofness. Although, would also warn user that this will increase wear on SD card. Also set to use the swapfile as a last resort?
Also set gpu_mem=16
in \boot\config.txt
to free up a bit more RAM
I believe that more users will start to run feeders on Zero 2's when available and this will reduce the risk of them getting lock-up.
Thanks for considering.
After discussing with the team, we feel that although this is an important thing to do, it goes beyond the intention of this script. We want to minimize the risk involved with running the script,. Changing swap file size and reducing GPU memory sizes is something we want the user to consciously and manually rather than "under the hood" as part of an install script.
As such, we regretfully decline adding this feature at this time.