Raspberry Pi 2 has 1,024MB RAM that is partitioned between the CPU and the GPU. If the Pi is working as a headless server or the Pi desktop is being accessed via VNC (which doesn't utilize the GPU) the memory split between the two processors can be altered to assign more memory to the CPU for running applications.
- Default GPU memory on Raspbian is set to 64MB and the
minimum recommended to ensure proper operation is 16MB.
- Pi Camera Module requires a minimum of 128MB
- Kodi Media center
requires a minimum of 256MB RAM for the GPU, to avoid choppy video
- edit /boot/config.txt and set gpu_mem=256;or
- run sudo raspi-config and select
option 8 Advanced Options -> A3 Memory Split
and modify value to 256