<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 5, 2023, 11:19 Vigneshwar S <<a href="mailto:svigneshj@gmail.com">svigneshj@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone!<div><br></div><div>I've read about the CPU performance scaling in <a href="https://docs.kernel.org/admin-guide/pm/cpufreq.html" target="_blank" rel="noreferrer">Linux kernel documentation</a> and tried experimenting with multiple scaling governors. Based on the documentation, the <a href="https://docs.kernel.org/admin-guide/pm/cpufreq.html#performance" target="_blank" rel="noreferrer">performance scaling governor</a> should set the frequency to the maximum possible frequency. <br></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Correct </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br>I've got two machines with different kernel versions: v3.10.0 (CentOS 7) and v5.10.106 (Debian 11). When I set the 'scaling_governor' to 'performance' in the CentOS machine, it is working as expected and the CPU frequency is set to the maximum possible frequency statically. But when I set the 'scaling_governor' to 'performance' in the Debian machine, that's not the case and the CPU frequency is changing dynamically.</div><div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I think that is because two probable things:</div><div dir="auto">1. Kernel does not correctly probe max freq of processor</div><div dir="auto">Or</div><div dir="auto">2. Kernel detect idle situation, thus decide to lower the cpu freq for quite some time </div><div dir="auto"><br></div><div dir="auto">When needs arise, performance will put back cpu to max known freq</div><div dir="auto"><br></div><div dir="auto">Performance differ with other lies not on putting max freq, but how fast it.steps into max freq</div><div dir="auto"><br></div><div dir="auto">That is afaik</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>I've read that 'intel_pstate' scaling driver would bypass the scaling governor and set the CPU frequency based on its internal pstate information. But in both CentOS and Debian machines, the 'scaling_driver' is set to 'acpi-cpufreq' only.<br><br>How can I solve this? Any help on this would be greatly appreciated.<br><br>Thanks!</div><div><br>Vigneshwar S</div></div>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank" rel="noreferrer">Kernelnewbies@kernelnewbies.org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer noreferrer" target="_blank">https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote></div></div></div>