# Jemalloc 5.4.0 lands with over 160 commits and a new pinned-memory feature

> Hacker News story 49750152 · language: en · submitted 2026-09-18
> Web version: https://zeli.app/story/49750152
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 332 · by [gkfasdfasdf](<https://news.ycombinator.com/user?id=gkfasdfasdf>) · 💬 94
[original](<https://github.com/jemalloc/jemalloc/releases/tag/5.4.0>) · [HN discussion](<https://news.ycombinator.com/item?id=49750152>)

## Summary

Jemalloc 5.4.0 brings over 160 commits focused on technical debt cleanup, portability, and new features. The release introduces EXTENT_ALLOC_FLAG_PINNED for marking non-reclaimable mappings like HugeTLB pages, along with mallctl interfaces to report pinned-memory usage. It also adapts tcache fill and retention targets per bin based on demand, removes seven legacy controls, and fixes bugs including errno preservation across free and a potential deadlock in arena_reset.

## Key quote

> Adapt tcache fill and retention targets per bin to demand observed between GC events, replacing the fixed refill/flush policy.

## HN discussion (94 comments)

### [vocx2tx](<https://news.ycombinator.com/item?id=49750698>)

> For some context on why this release is notable: Jemalloc Postmortem [0]
>
> [0] https://news.ycombinator.com/item?id=44264958

### [lordnacho](<https://news.ycombinator.com/item?id=49751284>)

> I always wondered, is it French? "Je m'alloc du memory"

### [ksec](<https://news.ycombinator.com/item?id=49751456>)

> Ok. Why both the homepage and its Github repo doesn't make a single mention of Jason Evans? I know he stepped down but surely it is at least worst mentioning it?
>
> Is Meta still using it and developing it? If not who are the driving force behind it now? I just checked there wasn't a release since 2022 and then we have this now. Something changed?
>
> Just wish we have a little bit of context. But it is also great it is continue being maintained. It makes a huge difference for Ruby on Rails Apps.

### [albertgoeswoof](<https://news.ycombinator.com/item?id=49752019>)

> I switched to jemalloc on a sidekiq queue and memory dropped from 8gib to under 1gib
>
> There’s a slow memory leak somewhere in my code but with jemalloc it no longer actually matters.
>
> Thanks to jemalloc team for this!

### [skavi](<https://news.ycombinator.com/item?id=49751655>)

> does anyone familiar with the art have thoughts on why only tcmalloc switched from thread caches to cpu caches? would it make linux behavior diverge too much from other platforms?

---

## Cite

- Page: https://zeli.app/story/49750152
- Date: 2026-09-18
- Source: github.com (https://github.com/jemalloc/jemalloc/releases/tag/5.4.0)
- Hacker News: https://news.ycombinator.com/item?id=49750152

## Other languages

- zh: https://zeli.app/zh/story/49750152 · markdown: https://zeli.app/zh/story/49750152.md
- ja: https://zeli.app/ja/story/49750152 · markdown: https://zeli.app/ja/story/49750152.md
- ko: https://zeli.app/ko/story/49750152 · markdown: https://zeli.app/ko/story/49750152.md
- de: https://zeli.app/de/story/49750152 · markdown: https://zeli.app/de/story/49750152.md
- es: https://zeli.app/es/story/49750152 · markdown: https://zeli.app/es/story/49750152.md
- ru: https://zeli.app/ru/story/49750152 · markdown: https://zeli.app/ru/story/49750152.md
