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 1958014 - tuned-profiles-postgresql does not exist in RHEL8 repo
Summary: tuned-profiles-postgresql does not exist in RHEL8 repo
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: releng
Version: 8.3
Hardware: All
OS: Linux
unspecified
low
Target Milestone: beta
: ---
Assignee: Jaroslav Škarvada
QA Contact: Robin Hack
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-07 02:31 UTC by masanari iida
Modified: 2022-11-08 12:44 UTC (History)
6 users (show)

Fixed In Version: tuned-2.19.0-0.1.rc1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-08 10:52:37 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 Product Errata RHBA-2022:7747 0 None None None 2022-11-08 10:52:51 UTC

Description masanari iida 2021-05-07 02:31:48 UTC
Description of problem:
In "Monitoring and Managing System status and Perormance" manual,
Chapter 2.3, Tuned profiles distributed with RHEL,
It is written that 
"This profile is provided by the tuned-profiles-postgresql package." <<

But it seemed that specific RPM package doesn't exist in RHN repo.

Document URL
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/getting-started-with-tuned_monitoring-and-managing-system-status-and-performance#tuned-profiles_getting-started-with-tuned

Chapter 2.3
postgresql
    A profile optimized for PostgreSQL databases loads based on throughput-performance profile. It additionally disables transparent huge pages and modifies other performance-related kernel parameters. This profile is provided by the tuned-profiles-postgresql package. 

Actual results:
The package name started with "tuned" are 
In BaseOS channel
tuned
tuned-profiles-atomic
tuned-profiles-compat
tuned-profiles-cpu-partitioning
tuned-profiles-mssql
tuned-profiles-oracle

In AppStream
tuned-gtk
tuned-utils
tuned-utils-systemtap

And tuned rpm doesn't include postgresql profile.
# rpm -ql tuned |grep postgre
# 

Expected results:
tuned-profiles-postgresql can be downloaded from BaseOS channel.

Additional info:
If Red Hat has no plan to provide the tuned-profiles-postgresql
please remove the information from the online document.

Comment 1 masanari iida 2021-05-07 08:26:03 UTC
Check the RHEL8.4(beta) iso,
There is no tuned-profile-postgresql RPM package.

# ls -l tune*
-r--r--r-- 291 root root 310692 Feb 26 03:50 tuned-2.15.0-2.el8.noarch.rpm
-r--r--r-- 291 root root  36820 Feb 26 03:51 tuned-profiles-atomic-2.15.0-2.el8.noarch.rpm
-r--r--r-- 291 root root  40172 Feb 26 03:51 tuned-profiles-compat-2.15.0-2.el8.noarch.rpm
-r--r--r-- 291 root root  39904 Feb 26 03:51 tuned-profiles-cpu-partitioning-2.15.0-2.el8.noarch.rpm
-r--r--r-- 291 root root  36288 Feb 26 03:51 tuned-profiles-mssql-2.15.0-2.el8.noarch.rpm
-r--r--r-- 291 root root  36596 Feb 26 03:51 tuned-profiles-oracle-2.15.0-2.el8.noarch.rpm

# ls -l tune*
-r--r--r-- 291 root root 61560 Feb 26 03:51 tuned-gtk-2.15.0-2.el8.noarch.rpm
-r--r--r-- 291 root root 46732 Feb 26 03:51 tuned-utils-2.15.0-2.el8.noarch.rpm
-r--r--r-- 291 root root 51836 Feb 26 03:51 tuned-utils-systemtap-2.15.0-2.el8.noarch.rpm

Comment 2 Jaroslav Škarvada 2021-05-10 07:57:09 UTC
Thanks for the report. It's probably inconsistency in the documentation. The postgresql profile is in the TuneD upstream, but we haven't shipped it in RHEL yet, because the profile hasn't been approved by our performance team. I will try to move it forward and introduce the profile into RHEL.

Comment 3 Jacob Taylor Valdez 2021-05-18 07:01:27 UTC
Hi, thanks for letting us know. I will remove the profile description from this docs section ASAP and get it back in when the postgresql profile is shipped in RHEL.

Comment 6 Jaroslav Škarvada 2021-08-02 19:57:32 UTC
We are going to ship this profile / package in RHEL-8. Sanjay Rao <srao> tested the profile and provided the following results:

>I finished my testing on different storage types that were available. I found that we saw a 7% improvement in performance with the postgres profile with very high user count on Fibrechannel storage. See chart below. I did 2 runs with each profile to validate the results.
> 
>2500WH Testing for Postgres profile	200	500
>4.18.0-318.el8-20P-256Gmem-TP	        1425657	784348
>4.18.0-318.el8-20P-256Gmem-TP       	1419516	782804
>4.18.0-318.el8-20P-256Gmem-Postgres	1438529	833350
>4.18.0-318.el8-20P-256Gmem-Postgres	1440257	841219
> 
>As we suspected, the background_dirty_bytes setting helps in systems with legacy storage, that too with very high memory activity. Flushing dirty blocks in the backgrounds helps free up memory and ekes out some more transactions.
> 
>So to summarize, the postgres profile does not help with fast storage but does not have any negative implications but it definitely helps in legacy storage. I will see if we get a chance to test this on virtualization and share the results.

The HammerDB (https://github.com/TPC-Council/HammerDB) was used for testing.

Comment 7 Jaroslav Škarvada 2021-08-02 20:07:25 UTC
Moving to relengs.

TLDR: we need the tuned-profiles-postgresql subpackage to be shipped in the RHEL-8.5 and newer erratas (including RHEL-9), e.g.:
https://errata.devel.redhat.com/advisory/78559/builds

The subpackage should be in the BaseOS-8.5.0.GA, currently it is not in Product Listings.

Justification is in the comment 6, better performance means better customer experience, thus we definitely want to ship and support it in RHEL.

Comment 20 errata-xmlrpc 2022-11-08 10:52:37 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 (tuned bug fix and enhancement update), 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/RHBA-2022:7747


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