-
Notifications
You must be signed in to change notification settings - Fork 797
[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
045e36d
to
444e624
Compare
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.
Actually, maybe you could add another section how to configure perf correctly. Some of the benchmarks (ur submit kernel) requires perf to have permissions to sample hw counters.
(the steps to take is basically what perf tells you to do when you do perf record ls
without correct permissions)
444e624
to
789edef
Compare
Added the section |
789edef
to
3f1b02b
Compare
Preview: https://github.com/PatKamin/llvm/blob/perf-setup-readme/devops/scripts/benchmarks/PERFORMANCE_TUNING.md