search for: memorystat

Displaying 20 results from an estimated 22 matches for "memorystat".

Did you mean: memorystats
2014 Jul 08
2
Re: memoryStats question
At Fri, 04 Jul 2014 16:18:45 +0200, Ján Tomko wrote: > > [1 <text/plain; ISO-8859-1 (quoted-printable)>] > On 07/04/2014 03:18 PM, Claudio Bley wrote: > > 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...
2014 Jul 08
0
Re: memoryStats question
> In that case, I'd guess that Gleb just forgot to call > virDomainSetMemoryStatsPeriod, perhaps? I've just performed the same test with CentOS 7 at the host and CentOS 7 at the guest. Everything works. # virsh dommemstat vm1 actual 1048576 swap_in 0 swap_out 0 major_fault 751 minor_fault 3958627 unused 375900 available 1017988 rss 978248 I don't know the reason it d...
2014 Jul 03
0
Re: memoryStats question
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'm able to get VIR_DOMA...
2014 Jul 03
0
Re: memoryStats question
2014 Jul 03
0
Re: memoryStats question
> 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.
2014 Jul 03
0
Re: memoryStats question
> 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 are you using in your guests?...
2014 Jul 03
2
Re: memoryStats question
...4 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
0
Re: memoryStats question
...oronich 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. You also have to have new enough qemu that reports stats without blocking (qemu 0.14 or newer added stat reporting via qom-get, since the...
2014 Jul 03
1
Re: memoryStats question
On 07/03/2014 08:46 AM, 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. Then your problem is your...
2014 Jul 04
0
Re: memoryStats question
On 07/04/2014 03:18 PM, Claudio Bley wrote: > 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. >> &g...
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...
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...
2014 Jul 03
3
Re: memoryStats question
...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...
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 a...
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_AC...
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 tha...
2011 Feb 10
0
How to retrieve Memory stat of the KVM using python binding with Libvirt API
...conn = libvirt.openReadOnly(None) if conn == None: print "Failed to open connection to the hypervisor" sys.exit(1) try: domIds = conn.listDomainsID() for id in domIds: dom0 = conn.lookupByID(id) try: print "memory stats: %s"% dom0.memoryStats().values() except: print 'Failed to find the memory data of this domain' sys.exit(1) except: print 'Failed to find the main domain' sys.exit(1) But this code 'dom0.memoryStats().values()' is returning empty list.I need to collect...
2014 Mar 10
3
How to get guest's cpu and mem usage with Java APIs
Hi everybody, I'm using libvirt java api bindings for my thesis. I would like to know if there is a way to obtain live information about cpu and mem usage of a domain. Regards, Enrico De Maio Skype: enrico.de.maio Mobile: +39 338 205 3397
2011 Feb 14
1
Use libvirt-python to attach cdrom
Hi all, I want to attach cdrom by libvirt.py .But can't find a func in libvirt.py can finish this work. Who can help me ? Regard -- Seven Ling E-mail: jiejie.ling at qq.com
2011 Nov 13
1
CPU and RAM utilization
Hello, I have a few vms running on a blade server and i want to log the actual RAM and CPU utilization by these vms. dom.info(), libvirt API call is not giving correct results. It is always showing the max allocated resources. I have tried using virt-top also but same problem persists. Is there any thing that i am missing. -- Jatin Kumar -------------- next part -------------- An HTML attachment