Documentation: admin-guide: pm: Document uncore frequency scaling
Subsystems (2)
Srinivas Pandruvada
maintainerPATCH 1/1 Documentation: admin-guide: pm: Document uncore frequency scaling
Added documentation to configure uncore frequency limits in Intel Xeon processors.
---
Resent by adding [email protected]
.../pm/intel_uncore_frequency_scaling.rst | 56 +++++++++++++++++++ .../admin-guide/pm/working-state.rst | 1 + 2 files changed, 57 insertions(+) create mode 100644 Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst
Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst new file +56 -0
@@ -0,0 +1,56 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: <isonum.txt> + +============================== +Intel Uncore Frequency Scaling +============================== + +:Copyright: |copy| 2022 Intel Corporation + +:Author: Srinivas Pandruvada <[email protected]> + +Introduction +=========================================== + +Uncore can consume significant amount of power in Intel's Xeon servers based +on the workload characteristics. To optimize total power and improve overall +performance, SoC has an internal algorithm for scaling uncore frequency. These +algorithms monitor workload usage of uncore and set a desirable frequency. + +It is possible that users have different expectations of uncore performance and +want to have control over it. The objective is similar to set scaling min/max +frequencies using cpufreq sysfs to improve compute performance. Users may have +some latency sensitive workload where they do not want any change to uncore +frequency. Also, users may have workload which requires different core and +uncore performance at distinct phases and they want to use both cpufreq and +uncore scaling interface to distribute power and improve overall performance. + +To control uncore frequency, a sysfs interface is provided in the directory: +`/sys/devices/system/cpu/intel_uncore_frequency/`. + +There is one directory for each package and die combination as the scope of +uncore scaling control is per die in multiple dies/package SoC or per +package for single die per package SoC. The name represents the +scope of control. For example: 'package_00_die_00' is for package id 0 and +die 0 in it. + +Each package_*_die_* contains following attributes: + +``initial_max_freq_khz`` + Out of reset, this attribute represent the maximum possible frequency. + This is a read only attribute. If users adjust max_freq_khz, + they can always go back to maximum using the value from this attribute. + +``initial_min_freq_khz`` + Out of reset, this attribute represent the minimum possible frequency. + This is a read only attribute. If users adjust min_freq_khz, + they can always go back to minimum using the value from this attribute. + +``max_freq_khz`` + This attribute is used to set the maximum uncore frequency. + +``min_freq_khz`` + This attribute is used to set the minimum uncore frequency. + +``current_freq_khz`` + This attribute is used to get the current uncore frequency.
Documentation/admin-guide/pm/working-state.rst +1 -0
@@ -15,3 +15,4 @@ Working-State Power Management cpufreq_drivers intel_epb intel-speed-select + intel_uncore_frequency_scaling
Signature · 1 line
2.34.1
Quoted 22 lines · Srinivas Pandruvada
Added documentation to configure uncore frequency limits in Intel Xeon processors.
Signed-off-by Srinivas Pandruvada <[email protected]>---
Resent by adding [email protected].../pm/intel_uncore_frequency_scaling.rst | 56 +++++++++++++++++++ .../admin-guide/pm/working-state.rst | 1 + 2 files changed, 57 insertions(+) create mode 100644 Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rstDocumentation/admin-guide/pm/intel_uncore_frequency_scaling.rst new file +3
-0@@ -0,0 +1,56 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: <isonum.txt> +
Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst line 13
Quoted 10 lines
Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst new file +10
-0+============================== +Intel Uncore Frequency Scaling +============================== + +:Copyright: |copy| 2022 Intel Corporation + +:Author: Srinivas Pandruvada <[email protected]> + +Introduction +===========================================
There are no other sections in this file, so can the section header above be dropped?
Quoted 55 lines
Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst new file +43
-0+ +Uncore can consume significant amount of power in Intel's Xeon servers based +on the workload characteristics. To optimize total power and improve overall +performance, SoC has an internal algorithm for scaling uncore frequency. These +algorithms monitor workload usage of uncore and set a desirable frequency. + +It is possible that users have different expectations of uncore performance and +want to have control over it. The objective is similar to set scaling min/max +frequencies using cpufreq sysfs to improve compute performance. Users may have +some latency sensitive workload where they do not want any change to uncore +frequency. Also, users may have workload which requires different core and +uncore performance at distinct phases and they want to use both cpufreq and +uncore scaling interface to distribute power and improve overall performance. + +To control uncore frequency, a sysfs interface is provided in the directory: +`/sys/devices/system/cpu/intel_uncore_frequency/`. + +There is one directory for each package and die combination as the scope of +uncore scaling control is per die in multiple dies/package SoC or per +package for single die per package SoC. The name represents the +scope of control. For example: 'package_00_die_00' is for package id 0 and +die 0 in it. + +Each package_*_die_* contains following attributes: + +``initial_max_freq_khz`` + Out of reset, this attribute represent the maximum possible frequency. + This is a read only attribute. If users adjust max_freq_khz, + they can always go back to maximum using the value from this attribute. + +``initial_min_freq_khz`` + Out of reset, this attribute represent the minimum possible frequency. + This is a read only attribute. If users adjust min_freq_khz, + they can always go back to minimum using the value from this attribute. + +``max_freq_khz`` + This attribute is used to set the maximum uncore frequency. + +``min_freq_khz`` + This attribute is used to set the minimum uncore frequency. + +``current_freq_khz`` + This attribute is used to get the current uncore frequency.Documentation/admin-guide/pm/working-state.rst +1
-1@@ -15,3 +15,4 @@ Working-State Power Management cpufreq_drivers intel_epb intel-speed-select + intel_uncore_frequency_scaling --2.34.1
srinivas pandruvada
maintainerQuoted 35 lines · Rafael J. Wysocki
Quoted 33 lines · Srinivas Pandruvada
Added documentation to configure uncore frequency limits in Intel Xeon processors.
Signed-off-by: Srinivas Pandruvada
<[email protected]>
---
Resent by adding [email protected].../pm/intel_uncore_frequency_scaling.rst | 56
+++++++++++++++++++
.../admin-guide/pm/working-state.rst | 1 +2 files changed, 57 insertions(+)create mode 100644
Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst(quoted diff) +0
-0
guide/pm/intel_uncore_frequency_scaling.rstb/Documentation/admin-guide/pm/intel_uncore_frequency_scaling.rst
new file mode 100644
index 000000000000..b3519560594bDocumentation/admin- new file +0
-0
guide/pm/intel_uncore_frequency_scaling.rstDocumentation/admin- new file +8
-0@@ -0,0 +1,56 @@ +.. SPDX-License-Identifier: GPL-2.0 +.. include:: <isonum.txt> + +============================== +Intel Uncore Frequency Scaling +============================== + +:Copyright: |copy| 2022 Intel Corporation
Quoted 9 lines
Documentation/admin- line 13
Quoted 5 lines
Documentation/admin- new file +5
-0+ +:Author: Srinivas Pandruvada <[email protected]> + +Introduction +===========================================There are no other sections in this file, so can the section header above be dropped?
Sure.
Thanks,
Srinivas
Quoted 77 lines
Quoted 77 lines
Documentation/admin- new file +2
-0+ +Uncore can consume significant amount of power in Intel's Xeonservers based
+on the workload characteristics. To optimize total power and improve overall
+performance, SoC has an internal algorithm for scaling uncore frequency. These
+algorithms monitor workload usage of uncore and set a desirable frequency.Documentation/admin- new file +2
-0+ +It is possible that users have different expectations of uncoreperformance and
+want to have control over it. The objective is similar to set scaling min/max
+frequencies using cpufreq sysfs to improve compute performance. Users may have
+some latency sensitive workload where they do not want any change to uncore
+frequency. Also, users may have workload which requires different core and
+uncore performance at distinct phases and they want to use both cpufreq and
+uncore scaling interface to distribute power and improve overall performance.Documentation/admin- new file +2
-0+ +To control uncore frequency, a sysfs interface is provided in thedirectory:
+/sys/devices/system/cpu/intel_uncore_frequency/.Documentation/admin- new file +2
-0+ +There is one directory for each package and die combination as thescope of
+uncore scaling control is per die in multiple dies/package SoC or perDocumentation/admin- new file +2
-0+package for single die per package SoC. The name represents the +scope of control. For example: 'package_00_die_00' is for packageid 0 and
Documentation/admin- new file +6
-0+die 0 in it. + +Each package_*_die_* contains following attributes: + +``initial_max_freq_khz`` + Out of reset, this attribute represent the maximum possiblefrequency.
+ This is a read only attribute. If users adjustmax_freq_khz,
+ they can always go back to maximum using the value from this attribute.
+
+``initial_min_freq_khz``
+ Out of reset, this attribute represent the minimum possible frequency.
+ This is a read only attribute. If users adjustmin_freq_khz,
+ they can always go back to minimum using the value from this attribute.Documentation/admin- new file +9
-0+ +``max_freq_khz`` + This attribute is used to set the maximum uncore frequency. + +``min_freq_khz`` + This attribute is used to set the minimum uncore frequency. + +``current_freq_khz`` + This attribute is used to get the current uncore frequency.Documentation/admin-guide/pm/working-state.rst +0
-0@@ -15,3 +15,4 @@ Working-State Power Management
cpufreq_drivers
intel_epb
intel-speed-select
+intel_uncore_frequency_scaling
--
2.34.1