How to view the video memory of nano

Hi everyone:
The nano has 4G LPDDR4 memory. I wonder how much memory the gpu has?Any command tools?
When running the algorithm, the display is about 500M idle, which is far from enough.How do I allocate more memory to the gpu?

Best regards!

You should be able to allocate most system RAM except kernel-reserved memory:

You could stop X server with

sudo service gdm stop

If you would run a code from, you’ll see that in a system with stopped gdm, ~800MB of GPURAM are still consumed by unknown things.