Skip to content

[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

Draft
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

PatKamin
Copy link
Contributor

@PatKamin PatKamin commented Jul 24, 2025

@PatKamin PatKamin force-pushed the perf-setup-readme branch from 10c9baa to 045e36d Compare July 24, 2025 10:55

## 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment on lines 23 to 33
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"
```
Copy link
Contributor

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.

Copy link
Contributor Author

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
```

Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added an example

@PatKamin PatKamin force-pushed the perf-setup-readme branch from 045e36d to 444e624 Compare July 24, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants