Skip to content
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

Add support for explicit per-runner CPU affinity #390

Merged
merged 5 commits into from
Apr 7, 2025

Conversation

Yhg1s
Copy link
Contributor

@Yhg1s Yhg1s commented Apr 4, 2025

Add support for explicit CPU affinity via a runner-configurable environment variable (either in the runner configuration, or in the environment of the GHA runner itself). This is useful when running on a host that can't use isolated CPUs (which pyperf automatically detects).

Also undo the changes made by pyperf system tune after the benchmark run. (The system is generally more performant without benchmark tuning, so this matters for other users of the host and for the compile time on a dedicated runner.)

@mdboom
Copy link
Contributor

mdboom commented Apr 7, 2025

Note to self: This will need to be ported to #382.

@mdboom mdboom merged commit 2d07d4b into faster-cpython:main Apr 7, 2025
4 checks passed
mdboom added a commit that referenced this pull request Apr 8, 2025
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