Re: [PATCH v2] mm/hugetlb: add htlb_dissolve vmstat event
From: Andrew Morton
Date: Thu Nov 05 2026 - 18:39:50 EST
On Thu, 5 Nov 2026 19:15:08 +0000 Mark Bundschuh <mkbund@xxxxxxxxxx> wrote:
> Memory offline and memory failure handling dissolve free hugetlb folios
> and lower nr_hugepages. Nothing records this, so when the pool shrinks
> it is hard to tell whether that or a write to nr_hugepages caused it.
Can we please have a much more detailed explanation of the motivation
for this? I assume it's for the benefit of ops people, but why do they
want this and how will it be used, etc? y'know, that old use-case
thing.
> Add an htlb_dissolve event, counted for each free folio that
> dissolve_free_hugetlb_folio() takes out of the pool.
I'm wondering why it doesn't account offline and memory-failure
separately but without the above info I'm at a loss!
Thanks.