mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 17:13:35 +03:00
HPA: Don't track inactive pages.
This is really only useful for human consumption. Correspondingly, emit it only in the human-readable stats, and let everybody else compute from the hugepage size and nactive.
This commit is contained in:
parent
55e0f60ca1
commit
be0d7a53f3
6 changed files with 9 additions and 53 deletions
|
|
@ -21,7 +21,6 @@ static void
|
|||
psset_bin_stats_accum(psset_bin_stats_t *dst, psset_bin_stats_t *src) {
|
||||
dst->npageslabs += src->npageslabs;
|
||||
dst->nactive += src->nactive;
|
||||
dst->ninactive += src->ninactive;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -54,7 +53,6 @@ psset_bin_stats_insert_remove(psset_bin_stats_t *binstats, hpdata_t *ps,
|
|||
binstats[huge_idx].npageslabs += mul * 1;
|
||||
size_t nactive = hpdata_nactive_get(ps);
|
||||
binstats[huge_idx].nactive += mul * nactive;
|
||||
binstats[huge_idx].ninactive += mul * (HUGEPAGE_PAGES - nactive);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue