Re: [PATCH 00/20] Add support for shared PTEs across processes

From: Anthony Yznaga
Date: Tue Jan 28 2025 - 19:26:35 EST



On 1/28/25 4:11 PM, Andrew Morton wrote:
On Fri, 24 Jan 2025 15:54:34 -0800 Anthony Yznaga <anthony.yznaga@xxxxxxxxxx> wrote:

Some of the field deployments commonly see memory pages shared
across 1000s of processes. On x86_64, each page requires a PTE that
is 8 bytes long which is very small compared to the 4K page
size.
Dumb question: why aren't these applications using huge pages?

They often are using hugetlbfs but would also benefit from having page tables shared for other kinds of memory such as shmem, tmpfs or dax.