Abandoning this idea for now... jemalloc via LD_PRELOAD seems be working out to deal with fragmentation. I hope to be able to steal jemalloc ideas for glibc malloc to give a better out-of-the-box experience on GNU/Linux systems.
- [RFC] daemon: experimental PREALLOC_NR env knob Eric Wong
- Re: [RFC] daemon: experimental PREALLOC_NR env knob Eric Wong