Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 725290

Summary: KVM: backport 'perf kvm' support to RHEL6.3
Product: Red Hat Enterprise Linux 6 Reporter: Zhang, Jian <jian.zhang>
Component: kernelAssignee: Marcelo Tosatti <mtosatti>
Status: CLOSED DUPLICATE QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.3   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-07 15:51:20 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 Zhang, Jian 2011-07-25 01:16:49 UTC
Description of problem:
Perf kvm commond merged into Linux kernel from 2.6.32 helps to report guest kernel and user overhead, howevere, the output of perf kvm xxx on RHEL6.0, RHEL6.2 is incorrect, it is correct on upstream. 

Version-Release number of selected component (if applicable):
kenrel: 2.6.32-154.el6.x86_64


How reproducible:
On  upstream Linux (2.6.39-1) and RHEL6.2 (2.6.32-154.el6.x86_64 and 2.6.32-169.el6.x86_64),  with an infinite loop running in guest and collect perf top data with the following command: 
[root@test1 /]# perf kvm --host --guest --guestkallsyms=/guestmodules/guest.kallsyms --guestmodules=/guestmodules/guest.modules top
Take a look into the output.

Steps to Reproduce:
1. Install a guests, running an infinite loop in the guest
2. Collect perf kvm xxx top/record results on both upstream and RHEL6.2
3. compare the results
  
Actual results:
On upstream:
PerfTop:    1474 irqs/sec  kernel:30.3% us: 1.6% guest kernel: 3.5% guest us:64.5% exact:  0.0% [1000Hz cycles],  (all, 20 CPUs)
On RHEL6.2: 
PerfTop:    1469 irqs/sec  kernel:99.7% us: 0.3% guest kernel: 0.0% guest us: 0.0% exact:  0.0% [1000Hz cycles],  (all, 20 CPUs)


Expected results:
The results should be the same

Additional info:
Used the same machine, only upgrade kernel to 2.6.39-1.

Comment 2 Marcelo Tosatti 2011-08-30 18:03:55 UTC
Currently there is no support for "perf kvm" in RHEL6.2. Change the BZ to request backport for RHEL6.3.

Comment 3 Marcelo Tosatti 2011-09-07 15:51:20 UTC

*** This bug has been marked as a duplicate of bug 632768 ***