mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-25 14:23:12 +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
|
size_t
|
||||||
pa_shard_ndirty(pa_shard_t *shard) {
|
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
|
size_t
|
||||||
|
|||||||
Reference in New Issue
Block a user