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 1749576 - [Amazon RHEL8.2 FEAT] Python3 - Enable "Expensive" Optimizations
Summary: [Amazon RHEL8.2 FEAT] Python3 - Enable "Expensive" Optimizations
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: python3
Version: 8.2
Hardware: aarch64
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.2
Assignee: Charalampos Stratakis
QA Contact: Lukáš Zachar
URL:
Whiteboard:
Depends On:
Blocks: 1732354 1749568 1776957
TreeView+ depends on / blocked
 
Reported: 2019-09-05 22:15 UTC by Jon Masters
Modified: 2023-06-12 10:25 UTC (History)
11 users (show)

Fixed In Version: python3-3.6.8-18.el8
Doc Type: Release Note
Doc Text:
The profile guided optimizations, previously enabled only for the x86_64 architecture, have been also enabled for the aarch64, ppc64le and s390x architectures.
Clone Of:
Environment:
Last Closed: 2020-04-28 16:07:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-27649 0 None None None 2023-06-12 10:25:40 UTC
Red Hat Product Errata RHSA-2020:1764 0 None None None 2020-04-28 16:08:22 UTC

Description Jon Masters 2019-09-05 22:15:51 UTC
Description of problem:

Our current Python3 packages are built without "Expensive" (e.g. LTO, PGO) optimizations enabled. There's a section in specfile that looks like this:

$ grep -A7 Expensive python3.spec
# Expensive optimizations (mainly, profile-guided optimizations)
%ifarch %{ix86} x86_64
%bcond_without optimizations
%else
# On some architectures, the optimized build takes tens of hours, possibly
# longer than Koji's 24-hour timeout. Disable optimizations here.
%bcond_with optimizations
%endif

Where apparently we don't turn on these performance optimizations for aarch64, but only for x86, however allegedly the perf benefit would be 30%! We should thus consider urgently enabling these performance features if the builds aren't negatively impacted in terms of build time, etc.

Comment 3 Victor Stinner 2019-09-24 13:33:07 UTC
# On some architectures, the optimized build takes tens of hours, possibly
# longer than Koji's 24-hour timeout. Disable optimizations here.
%bcond_with optimizations

A solution for that is to backport the following change from Python 3.8 (upstream) to Python 3.6 (downstream):

* https://bugs.python.org/issue36044
* https://github.com/python/cpython/commit/4e16a4a3112161a5c6981c0588142d4a4673a934
* https://github.com/python/cpython/commit/e1b900247227dad49d8231f1d028872412230ab4

In short: the PGO build runs only a few tests rather than the full Python test suite to train the compiler, so the build is way faster.

Comment 9 errata-xmlrpc 2020-04-28 16:07:22 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-2020:1764


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