Re: [PATCH mm-unstable v1 3/3] mm/codetag: add pgalloc_tag_copy()
From: Suren Baghdasaryan
Date: Thu Sep 05 2024 - 20:03:59 EST
On Thu, Sep 5, 2024 at 4:25 PM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Tue, 3 Sep 2024 15:36:49 -0600 Yu Zhao <yuzhao@xxxxxxxxxx> wrote:
>
> > Add pgalloc_tag_copy() to transfer the codetag from the old folio to
> > the new one during migration. This makes original allocation sites
> > persist cross migration rather than lump into compaction_alloc, e.g.,
> > # echo 1 >/proc/sys/vm/compact_memory
> > # grep compaction_alloc /proc/allocinfo
> >
> > Before this patch:
> > 132968448 32463 mm/compaction.c:1880 func:compaction_alloc
> >
> > After this patch:
> > 0 0 mm/compaction.c:1880 func:compaction_alloc
> >
>
> I'm thinking that [2/3] should be backported?
Yes, should be CC'ed to stable #6.10
>
> And possibly this one, but for that we should identify a Fixes:, please.
I think for this one Fixes: dcfe378c81f7 ("lib: introduce support for
page allocation tagging") would be the most appropriate.
I'll review all 3 fixes later today.
Thanks!