From 5752d3b3e64b6bd3e76708011d68584da0a4e56c Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 24 Mar 2016 16:38:45 +1100 Subject: [PATCH] Bug 1258257 - Reduce mozjemalloc page cache size from 4 MiB to 1 MiB. r=glandium. This reduces memory usage by up to 3 MiB per process. MozReview-Commit-ID: Gfs9PIJM4br --HG-- extra : rebase_source : 69ac5acf7f7f0c802a047f5bf72838e5c4d1f123 --- memory/mozjemalloc/jemalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory/mozjemalloc/jemalloc.c b/memory/mozjemalloc/jemalloc.c index d1a57feb7ab6..19cfbfe9ac3d 100644 --- a/memory/mozjemalloc/jemalloc.c +++ b/memory/mozjemalloc/jemalloc.c @@ -536,7 +536,7 @@ static const bool isthreaded = true; */ #define CHUNK_2POW_DEFAULT 20 /* Maximum number of dirty pages per arena. */ -#define DIRTY_MAX_DEFAULT (1U << 10) +#define DIRTY_MAX_DEFAULT (1U << 8) /* * Maximum size of L1 cache line. This is used to avoid cache line aliasing,