intel / kubernetes-power-manager

Apache License 2.0
76 stars 18 forks source link

Default Max and Min frequency for base profiles #68

Closed sahanirn closed 2 months ago

sahanirn commented 8 months ago

@adorney99 How are the max and min frequencies for the base profiles (performance, balance-power, balance-performance) set? Does it depend on any hardware characteristics or is it defined somewhere within intel power manager? If defined, can we change them before deployment, without having to edit later.

adorney99 commented 8 months ago

Hi @sahanirn, The values used are based on hardware frequency ranges. The frequency values are calculated by getting the system frequency range (total max - total min), taking a set percentage of that value and subtracting it from the maximum core frequency. The min is just this value minus 200.

We don't have any user facing method of changing these values as users can create their own custom profiles but if you're alright with building images locally you can edit the percentages here to change the percentages used. For example balance performance takes 25% of the system frequency range and subtracts it from the system max frequency