Displaying 20 results from an estimated 200 matches similar to: "cpu time totals"
2010 Aug 14
1
cpuTimes and qemu-kvm on F13
http://libvirt.org/html/libvirt-libvirt.html#virDomainInfo
http://libvirt.org/html/libvirt-libvirt.html#virVcpuInfo
Both virDomainInfo and virVcpuInfo have a nanosecond cpuTime field. How
do the two related to one another?
With some experiementing, it appears the virDomainInfo::cpuTime is equal
to the host CPU time used by the qemu-kvm process for the domain. It
also appears that the
2020 Jan 10
2
Re: [PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
On Fri, Jan 10, 2020 at 02:15:10PM +0000, Daniel P. Berrangé wrote:
> Do you use the libvirt "secret" APIs at all (disk encryption, network
> disk auth passwords) ? If so you will need "libvirt-daemon-driver-secret"
> too. How about any other libvirt sub-driver APIs ? Networking ? Host
> dev, etc ?
The full list of APIs we use is attached, assuming I got my
2020 Jan 10
5
[PATCH Fedora libguestfs] Don't depend on libvirt-daemon-kvm monolith.
libguestfs usually needs qemu. However it only requires an emulator
for the same architecture, not for all architectures.
libvirt-daemon-kvm pulls in qemu which pulls in emulators for all
architectures, as well as a bunch of other stuff we don't need at all
like network interface support and nwfilter.
There are no Fedora TCG-only arches, so drop the conditional section.
I also made support
2012 Mar 28
1
[API reference] confused by CPU time term
Hi, everyone
I'm writing a virtual machine monitor based on libvirt. As I read
the api reference, I found I'm confused by some terms.
1, What is cumulative I/O wait CPU time?
API reference says that VIR_NODE_CPU_STATS_IOWAIT indicate
cumulative I/O wait CPU time. I'm confused by this time. As far as I
know, when cpu meets IO wait situation, it will schedule another task,
so,
2011 Jul 26
2
python-libvirt for 0.9.3 leaking file descriptors
i've reported this issue before, so i guess this is a regression. looks
like the python bindings for 0.9.3 are leaking file descriptors:
root at cloud1:~# python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libvirt
>>>
2011 Feb 09
1
How to use Python Binding with Lbivirt.
HI,
I am using ubuntu host machine and KVM is present as guest in that
machine.Two virtual machines are there.I am using Python binding to query on
the hypervisor and extract the VM related information.
Here is my simple code:
#!/*usr*/local/bin/*python
*
import libvirt
import sys
conn = libvirt.openReadOnly(None)
if conn == None:
print *'Failed to open connection to the
2013 Sep 24
2
virDomainGetInfo() returns wrong domain state
Hi Team,
I have written below code to get the VM state at run time. I found, though the VM is in shut-off state, when I use the function virDomainGetInfo(); I get state as running. Could you please let me know what wrong I am doing. To know the actual VM state I used 'virsh list' and it clearly shows the VM is in shut-off state. Please find the log and code snippet below.
Log from virsh:
2013 Sep 26
1
Re: [libvirt] virDomainGetInfo() returns wrong domain state
Yes, I am sure because other information pulled are correct. And the same way we have used libvirt APIs to extract other informations at different places.
My question is if VM is in shut-off state does it mean running ? IF not, what is the correct state for this VM. I am wondering why the state is 'unsigned char' in virDomainGetInfo, why it could not be 'enum' as it is returning
2013 Sep 25
0
Re: virDomainGetInfo() returns wrong domain state
Hi Libvirt support team,
Could you please help me with below query.
Regards
Ritesh Sharma
From: Panday Ritesh Sharma (rpanday)
Sent: Tuesday, September 24, 2013 8:22 PM
To: 'libvir-list@redhat.com'; 'libvirt-users@redhat.com'; Vinay Shankarkumar (vinays)
Cc: Basavaraj Bendigeri (bbendige); q-se-dev(mailer list)
Subject: virDomainGetInfo() returns wrong domain state
Hi Team,
I
2013 Feb 28
0
With no luck with virDomainGetInfo and virDomainMemoryStats for memory usage of a running vm
Hi, all
I am trying to get used memory of a running vm using libvirt and then to calculate the memory usage, but with no luck.
1.The used memory returned by virDomainGetInfo 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
2013 Sep 26
0
Re: [libvirt] virDomainGetInfo() returns wrong domain state
On 24.09.2013 16:51, Panday Ritesh Sharma (rpanday) wrote:
>
>
> Hi Team,
>
> I have written below code to get the VM state at run time. I found,
> though the VM is in shut-off state, when I use the function
> virDomainGetInfo(); I get state as running. Could you please let me
> know what wrong I am doing. To know the actual VM state I used ‘virsh
> list’ and it
2014 Jul 05
1
Source code of virt-manager
Hi,
Does anyone know where I could view the source code of virt-manager? Because I'm trying to learn how the virt-manager gets the CPU usage of a VM(the graph it displays). I'm trying to make a program using java that gets the CPU usage of a VM in KVM. Anybody have suggestions on where I could start?Thanks
regards,
Marco
2013 Feb 07
0
There seems a deadlock in libvirt
Hi, all,
We were running OpenStack with Ubuntu and libvirt 0.9.10. We found that
libvirt monitor command not working well.
There were a lot of error in libvirtd.log like this
2013-02-07 06:07:39.000+0000: 18112: error :
qemuDomainObjBeginJobInternal:773 : Timed out during operation: cannot
acquire state change lock
We dig into libvirtd by strace and find one of the thread only have the
following
2013 Feb 28
1
The accurate CPU usage of a domain?
Hi,all
I want to get a relatively accurate cpu usage of a domain. I have a few questions about virDomainGetInfo: struct virDomainInfo{ unsigned char state : //the running state, one of virDomainState unsigned long maxMem :// the maximum memory in KBytes allowed unsigned long memory :// the memory in KBytes used by the domain unsigned short nrVirtCpu :// the number of virtual CPUs for the
2012 May 05
1
printing domain information
how do i print the features of a domain from functions that return a domain object?
for instance mydomain =?virdomain=libvirt.virConnect.lookupByID(conn,domainid)
so mydomain is?virDomainPtr, which is?typedef virDomain * virDomainPtr
i am not sure on how to print the domain object features in python, such as name, disk size, etc
2012 Feb 10
1
Unable to collect VM metrics for ESX using libvirt
Hi,
I am trying to connect to a server running esx and collect system metrics
like cpu usage, network and disk iops. I am able to establish the
connection successfully and obtain VM information such as ids, domain
names, config xml etc. But I am unable to collect statistics.
I am using the python interface and if I do ,
conn=libvirt.openAuth(uri, auth, 0)
dom-conn.lookupByID(id) // Where id is
2011 Feb 10
0
How to retrieve Memory stat of the KVM using python binding with Libvirt API
Hi ,
I am using ubuntu host machine and KVM is present as guest in that
machine.Two virtual machines are there.I am using Python binding to query on
the hypervisor and extract the VM related information.I like to print memory
stat of the VM like SWAP_IN , SWAP_OUT,free memory, mem cached etc.So, the
code, I have written for this, is :
#!/usr/local/bin/python
import libvirt
import sys
conn =
2012 Mar 06
1
[help] how can I use libvirt to get cpu usage ratio ?
hi experts:
I am a freshman of libvirt, I have got a domU's info like: libvirt.open, lookupByID, info.
But now I want to use libvirt to get a xen domU 's cpu usage ratio , how can I fulfill it ? I cannot find the API.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2018 Feb 27
2
Fail in virDomainUpdateDeviceFlags (libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph 10.2.10)
Hello Everyone,
My pc run in CentOS 7.4 and install libvirt-4.0.0 + Qemu-kvm 2.9.0 + Ceph
10.2.10 ALL-in-One.
I use python-sdk with libvirt and run [self.domain.updateDeviceFlags(xml,
libvirt.VIR_DOMAIN_AFFECT_LIVE)] on CDROM (I want to change media path).
However, I enable libvirt debug log , the log as below:
"2018-02-26 13:09:13.638+0000: 50524: debug :
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