HPA: Make dehugification threshold configurable.

This commit is contained in:
David Goldblatt
2020-12-09 14:42:05 -08:00
committed by David Goldblatt
parent 4790db15ed
commit 32dd153796
5 changed files with 37 additions and 1 deletions

View File

@@ -20,6 +20,11 @@ struct hpa_shard_opts_s {
* hugification_threshold, we force hugify it.
*/
size_t hugification_threshold;
/*
* When the number of dirty bytes in a hugepage is >=
* dehugification_threshold, we force dehugify it.
*/
size_t dehugification_threshold;
};
#define HPA_SHARD_OPTS_DEFAULT { \
@@ -27,6 +32,8 @@ struct hpa_shard_opts_s {
64 * 1024, \
/* hugification_threshold */ \
HUGEPAGE * 95 / 100, \
/* dehugification_threshold */ \
HUGEPAGE * 20 / 100 \
}
#endif /* JEMALLOC_INTERNAL_HPA_OPTS_H */