diff options
author | Qi Wang <interwq@gwu.edu> | 2017-08-24 21:29:28 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-08-30 23:47:32 (GMT) |
commit | 47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff (patch) | |
tree | 0c7a06a91a4c7988b9d95cbc0595c29403395fd9 /src/pages.c | |
parent | ea91dfa58e11373748f747041c3041f72c9a7658 (diff) | |
download | jemalloc-47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff.zip jemalloc-47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff.tar.gz jemalloc-47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff.tar.bz2 |
Change opt.metadata_thp to [disabled,auto,always].
To avoid the high RSS caused by THP + low usage arena (i.e. THP becomes a
significant percentage), added a new "auto" option which will only start using
THP after a base allocator used up the first THP region. Starting from the
second hugepage (in a single arena), "auto" behaves the same as "always",
i.e. madvise hugepage right away.
Diffstat (limited to 'src/pages.c')
-rw-r--r-- | src/pages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages.c b/src/pages.c index 70f1fd3..4ca3107 100644 --- a/src/pages.c +++ b/src/pages.c @@ -418,7 +418,7 @@ os_overcommits_proc(void) { static void init_thp_state(void) { if (!have_madvise_huge) { - if (opt_metadata_thp && opt_abort) { + if (metadata_thp_enabled() && opt_abort) { malloc_write("<jemalloc>: no MADV_HUGEPAGE support\n"); abort(); } |