affinity stressor sets affinity of stress-ng and stops all cpus from being exercised
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stress-ng |
Fix Released
|
High
|
Colin Ian King | ||
stress-ng (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
High
|
Colin Ian King |
Bug Description
SRU Request [Cosmic]
== Justification ==
When running stress-ng with the affinity stressor, the autodetection of sched_setaffinity currently sets affinity to CPU 0 meaning that the stressors run in the session are pinned to CPU 0.
== Fix ==
Upstream commit http://
== Testing ==
Run:
stress-ng --affinity 1 --cpu 4
use top and see that only CPU 0 is being maxed out, other CPUs are less loaded. With the fix at least 4 CPUs are running the cpu stressor
== Regression Potential ==
The fix restores the stress-ng behavior prior to commit 31c7658927, the change is just in the affinity stressor and impact on other stressors with changed functionality is zero. Users of stress-ng with this fix will see their machines being loaded in a more fair and balanced way and stress-ng will max out CPUs, as was originally intended. Regression potential is therefore machines will hit thermal maximums on their CPUs.
----
the stress-affinity stressor checks to see if sched_setaffinity works, however, in doing so sets the CPU affinity to CPU 0 for all stressors because this is performed at the start of stress-ng and other stressors inherit this affinity setting. Fix this by getting and then setting the same affinity.
Changed in stress-ng: | |
importance: | Undecided → High |
assignee: | nobody → Colin Ian King (colin-king) |
status: | New → Fix Committed |
description: | updated |
Changed in stress-ng: | |
status: | Fix Committed → Fix Released |
Changed in stress-ng (Ubuntu Cosmic): | |
assignee: | nobody → Colin Ian King (colin-king) |
importance: | Undecided → High |
Fix committed:
http:// kernel. ubuntu. com/git/ cking/stress- ng.git/ commit/ ?id=2fea5d0437e 918c4cadaa81ba1 c3e07073286eff