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

Provide docker images that can run on asahi-linux #8802

Open
FlameFactory opened this issue May 7, 2024 · 1 comment
Open

Provide docker images that can run on asahi-linux #8802

FlameFactory opened this issue May 7, 2024 · 1 comment

Comments

@FlameFactory
Copy link

Is your feature request related to a problem? Please describe.

I'm using asahi-linux on Mac Book Pro M1 2021. I'm trying to pull & run arm64 image and I'm getting this error:

$ docker run --rm -it fluent/fluent-bit
<jemalloc>: Unsupported system page size
...
<jemalloc>: Unsupported system page size
Error in GnuTLS initialization: ASN1 parser: Element was not found.
<jemalloc>: Unsupported system page size
...
<jemalloc>: Unsupported system page size
[2024/05/07 16:51:21] [error] [/src/fluent-bit/src/config_format/flb_config_format.c:107 errno=12] Cannot allocate memory

Describe the solution you'd like

I wonder would it be a good thing to add 1 more image to build -- arm64 with 64k memory pages in jemalloc config (--with-lg-page=16)? And push it with custom docker tag, for example 3.0.3-arm64-64k

Describe alternatives you've considered

To be able to run fluent-bit on asahi-linux I have 2 options:

  • clone repo & run docker build on asahi-linux, it's possible since jemalloc have hack for mac book M-chip laptops
  • add parameter -DFLB_JEMALLOC_OPTIONS="--with-lg-page=16" to dockerfile and build it on any machine, and the image will be suitable for all known memory page sizes like 4k, 16k or 64k. For asahi-linux specifically --with-lg-page=14 will be enough, but it won't work for page size 64k for example.

Additional context

The problem is current arm64 images built with 4K memory page size in jemalloc config, but asahi-linux on M1 built with 16K memory size:

$ getconf PAGESIZE
16384
@patrick-stephens
Copy link
Contributor

There are similar queries around Oracle Linux as well (check the issues). Yes we can, but the matrix of supported options becomes large and build times extend.
We could do a custom tag potentially as you say so feel free to submit a PR for it.

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