Re: [PATCH v1] mm/vmscan: Account hwpoisoned folios in reclaim statistics
From: David Hildenbrand
Date: Wed Jul 02 2025 - 05:46:59 EST
On 02.07.25 11:34, 18810879172@xxxxxxx wrote:
From: wangxuewen <wangxuewen@xxxxxxxxxx>
When encountering a hardware-poisoned folio in shrink_folio_list(),
we unmap and release the folio but fail to account it in the reclaim
statistics (sc->nr_reclaimed). This leads to an undercount of
actually reclaimed pages, potentially causing unnecessary additional
reclaim pressure.
I'll just note that this kind-of makes sense: the memory is not actually
reclaimed -- we don't get free memory back. The hwpoisoned page is lost.
--
Cheers,
David / dhildenb