search for: virdomainmemorystats

Displaying 20 results from an estimated 32 matches for "virdomainmemorystats".

2015 Oct 30
2
virDomainMemoryStats missing counters ...
Hi, In which libvirt version are these virDomainMemoryStats() counters handled ? VIR_DOMAIN_MEMORY_STAT_SWAP_OUT VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT VIR_DOMAIN_MEMORY_STAT_UNUSED VIR_DOMAIN_MEMORY_STAT_AVAILABLE Thanks. Regards, J.P. Ribeauville P: +33.(0).1.47.17.20.49 . Puteaux 3 Etage 5 Bureau 4 jpribeauville@...
2015 Nov 02
1
Re: virDomainMemoryStats missing counters ...
...2.8-16.el7_1.3.x86_64 libvirt-daemon-driver-nodedev-1.2.8-16.el7_1.3.x86_64 libvirt-devel-1.2.8-16.el7_1.3.x86_64 libvirt-daemon-kvm-1.2.8-16.el7_1.3.x86_64 libvirt-daemon-config-network-1.2.8-16.el7_1.3.x86_64 libvirt-daemon-driver-interface-1.2.8-16.el7_1.3.x86_64 I got 3 tags as returned by virDomainMemoryStats () 0 --> VIR_DOMAIN_MEMORY_STAT_SWAP_IN 6 --> VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON 7 --> VIR_DOMAIN_MEMORY_STAT_RSS Does it mean that other values don't exist or are null ? Regards, J.P. -----Message d'origine----- De : Michal Privoznik [mailto:mprivozn@redhat.com] Envoyé ...
2012 Aug 09
1
[libvirt] virDomainMemoryStats call
Hi, Is the array mstats returned by virDomainMemoryStats call cummulative or snapshot of the counter at that particular time ? I was of the opinion that is cummulative like the /proc counters but this counter seems to go backwards ie next snapshot value is less than the current one which makes me think these are snapshot values . I'm using RHEL 6.3...
2012 Jan 18
1
How to use "virDomainMemoryStats"? I got 0 result.
I use like this; int n = virDomainMemoryStats(dom, stats, 4, 0); I want to get men used and not used. If can , I want to get all output in stats. but "n" result is always 0. ??????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachm...
2012 Jul 18
1
virDomainMemoryStats call
Hi, I'm using the API virDomainMemoryStats to fetch memory stats for a domain/guest on Fedora 16/RHEL 6.3 . I don't get these counters filled up VIR_DOMAIN_MEMORY_STAT_UNUSED, VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON,VIR_DOMAIN_MEMORY_STAT_AVAILABLE , VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT and VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT. The version of...
2013 Feb 28
0
With no luck with virDomainGetInfo and virDomainMemoryStats for memory usage of a running vm
...etInfo is equal to max memory with no virtio balloon driver set. When using virtio balloon driver and setting currentMemory less than memory in the xml, the used memory returned by virDomainGetInfo is nearly equal to currentMemroy. Again, I can't get the memory used by vm. 2. When I turned to virDomainMemoryStats, I can only get two values : Current balloon value and Resident Set Size of the process running the domain. (for kvm 0.14.1 and libvirt 1.0.2) That's not what I want. I only need to know how much memory used by the running vm, so I can calculate the memory usage of this vm. (like the used mem...
2015 Nov 02
0
Re: virDomainMemoryStats missing counters ...
On 30.10.2015 16:25, Jean-Pierre Ribeauville wrote: > Hi, > > In which libvirt version are these virDomainMemoryStats() counters handled ? > > > VIR_DOMAIN_MEMORY_STAT_SWAP_OUT > VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT > VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT > VIR_DOMAIN_MEMORY_STAT_UNUSED > VIR_DOMAIN_MEMORY_STAT_AVAILABLE > The flags were added in 3a70131312d62d02d0fb2d55c6fc51dcc5c06a5d cont...
2016 Feb 05
0
virDomainMemoryStats available tags
Hi, By using libvirt-1.2.8-16.el7_1.3.x86_64 , it looks like there are 3 virDomainMemoryStats tags available : VIR_DOMAIN_MEMORY_STAT_SWAP_IN VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON VIR_DOMAIN_MEMORY_STAT_RSS Is there a plan to add the other ones ? Meanwhile , do you know which metrics ovirt uses to display memory column value in the manager GUI ? Thx. J.P. Ribeauville P: +33.(0)...
2014 Jul 03
3
memoryStats question
Hello, I'm trying to get memory usage statistic inside a guest machine using virDomainMemoryStats function at libvirt. According to http://libvirt.org/html/libvirt-libvirt.html#virDomainMemoryStatTags the structure could have a lot of useful memory statistic but the amount of parameters depends on the hypervisor and the driver. However using KVM I'm able to get VIR_DOMAIN_MEMORY_STAT_ACT...
2014 Jul 03
2
Re: memoryStats question
At Thu, 3 Jul 2014 15:58:41 +0200, Martin Kletzander wrote: > > On Thu, Jul 03, 2014 at 04:31:46PM +0300, Gleb Voronich wrote: > >Hello, > > > >I'm trying to get memory usage statistic inside a guest machine using > >virDomainMemoryStats function at libvirt. > >According to > >http://libvirt.org/html/libvirt-libvirt.html#virDomainMemoryStatTags the > >structure could have a lot of useful memory statistic but the amount of > >parameters depends on the hypervisor and the driver. > >However using KVM I...
2018 Mar 08
1
Statistics domain memory block when domain shutdown
Hi My libvirt version is 3.4.0,host system is centos 7.4 ,kernel is 3.10.0-693.el7.x86_64 , when I shutdown domain in virtual system, My program call virDomainMemoryStats, My program blocked in this api. the call stack is #0 0x00007ff242d78a3d in poll () from /lib64/libc.so.6 #1 0x00007ff243755ce8 in virNetClientIOEventLoop () from /lib64/libvirt.so.0 #2 0x00007ff24375654b in virNetClientSendInternal () from /lib64/libvirt.so.0#3 0x00007ff2437579b3 in virNetCli...
2014 Jul 03
3
Re: memoryStats question
...you would for getting stats from a remote bare >> > metal machine, without needing libvirt in the mix. >> >> Thanks Eric. >> >> 1. I use the balloon for all of my guests: >> <memballoon model='virtio'> >> But how can I get stats? virDomainMemoryStats() gets those stats, if qemu is new enough to provide them, and if the guest cooperates to provide them. >> >> 2. I've tried the latest QEMU GA 2.0.0 Right now, there are no memory stats available through the guest agent, only through the balloon device. -- Eric Blake eblake r...
2014 Jul 04
2
Re: memoryStats question
At Thu, 03 Jul 2014 17:46:14 +0300, Gleb Voronich wrote: > > > > virDomainMemoryStats() gets those stats, if qemu is new enough to > > provide them, and if the guest cooperates to provide them. > Well I use the latest QEMU 2.0.0 > I have the latest CentOS 6.5 installed on the guest and unfortunately > I can't get more stats that I have. > > > Which OS ar...
2012 Mar 14
2
Memory statistics for DomU's
An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120314/0496343e/attachment.htm>
2014 Mar 12
4
Problem in getting memory statistics
Hello, I need to get how much memory is used by a guest system, in order to implement some monitoring function which tells me if the system is overstressed. I am currently using java apis and the binding which was suggested to me was Domain.memoryStats(); This is a binding to int virDomainMemoryStats (virDomainPtr<http://libvirt.org/html/libvirt-libvirt.html#virDomainPtr>dom, virDomainMemoryStatPtr<http://libvirt.org/html/libvirt-libvirt.html#virDomainMemoryStatPtr>stats, unsigned int nr_stats, unsigned int flags). Problem is that it returns me just tags 0,6 and 7. Looking at the...
2016 Mar 08
1
How to measure memory utilizatin of guest when dommemstat reports "RSS" is more than "ACTUAL"?
...following article on Redhat which suggests that this is normal/expected? https://access.redhat.com/solutions/2017943 Now we use following formula to calculate the memory utilization. mem_util = (rss/actual)*100 now this gives more that 100% as the result. We use the libvirt library to call the virDomainMemoryStats. (which is the same used by the "virsh dommemstat" command) If we can't use the RSS as the "used memory", what else should be used to calculate the same? What is the ideal approach to report memory utilization of guest from the KVM host?
2014 Jul 03
2
Re: memoryStats question
...3 Jul 2014 17:32:20 +0300, Gleb Voronich wrote: > > > > Actually, you should get more stats when using the virtio balloon > > driver in your guests. > I use the balloon but I can't get more stats. > I use python binding for libvirt and as far as I can see it calls > virDomainMemoryStats exactly. Which OS are you using in your guests? Of course, you need to have the virtio balloon driver up and runnig in your guests. Claudio
2014 Jul 03
2
Re: memoryStats question
On 07/03/2014 07:58 AM, Martin Kletzander wrote: > On Thu, Jul 03, 2014 at 04:31:46PM +0300, Gleb Voronich wrote: >> Hello, >> >> I'm trying to get memory usage statistic inside a guest machine using >> virDomainMemoryStats function at libvirt. >> According to >> http://libvirt.org/html/libvirt-libvirt.html#virDomainMemoryStatTags the >> structure could have a lot of useful memory statistic but the amount of >> parameters depends on the hypervisor and the driver. >> However using KVM I...
2015 Oct 28
0
How to find memory utilization percent of kvm guest?
I currently use following approach but its failing Find Max memory using following API         vdgiRet = virDomainGetInfo(domPtr, infoPtr);         memTotal = infoPtr->memory; Find current utilization using following API                 rVal = virDomainMemoryStats (domPtr, memStats, VIR_DOMAIN_MEMORY_STAT_NR, 0) ;         for (i = 0; i < rVal; i++)         {             if (memStats[i].tag == 7)                 memUsed = memStats[i].val;         } Which is the value of "VIR_DOMAIN_MEMORY_STAT_RSS    =    7" Then I calculate util as (memUsed...
2015 Oct 30
0
GUEST Memory statistics secret revealed ...
...xplain following metrics I got from libvirt, regarding memory stats for the two GUESTS running on my host. 1) virDomainGetXMLDesc() shows these values : memmax (1024000.000000) memcurrent(1024000.000000) memmax (2048000.000000) .memcurrent(2048000.000000) 2) As values returned by virDomainMemoryStats(), I got these values : VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON: active_balloon (1024000.000000) active_balloon (2048000.000000) VIR_DOMAIN_MEMORY_STAT_RSS: rss(1194195.312500) rss(2039269.531250 3) By using cgroup counters "memory.usage_in_bytes" for both Guests, I got these valu...