Bug 725290 - KVM: backport 'perf kvm' support to RHEL6.3
Summary: KVM: backport 'perf kvm' support to RHEL6.3
Keywords:
Status: CLOSED DUPLICATE of bug 632768
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.3
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Marcelo Tosatti
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-25 01:16 UTC by Zhang, Jian
Modified: 2011-09-07 15:51 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-07 15:51:20 UTC
Target Upstream Version:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.