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 1428534 - Enhance qemu to present virtual L3 cache info for vcpus
Summary: Enhance qemu to present virtual L3 cache info for vcpus
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.4
Hardware: x86_64
OS: Unspecified
high
urgent
Target Milestone: rc
: 7.4
Assignee: Bandan Das
QA Contact: Guo, Zhiyi
URL:
Whiteboard:
Depends On:
Blocks: 1428952 1430802 1434537
TreeView+ depends on / blocked
 
Reported: 2017-03-02 18:56 UTC by Hai Huang
Modified: 2020-05-14 15:42 UTC (History)
19 users (show)

Fixed In Version: qemu-kvm-rhev-2.8.0-2.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1428952 1430802 (view as bug list)
Environment:
Last Closed: 2017-08-02 03:39:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:2392 0 normal SHIPPED_LIVE Important: qemu-kvm-rhev security, bug fix, and enhancement update 2017-08-01 20:04:36 UTC

Description Hai Huang 2017-03-02 18:56:00 UTC
Description of problem:
This feature request is to enhance qemu to present virtual L3 cache 
info for vcpus.

This feature is available in upstream qemu as:
https://patchwork.kernel.org/patch/9308401/

This feature is required to pass SAP/HANA performance acceptance 
test.


Version-Release number of selected component (if applicable):
Upstream qemu 2.8.
This feature is needed in qemu-kvm-rhev for RHEL7.4 and 7.3.z.


How reproducible:
Very reproducible with the SAP HANA performance tests.


Steps to Reproduce:
1. Please see the performance team (Dave Dumas, Joe Mario)
2.
3.

Actual results:
Without this feature, SAP HANA performance tests fail to meet acceptance criteria.

Expected results:
SAP HANA performance tests need to meet acceptance criteria.

Additional info:

Comment 17 Joe Mario 2017-07-06 19:17:31 UTC
Hi Steve:
This L3 fix is confusing, since many incorrectly assume it implies without it that KVM guests will not use the host cpu's L3 cache.

Here's a little clarification from the SAP HANA that we did with Dave Dumas and all.

Without this L3 fix, running lscpu in a guest did not show any L3.  With this fix it does. 

We ran SAP in a guest where qemu was backed by the host's default 4K pages, by the host's 2-meg hugepages, and by the host's 1-gig hugepages.

This L3 patch caused no change in performance when qemu was backed by the host's 4k or 2-meg hugepages.  It was when we booted the guest where qemu was backed by the host's 1-gig hugepages that we saw a performance increase.  

Why this patch only showed a performance increase when the guest qemu was backed by 1-gig hugepages (and not with 4k or 2-meg pages) was related to reduced TLB misses.    With this L3 cache and 1-gig hugepages, the KVM TLB-miss handling code can better see that two cpus share the same L3 and reduce the cost of handling the TLB-miss.

If anyone says they need this L3 patch because they want their guests to be able to use the host cpu's L3 cache for better performance, that's mistaken.  Their guests are already using L3 even though lscpu doesn't show it.

Joe

Comment 18 Joe Mario 2017-07-06 19:34:04 UTC
Steve:
 I forgot to answer this part of your question:

 > Do we have numbers on what the performance was versus the "passthrough" 
 > L3 cache that was presented in older versions of RHEL (7.2)?

We have no numbers.  Even though we experimented with both "passthrough" and "cpu-exact" on both 7.2 and 7.3, (where passthrough outperformed cpu-exact), we saw no significant performance gain between the two.  

Understand were also experimenting with our xml files in those early days, but again L3 only helped us when we got that L3 patch and booted the guest backed by 1-gig hugepages.

Comment 20 errata-xmlrpc 2017-08-02 03:39:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2017:2392


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