Yang Shi <shy828301@xxxxxxxxx> writes: > On Fri, Feb 17, 2023 at 3:58 AM Aneesh Kumar K V > <aneesh.kumar@xxxxxxxxxxxxx> wrote: >> >> PowerPC architecture (POWER10) supports a Hot/Cold page tracking >> facility that provides access counter and access affinity details at >> configurable page size granularity [1]. I have been looking at using >> this counter in different areas of the kernel such as >> >> 1) Page reclaim/demotion >> 2) THP utilization >> 3) Page promotion. > > Not sure whether you are aware of this patchset: > https://lore.kernel.org/linux-mm/20230208073533.715-1-bharata@xxxxxxx/ > > ARM64 has SPE which provides similar functionality. So I hope a common > framework could be provided to hide the hardware details. I will look at this discussion and see if there are some details I can reuse. -aneesh