Dom0: 25.3% mem usage
Sys-Firewall: 22.3% mem usage
Sys-Network: 2.5% mem usage
Sys-Network-dm: 0.9% mem usage
Sys-USB: 1.9% mem usage
Sys-USB-dm: 0.9% mem usage
Sys-whonix: 24.7% mem usage
whonix-ws: 19.4% mem usage
Please note that I don’t have any AppVMs open. The only thing running is xentop in the Dom0 terminal.
Do note that I haven’t modified the templates in any ways, so the amount of RAM each qube is assigned out of the box is the amount they have now.
xentop shows that total memory, used and free, this is shown in the header information. In the detail list view, you can see the percentage of total memory allocated to vm.
Judging from the information provided by the OP, dom0, sys-firewall, sys-whonix, whonix-ws are all using around 4 GB memory each, which is more than needed.
I think usb, firewall, and net needs around 300-500mb, whoinix is going to need more probably around
2 GB.
You can use the command free -h inside the appVMs to see how much memory is getting swapped to disk, if the vm is swapping excessive amounts of memory the memory limit is too low.
I doubt you are not going to need more than 500 MB, and you can probably get away with using 300 MB, but I wouldn’t use less than 300 MB unless you are in desperate need of the extra free memory.
My sys-firewall uses 270 MB memory, but it also has 350 MB cached data, so the total used memory is around 500 MB.
The sys qubes also have 1 GB of swap space if they run out of physical memory.
But, many, many things aren’t looking as expected recently.
For example, at least in my case, xid is changing after each app qube restart, although based on a templates, and that creates huge problems for win qubes using non-dom0 audiovms…
If you look at most of these VM’s settings they list a minimum and maximum RAM. This is to allow for memory-ballooning.
Memory-ballooning generally means Xen will assign maximum permitted RAM to all VMs until a VM needs more than Xen has unused (on startup or on demand) and will then take unused RAM inside VMs, zero it, and give it to other VMs.