-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
DynamoDB: disable Scalable Vectors Extensions on arm64 #12226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
VM option check is also a java call that crashes exactly like the dynamoDB process
-XX:UseSVE=0 is unrecognized option on amd64 and leads to check crashing.
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 28m 54s ⏱️ - 1h 21m 43s Results for commit d10c436. ± Comparison against base commit fd3d900. This pull request removes 2971 tests.
♻️ This comment has been updated with latest results. |
If check required to be run with `-XX:UseSVE=0` then there is no point in it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks a lot for digging into this, and for testing this in specifically provisioned M4 cloud instances! 💯 🦸🏽
Thanks a lot also to @viren-nadkarni for the great upfront analysis and the first blind fix! It's a pity that this command also just fails with the same error! 😅
The pipeline with the ARM64 integration tests also looks 💚 🥳
Motivation
Fixes #12054.
Previous fix was using a java command to check available VM options, and this command was crashing for exactly the same reason as the DynamoDB process.
Changes
Added
-XX:UseSVE=0
to java VM options for all arm64 processors. This is a wide catch, possibly at the cost of the performance on processors where new SVE instructions are supported, but serves as a workaroun. Macs don't support SVE anyway which is probably the main use case for localstack running on ARM.Testing
Tested manually on M4 and M3 instance. Non-Apple ARM is checked with integration tests, this is probably as far as we can test.