I am trying to figure out a good split for the CPU/GPU. Is there a way to monitor the CPU and GPU usage to see where I should make the split?
You can get a real-time view of memory usage using either the
htop command. You may need to install
htop if you get the message
htop: command not found. Assuming you are using Raspbian, install it by running
sudo apt-get install htop
Basically you cannot currently get the GPU usage. You can only get the CPU usage, try the
Regarding the optimum CPU/GPU split. It really depends on what you are using your RPi for. If your not playing videos and games (GPU optimized), then give the CPU the most amount of RAM. Also if your running "headless" (Not connected to a screen) then assign the CPU as much RAM as you can.
Chromium does not currently use the GPU, check the following thread. It's from one of the guys doing the development of Chromium for the Raspberry Pi. Also there are some tips on how to get Chromium to run faster in the original post.
To monitor the RAM usage, you can run
free -h -s 1. Every second (
-s 1), a similar table will be displayed:
total used free shared buffers cached Mem: 438M 146M 292M 0B 15M 102M -/+ buffers/cache: 28M 409M Swap: 99M 0B 99M
Mem: is what you are looking for.
In the example above, you can see that, on a total of 438MB, 146MB are currently used, and 292MB remain free. On my 512MB RPi, I have set 64MB for the GPU.
To monitor the CPU, RAM and SWAP usage in Raspbian, you can use TOP or HTOP.
But, I find HTOP to be more useful, with better details and features available. HTOP is not available by default, and need to be installed.
sudo apt-get update && sudo apt-get install htop in Terminal to install HTOP.
In terminal, run
htop after the install is completed.
Hope that helps.