Skip to content

Commit

Permalink
Configure: set cache line size for more architectures.
Browse files Browse the repository at this point in the history
Based on a patch by Piotr Sikora.
  • Loading branch information
pluknet committed Mar 27, 2024
1 parent 1bc19fe commit 6b1bb99
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions auto/os/conf
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,21 @@ case "$NGX_MACHINE" in
NGX_MACH_CACHE_LINE=64
;;

ppc64* | powerpc64*)
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
Expand Down

0 comments on commit 6b1bb99

Please sign in to comment.