As a general guideline for Pi development, start big then work down after you are way into development. The bigger and faster the machine, the faster the development. You can also run measurements to see what is happening for CPU and memory. And use USB 3 SSD.
I tried to develop on a target device and ran into paging which then made things time out and crash. The other effect is the unknown usage. You start with 1 GB. See it is not enough. Buy 2 GB. See it is not enough. Buy 4 GB. See it is not enough. Buy 8 GB. Then development runs full speed. You also get the overhead to run tests like valgrind to find problem code, improving reliability and sometimes reducing code overhead.
I developed on 4 GB machine at one stage and found regular usage at about 1.6 GB but occasional peaks at 2.6 or higher. Using insufficient memory and a microSD seems to slow paging down to a crash no matter how fast the card. USB 3 SSD handles the paging fast enough to not crash.

I tried to develop on a target device and ran into paging which then made things time out and crash. The other effect is the unknown usage. You start with 1 GB. See it is not enough. Buy 2 GB. See it is not enough. Buy 4 GB. See it is not enough. Buy 8 GB. Then development runs full speed. You also get the overhead to run tests like valgrind to find problem code, improving reliability and sometimes reducing code overhead.
I developed on 4 GB machine at one stage and found regular usage at about 1.6 GB but occasional peaks at 2.6 or higher. Using insufficient memory and a microSD seems to slow paging down to a crash no matter how fast the card. USB 3 SSD handles the paging fast enough to not crash.
Statistics: Posted by peterlite — Wed Feb 28, 2024 11:43 pm