At Kunpeng920 platform, tpcc-mysql scores decreased by about 11.2% between glibc-2.36 and glibc2.28 with mysql-8.0.20. Comparing the code, I find that the two commits causes performance degradation. 11a02b035b46 (misc: Add __get_nprocs_sched) 97ba273b5057 (linux: __get_nprocs_sched: do not feed CPU_COUNT_S with garbage [BZ #28850]) These two patches modify the default behavior. Another message is that my machine is 96 cores and I have 91 core bindings for tpcc-mysql. This means that perhaps the current approach to computing arenas is not optimal in the case of core binding.
BZ#30945 show the same issue, along with a testcase. *** This bug has been marked as a duplicate of bug 30945 ***