Skip to content
Commit 374d54d0 authored by Sajan Karumanchi's avatar Sajan Karumanchi Committed by Sunil K Pandey
Browse files

x86: Adding an upper bound for Enhanced REP MOVSB.



In the process of optimizing memcpy for AMD machines, we have found the
vector move operations are outperforming enhanced REP MOVSB for data
transfers above the L2 cache size on Zen3 architectures.
To handle this use case, we are adding an upper bound parameter on
enhanced REP MOVSB:'__x86_rep_movsb_stop_threshold'.
As per large-bench results, we are configuring this parameter to the
L2 cache size for AMD machines and applicable from Zen3 architecture
supporting the ERMS feature.
For architectures other than AMD, it is the computed value of
non-temporal threshold parameter.

Reviewed-by: default avatarPremachandra Mallappa <premachandra.mallappa@amd.com>
(cherry picked from commit 6e02b3e9)
parent 5eddc29c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment