gecko-dev/memory/build
Mike Hommey 965981b68d Bug 1397101 - Reduce the number of dirty pages we allow to be kept in thread local arenas. r=njn
Until bug 1361258, there was only ever one mozjemalloc arena, and the
number of dirty pages we allow to be kept dirty, fixed to 1MB per arena,
was, in fact, 1MB for an entire process.

With stylo using thread local arenas, we now can have multiple arenas
per process, multiplying that number of dirty pages.

While those dirty pages may be reused later on, when other allocations
end up filling them later on, the fact that a relatively large number of
them is kept around for each stylo thread (in proportion to the amount of
memory ever allocated by stylo), combined with the fact that the memory
use from stylo depends on the workload generated by the pages being
visited, those dirty pages may very well not be used for a rather long
time. This is less of a problem with the main arena, used for most
everything else.

So, for each arena except the main one, we decrease the number of dirty
pages we allow to be kept around to 1/8 of the current value. We do this
by introducing a per-arena configuration of that maximum number.

--HG--
extra : rebase_source : 75eebb175b3746d5ca1c371606cface50ec70f2f
2017-09-14 07:26:30 +09:00
..
Makefile.in Bug 1398965 - Fold memory/mozjemalloc into memory/build. r=njn 2017-09-12 13:14:35 +09:00
malloc_decls.h Bug 1389305 (attempt 2) - Add jemalloc_ptr_info() and moz_malloc_enclosing_size_of(). r=glandium. 2017-09-01 11:52:23 +10:00
moz.build Bug 1398965 - Fold memory/mozjemalloc into memory/build. r=njn 2017-09-12 13:14:35 +09:00
mozjemalloc_types.h Bug 1398965 - Fold memory/mozjemalloc into memory/build. r=njn 2017-09-12 13:14:35 +09:00
mozjemalloc.cpp Bug 1397101 - Reduce the number of dirty pages we allow to be kept in thread local arenas. r=njn 2017-09-14 07:26:30 +09:00
mozjemalloc.h Bug 1398965 - Fold memory/mozjemalloc into memory/build. r=njn 2017-09-12 13:14:35 +09:00
mozmemory_wrap.c merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-09-01 10:38:51 +02:00
mozmemory_wrap.h Bug 1399350 - Remove jemalloc_*_impl macros. r=njn 2017-09-13 14:25:21 +09:00
mozmemory.h Bug 1389305 (attempt 2) - Add jemalloc_ptr_info() and moz_malloc_enclosing_size_of(). r=glandium. 2017-09-01 11:52:23 +10:00
rb.h Bug 1398965 - Fold memory/mozjemalloc into memory/build. r=njn 2017-09-12 13:14:35 +09:00
replace_malloc_bridge.h
replace_malloc.h Bug 1368932 - Handle missing replace_posix_memalign at the replace-malloc level. r=njn 2017-05-31 13:47:17 +09:00
zone.c Bug 1396361 - Avoid crashing when some system library calls malloc_zone_free(zone, NULL). r=njn 2017-09-04 07:32:42 +09:00