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:
Pavel Hrdina 2016-07-27 15:28:55 +02:00
parent d04bc2979e
commit 29fca3994b
3 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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).

View File

@ -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