Skip to content

Conversation

@hodgesds
Copy link
Contributor

@hodgesds hodgesds commented May 28, 2025

When selecting an idle CPU mask for affinitized tasks reset the temporary CPU mask used for finding an idle CPU. This fixes stalls in affinitized task handling under heavy load.

Tested with:

$ stress-ng --affinity-rand  --affinity 170 -t 35 -c 100 --affinity-delay 10 --affinity-sleep 10
stress-ng: info:  [334880] setting to a 35 secs run per stressor
stress-ng: info:  [334880] dispatching hogs: 170 affinity, 100 cpu
stress-ng: info:  [334880] skipped: 0
stress-ng: info:  [334880] passed: 270: affinity (170) cpu (100)
stress-ng: info:  [334880] failed: 0
stress-ng: info:  [334880] metrics untrustworthy: 0
stress-ng: info:  [334880] successful run completed in 35.08 secs

@hodgesds hodgesds added this pull request to the merge queue May 28, 2025
@hodgesds hodgesds removed this pull request from the merge queue due to a manual request May 28, 2025
When selecting an idle CPU mask for affinitized tasks reset the
temporary CPU mask used for finding an idle CPU. This fixes stalls in
affinitized task handling under heavy load.

Signed-off-by: Daniel Hodges <hodgesd@meta.com>
@hodgesds hodgesds force-pushed the p2dq-affinitized-stalls branch from b51ab7c to 91f49a1 Compare May 28, 2025 15:03
@hodgesds hodgesds enabled auto-merge May 28, 2025 15:03
@hodgesds hodgesds added this pull request to the merge queue May 28, 2025
Merged via the queue into sched-ext:main with commit 034ba75 May 28, 2025
16 checks passed
@hodgesds hodgesds deleted the p2dq-affinitized-stalls branch May 28, 2025 15:21
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.

4 participants