about summary refs log tree commit diff
path: root/sysdeps/aarch64/multiarch/memset_emag.S
diff options
context:
space:
mode:
authorFeng Xue <feng.xue@amperecomputing.com>2019-08-14 10:48:05 +0800
committerFeng Xue <feng.xue@amperecomputing.com>2019-08-14 10:58:21 +0800
commitb68fabfbbc5a4178338e167f5517787b76eb5962 (patch)
treee1b15af9e5b6397b16dc9021437d96ca5e6037f7 /sysdeps/aarch64/multiarch/memset_emag.S
parentc3ce62cc0bd6e8a33629e2aabb7783a322e9189c (diff)
downloadglibc-b68fabfbbc5a4178338e167f5517787b76eb5962.tar.gz
glibc-b68fabfbbc5a4178338e167f5517787b76eb5962.tar.xz
glibc-b68fabfbbc5a4178338e167f5517787b76eb5962.zip
aarch64: Disable using DC ZVA in emag memset
    * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
    Disable DC ZVA code if this macro is defined as zero.
    * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
    Change to zero to disable using DC ZVA.
Diffstat (limited to 'sysdeps/aarch64/multiarch/memset_emag.S')
-rw-r--r--sysdeps/aarch64/multiarch/memset_emag.S12
1 files changed, 7 insertions, 5 deletions
diff --git a/sysdeps/aarch64/multiarch/memset_emag.S b/sysdeps/aarch64/multiarch/memset_emag.S
index 1c1fabc624..c2aed62fe5 100644
--- a/sysdeps/aarch64/multiarch/memset_emag.S
+++ b/sysdeps/aarch64/multiarch/memset_emag.S
@@ -21,12 +21,14 @@
 # define MEMSET __memset_emag
 
 /*
- * Using dc zva to zero memory does not produce better performance if
+ * Using DC ZVA to zero memory does not produce better performance if
  * memory size is not very large, especially when there are multiple
- * processes/threads contending memory/cache. Here we use a somewhat
- * large threshold to trigger usage of dc zva.
-*/
-# define DC_ZVA_THRESHOLD 1024
+ * processes/threads contending memory/cache. Here we set threshold to
+ * zero to disable using DC ZVA, which is good for multi-process/thread
+ * workloads.
+ */
+
+# define DC_ZVA_THRESHOLD 0
 
 # include "./memset_base64.S"
 #endif