mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 04:03:11 +00:00
Include HPA ndirty into page allocator ndirty stat
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user