Skip to content
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

Host memory is not collected. #28

Closed
MyungChi opened this issue Dec 7, 2018 · 7 comments
Closed

Host memory is not collected. #28

MyungChi opened this issue Dec 7, 2018 · 7 comments
Assignees

Comments

@MyungChi
Copy link

MyungChi commented Dec 7, 2018

Hi.

I set new machine in lab env. There are no active VM in KVM. At that time ram information for Host is not collected.

$ kvmtop --cpu --mem --printer=json
{ "host": {"ram_Total": "","ram_Free": "","ram_Available": "","cpu_cores": 10,"cpu_curfreq": 0.000000}, "domains": []}
{ "host": {"ram_Total": "","ram_Free": "","ram_Available": "","cpu_cores": 10,"cpu_curfreq": 0.000000}, "domains": []}
{ "host": {"ram_Total": "","ram_Free": "","ram_Available": "","cpu_cores": 10,"cpu_curfreq": 0.000000}, "domains": []}
{ "host": {"ram_Total": "","ram_Free": "","ram_Available": "","cpu_cores": 10,"cpu_curfreq": 0.000000}, "domains": []}
{ "host": {"ram_Total": "","ram_Free": "","ram_Available": "","cpu_cores": 10,"cpu_curfreq": 0.000000}, "domains": []}
{ "host": {"ram_Total": "","ram_Free": "","ram_Available": "","cpu_cores": 10,"cpu_curfreq": 0.000000}, "domains": []}
{ "host": {"ram_Total": "","ram_Free": "","ram_Available": "","cpu_cores": 10,"cpu_curfreq": 0.000000}, "domains": []}

If I check with virsh command, result is as below.

virsh nodememstats

total : 197639624 KiB
free : 124508044 KiB
buffers: 2136 KiB
cached : 53727560 KiB

@cha87de cha87de added the bug label Dec 10, 2018
@cha87de cha87de self-assigned this Dec 10, 2018
@cha87de
Copy link
Owner

cha87de commented Dec 10, 2018

Thanks for reporting, @MyungChi .
so the host memory measurements are not available (only) when the host has no VMs?

@MyungChi
Copy link
Author

Yes, host has VM, mem info is collected.

@MyungChi
Copy link
Author

Do U need any other extra info.?

@cha87de
Copy link
Owner

cha87de commented Dec 13, 2018

i didn't had the time to look into that issue yet. since i'm not paid for kvmtop so what is needed is spare time or even better a fix for the problem :-)

@igalvarez
Copy link

igalvarez commented Apr 22, 2019

Hi, dont know if my issue is the same, but I'm unabled to collect mem. See image atached. Let me know if you need some other info. 👍
kvmtop mem

Thanks

@cha87de
Copy link
Owner

cha87de commented May 29, 2019

Hi @igalvarez
can you please check if you have the qemu guest agent installed on those VMs which have memory reported, and that this agent is missing on the other VMs?
If this is the case, your issue is related to #27 .
Thanks!

@cha87de
Copy link
Owner

cha87de commented May 29, 2019

@MyungChi The bug you described is related to the fact, that the kvmtop collectors' Collect method is only called then there are VMs .. This has to be fixed for host metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants