4 MB.
That's the main system memory, with a small amount of additional VRAM shared between the two screens. It's a big part of why DS games were built around cartridges with their own onboard data rather than loading everything into RAM.