]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: fix domain memory 'usable' stat
authorPavel Hrdina <phrdina@redhat.com>
Wed, 27 Jul 2016 13:28:55 +0000 (15:28 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 27 Jul 2016 13:39:34 +0000 (15:39 +0200)
This fixes commit 65bf0446 which introduced 'usable' stat.

Signed-off-by: Derbyshev Dmitry <dderbyshev@virtuozzo.com>
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
include/libvirt/libvirt-domain.h
src/libvirt-domain.c
tools/virsh.pod

index e0e3739b084c4f9a0590c216146d9b5e4ea7f38d..59a05b9b2d8a8ce1f8e49a544a95741a5a026a01 100644 (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,
index 413f8af5a41fb06540983e300ae565cbd6994936..4f083494e12b6c5716d444ac999715121c43f9ef 100644 (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).
index 770ca49fab39fd271df3a0066de25a9df98c2245..9a2390563a106fbe6dbc6772f1e1b1c93c0f8809 100644 (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