similar to: problem when get the vm cpu stat

Displaying 20 results from an estimated 300 matches similar to: "problem when get the vm cpu stat"

2012 Apr 16
1
What's the precision of the domain cpu stats?
Hi, everyone I'm using libvirt and resort to virDomainGetCPUStats for cpu usage by one domain. In my system, Ubuntu-11.10 64bit with 2 cores and Qemu Hyperviser, this function returns something like this: virTypedParameter[0] { field: "cpu_time" type: 4 value.ul 51640610899 } virTypedParameter[1] {
2012 Aug 17
1
getCPUStats of a domain by a non-root user - libvirtError: Requested operation is not valid: cgroup CPUACCT controller is not mounted
Hello, I'm trying to use libvirt as a non-root user to obtain statistics on the CPU usage by VMs using the Python API. I'm performing basically the following steps: import libvirt conn = libvirt.openReadOnly(None) dom = conn.lookupByUUIDString('268e38ea-1bc7-41e4-c19e-8eff682e58e4') dom.getCPUStats(True, 0) However, they result in the following error: libvir: QEMU Driver
2012 May 28
1
What features of kernel are required to support virDomainGetCPUStats?
Hi, Weeks ago, I developed my app under ubuntu-11.10 (kernel 3.0) with lilbvirt-0.9.10. In my code , I used virDomainGetCPUStats to query cpu usage info of domains, and it worked well. However, today, I port my code to ubuntu-10.04.4 (kernel 2.6.32) with libvirt-0.9.10, I find the function virDomainGetCPUStats can't work and complains "this function is not supported by the connection
2013 May 29
0
Help needed regarding "virsh cpu-stats test_vm"
Hi, We are implementing feature called CPU separation in the platform. So, guest VMs will have dedicated cores allocated using cgroups (cgroups hierachy related VMs managed by libvirt). virsh cpu-stats command is not working in our platform : virsh # cpu-stats test_vm error: Failed to virDomainGetCPUStats() error: Requested operation is not valid: cgroup CPUACCT controller is not mounted It
2012 Apr 16
2
What does cpu_time returned by virDomainGetCPUStats mean?
hi, everyone. I find an 'interesting' thing involving virDomainGetCPUStats(). I call it for cpu usage consumed by a domain and get a array of virTypedParameter. My system is 2-core and hyperviser return 1 parameter per cpu. So the contents of the array is like this. virTypedParameter[0] { .fiedl = "cpu_time" .type = 4 .value.ul = 51640610899
2012 Apr 05
2
Is this Race Condition?
Hi, everyone I'm writing application using libvirt and I need call virDomainGetCPUStats to get domain cpu stats . I learn from API reference that this function has to be called when domain is running. So my question is if there is an atomic way to test the domain's state and get its stats? Or, it's ok to call this function when domain is not active, but caller just gets error
2014 Aug 12
1
Libvirt Java API to get CPU usage of VM (KVM)
Hi all libvirt-users, Is there a counterpart on Java of the function virDomainGetCPUStats that is based on C API? Because I am trying to create a program based on java to get the CPU usage of a Guest/Domain/VM in KVM using the Libvirt Java API. Honestly, I am having a hard time in starting my program. I have no idea where to start. I mean, what functions do I need to get the CPU usage of
2012 Jul 10
1
Issue with getCPUStats and getMemoryStats
Hi, I am facing issue with the calls getCPUStats and getMemoryStats. Please find the error below. AttributeError: 'module' object has no attribute 'VIR_NODE_CPU_STATS_ALL_CPUS' >>> print con.getCPUStats(2, None, 0, 0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File
2013 May 09
1
Getting libvirt Error when setting IO tune read_bytes_sec value using libvirt API virDomainSetBlockIotune
Hi All, I am setting the value for "read_bytes_sec" using the following API code virDomainSetBlockIoTune(dom, "/mnt/tmpsdb/FileVM1", parainfoPtr, nparams, 2); I am succesfully able to set this value and i can read it back using the API virDomainGetBlockIoTune(dom,"/mnt/tmpsdb/FileVM1",parainfoPtr,&nparams,2); But after setting this value when i shutdown
2012 May 28
0
[libivrt-users] What features of kernel are required to support virDomainGetCPUStats?
Hi, Weeks ago, I developed my app under ubuntu-11.10 (kernel 3.0) with lilbvirt-0.9.10. In my code , I used virDomainGetCPUStats to query cpu usage info of domains, and it worked well. However, today, I port my code to ubuntu-10.04.4 (kernel 2.6.32) with libvirt-0.9.10, I find the function virDomainGetCPUStats can't work and complains "this function is not supported by the connection
2019 Dec 16
3
[v2v PATCH 0/2] Move libvirt-ocaml copy to v2v repo
libvirt-ocaml is used only by virt-v2v, so move it to this repository, instead of having it around in the common submodule. The removal from common will happen later. Pino Toscano (2): common: Bundle the libvirt-ocaml library for use by virt-v2v build: switch embedded copy of libvirt-ocaml .gitignore | 2 + 3rdparty/libvirt-ocaml/Makefile.am |
2018 Aug 30
8
[PATCH 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2013 Oct 15
0
virDomainGetCPUStats missing in Java API bindings ?
Hi All I am trying to get the performance statistics for KVM using Java bindings. I found some api's for getting memory stats but not able to find any for cpu stats. I found virDomainGetCPUStats which look like its going to return cpu stats for a VM at http://libvirt.org/html/libvirt-libvirt.html and http://libvirt.org/hvsupport.html . I couldnt find these methods getting called from java
2018 Nov 27
8
[PATCH v2 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 Jan 30
8
[PATCH v3 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 May 20
8
[PATCH v5 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all
2008 May 07
2
Inserting authenticity token into AJAX request params
Hi all. I am trying to find a way to insert an authenticity_token into the params of an Ajax request before it gets sent. I''ve got this much: Ajax.Responders.register({ onLoading: function(req){ if ((req.options.method == ''post'') && ! Object.keys(req.options.parameters).include(''authenticity_token'')){ ---->
2019 Apr 08
0
[PATCH v4 2/7] common: Bundle the libvirt-ocaml library for use by virt-v2v
Add a copy of the libvirt-ocaml library, currently available at: https://libvirt.org/git/?p=libvirt-ocaml.git;a=summary This is a snapshot at commit d3ed8dcf1b0a6a8a855ceecbe0bb97f21e6665e3, which has all the features we need (and that builds fine). It is expected to stay synchronized with upstream, until there is a new upstream release, and it will be widespread enough. --- .gitignore
2019 Apr 08
12
[PATCH 43 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all
2009 Apr 05
1
Which model to keep (negative BIC)
Hi, My questions concern the function 'mclustBIC' which compute BIC for a range of clusters of several models on the given data and the other function 'mclustModel' which choose the best model and the best number of cluster accordind to the results of the previous cited function. 1) When trying the following example (see ?mclustModel), I get negative BIC computed by