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 CPU affinity and process priority control #245

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

ehpor
Copy link
Collaborator

@ehpor ehpor commented Sep 9, 2024

Pin certain services on specific cores and set the priority of their process. Both are modifiable by the config.

An example config (should be in testbed.yml):

cpu_affinity:
  HICATDEUX:
    zernike_control_loop: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
    boston_dm: [16, 17, 18, 19]
    default: [20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
process_priority:
  HICATDEUX:
    boston_dm: high
    zernike_control_loop: high

Fixes #48

@ehpor ehpor added the enhancement New feature or request label Sep 9, 2024
@ehpor ehpor self-assigned this Sep 9, 2024
@ehpor ehpor changed the title Add CPU affinity and Add CPU affinity and process priority control Sep 9, 2024
@ehpor ehpor marked this pull request as ready for review September 9, 2024 18:51
Copy link
Collaborator

@raphaelpclt raphaelpclt left a comment

Choose a reason for hiding this comment

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

Looks good

@ehpor ehpor force-pushed the feature/cpu_affinity_and_priority branch from 48e0a74 to 73f3e20 Compare September 9, 2024 21:34
@ehpor ehpor enabled auto-merge September 9, 2024 21:35
@ehpor ehpor merged commit 73e0988 into develop Sep 9, 2024
6 checks passed
@ehpor ehpor deleted the feature/cpu_affinity_and_priority branch September 9, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add CPU affinity to config.
2 participants