[PATCH v1 0/1] x86: Tune non-temporal copy threshold for Hygon

Jiamei Xie xiejiamei@hygon.cn
Sat May 9 06:23:08 GMT 2026


This patch adjusts the non-temporal copy threshold for Hygon
processors.

Benchmarks on Hygon processors show that the default non-temporal
threshold is higher than ideal for large copy workloads. With the
current threshold, memcpy and memmove may continue to use the temporal
copy path for longer than is beneficial, reducing throughput for large
copies.

The patch lowers the copy non-temporal threshold to 3/8 of the shared
cache size per thread on Hygon, allowing the non-temporal copy path to
be selected earlier. The memset non-temporal threshold is left
unchanged.

xiejiamei (1):
  x86: Lower non-temporal copy threshold for Hygon

 sysdeps/x86/dl-cacheinfo.h | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.43.0




More information about the Libc-alpha mailing list