genirq/affinity: irq vector spread among online CPUs as far as possible
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 37 repliesIn review
- v25 patches 2 repliesSuperseded
- v15 patches 6 repliesSuperseded
Changes in v3 from the cover letter
- fix one compile warning reported by kbuild test robot
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | genirq/affinity: rename *node_to_possible_cpumask as *node_to_cpumaskkernel/ | +13 | 0 replies | |
| 2/4 | genirq/affinity: move actual irq vector spread into one helperkernel/ | +55 | 0 replies | |
| 3/4 | genirq/affinity: support to do irq vectors spread starting from any vectorkernel/ | +15 | 0 replies | |
| 4/4 | genirq/affinity: irq vector spread among online CPUs as far as possiblekernel/ | +29 | 12 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig | Artem Bityutskiy |
|---|---|---|
| Series | T-b | |
| 1/4 | R-b | |
| 2/4 | R-b | |
| 3/4 | R-b | |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V3 0/4] genirq/affinity: irq vector spread among online CPUs as far as possible
Hi,
This patchset tries to spread among online CPUs as far as possible, so that we can avoid to allocate too less irq vectors with online CPUs mapped.
For example, in a 8cores system, 4 cpu cores(4~7) are offline/non present, on a device with 4 queues:
1) before this patchset
irq 39, cpu list 0-2 irq 40, cpu list 3-4,6 irq 41, cpu list 5 irq 42, cpu list 7
2) after this patchset
irq 39, cpu list 0,4 irq 40, cpu list 1,6 irq 41, cpu list 2,5 irq 42, cpu list 3,7
Without this patchset, only two vectors(39, 40) can be active, but there can be 4 active irq vectors after applying this patchset.
One disadvantage is that CPUs from different NUMA node can be mapped to one same irq vector. Given generally one CPU should be enough to handle one irq vector, it shouldn't be a big deal. Especailly more vectors have to be allocated, otherwise performance can be hurt in current assignment.
V3:
- fix one compile warning reported by kbuild test robot
V2:
- address coments from Christoph
- mark irq_build_affinity_masks as static
- move constification of get_nodes_in_cpumask's parameter into one prep patch
- add Reviewed-by tag
Thanks
Ming
Ming Lei (4):
genirq/affinity: rename *node_to_possible_cpumask as *node_to_cpumask genirq/affinity: move actual irq vector spread into one helper genirq/affinity: support to do irq vectors spread starting from any
vector
genirq/affinity: irq vector spread among online CPUs as far as
possible
kernel/irq/affinity.c | 145 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 94 insertions(+), 51 deletions(-)
Signature · 1 line
2.9.5