Ubuntu10.04 install Xen4.0.1 to add Xenoprof support

Source: Internet
Author: User
Tags virtual environment
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.