genriq/affinity: Make vectors allocation fair
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest2 patches 10 repliesIn review
- v52 patches 3 repliesApplied
- v43 patches 0 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 3 patches | 3 replies | Superseded | |
| v2 | 3 patches | 4 replies | Superseded | |
| v1 | 2 patches | 3 replies | Superseded |
Changes in v6 from the cover letter
- fix build waring reported by zero day, and extra change is only done on irq_build_affinity_masks()
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | genirq/affinity: Improve __irq_build_affinity_masks()kernel/ | +18 | 2 replies | |
| 2/2 | genirq/affinity: Spread vectors on node according to nr_cpu ratiokernel/ | +200 | 6 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Jon Derrick | Keith Busch |
|---|---|---|
| 1/2 | R-b | R-b |
| 2/2 | R-b R-b | R-b R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V6 0/2] genriq/affinity: Make vectors allocation fair
Hi Thomas,
The 1st patch makes __irq_build_affinity_masks() more reliable, such as, all nodes can be covered in the spread.
The 2nd patch spread vectors on node according to the ratio of this node's CPU number to number of all remaining CPUs, then vectors assignment can become more fair. Meantime, the warning report from Jon Derrick can be fixed.
Please consider it for V5.4.
V6:
- fix build waring reported by zero day, and extra change is only done on irq_build_affinity_masks()
V5:
- remove patch 1 of V4, which is wrong
- handle vector wrapping because the 'start vector' may begin anywhere, especially for the 2nd stage spread
- add more comment on the vector allocation algorithm
- cleanup code a bit
- run more tests to verify the change, which always get the expected result. Covers lots of num_queues, numa topo, CPU unpresent setting.
V4:
- provide proof why number of allocated vectors for each node is <= CPU count of this node
V3:
- re-order the patchset
- add helper of irq_spread_vectors_on_node()
- handle vector spread correctly in case that numvecs is > ncpus
- return -ENOMEM to API's caller
V2:
- add patch3
- start to allocate vectors from node with minimized CPU number, then every node is guaranteed to be allocated at least one vector.
- avoid cross node spread
Ming Lei (2):
genirq/affinity: Improve __irq_build_affinity_masks() genirq/affinity: Spread vectors on node according to nr_cpu ratio
kernel/irq/affinity.c | 231 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 201 insertions(+), 30 deletions(-)
Signature · 1 line
2.20.1