HPA: Add min_purge_interval_ms option

This rate limiting option is required to avoid purging too often.
This commit is contained in:
Alex Lapenkou 2021-08-18 12:22:43 -07:00 committed by Alexander Lapenkov
parent b8b8027f19
commit 97da57c13a
4 changed files with 21 additions and 3 deletions

View file

@ -1472,6 +1472,7 @@ stats_general_print(emitter_t *emitter) {
OPT_WRITE_SIZE_T("hpa_slab_max_alloc")
OPT_WRITE_SIZE_T("hpa_hugification_threshold")
OPT_WRITE_UINT64("hpa_hugify_delay_ms")
OPT_WRITE_UINT64("hpa_min_purge_interval_ms")
if (je_mallctl("opt.hpa_dirty_mult", (void *)&u32v, &u32sz, NULL, 0)
== 0) {
/*