64e458f5cd
Split decay-based purging into two phases, the first of which uses lazy purging to convert dirty pages to "muzzy", and the second of which uses forced purging, decommit, or unmapping to convert pages to clean or destroy them altogether. Not all operating systems support lazy purging, yet the application may provide extent hooks that implement lazy purging, so care must be taken to dynamically omit the first phase when necessary. The mallctl interfaces change as follows: - opt.decay_time --> opt.{dirty,muzzy}_decay_time - arena.<i>.decay_time --> arena.<i>.{dirty,muzzy}_decay_time - arenas.decay_time --> arenas.{dirty,muzzy}_decay_time - stats.arenas.<i>.pdirty --> stats.arenas.<i>.p{dirty,muzzy} - stats.arenas.<i>.{npurge,nmadvise,purged} --> stats.arenas.<i>.{dirty,muzzy}_{npurge,nmadvise,purged} This resolves #521.
7 lines
168 B
Bash
7 lines
168 B
Bash
#!/bin/sh
|
|
|
|
export MALLOC_CONF="dirty_decay_time:1,muzzy_decay_time:1"
|
|
if [ "x${enable_tcache}" = "x1" ] ; then
|
|
export MALLOC_CONF="${MALLOC_CONF},lg_tcache_max:0"
|
|
fi
|