Xenoprof is an interface developed by HP for OProfile tools. It enables OProfile to be applicable to Xen-based virtual environments, so as to monitor kernel, application, and other performance information. It is detailed on the official website http://xenoprof.sourceforge.net. The principle of Xenprof is: In the Xen-based virtual environment, Xenoprof can be used to create a profile session, which can contain
Xenoprof is an interface developed by HP for OProfile tools. It enables OProfile to be applicable to Xen-based virtual environments, so as to monitor kernel, application, and other performance information. It is detailed on the official website http://xenoprof.sourceforge.net.
The principle of Xenprof is: In the Xen-based virtual environment, Xenoprof can be used to create a profile session, in this session, you can selectively profile multiple virtual machines (including semi-virtualized Linux and fully virtualized Windows or OpenSolaris ), to obtain the performance information of the kernel or application (such as Cache miss, TLB miss, etc ).
?The installation process is as follows:
1. Download oprofile-0.9.5.tar.gz from http://oprofile.sourceforge.net/( not the latest Oprofile version 0.9.6, Xen only supports this version );
2. Download oprofile-0.9.5-xen.patchfrom the official Xenoprof website http://xenoprof.sourceforge.net;
3.SetOprofile-0.9.5.tar.gzAndOprofile-0.9.5-xen.patchIn the same directory.
ExtractOprofileAnd patch:
Tar xzvf oprofile-0.9.5.tar.gz
Cd oprofile-0.9.5
Patch-p1 <../oprofile-0.9.5-xen.patch;
4.Run./Configure -- with-kernel-supportCommand for pre-compilation Configuration
During this period, two errors will occur:
Configure: error: popt library not found
Configure: error: liberty library not found
Solution:Sudo apt-get install libpopt-dev Binutils-dev
5.After configuration, run the following command:
Make
Sudo make install
Complete.OProfileInstallation.
In addition, you need to re-compile the kernel to addOprofile.
RecompileXenAnd addOprofileSupported
If you have not installedXenWe recommend that you install the two together.Xen-4.0.1See:Http://www.linuxidc.com/Linux/2011-07/39259.htm
Connect1.4Summary:
Go to the configuration page and addXenConfiguration:
$ Make menuconfig
General setup--->
<*> OProfile system profiling (EXPERIMENTAL)
//AddOprofileSupported
Processor type and features --->
[*] Enable Xen compatible kernel
Networking support --->
Networking options --->
<*> 802.1d Ethernet Bridging
Device Drivers --->
XEN --->
[*] Privileged Guest (domain 0)
<*> Backend driver support
<*> Block-device backend driver
<*> Block-device tap backend driver
<*> Block-device tap backend driver 2
<*> Network-device backend driver
<*> PCI-device backend driver
<*> SCSI backend driver
<*> USB backend driver
<*> Block-device frontend driver
<*> Network-device frontend driver
<*> SCSI frontend driver
<*> USB frontend driver
<*> Framebuffer-device frontend driver
<*> Keyboard-device frontend driver
[*] Disable serial port drivers
<*> Export Xen attributes in sysfs
Xen version compatibility (3.3.0 and later) --->
3.3.0 and later
The subsequent compilation and configuration process follow the original steps.