Re: [libvirt-users] What does cpu_time returned by virDomainGetCPUStats mean?

2012-04-16 Thread Zhihua Che
在 2012年4月17日 上午4:11,Eric Blake 写道: > On 04/16/2012 05:37 AM, Zhihua Che wrote: >> >>    I thought this value store the run time of the cpu since last boot. > > The intent is to store run time of the hypervisor process managing the > guest (which therefore is larger than the amount of time that the

Re: [libvirt-users] What does cpu_time returned by virDomainGetCPUStats mean?

2012-04-16 Thread Eric Blake
On 04/16/2012 09:15 PM, Zhihua Che wrote: > After reading your post, I did the below experiment again. > I started the domain by issuing 'start ubuntu-1' and shutted down my > domain by issuing 'destroy ubuntu-1'. That's a forceful shutdown - it removes the virtual power cord, and always works, bu

Re: [libvirt-users] What does cpu_time returned by virDomainGetCPUStats mean?

2012-04-16 Thread Zhihua Che
在 2012年4月17日 上午4:11,Eric Blake 写道: > On 04/16/2012 05:37 AM, Zhihua Che wrote: >> >>    I thought this value store the run time of the cpu since last boot. > > The intent is to store run time of the hypervisor process managing the > guest (which therefore is larger than the amount of time that the

Re: [libvirt-users] What does cpu_time returned by virDomainGetCPUStats mean?

2012-04-16 Thread Zhihua Che
在 2012年4月17日 上午4:11,Eric Blake 写道: > On 04/16/2012 05:37 AM, Zhihua Che wrote: >> >>    I thought this value store the run time of the cpu since last boot. > > The intent is to store run time of the hypervisor process managing the > guest (which therefore is larger than the amount of time that the

[libvirt-users] Ansis Atteka has invited you to use Google Talk

2012-04-16 Thread Ansis Atteka
Ansis Atteka has invited you to sign up for Google Talk so you can talk to each other for free over your computers. To sign-up, go to: http://www.google.com/accounts/NewAccount?service=talk&sendvemail=true&skipvpage=true

Re: [libvirt-users] What does cpu_time returned by virDomainGetCPUStats mean?

2012-04-16 Thread Eric Blake
On 04/16/2012 05:37 AM, Zhihua Che wrote: > >I thought this value store the run time of the cpu since last boot. The intent is to store run time of the hypervisor process managing the guest (which therefore is larger than the amount of time that the guest thinks it has been running, since the

Re: [libvirt-users] [API reference] confused by CPU time term

2012-04-16 Thread Eric Blake
On 04/16/2012 04:02 AM, Zhihua Che wrote: > I find that the cpu_time returned by virDomainGetCPUStats is always > increasing despite it's restarted. That is the time attributed to a single domain. Are you saying that the value doesn't restart at 0 every time you stop and then restart the domain?

Re: [libvirt-users] What's the precision of the domain cpu stats?

2012-04-16 Thread Eric Blake
On 04/16/2012 02:33 AM, Zhihua Che wrote: > 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] >

Re: [libvirt-users] Guests can't connect to each other

2012-04-16 Thread Laine Stump
I just noticed the packet dumps in your original message. They show that the TCP checksum of all packets past #3 are incorrect. This is a similar problem with one caused by using the virtio "vhost" mode with standard tap network devices - if the dhcp server and client are on the same physical mac

Re: [libvirt-users] Guests can't connect to each other

2012-04-16 Thread Laine Stump
On 04/16/2012 07:02 AM, Anthony Bourguignon wrote: > Le dimanche 15 avril 2012 à 10:19 -0400, Laine Stump a écrit : >> Your config looks fine (the important part is that you're using bridge >> mode for macvatap rather than private). I would suspect some sort of bug >> related to using macvtap on a

Re: [libvirt-users] libvirt slow responding after define poool with existing VG with some other lv

2012-04-16 Thread Anton Gorlov
16.04.2012 18:05, Cole Robinson написал: 16.04.2012 17:48, Cole Robinson МапОсал: Sorry, I'd like to help, but judging by your log file this will be a pain to figure out and I can't spare the time. Hopefully we can narrow it down remotely. familiar problem... in strace i see futex(0x7d1

Re: [libvirt-users] libvirt slow responding after define poool with existing VG with some other lv

2012-04-16 Thread Cole Robinson
On 04/16/2012 09:01 AM, Anton Gorlov wrote: >> Okay so that's not the issue. Maybe one of the lvm commands is slow for your >> setup. Try running sudo LIBVIRT_DEBUG=1 libvirtd, run the pool-start in >> another terminal, and see if the libvirtd debug output gives any indication >> where things are h

Re: [libvirt-users] What does cpu_time returned by virDomainGetCPUStats mean?

2012-04-16 Thread Zhihua Che
在 2012年4月16日 下午7:56,RaSca 写道: > Il giorno Lun 16 Apr 2012 13:37:24 CEST, Zhihua Che ha scritto: > [...] >>    How can I get the CPU usage of the domain? > [...] > > As Daniel told me two days ago, cpuTime shows the absolute CPU time > consumed since boot. To get % CPU time, take two readings 'n' s

Re: [libvirt-users] libvirt slow responding after define poool with existing VG with some other lv

2012-04-16 Thread Cole Robinson
On 04/16/2012 08:27 AM, Anton Gorlov wrote: > > > > 16.04.2012 16:12, Cole Robinson МапОсал: >> On 04/16/2012 03:20 AM, Anton Gorlov wrote: >>> If I add VG with some other lv-s to libvirt pool then libvirt slow >>> responding. How to fix it? >>> >> >> Which distro and version of libvi

Re: [libvirt-users] libvirt slow responding after define poool with existing VG with some other lv

2012-04-16 Thread Anton Gorlov
16.04.2012 16:12, Cole Robinson написал: On 04/16/2012 03:20 AM, Anton Gorlov wrote: If I add VG with some other lv-s to libvirt pool then libvirt slow responding. How to fix it? Which distro and version of libvirt are you using? There is a fix that may help, but it's only in 0.9.10 or

Re: [libvirt-users] libvirt slow responding after define poool with existing VG with some other lv

2012-04-16 Thread Cole Robinson
On 04/16/2012 03:20 AM, Anton Gorlov wrote: > If I add VG with some other lv-s to libvirt pool then libvirt slow > responding. How to fix it? > Which distro and version of libvirt are you using? There is a fix that may help, but it's only in 0.9.10 or newer: http://libvirt.org/git/?p=libvirt

Re: [libvirt-users] What does cpu_time returned by virDomainGetCPUStats mean?

2012-04-16 Thread RaSca
Il giorno Lun 16 Apr 2012 13:37:24 CEST, Zhihua Che ha scritto: [...] >How can I get the CPU usage of the domain? [...] As Daniel told me two days ago, cpuTime shows the absolute CPU time consumed since boot. To get % CPU time, take two readings 'n' seconds apart and calculate the delta betwee

[libvirt-users] What does cpu_time returned by virDomainGetCPUStats mean?

2012-04-16 Thread Zhihua Che
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]

Re: [libvirt-users] Guests can't connect to each other

2012-04-16 Thread Anthony Bourguignon
Le dimanche 15 avril 2012 à 10:19 -0400, Laine Stump a écrit : > Your config looks fine (the important part is that you're using bridge > mode for macvatap rather than private). I would suspect some sort of bug > related to using macvtap on a vlan device (or, even more, a vlan > connected to a bond

Re: [libvirt-users] A way to determine when a guest domain was launched?

2012-04-16 Thread Daniel P. Berrange
On Mon, Apr 16, 2012 at 10:21:59AM +, Amy Skinner wrote: > I've looked around at the API documents (I'm using python) and I > know how to find the cpu active uptime of the domain, but that only > increases if the domain is running something. Is there a way to > determine when the domain was fi

[libvirt-users] A way to determine when a guest domain was launched?

2012-04-16 Thread Amy Skinner
I've looked around at the API documents (I'm using python) and I know how to find the cpu active uptime of the domain, but that only increases if the domain is running something. Is there a way to determine when the domain was first launched, either as a date or uptime with idle uptime included

Re: [libvirt-users] [API reference] confused by CPU time term

2012-04-16 Thread Zhihua Che
在 2012年3月28日 下午5:02,Osier Yang 写道: > On 03/28/2012 01:44 PM, Zhihua Che wrote: >> >> 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 s

[libvirt-users] What's the precision of the domain cpu stats?

2012-04-16 Thread Zhihua Che
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

[libvirt-users] libvirt slow responding after define poool with existing VG with some other lv

2012-04-16 Thread Anton Gorlov
If I add VG with some other lv-s to libvirt pool then libvirt slow responding. How to fix it? LVM_MAIN a2713bed-ad4a-fb79-83b5-65a9e8f1094e 0 0 0 LVM_MAIN /dev/LVM_MAIN 0700 -1 -1 vgdisplay File descriptor 7 (pipe:[37858]) l

Re: [libvirt-users] help:any docs for open vswitch supporting?

2012-04-16 Thread Ansis Atteka
2012/4/12 Wang Yue > thank you, > but i think i did not describe my quenstions well.i already knew about > OVS,and I want to know what libvirt did to support OVS,are there any new > APIs?or something else. > after knowing this,I think I will know how to integrate OVS into my system > using this l