diff options
author | Qi Wang <interwq@gwu.edu> | 2019-01-16 12:25:24 -0800 |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2019-01-24 13:29:23 -0800 |
commit | 350809dc5d43ea994de04f7a970b6978a8fec6d2 (patch) | |
tree | 38557452ddb64f0b798528e3d825b25305220d6e /include | |
parent | d3145014a00d6420824a45bb24fa9237a553d8dc (diff) |
Set huge_threshold to 8M by default.
This feature uses an dedicated arena to handle huge requests, which
significantly improves VM fragmentation. In production workload we tested it
often reduces VM size by >30%.
Diffstat (limited to 'include')
-rw-r--r-- | include/jemalloc/internal/arena_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/arena_types.h b/include/jemalloc/internal/arena_types.h index c40ae6fd..cf07cc02 100644 --- a/include/jemalloc/internal/arena_types.h +++ b/include/jemalloc/internal/arena_types.h @@ -46,6 +46,6 @@ typedef enum { * When allocation_size >= huge_threshold, use the dedicated huge arena (unless * have explicitly spicified arena index). 0 disables the feature. */ -#define HUGE_THRESHOLD_DEFAULT 0 +#define HUGE_THRESHOLD_DEFAULT (8 << 20) #endif /* JEMALLOC_INTERNAL_ARENA_TYPES_H */ |