mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-17 16:11:42 +03:00
HPA: make the hugification threshold configurable.
This commit is contained in:
parent
b3df80bc79
commit
4790db15ed
5 changed files with 42 additions and 4 deletions
|
|
@ -15,11 +15,18 @@ struct hpa_shard_opts_s {
|
|||
* any allocation request.
|
||||
*/
|
||||
size_t slab_max_alloc;
|
||||
/*
|
||||
* When the number of active bytes in a hugepage is >=
|
||||
* hugification_threshold, we force hugify it.
|
||||
*/
|
||||
size_t hugification_threshold;
|
||||
};
|
||||
|
||||
#define HPA_SHARD_OPTS_DEFAULT { \
|
||||
/* slab_max_alloc */ \
|
||||
64 * 1024 \
|
||||
64 * 1024, \
|
||||
/* hugification_threshold */ \
|
||||
HUGEPAGE * 95 / 100, \
|
||||
}
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_HPA_OPTS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue