CPU frequency governor: performance vs. ondemand
-
Hi, I noticed that XCP-ng 8.3 uses the
performanceCPU governor by default on Intel processors. Switching toondemandsignificantly reduces the average CPU frequency and lowers the CPU temperature by around 6-8 °C. Is there a specific reason to preferperformanceoverondemandin XCP-ng? Are there any known drawbacks or performance issues when usingondemand? -
Most enterprise servers are running in performance mode by default, to take full advantage of the cpu power. Running ondemand is better suited for home labs or other use cases.
-
There's no silver bullet, if you don't care of performance and you want to use less power as possible, of course ondemand is better. But as @ovicz said, in 90% of enterprise use case, you want to squeeze the most of your hardware.
-
If that can be interesting, I'm doing small tests with Intel HWP (Intel Speed Shift) in Performance mode to see if it does better than performance governor, but it's not going to be until (at least) XCP-ng 9.0 (it's Xen 4.18+).
-
Sure, I understand that the performanc governor is a natural choice for production environments where consistent performance is a priority.
Based on the source code and this patch, it appears that XCP-ng 8.3 defaults to the performance CPU governor on Intel hosts, while AMD hosts retain ondemand, unless a governor is explicitly configured. Is this interpretation correct? If so, what is the technical rationale behind these different defaults? The patch comments mention C-state support and power savings, but it is unclear whether this explanation still applies to current AMD processors.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login