Re: Questing regarding KVM Guest PMU

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 4, 2012 at 12:13 AM, shashank rachamalla
<shashank.rachamalla@xxxxxxxxx> wrote:
> On Tue, Apr 3, 2012 at 10:28 PM, Gleb Natapov <gleb@xxxxxxxxxx> wrote:
>> On Tue, Apr 03, 2012 at 07:20:04PM +0530, shashank rachamalla wrote:
>>> On Mon, Mar 19, 2012 at 12:37 PM, Gleb Natapov <gleb@xxxxxxxxxx> wrote:
>>> > On Mon, Mar 19, 2012 at 12:20:30PM +0530, shashank rachamalla wrote:
>>> >> On Sun, Mar 18, 2012 at 10:21 PM, Gleb Natapov <gleb@xxxxxxxxxx> wrote:
>>> >> > On Sun, Mar 18, 2012 at 09:47:55PM +0530, shashank rachamalla wrote:
>>> >> >> >> I guess things are working fine with perf. But why not with oprofile ?
>>> >> >> >>
>>> >> >> > Looks like it. I never tried oprofile. Will try to reproduce your
>>> >> >> > problem and see what oprofile is doing.
>>> >> >>
>>> >> >> I am using ubuntu 10.04 with 2.6.32-21-generic kernel as guest and
>>> >> >> oprofile 0.9.6.
>>> >> >> Also, I have tried to capture kvm-events ( perf patch ) in host while
>>> >> >> running oprofile and perf in guest.
>>> >> >> Please see the attachment. I have run the tests in three cases for the
>>> >> >> around 5 secs.
>>> >> >>
>>> >> >> There are more number of MSR reads and writes in case of perf which I
>>> >> >> think is normal. However, there are very few MSR reads and writes with
>>> >> >> oprofile. Also, the number of NMI exceptions are too high in case of
>>> >> >> oprofile.
>>> >> >>
>>> >> > Which host kernel are you using? Try latest kvm.git and check if you see
>>> >> > something unusual in dmesg.
>>> >>
>>> >> Currenly running 3.3.0-rc5. will try with the latest source from kvm
>>> >> git and let you know.
>>> >>
>>> >>
>>> > Thanks, there were some fixes that didn't make it into 3.3. rdpmc
>>> > instruction emulation fix is one of them. If oprofile uses it this can
>>> > explain the problem.
>>> >
>>> I have tried with latest kvm source from git and also with 3.0 guest
>>> kernel but oprofile fails to collect any samples on guest. I am using
>>> a core2duo processor which is considered by oprofile as pentium pro
>>> model.
>>>
>> core2duo on the host or the guest? What is your qemu command line?
>>
> both. qemu command line below.
> sudo /usr/local/bin/qemu-system-x86_64 -drive
> file=vdisk1.img,if=virtio -cpu host -m 2000 -net nic,model=virtio -net
> user
>

please find more info ( /proc/cpuinfo and uname of both host and guest
) in attached files.

>> --
>>                        Gleb.
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz
stepping	: 11
microcode	: 0xb3
cpu MHz		: 800.000
cache size	: 4096 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm ida dts tpr_shadow vnmi flexpriority
bogomips	: 4399.99
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz
stepping	: 11
microcode	: 0xb3
cpu MHz		: 800.000
cache size	: 4096 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm lahf_lm ida dts tpr_shadow vnmi flexpriority
bogomips	: 4399.99
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

Linux shashank-Aspire-5920 3.3.0-rc5+ #3 SMP Tue Apr 3 22:42:29 IST 2012 i686 i686 i386 GNU/Linux
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz
stepping	: 11
cpu MHz		: 2199.996
cache size	: 4096 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss constant_tsc up arch_perfmon pni ssse3 cx16 hypervisor lahf_lm
bogomips	: 4399.99
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 0 bits virtual
power management:

Linux shashank-virtual-machine 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 i686 i386 GNU/Linux

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux