Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1452589 - Review our frequency scaling setup/tuning
Review our frequency scaling setup/tuning
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kernel-rt (Show other bugs)
7.4
x86_64 Linux
low Severity low
: rc
: ---
Assigned To: Daniel Bristot de Oliveira
Jiri Kastner
:
Depends On:
Blocks: 1420851 1442258
  Show dependency treegraph
 
Reported: 2017-05-19 05:33 EDT by Daniel Bristot de Oliveira
Modified: 2018-04-10 05:09 EDT (History)
5 users (show)

See Also:
Fixed In Version: 3.10.0-778.rt56.711
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-04-10 05:07:09 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
system running with kernel 3.10.0-514.el7 (16.31 MB, application/x-xz)
2017-06-15 09:06 EDT, Sebastien Aime
no flags Details
sosreport running with kernel 3.10.0-514.rt56.420.el7.x86_64 (16.29 MB, application/x-xz)
2017-06-15 09:23 EDT, Sebastien Aime
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0676 None None None 2018-04-10 05:09 EDT

  None (edit)
Description Daniel Bristot de Oliveira 2017-05-19 05:33:06 EDT
Description of problem:

Our current approach is to tell the customer to disable frequency scaling on BIOS. However, sometimes the kernel bypass BIOS setup, enabling frequency scaling. This happened in a specific hardware on BNP.

It would be nice to have a default setup that guarantees the optimal config on frequency scaling, even in the case of non-tuned BIOS.

I do not know if it is better to do it via kernel config or via a tuning setup, for example, via tuned, but it is something it is nice to review/set/document.
Comment 2 Prarit Bhargava 2017-05-22 09:22:11 EDT
(In reply to Daniel Bristot de Oliveira from comment #0)
> Description of problem:
> 
> Our current approach is to tell the customer to disable frequency scaling on
> BIOS. However, sometimes the kernel bypass BIOS setup, enabling frequency
> scaling. This happened in a specific hardware on BNP.
> 
> It would be nice to have a default setup that guarantees the optimal config
> on frequency scaling, even in the case of non-tuned BIOS.
> 
> I do not know if it is better to do it via kernel config or via a tuning
> setup, for example, via tuned, but it is something it is nice to
> review/set/document.

daolivei -- can you give me more details on this?  What system, what setup, etc?

P.
Comment 3 Sebastien Aime 2017-06-15 09:06 EDT
Created attachment 1288060 [details]
system running with kernel 3.10.0-514.el7
Comment 4 Sebastien Aime 2017-06-15 09:23 EDT
Created attachment 1288061 [details]
sosreport running with kernel 3.10.0-514.rt56.420.el7.x86_64
Comment 5 Daniel Bristot de Oliveira 2017-07-19 10:20:15 EDT
Hi Prarit,

This is more about a generic review of our configuration than a problem of a processor.

-- Daniel
Comment 8 Daniel Bristot de Oliveira 2017-11-09 03:28:49 EST
Hi

After reviewing the config setup, I saw that the problem was the default frequency scaling governor that was set to:

CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y

and should be:

CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y

This change was done in the kernel and the config is now correct.
Comment 9 Daniel Bristot de Oliveira 2017-11-09 11:06:25 EST
A suggestion of doc text:

The real-time kernel is configured to deliver the best on performance and determinism. It means that between power saving and performance, the latter is the choice.
In the effort to make RHEL-RT configuration as much compatible with RHEL config, the default CPU frequency scaling governor was set to be the same of RHEL (ONDEMAND) which is not the best option for the RT case.
This BZ fixes the problem by setting the PERFORMANCE as the default cpu frequency scaling governor.
Comment 15 errata-xmlrpc 2018-04-10 05:07:09 EDT
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-2018:0676

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