[PATCH] Configure: set cache line sizes for more architectures
Piotr Sikora
piotr at aviatrix.com
Wed Feb 28 01:24:18 UTC 2024
# HG changeset patch
# User Piotr Sikora <piotr at aviatrix.com>
# Date 1708977642 0
# Mon Feb 26 20:00:42 2024 +0000
# Branch patch016
# Node ID bb99cbe3a343ae581d2369b990aee66e69679ca2
# Parent f58bc1041ebca635517b919d58b49923bf24f76d
Configure: set cache line sizes for more architectures.
Signed-off-by: Piotr Sikora <piotr at aviatrix.com>
diff -r f58bc1041ebc -r bb99cbe3a343 auto/os/conf
--- a/auto/os/conf Mon Feb 26 20:00:40 2024 +0000
+++ b/auto/os/conf Mon Feb 26 20:00:42 2024 +0000
@@ -115,6 +115,21 @@
NGX_MACH_CACHE_LINE=64
;;
+ ppc64 | ppc64le)
+ have=NGX_ALIGNMENT value=16 . auto/define
+ NGX_MACH_CACHE_LINE=128
+ ;;
+
+ riscv64)
+ have=NGX_ALIGNMENT value=16 . auto/define
+ NGX_MACH_CACHE_LINE=64
+ ;;
+
+ s390x)
+ have=NGX_ALIGNMENT value=16 . auto/define
+ NGX_MACH_CACHE_LINE=256
+ ;;
+
*)
have=NGX_ALIGNMENT value=16 . auto/define
NGX_MACH_CACHE_LINE=32
More information about the nginx-devel
mailing list