Re: [libvirt-users] a question on vCPU setting for lxc

2014-03-17 Thread WANG Cheng D
Dear yuanle, Thank you for the information. You might be right. But I am still confused about what’s the difference between a vCPU and a physical core. Regards, Cheng From: sylecn [mailto:syl...@gmail.com] Sent: 2014年3月17日 15:06 To: WANG Cheng D Cc: libvirt-users@redhat.com Subject: Re: [libvirt-

[libvirt-users] Undoing domiftune changes

2014-03-17 Thread Brian Rak
If I apply some network limits with domiftune, how do I undo them (without restarting the VM?) So let's say I did: # virsh domiftune SRVID8736 vnet0 inbound.average: 0 inbound.peak : 0 inbound.burst : 0 outbound.average: 0 outbound.peak : 0 outbound.burst : 0 # virsh domiftune SRVID8736 vn

Re: [libvirt-users] Sys::Virt integration into other event loops

2014-03-17 Thread Scott Wiersdorf
On Mar 14, 2014, at 9:32 AM, Daniel P. Berrange wrote: > - Register and run your own event loop impl by calling the method > Sys::Virt::Event::register(), passing in a custom subclass of > the Sys::Virt::Event class. This is what you should do to integrate > with existing event loop impls li

Re: [libvirt-users] KVM -snapshot mode

2014-03-17 Thread Eric Blake
On 03/17/2014 11:51 AM, chris 0 wrote: > Hi, > > I'm just wondering is there any way for me to trigger KVM's > -snapshot parameter from libvirt. We do NOT want to expose qemu's -snapshot parameter directly via libvirt, for several reasons: 1. it makes qemu use $TMPDIR, and on systems where $TMPD

[libvirt-users] KVM -snapshot mode

2014-03-17 Thread chris 0
Hi, I'm just wondering is there any way for me to trigger KVM's -snapshot parameter from libvirt. I don't want to clone a disk etc. I just need a way so that KVM is spawned with a '-snapshot' parameter. Anyone got any ideas? Cheers Chris ___ libvirt-

Re: [libvirt-users] a question on vCPU setting for lxc

2014-03-17 Thread sylecn
Hi, I'm not libvirt expect. My guess is that some vcpu settings only apply to KVM/qemu backend. LXC is quite different from them. If setting vcpu# is not effective for LXC container, you may need to use cgroups. -- Thanks, Yuanle On Mon, Mar 17, 2014 at 2:32 PM, WANG Cheng D < cheng.d.w...@al

Re: [libvirt-users] Problem in getting memory statistics

2014-03-17 Thread Claudio Bley
At Sat, 15 Mar 2014 23:33:59 +0100, Pasquale Dir wrote: > > I have another problem. > As in java bindings there is no way to obtain cpu stats I decided to use a > python script. > It gives me, for the guest domain, cpu time, system time and user time. > Now, what does it mean cpu time? I though th

Re: [libvirt-users] Problem in getting memory statistics

2014-03-17 Thread Claudio Bley
[please don't top post on technical lists. it is easier to follow conversation and less likely you forget answering a question if you reply to the questions in line] [please keep the conversation on the list - I've re-added libvirt-users] At Sat, 15 Mar 2014 10:15:15 +0100, Pasquale Dir wrote: