When I know I actually have 32 GB RAM.
In dom0, use xentop
utility.
I did that already, it doesnt show a total amount of RAM gigabytes.
On my system it says on the 3rd line:
Mem: x total, y used, z free CPU: n @ aMHz
Where x is the equivalent of installed memory on my system. If it is different on your system, then I have no idea.
Thanks, but it says it in kilobytes which is too hard to read. I need a way for it to measure in a three digit long GB measurement. Like this: 14.6 Gbs.
What you need existed long ago (Qubes OS 3.2). But it was removed due to technical reasons discussed in this Github issue:
I am not aware if there is any alternative way to get the information you require via other tools. Hope the others on forum could help.
[user@dom0 ~]$ echo -n $(( $(xl info free_memory) * 1024 * 1024 )) | numfmt --to=iec; echo -n " free for a total of "; echo $(( $(xl info total_memory) * 1024 * 1024 )) | numfmt --to=iec
12G free for a total of 32G
There is also [edited: Exactly what ludovic said,
xl info
, but I find I’ve also got a script for using xl list
to get information per-VM]
Notice that the xl
tool allows to perform a lot of actions on VMs, and probably also allows to do a lot of damage to your Qubes system. I never used it for anything except as an information source - I don’t recommend using it for anything else, except under advice from far wiser minds.
@ludovic, correct me if im wrong but your recommended command chain does not reflect the overall RAM usage of your entire Qubes OS system, as it excludes the memory usage of AppVMs and other qubes.
Hi @Username123 ,
the answer is in the documentation, I suggest you read the xl
manpage.