fluent / fluentd-docker-image

Docker image for Fluentd
https://hub.docker.com/r/fluent/fluentd/
Apache License 2.0
463 stars 351 forks source link

Disable MADV_FREE during jemalloc compilation #350

Closed igorwwwwwwwwwwwwwwwwwwww closed 1 year ago

igorwwwwwwwwwwwwwwwwwwww commented 1 year ago

madvise with MADV_FREE can result in misleading metrics, as reclaim of those pages happens lazily. There's plenty of examples of projects disabling it for this reason:

In fact, jemalloc has this example in their own INSTALL.md.

We'd like to do the same here in order to ensure process metrics more closely track non-reclaimable anonymous memory.

See our downstream issue.

ashie commented 1 year ago

Thanks for you report, it's very interesting information. In fact we are often annoyed by reports about jemalloc 4 & 5. It might be the solution, it's worth to try in the next minor release.