Skip to content

Add support for explicit per-runner CPU affinity#390

Merged
mdboom merged 5 commits into
faster-cpython:mainfrom
Yhg1s:cpu_affinity
Apr 7, 2025
Merged

Add support for explicit per-runner CPU affinity#390
mdboom merged 5 commits into
faster-cpython:mainfrom
Yhg1s:cpu_affinity

Conversation

@Yhg1s
Copy link
Copy Markdown
Collaborator

@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
Copy Markdown
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
mdboom added a commit that referenced this pull request Apr 9, 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