Include HPA ndirty into page allocator ndirty stat

This commit is contained in:
Dmitry Ilvokhin 2024-03-25 09:23:03 -07:00 committed by Qi Wang
parent b2e59a96e1
commit 268e8ee880

View file

@ -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