cyb70289 commented on a change in pull request #10940:
URL: https://github.com/apache/arrow/pull/10940#discussion_r690031243



##########
File path: ci/scripts/python_wheel_manylinux_build.sh
##########
@@ -71,6 +71,10 @@ echo "=== (${PYTHON_VERSION}) Building Arrow C++ libraries 
==="
 : ${VCPKG_FEATURE_FLAGS:=-manifests}
 : 
${VCPKG_TARGET_TRIPLET:=${VCPKG_DEFAULT_TRIPLET:-x64-linux-static-${CMAKE_BUILD_TYPE}}}
 
+if [[ "$(uname -m)" == arm* ]] || [[ "$(uname -m)" == aarch* ]]; then
+    export ARROW_EXTRA_CMAKE_FLAGS="-DARROW_JEMALLOC_LG_PAGE=14"

Review comment:
       `--with-lg-page=16` fixes issue on 64k page system. 
https://github.com/apache/arrow/issues/10929#issuecomment-899950190
   
   I tested on 4k page system with the image built from this pr 
`--with-lg-page=14`, it work okay.
   
   According to 
https://github.com/jemalloc/jemalloc/issues/467#issuecomment-294383178, looks 
we can set `--with-lg-page=16` and the binary should work on both 4k and 64k 
page arm64 system.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to