mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Include HPA ndirty into page allocator ndirty stat
This commit is contained in:
parent
b2e59a96e1
commit
268e8ee880
1 changed files with 5 additions and 1 deletions
|
|
@ -81,7 +81,11 @@ pa_shard_nactive(pa_shard_t *shard) {
|
|||
|
||||
size_t
|
||||
pa_shard_ndirty(pa_shard_t *shard) {
|
||||
return ecache_npages_get(&shard->pac.ecache_dirty);
|
||||
size_t ndirty = ecache_npages_get(&shard->pac.ecache_dirty);
|
||||
if (shard->ever_used_hpa) {
|
||||
ndirty += psset_ndirty(&shard->hpa_shard.psset);
|
||||
}
|
||||
return ndirty;
|
||||
}
|
||||
|
||||
size_t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue