Bug 582570
Summary: | Cannot run oprofile inside DOMU | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Kirby Zhou <kirbyzhou> |
Component: | oprofile | Assignee: | William Cohen <wcohen> |
Status: | CLOSED CANTFIX | QA Contact: | qe-baseos-tools-bugs |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 5.4 | CC: | alanm, fche, sgehwolf |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-03-11 17:45:28 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Kirby Zhou
2010-04-15 10:47:23 UTC
The performance counters are not available to profile in virtualized environments such as xen. You might be able to use the timer mode within the DomU. If just measuring things within a domU, as root you could do the following to use the timer mode: opcontrol --deinit rm -f /root/.oprofile/daemonrc modprobe oprofile timer=1 opcontrol --reset opcontrol --vmlinux=/usr/lib/debug/lib/modules/`uname -r`/vmlinux \ --separate=library opcontrol --start This has been verified to work with oprofile-0.9.4-15.el5. Since xen did not virtualize perf counters sufficiently, the approximation in comment #1 is probably the best oprofile can do. |