Skip to contentSkip to conversation

PMU in xen enviroment

DISCUSSION 蒋雄伟(蒋冲) 4 participants 4 messages Apr 13, 2015 – Apr 15, 2015

lore
Share & tools
lore
#0 lore raw

Hi,everyone

We would like to obtain the distribution of CPU-specific hardware events such as clock cycles and cache and TLB misses and branch-miss and etc. in Xen environment . It is said that Xenoprof can be used to do so. We use Intel's Ivy Bridge Processor which is released in 2012, so I think it is better to use oprofile 0.9.8 or above. But http://xenoprof.sourceforge.net/
only released oprofile-0.9.5-xen.patch which is released in 2009. Does it mean no patch is needed since OProfile 0.9.6 ? is there a detailed document describing how to use oprofile in xen environment ? is there any other tools to do so ?

Thanks a lot.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#1 lore raw
Quoted 8 lines · 蒋雄伟(蒋冲)

Hi,everyone

We would like to obtain the distribution of CPU-specific hardware events such as clock cycles and cache and TLB misses and branch-miss and etc. in Xen environment . It is said that Xenoprof can be used to do so. We use Intel's Ivy Bridge Processor which is released in 2012, so I think it is better to use oprofile 0.9.8 or above. But http://xenoprof.sourceforge.net/ only released oprofile-0.9.5-xen.patch which is released in 2009. Does it mean no patch is needed since OProfile 0.9.6 ? is there a detailed document describing how to use oprofile in xen environment ? is there any other tools to do so ?

Thanks a lot.

Hi,

There is a version of oprofile-0.9.9 for recent versions of fedora that include the xen patch:

http://koji.fedoraproject.org/koji/buildinfo?buildID=606050

That might be a reasonable starting point. However I don't think that the patch has been tested as most people are using KVM based virtualization on fedora.

IIRC is it somewhat complex to get everything setup and running for xenoprof because both host and guest need to be setup to do the monitoring:

http://www-archive.xenproject.org/files/summit_3/xenoprof_tutorial.pdf

-Will

Quoted 12 lines

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF

Quoted 5 lines

_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
In reply to 蒋雄伟(蒋冲)
Quoted 4 lines · 蒋雄伟(蒋冲)

Hi,everyone

Quoted 9 lines

We would like to obtain the distribution of CPU-specific hardware events such as clock cycles and cache and TLB misses and branch-miss and etc. in Xen environment . It is said that Xenoprof can be used to do so. We use Intel's Ivy Bridge Processor which is released in 2012, so I think it is better to use oprofile 0.9.8 or above. But http://xenoprof.sourceforge.net/
only released oprofile-0.9.5-xen.patch which is released in 2009. Does it mean no patch is needed since OProfile 0.9.6 ? is there a detailed document describing how to use oprofile in xen environment ? is there any other tools to do so ?

Boris (CCed) is working on making perf work under Linux + Xen.

Boris, would it make sense to have an Linux git tree with the set of patches that use the Xen new hypercalls ?

Quoted 9 lines

Thanks a lot.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#3 lore raw
Quoted 13 lines · Konrad Rzeszutek Wilk
Quoted 12 lines · 蒋雄伟(蒋冲)

Hi,everyone

We would like to obtain the distribution of CPU-specific hardware events such as clock cycles and cache and TLB misses and branch-miss and etc. in Xen environment . It is said that Xenoprof can be used to do so. We use Intel's Ivy Bridge Processor which is released in 2012, so I think it is better to use oprofile 0.9.8 or above. But http://xenoprof.sourceforge.net/
only released oprofile-0.9.5-xen.patch which is released in 2009. Does it mean no patch is needed since OProfile 0.9.6 ? is there a detailed document describing how to use oprofile in xen environment ? is there any other tools to do so ?

Quoted 4 lines

Boris (CCed) is working on making perf work under Linux + Xen.

Boris, would it make sense to have an Linux git tree with the set of patches that use the Xen new hypercalls ?

Yes, I probably should do this.

-boris

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel