Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

Jemalloc 5.4.0 (https://github.com)

332 points by gkfasdfasdf 2 days ago | 94 comments | View on ycombinator

vocx2tx 2 days ago |

For some context on why this release is notable: Jemalloc Postmortem [0]

[0] https://news.ycombinator.com/item?id=44264958

lordnacho 1 day ago |

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

atombender 1 day ago |

I use Jemalloc on a project because it has per-thread allocation counters. This lets me not only track what each thread is using, but also restrict workloads by enforcing a memory budget. Since my application is almost completely CPU-bound, I allocate one thread per core and then have some smart scheduling to route requests to the threads. I looked at tcmalloc and mimalloc, and neither had this feature at the time, nor did they seem to have any similar feature that could let me have per-thread heaps, which surprised me.

albertgoeswoof 1 day ago |

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!

throw0101a 1 day ago |

Related, from three days ago, "Comparison of Malloc() Algorithms":

* https://news.ycombinator.com/item?id=49715318

ggg011012 1 day ago |

Nice to see jemalloc active again. The long-term health of the upstream project is probably just as important as the allocator improvements themselves.

skavi 1 day ago |

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?

collimarco 1 day ago |

Jemalloc is great for Ruby on Rails apps, and drastically reduces memory usage for the same workloads. We use it for all our Ruby / Rails apps running on Kubernetes / Cuber: https://answers.abstractbrain.com/how-to-enable-jemalloc-for...

ksec 1 day ago |

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.

ZenoArrow 2 days ago |

Why is this on the HN front page? Is there something particularly noteworthy about this release?