NUMA-aware qspinlock has been integrated into the kernel starting for versions 5.10 and 6.6-dev. This patch is derived from the compact NUMA-aware lock and enhances qspinlock by considering NUMA node locality. https://gitee.com/anolis/cloud-kernel/pulls/535 https://gitee.com/anolis/cloud-kernel/pulls/4406 On x86 platforms, where each CCX shares the same last-level cache (LLC), we further introduce CCX-aware qspinlock. This allows users to flexibly choose between CCX-awareness and NUMA-awareness depending on the platform characteristics and workload requirements. In benchmarks on platforms with 8 physical cores per CCX, the CCX-aware qspinlock delivers over 20% performance improvement in MySQL OLTP read_write scenarios running across 6 CCXs.
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/5742