Skip to contentSkip to conversation

OProfile with Xen-4.9

DISCUSSION Сергей 2 participants 3 messages Dec 21, 2017 – Dec 25, 2017

lore
Share & tools
lore
#0 lore raw

Hello.

I have installed Xen-4.9 from Ubuntu 17.10 package. And I would like to profile it with OProfile (as far as I know this is the only option).

With instruction from http://wiki.prgmr.com/mediawiki/index.php/Chapter_10:_Profiling_and_Benchmarking_Under_Xen#Profiling_with_Xen I have been able to build oprofile-0.9.4. There were some bugs ( https://patchwork.ozlabs.org/patch/679925/ , https://sourceforge.net/p/oprofile/mailman/message/30135604/ , https://acassis.wordpress.com/2012/11/13/error-reference-counts-cannot-be-declared-mutable/  ).

With opreport -t 2 I receive:

Quoted 2 lines

opreport error: No sample file found: try running opcontrol --dump or specify a session containing sample files

With more /proc/interrupts |grep NMI I get:

Quoted 1 line

NMI:          0          0          0          0          0          0          0          0   Non-maskable interrupts

Could somebody point me to some good instruction for profiling current version of Xen?

P.S. I have rebuild package with Performance Counters and Performance Counters Array Histrograms already.

Signature · 6 lines
With best regards
Sergey Kovalev
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
#1 lore raw
Quoted 6 lines · Сергей

Hello.

I have installed Xen-4.9 from Ubuntu 17.10 package. And I would like to profile it with OProfile (as far as I know this is the only option).

With instruction from http://wiki.prgmr.com/mediawiki/index.php/Chapter_10:_Profiling_and_Benchmarking_Under_Xen#Profiling_with_Xen I have been able to build oprofile-0.9.4. There were some bugs ( https://patchwork.ozlabs.org/patch/679925/ , https://sourceforge.net/p/oprofile/mailman/message/30135604/ , https://acassis.wordpress.com/2012/11/13/error-reference-counts-cannot-be-declared-mutable/ ).

Quoted 10 lines

With opreport -t 2 I receive:

Quoted 2 lines

opreport error: No sample file found: try running opcontrol --dump or specify a session containing sample files

With more /proc/interrupts |grep NMI I get:

Quoted 1 line

NMI: 0 0 0 0 0 0 0 0 Non-maskable interrupts

Could somebody point me to some good instruction for profiling current version of Xen?

P.S. I have rebuild package with Performance Counters and Performance Counters Array Histrograms already.

Make sure you have vpmu boot option for Xen.

I am not sure what you are trying to to profile but it's the host (and not the guest) then this will need xenoprof support in (dom0) kernel. Those patches have not been maintained for years and I doubt any reasonably new distro supports this.

You could use perf but there are some limitations on what it can do for system-wide profiling. Works fine for guests though.

-boris

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel