8000 Raspberry Pi 5: `<jemalloc>: Unsupported system page size` · Issue #87 · deckhouse/prompp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Raspberry Pi 5: <jemalloc>: Unsupported system page size #87

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

Open
2 tasks done
markovvn1 opened this issue May 9, 2025 · 3 comments
Open
2 tasks done

Raspberry Pi 5: <jemalloc>: Unsupported system page size #87

markovvn1 opened this issue May 9, 2025 · 3 comments

Comments

@markovvn1
Copy link
markovvn1 commented May 9, 2025

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Version

2.53.2-0.2.2

Expected Behavior

Official ARM build of prompp works on Raspberry Pi 5

Actual Behavior

Running the official ARM build of prompp on a Raspberry Pi 5 crashes immediately with

<jemalloc>: Unsupported system page size

Steps To Reproduce

  1. Take Raspberry Pi 5 with Raspbian OS (64 bit).
  2. Install the current ARM image of prompp:
    docker run -it --rm prompp/prompp:2.53.2-0.2.2
  3. Observe the crash above.

Additional Information

The Pi 5 kernel is built with the default page size is 16 384 bytes:

$ getconf PAGE_SIZE
16384

jemalloc in this project is compiled with the default --with-lg-page=12 (4 KiB). Because the runtime page size is larger than what the allocator was built for, it aborts on initialization.

Logs

<jemalloc>: Unsupported system page size
@markovvn1
Copy link
Author
markovvn1 commented May 9, 2025

In the falcosecurity/falco project, a similar problem was fixed by adding the --with-lg-page=14 parameter: falcosecurity/falco#3476 (comment). I suppose we can do the same in here:

"--with-lg-page=\"12\"",

@markovvn1
Copy link
Author

I have rebuilt the project with the proposed changes (--with-lg-page=14): markovvn1/prompp:2.53.2-0.2.2. It seems to work well. At least on Raspberry Pi 5, memory usage has decreased by half (from 730 MB to 360 MB), while CPU usage has slightly increased.

Before:
Image

After:
Image

@vporoshok
Copy link
Collaborator

Hi! Huge thanks for such a detailed research and report. We've taken it into work. We'll try to get back to you with a more detailed response this week, at least in terms of page size adjustments. As for performance, it might take a bit more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0