-
-
Notifications
You must be signed in to change notification settings - Fork 125
Memory query RPC service #550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
There is already meminfo-writer that reports more or less the same info for the qmemman use. It writes it into xenstore under OTOH, having a service that needs to be called into all VMs by qvm-top is going to be quite heavy. Maybe a better idea is to extend |
I see that the P.S.: I understood how to query it with
Yes... it takes 3 seconds for the whole qvm-top loop with 10 qubes running.
It is a better idea, I didn't knew about I presume a new setting For another day to understand how to a write a new value to xenstore and then query it with |
It is written every meminfo-writer iteration, whenever there is a significant enough change (first arg to meminfo-writer, by default 30MB). And meminfo-writer checks that every 100ms (the second arg), which is likely faster than your qrexec service.
That is true, but also I'd argue it's less relevant then too. Because those qubes won't take/give memory to others.
Nope. This returns only info about assigned memory (what qmemman decided to assign, based on the info given by meminfo-writer and available amount). the
Yes. But note that meminfo-writer tells how much memory is used in the VM (which may be more than assigned when you run into swap), not how much is free. |
What I don't like about the script: it infinitely waits for a running qube to respond for the
qubes.VMShell
service call, which I don't know how to indirectly timeout the subprocess created byrun_service_for_stdio
.Also the table formatting is "OKayish".
Just the bare minium info qui-domains format, not enough info to justify command-line options and it is not as great as xentop, but more useful for Qubes.
I assume the Qubes license is GPL-2.0-only, not
or-later
because I didn't find this info.