redhat-performance / tuned

Tuning Profile Delivery Mechanism for Linux
GNU General Public License v2.0
814 stars 178 forks source link

cpu_plugin: Add property "uncore_max_freq_khz" #576

Closed sgruszka closed 8 months ago

sgruszka commented 10 months ago

Add a property "uncore_max_delta_khz" to cpu_plugin, so that uncore maximum frequency can be set. The property is exported per die, hence add extra logic to map it to per cpu setting and check for wrong config.

Refer to the following link to get details uncore frequency scaling: https://docs.kernel.org/admin-guide/pm/intel_uncore_frequency_scaling.html

This extends PR #519 to make uncore frequency defined per cpu as proposed in https://github.com/redhat-performance/tuned/pull/519#issuecomment-1602367982

For now, for simplicity , uncore max_freq_khz is configured as direct value. Also uncore's that are not defined as package_NN_die_MM are not covered in this PR.

sgruszka commented 8 months ago

Created new PR #590 with intel uncore plugin , closing this one.