aboutsummaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/chunk.h
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-03-06 20:05:16 -0800
committerJason Evans <jasone@canonware.com>2015-03-06 20:18:34 -0800
commitf044bb219e9bfcc585f64f097e5ab0b5837c0451 (patch)
tree8dc7080777b80e597e4eed3e1ad003243c300c49 /include/jemalloc/internal/chunk.h
parent4d871f73af6b8310564dfcb63357dbfe8b1a1529 (diff)
downloadjemalloc-f044bb219e9bfcc585f64f097e5ab0b5837c0451.tar.gz
Change default chunk size from 4 MiB to 256 KiB.
Recent changes have improved huge allocation scalability, which removes upward pressure to set the chunk size so large that huge allocations are rare. Smaller chunks are more likely to completely drain, so set the default to the smallest size that doesn't leave excessive unusable trailing space in chunk headers.
Diffstat (limited to 'include/jemalloc/internal/chunk.h')
-rw-r--r--include/jemalloc/internal/chunk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/jemalloc/internal/chunk.h b/include/jemalloc/internal/chunk.h
index 1a968a5..1af5b24 100644
--- a/include/jemalloc/internal/chunk.h
+++ b/include/jemalloc/internal/chunk.h
@@ -5,7 +5,7 @@
* Size and alignment of memory chunks that are allocated by the OS's virtual
* memory system.
*/
-#define LG_CHUNK_DEFAULT 22
+#define LG_CHUNK_DEFAULT 18
/* Return the chunk address for allocation address a. */
#define CHUNK_ADDR2BASE(a) \