mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
qemu: fix domain memory 'usable' stat
This fixes commit 65bf0446 which introduced 'usable' stat. Signed-off-by: Derbyshev Dmitry <dderbyshev@virtuozzo.com> Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
d04bc2979e
commit
29fca3994b
@ -604,7 +604,7 @@ typedef enum {
|
||||
VIR_DOMAIN_MEMORY_STAT_RSS = 7,
|
||||
|
||||
/*
|
||||
* How big the balloon can be inflated without pushing the guest system
|
||||
* How much the balloon can be inflated without pushing the guest system
|
||||
* to swap, corresponds to 'Available' in /proc/meminfo
|
||||
*/
|
||||
VIR_DOMAIN_MEMORY_STAT_USABLE = 8,
|
||||
|
@ -5987,7 +5987,7 @@ virDomainGetInterfaceParameters(virDomainPtr domain,
|
||||
* VIR_DOMAIN_MEMORY_STAT_AVAILABLE:
|
||||
* The total amount of memory available to the domain's OS (in kb).
|
||||
* VIR_DOMAIN_MEMORY_STAT_USABLE:
|
||||
* How big the balloon can be inflated without pushing the guest system
|
||||
* How much the balloon can be inflated without pushing the guest system
|
||||
* to swap, corresponds to 'Available' in /proc/meminfo
|
||||
* VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON:
|
||||
* Current balloon value (in kb).
|
||||
|
@ -819,6 +819,8 @@ B<Explanation of fields>:
|
||||
available - The amount of usable memory as seen by the domain (in kB)
|
||||
actual - Current balloon value (in KB)
|
||||
rss - Resident Set Size of the running domain's process (in kB)
|
||||
usable - The amount of memory which can be reclaimed by balloon
|
||||
without causing host swapping (in KB)
|
||||
|
||||
For QEMU/KVM with a memory balloon, setting the optional I<--period> to a
|
||||
value larger than 0 in seconds will allow the balloon driver to return
|
||||
|
Loading…
x
Reference in New Issue
Block a user