Skip to content
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

Exit with error on linux-aarch64 if page size is not 4k #17627

Open
190n opened this issue Feb 24, 2025 · 0 comments
Open

Exit with error on linux-aarch64 if page size is not 4k #17627

190n opened this issue Feb 24, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@190n
Copy link
Contributor

190n commented Feb 24, 2025

What is the problem this feature would solve?

Currently, Bun requires the system page size is 4 kiB in our linux-aarch64 builds. Some aarch64 systems (e.g. Asahi Linux, Raspberry Pi 5, some Ampere servers) are configured with a 16 or 64 kiB page size, and when running Bun on those systems it will crash unpredictably without a helpful error.

What is the feature you are proposing to solve the problem?

Check the page size at startup and exit with an error if it is wrong.

What alternatives have you considered?

Upgrading Zig to a version with ziglang/zig#20511 merged should allow Bun to work on at least 16k page size systems. We may need to configure WebKit differently in order to support 64k pages.

@190n 190n added the enhancement New feature or request label Feb 24, 2025
@190n 190n self-assigned this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant