General

Profile

mperham (Mike Perham)

Issues

Activity

08/01/2018

12:55 AM Ruby trunk Feature #14718: Use jemalloc by default?
Sam, I'm ok with your suggestion, any progress here is welcome. The main issue with tcmalloc is that Ruby doesn't su...

05/23/2018

04:22 AM Ruby trunk Feature #14718: Use jemalloc by default?
> Ideally I would like a new Ruby runtime flag --long-lived that was tuned for long run times (e.g low malloc arena c...

05/22/2018

08:22 PM Ruby trunk Feature #14718: Use jemalloc by default?
If jemalloc 5.1.0 is using too much memory, you can tune its arenas in the same way as glibc:
~~~
MALLOC_CONF=nar...
04:25 PM Ruby trunk Feature #14718: Use jemalloc by default?
Another graph from a production Rails app:
![jemalloc](https://pbs.twimg.com/media/Ddv2rvfVMAAM9qu.jpg)
https:/...

05/20/2018

05:58 PM Ruby trunk Feature #14759: [PATCH] set M_ARENA_MAX for glibc malloc
Yusuke, your script doesn't create any memory fragmentation, it throws away everything after 1600 and reads the exact...

05/18/2018

03:49 AM Ruby trunk Feature #14718: Use jemalloc by default?
Dennis, your results match my results (Ubuntu 18.04, gcc 7.3, glibc 2.27). jemalloc 3.6 is slow but space efficient....

05/17/2018

05:31 PM Ruby trunk Feature #14718: Use jemalloc by default?
Yusuke, I'm not sure, I can't explain that. It does get worse as the machine gets larger. A machine with more cores...

05/16/2018

08:12 PM Ruby trunk Feature #14718: Use jemalloc by default?
Yeah, it seems that way. Those results are with jemalloc 3.6.0 (which is what Ubuntu ships), a version 4 years old. ...
06:45 PM Ruby trunk Feature #14718: Use jemalloc by default?
I've created a script which attempts to reproduce memory fragmentation.
~~~
=begin
This script attempts to repro...
05:29 AM Ruby trunk Feature #14718: Use jemalloc by default?
Dennis, my focus for this issue is fixing the memory bloat problem that plagues 1000s of Rails apps today, not a hypo...

Also available in: Atom