-
Notifications
You must be signed in to change notification settings - Fork 796
[CI][Benchmarks] Benches OS setup guide #19577
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: sycl
Are you sure you want to change the base?
Conversation
10c9baa
to
045e36d
Compare
|
||
## Overview | ||
|
||
Performance benchmarking requires a stable and optimized system environment to produce reliable and reproducible results. This guide covers essential system tuning steps for reducing run-to-run variance in benchmark results and enabling consistent results across different runs. |
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.
Performance benchmarking requires a stable and optimized system environment to produce reliable and reproducible results. This guide covers essential system tuning steps for reducing run-to-run variance in benchmark results and enabling consistent results across different runs. | |
Performance benchmarking requires a stable and optimized system environment to produce reliable and reproducible results. This guide covers essential system tuning steps for reducing run-to-run variance in benchmark results. |
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.
Done
Add the following to `/etc/default/grub` in `GRUB_CMDLINE_LINUX`: | ||
|
||
```bash | ||
# Disable CPU frequency scaling | ||
intel_pstate=disable | ||
|
||
# Isolate CPUs for benchmark workloads (example: reserve cores 2-7), preventing other processes | ||
# from using them. | ||
isolcpus=2-7 | ||
|
||
# Set CPU governor to performance | ||
sudo cpupower frequency-set --governor performance | ||
# Apply changes to system | ||
sudo sysctl --system | ||
|
||
# Check current governor | ||
sudo cpupower frequency-info | ||
|
||
# Example complete line: | ||
GRUB_CMDLINE_LINUX="intel_pstate=disable isolcpus=2-7" | ||
``` |
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.
This is... malformated? You can't run commands as part of GRUB_CMDLINE_LINUX.
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.
I've fixed formatting so it is clear what are the actual commands to paste in a terminal
sudo update-grub | ||
sudo reboot | ||
``` | ||
|
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.
It would be useful to have info on how to make these settings survive restarts. We use a systemd service in ci.
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.
Added an example
045e36d
to
444e624
Compare
Preview: https://github.com/PatKamin/llvm/blob/perf-setup-readme/devops/scripts/benchmarks/PERFORMANCE_TUNING.md