-
Notifications
You must be signed in to change notification settings - Fork 138
[talos] Set cpu frequency scheduler to performance #1898
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: nbykov0 <166552198+nbykov0@users.noreply.github.com>
📝 WalkthroughWalkthroughKernel performance parameters are added across multiple Talos profile configurations. The generation script and six profile YAML files now include three kernel arguments: cpufreq.default_governor=performance, amd_pstate=active, and intel_idle.max_cstate=0. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary of ChangesHello @nbykov0, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request standardizes the CPU performance settings across various Talos profiles by configuring the kernel to prioritize performance over energy efficiency. By setting the CPU frequency governor to 'performance' and disabling specific energy-saving mechanisms, the changes aim to ensure that Talos systems consistently operate at their maximum potential, which is crucial for workloads requiring predictable and high computational throughput. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request updates Talos profiles to enhance performance by setting the CPU frequency governor to performance and disabling certain CPU power-saving features. The changes are made in the profile generation script and propagated to all generated profile YAML files. While the intent to boost performance is clear, one of the chosen kernel parameters, intel_idle.max_cstate=0, is very aggressive. My review includes a comment highlighting the potential negative side effects of this setting, such as increased power consumption and potential impacts on Intel Turbo Boost frequencies, and suggests a more balanced alternative.
| extraKernelArgs: | ||
| - cpufreq.default_governor=performance | ||
| - amd_pstate=active | ||
| - intel_idle.max_cstate=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The setting intel_idle.max_cstate=0 is very aggressive as it disables all deep power-saving C-states for Intel CPUs. While this can reduce latency, it has significant drawbacks:
- Increased Power Consumption & Heat: Idle power consumption will increase significantly, leading to more heat.
- Potential Performance Impact: On some Intel CPUs, disabling deep C-states can negatively affect the maximum Turbo Boost frequency. For peak performance, some cores need to enter deep sleep states to free up power/thermal budget for other cores to boost higher.
This setting is applied to all profiles, including the installer and ISO, which might be undesirable (e.g., on a laptop).
Consider using a less aggressive setting like intel_idle.max_cstate=1. This still provides good latency characteristics while being safer regarding power and turbo performance. If max_cstate=0 is intentional, please consider adding a comment to the script explaining the rationale.
| - intel_idle.max_cstate=0 | |
| - intel_idle.max_cstate=1 |
What this PR does
Sets default cpu frequency scheduler to performance.
Disables cpu energy saving options.
Release note
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.