fluent / fluent-bit

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
https://fluentbit.io
Apache License 2.0
5.57k stars 1.53k forks source link

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

Open FlameFactory opened 2 months ago

FlameFactory commented 2 months ago

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:

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 commented 2 months ago

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.