qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] virDomainMemoryStatTags returned by virDomainMemoryStats(


From: Jean-Pierre Ribeauville
Subject: [Qemu-discuss] virDomainMemoryStatTags returned by virDomainMemoryStats()
Date: Mon, 8 Feb 2016 08:24:17 +0000

Hi,

 

I’ve installed  following releases :

 

libvirt-daemon-driver-qemu-1.2.8-16.el7_1.3.x86_64

qemu-kvm-1.5.3-86.el7_1.5.x86_64

qemu-kvm-common-1.5.3-86.el7_1.5.x86_64

qemu-guest-agent-2.1.0-4.el7.x86_64

ipxe-roms-qemu-20130517-6.gitc4bce43.el7.noarch

qemu-img-1.5.3-86.el7_1.5.x86_64

 

I use this libvirt API to retrieve domain memory  usage Stats :

 

int     virDomainMemoryStats           (virDomainPtr dom,
                                       virDomainMemoryStatPtr stats,
                                       unsigned int nr_stats,
                                       unsigned int flags)

 

I was hoping to retrieve all these tags in the virDomainMemoryStatPtr returned  struct :

enum virDomainMemoryStatTags {

VIR_DOMAIN_MEMORY_STAT_LAST

=

VIR_DOMAIN_MEMORY_STAT_NR

VIR_DOMAIN_MEMORY_STAT_SWAP_IN

=

0

The total amount of memory written out to swap space (in kB).

VIR_DOMAIN_MEMORY_STAT_SWAP_OUT

=

1

Page faults occur when a process makes a valid access to virtual memory that is not available. When servicing the page fault, if disk IO is required, it is considered a major fault. If not, it is a minor fault. These are expressed as the number of faults that have occurred.

VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT

=

2

VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT

=

3

The amount of memory left completely unused by the system. Memory that is available but used for reclaimable caches should NOT be reported as free. This value is expressed in kB.

VIR_DOMAIN_MEMORY_STAT_UNUSED

=

4

The total amount of usable memory as seen by the domain. This value may be less than the amount of memory assigned to the domain if a balloon driver is in use or if the guest OS does not initialize all assigned pages. This value is expressed in kB.

VIR_DOMAIN_MEMORY_STAT_AVAILABLE

=

5

Current balloon value (in KB).

VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON

=

6

Resident Set Size of the process running the domain. This value is in kB

VIR_DOMAIN_MEMORY_STAT_RSS

=

7

The number of statistics supported by this version of the interface. To add new statistics, add them to the enum and increase this value.

VIR_DOMAIN_MEMORY_STAT_NR

=

8

}

 

 

 

But , only these three values are returned  (virDomainMemoryStats returns 3) :

 

VIR_DOMAIN_MEMORY_STAT_SWAP_IN

VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON

VIR_DOMAIN_MEMORY_STAT_RSS

 

My question is  the following :

 

Is my understanding correct ?

If yes, is there a plan to add missing tags ?

 

Regards,

 

J.P.

 

 

 

 

J.P. Ribeauville

 

P: +33.(0).1.47.17.20.49

.

Puteaux 3 Etage 5  Bureau 4

 

address@hidden
http://www.axway.com

 

 

P Pensez à l’environnement avant d’imprimer.

 

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]