Re: [PATCH] x86/mm/pat: Support splitting of virtual memory areas

From: Dave Hansen
Date: Thu Sep 05 2024 - 16:53:10 EST


On 9/5/24 13:08, Nam Cao wrote:
>
> If I pause this program right after the two mmap(), before any munmap(),
> then:
> $cat /sys/kernel/debug/x86/pat_memtype_list
> PAT memtype list:
> PAT: [mem 0x00000000bffe0000-0x00000000bffe2000] write-back
> PAT: [mem 0x00000000bffe1000-0x00000000bffe2000] write-back
> PAT: [mem 0x00000000fd000000-0x00000000fd002000] uncached-minus <-- what I described
> PAT: [mem 0x00000000fd001000-0x00000000fd003000] uncached-minus <-- what I described
> PAT: [mem 0x00000000febc0000-0x00000000febe0000] uncached-minus

Well, that's not what I had in mind, so I'm obviously the confused one.

Let me take a look through your example and see if I can offer any
alternatives.