Proxmox and memory: Difference between revisions
From DWIKI
(Created page with " = Docs = *[https://pve.proxmox.com/wiki/Dynamic_Memory_Management Dynamic Memory Management] = Clues = == pvesh == pvesh get /cluster/resources Get current configurati...") |
m (→FAQ) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
pvesh get /cluster/resources --output-format json |jq '.[] | select(.id=="qemu/105") | .mem' | pvesh get /cluster/resources --output-format json |jq '.[] | select(.id=="qemu/105") | .mem' | ||
[[Category:Proxmox]] | |||
=FAQ= | |||
== virtio_balloon virtio0: Out of puff! Can't get 1 pages == | |||
Out of memory: Kill process 10429 (java) score 126 or sacrifice child | |||
PVE host ran low on memory, and started reclaiming memory from ballooning drivers. | |||
See [https://pve.proxmox.com/pve-docs/chapter-qm.html#qm_memory QM Memory]. | |||
To prevent this, make sure to set 'Minimum memory' high enough. | |||
== a used vhost backend has no free memory slots left == | |||
https://forum.proxmox.com/threads/hotplug-memory-limits-total-memory-to-44gb.30991/#post-154914 | |||
===Checking=== | |||
cat /sys/module/vhost/parameters/max_mem_regions | |||
===To adjust=== | |||
echo "options vhost max_mem_regions=509" >> /etc/modprobe.d/vhost.conf | |||
"and then reboot" | |||
[[Category:Proxmox]] |
Latest revision as of 10:13, 25 June 2024
Docs
Clues
pvesh
pvesh get /cluster/resources
Get current configuration of VM 105
pvesh get /nodes/nuc/qemu/105/status/current
Now to get maxmem given to VM 105
pvesh get /nodes/nuc/qemu/105/status/current --output-format json | jq '.maxmem'
Get memory usage
pvesh get /cluster/resources --output-format json |jq '.[] | select(.id=="qemu/105") | .mem'
FAQ
virtio_balloon virtio0: Out of puff! Can't get 1 pages
Out of memory: Kill process 10429 (java) score 126 or sacrifice child
PVE host ran low on memory, and started reclaiming memory from ballooning drivers. See QM Memory. To prevent this, make sure to set 'Minimum memory' high enough.
a used vhost backend has no free memory slots left
https://forum.proxmox.com/threads/hotplug-memory-limits-total-memory-to-44gb.30991/#post-154914
Checking
cat /sys/module/vhost/parameters/max_mem_regions
To adjust
echo "options vhost max_mem_regions=509" >> /etc/modprobe.d/vhost.conf
"and then reboot"