Skip to content

lib/group_cpus: make group CPU cluster aware#479

Closed
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1041509=>linus-master
Closed

lib/group_cpus: make group CPU cluster aware#479
blktests-ci[bot] wants to merge 1 commit intolinus-master_basefrom
series/1041509=>linus-master

Conversation

@blktests-ci
Copy link

@blktests-ci blktests-ci bot commented Jan 13, 2026

Pull request for series with
subject: lib/group_cpus: make group CPU cluster aware
version: 2
url: https://patchwork.kernel.org/project/linux-block/list/?series=1041509

@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 13, 2026

Upstream branch: 623fb99
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 13, 2026

Upstream branch: b543459
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 39d284f to 2b8956e Compare January 13, 2026 21:31
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 06634b5 to 8a473ad Compare January 15, 2026 08:55
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 15, 2026

Upstream branch: 944aacb
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 2b8956e to 537b8ee Compare January 15, 2026 09:02
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 8a473ad to fa94b37 Compare January 19, 2026 00:27
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 19, 2026

Upstream branch: 944aacb
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 537b8ee to a313b09 Compare January 19, 2026 00:35
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from fa94b37 to 41a5848 Compare January 21, 2026 04:18
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 21, 2026

Upstream branch: 6c79021
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from a313b09 to a3f76c6 Compare January 21, 2026 04:24
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 41a5848 to 30680e5 Compare January 22, 2026 10:04
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 22, 2026

Upstream branch: a66191c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from a3f76c6 to 8a04fda Compare January 22, 2026 10:11
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 30680e5 to 067dca5 Compare January 24, 2026 12:42
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 24, 2026

Upstream branch: 6208587
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 8a04fda to 94b0a2b Compare January 24, 2026 12:49
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 067dca5 to 1dff21b Compare January 25, 2026 10:19
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 25, 2026

Upstream branch: d91a46d
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 94b0a2b to 1ce5795 Compare January 25, 2026 10:26
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 1dff21b to b44af19 Compare January 27, 2026 10:02
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 27, 2026

Upstream branch: fcb70a5
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 1ce5795 to cfd883c Compare January 27, 2026 10:12
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from b44af19 to 483aa43 Compare January 29, 2026 00:24
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 29, 2026

Upstream branch: 8dfce89
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from cfd883c to 3224cdb Compare January 29, 2026 00:33
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 483aa43 to 9d3c6de Compare February 3, 2026 19:06
@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 3, 2026

Upstream branch: de0674d
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 3224cdb to e4f125d Compare February 3, 2026 19:19
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 9d3c6de to 7c2ae0a Compare February 5, 2026 03:28
@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 5, 2026

Upstream branch: f14faaf
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from e4f125d to 0c30879 Compare February 5, 2026 03:41
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 7c2ae0a to 54294d6 Compare February 6, 2026 08:51
@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 6, 2026

Upstream branch: b7ff715
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 0c30879 to 306677f Compare February 6, 2026 09:03
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 54294d6 to eb49f7b Compare February 8, 2026 02:55
@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 8, 2026

Upstream branch: e7aa572
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 306677f to e2f123f Compare February 8, 2026 04:26
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from eb49f7b to 30e5c22 Compare February 9, 2026 04:29
@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 9, 2026

Upstream branch: 05f7e89
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from e2f123f to 28e379d Compare February 9, 2026 04:40
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 30e5c22 to 519f160 Compare February 12, 2026 00:34
As CPU core counts increase, the number of NVMe IRQs may be smaller than
the total number of CPUs. This forces multiple CPUs to share the same
IRQ. If the IRQ affinity and the CPU’s cluster do not align, a
performance penalty can be observed on some platforms.

This patch improves IRQ affinity by grouping CPUs by cluster within each
NUMA domain, ensuring better locality between CPUs and their assigned
NVMe IRQs.

Details:

Intel Xeon E platform packs 4 CPU cores as 1 module (cluster) and share
the L2 cache. Let's say, if there are 40 CPUs in 1 NUMA domain and 11
IRQs to dispatch. The existing algorithm will map first 7 IRQs each with
4 CPUs and remained 4 IRQs each with 3 CPUs. The last 4 IRQs may
have cross cluster issue. For example, the 9th IRQ which pinned to
CPU32, then for CPU31, it will have cross L2 memory access.

CPU |28 29 30 31|32 33 34 35|36 ...
     -------- -------- --------
IRQ      8        9       10

If this patch applied, then first 2 IRQs each mapped with 2 CPUs and
rest 9 IRQs each mapped with 4 CPUs, which avoids the cross cluster
memory access.

CPU |00 01 02 03|04 05 06 07|08 09 10 11| ...
     ----- ----- ----------- -----------
IRQ  1      2        3           4

As a result, 15%+ performance difference is observed in FIO
libaio/randread/bs=8k.

Changes since V1:
- Add more performance details in commit messages.
- Fix endless loop when topology_cluster_cpumask return invalid mask.

History:
  v1: https://lore.kernel.org/all/[email protected]/
  v1 [RESEND]: https://lore.kernel.org/all/[email protected]/

Reviewed-by: Tianyou Li <[email protected]>
Reviewed-by: Tim Chen <[email protected]>
Tested-by: Dan Liang <[email protected]>
Signed-off-by: Wangyang Guo <[email protected]>
@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 12, 2026

Upstream branch: c22e26b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1041509
version: 2

@blktests-ci blktests-ci bot force-pushed the series/1041509=>linus-master branch from 28e379d to 3e20b07 Compare February 12, 2026 00:46
@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 12, 2026

At least one diff in series https://patchwork.kernel.org/project/linux-block/list/?series=1041509 irrelevant now for [{'archived': False, 'project': 241}] search patterns

@blktests-ci blktests-ci bot closed this Feb 12, 2026
@blktests-ci blktests-ci bot deleted the series/1041509=>linus-master branch February 13, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant