diff options
author | Qi Wang <interwq@gwu.edu> | 2019-07-15 22:56:05 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2019-07-24 18:24:22 (GMT) |
commit | 4e36ce34c1e6a6f470a9355b90b0a757c6fdb0b5 (patch) | |
tree | 3a48669b6f9c4acc7edf0bf6eca3a105cf7aaaf5 /include/jemalloc | |
parent | 42807fcd9ed68c78f660c6dd85bcf9d82e134244 (diff) | |
download | jemalloc-4e36ce34c1e6a6f470a9355b90b0a757c6fdb0b5.zip jemalloc-4e36ce34c1e6a6f470a9355b90b0a757c6fdb0b5.tar.gz jemalloc-4e36ce34c1e6a6f470a9355b90b0a757c6fdb0b5.tar.bz2 |
Track the leaked VM space via the abandoned_vm counter.
The counter is 0 unless metadata allocation failed (indicates OOM), and is
mainly for sanity checking.
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/arena_stats.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/jemalloc/internal/arena_stats.h b/include/jemalloc/internal/arena_stats.h index 3ffe9c7..23949ed 100644 --- a/include/jemalloc/internal/arena_stats.h +++ b/include/jemalloc/internal/arena_stats.h @@ -112,6 +112,9 @@ struct arena_stats_s { arena_stats_u64_t nflushes_large; /* Derived. */ arena_stats_u64_t nrequests_large; /* Derived. */ + /* VM space had to be leaked (undocumented). Normally 0. */ + atomic_zu_t abandoned_vm; + /* Number of bytes cached in tcache associated with this arena. */ atomic_zu_t tcache_bytes; /* Derived. */ |