This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Repository navigation
DynamoDB: disable Scalable Vectors Extensions on arm64 - #12226
Merged
Merged
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.
alexrashed
approved these changes
Feb 4, 2025
alexrashed
left a comment
Member
There was a problem hiding this comment.
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 💚 🥳
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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=0to 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.