You need to edit the config.txt file to get max ram memory, instead of using memory for the gpu. I think the lowest is 16mb like this gpu_mem=16. If you don't want to use the gpu, like some headless linux box.
Take a look at this page.
https://elinux.o...
Take a look at this page.
https://elinux.o...