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 593620 - performance is not improved with x2apic
Summary: performance is not improved with x2apic
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-19 10:15 UTC by Suqin Huang
Modified: 2010-07-14 16:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-25 04:49:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
script for pipe test (1.07 KB, text/x-csrc)
2010-05-19 10:15 UTC, Suqin Huang
no flags Details

Description Suqin Huang 2010-05-19 10:15:59 UTC
Created attachment 415074 [details]
script for pipe test

Description of problem:


Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.54.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. boot guest with x2apic (at least 2 vcpus, and enable ept in host)
2. command
/usr/libexec/qemu-kvm  -smp 2 -m 2G -drive file=/root/images/rhel6-32.qcow2,if=virtio,boot=on -net nic,vlan=0,macaddr=00:90:4a:01:00:37,model=virtio -net tap,vlan=0,script=/etc/qemu-ifup  -uuid `uuidgen` -no-hpet -usbdevice tablet  -rtc-td-hack  -startdate now -cpu qemu64,+x2apic -monitor stdio -vnc :1
3. run pipetest (attached), and get the result
4. boot guest without x2apic (same vcpu num as step1)
5. run pipetest, and get the result
6. compare the results.

Another testing:
run lmbench testing, and compare "Pipe latency"

  
Actual results:
pipetest:

with x2apic
56.19 usecs/loop.
56.45 usecs/loop.
57.05 usecs/loop.
56.48 usecs/loop.
55.45 usecs/loop.
55.13 usecs/loop.
53.89 usecs/loop.
54.55 usecs/loop.
55.93 usecs/loop.
57.98 usecs/loop.
56.59 usecs/loop.
54.89 usecs/loop.
54.25 usecs/loop.
54.25 usecs/loop.
56.51 usecs/loop.

without x2apic:
56.46 usecs/loop.
57.22 usecs/loop.
54.03 usecs/loop.
56.65 usecs/loop.
56.33 usecs/loop.
54.25 usecs/loop.
54.51 usecs/loop.
56.18 usecs/loop.
56.07 usecs/loop.
54.83 usecs/loop.
55.41 usecs/loop.
56.31 usecs/loop.
56.48 usecs/loop.
56.30 usecs/loop.
56.12 usecs/loop.
56.16 usecs/loop.


lmbench testing:

with x2apic:
Pipe latency: 72.7915 microseconds

without x2apic:
Pipe latency: 71.0693 microseconds 


Expected results:


Additional info:

1. host:
tree : RHEL6.0-20100511.3/  

processor	: 7
vendor_id	: GenuineIntel
cpu family	: 6
model		: 26
model name	: Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
stepping	: 4

flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida tpr_shadow vnmi flexpriority ept vpid


2. guest: rhel6-32

Comment 2 Gleb Natapov 2010-05-22 18:40:35 UTC
As far as I see x2apic is available only on x86-64, so please retest with rhel6-64. Have you checked in the guest dmesg that x2apic was actually enabled prior to running benchmarks?

Comment 3 Suqin Huang 2010-05-24 03:21:46 UTC
retest with guest rhel6-64

1. with x2apic
[root@x64 ~]# dmesg | grep x2apic
Enabling x2apic
Enabled x2apic
Setting APIC routing to physical x2apic

50.93 usecs/loop.
44.41 usecs/loop.
50.23 usecs/loop.
50.34 usecs/loop.
50.56 usecs/loop.
49.80 usecs/loop.
49.93 usecs/loop.
48.71 usecs/loop.
49.02 usecs/loop.
51.95 usecs/loop.

2. without x2apic

78.32 usecs/loop.
75.71 usecs/loop.
79.79 usecs/loop.
79.01 usecs/loop.
78.26 usecs/loop.
80.96 usecs/loop.
78.66 usecs/loop.
78.80 usecs/loop.

Comment 4 Gleb Natapov 2010-05-24 05:22:21 UTC
So, I guess, we can close this one?

Comment 5 Suqin Huang 2010-05-25 04:49:49 UTC
close this bug as "NOT A BUG" according to comment 2 and comment 3

Comment 6 john cooper 2010-07-14 16:41:22 UTC
See also: https://bugzilla.redhat.com/show_bug.cgi?id=613884


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