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 /test | |
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 'test')
-rw-r--r-- | test/unit/mallctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/mallctl.c b/test/unit/mallctl.c index 0b14e78..5612cce 100644 --- a/test/unit/mallctl.c +++ b/test/unit/mallctl.c @@ -158,7 +158,7 @@ TEST_BEGIN(test_mallctl_opt) { TEST_MALLCTL_OPT(bool, abort, always); TEST_MALLCTL_OPT(bool, abort_conf, always); - TEST_MALLCTL_OPT(bool, metadata_thp, always); + TEST_MALLCTL_OPT(const char *, metadata_thp, always); TEST_MALLCTL_OPT(bool, retain, always); TEST_MALLCTL_OPT(const char *, dss, always); TEST_MALLCTL_OPT(unsigned, narenas, always); |