-
Notifications
You must be signed in to change notification settings - Fork 16
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
Incorrect RAM usage on FreeBSD 12.2 / 13.0 #19
Comments
hm. i think this is not a guest-agent problem $ virsh dommemstat freebsd12.2-zfs can you diff memory usage from proxmox and virsh output ? |
virsh: Command not found. Looks like Proxmox doesn't use virsh (libvirt). Looks like Proxmox itself doesn't query memory usage via the agent. I'll open a topic in their forum. qm agent testvm dommemstat |
Looks like I've used the wrong command, but in any case: qm guest cmd 104 dommemstat get-memory-block-info and get-memory-blocks both return: https://forum.proxmox.com/threads/freebsd-guest-wrong-ram-usage.87693/ |
I need more info about memory usage calc in proxmox. Memory commands in qemu guest agent uses sysfs data and cannot be directly used in BSD. We need workaround for it. |
proxmox use qemu-monitor-command "info balloon" for memory usage calc info balloon command result, Ubuntu 20.04 guest: info balloon command result, FreeBSD 12.2 guest: |
huh I did a deep analysis and got several answers. All requested info comes from kernel balloon driver/module. The FreeBSD kernel does not have the features found in the virtio_balloon linux driver. https://github.com/torvalds/linux/blob/v4.15/drivers/virtio/virtio_balloon.c If FreeBSD committers commit their changes, I think all additional information will appear automatically. |
Thank you for the research work! "I think we can make some changes to the FreeBSD kernel" |
@aborche |
Hi, @aborche @juliokele |
For some reason Proxmox VE shows ram usage at least 2x (even more) what the actual usage is on FreeBSD 12.2 / 13.0.
Guest agent is configured as "VirtIO" (possible option is also "ISA") in PVE.
The text was updated successfully, but these errors were encountered: