Re: question about page tables in DAX/FS/PMEM case

From: Dave Hansen
Date: Thu Feb 21 2019 - 18:52:31 EST


On 2/21/19 2:58 PM, Larry Bassel wrote:
> AFAIK there is no hardware benefit from sharing the page table
> directory within different page table. So the only benefit is the
> amount of memory we save.

The hardware benefit from schemes like this is that the CPU caches are
better utilized. If two processes share page tables, they don't share
TLB entries, but they *do* share the contents of the CPU's caches. That
will make TLB misses faster.

It probably doesn't matter *that* much in practice because the page
walker doing TLB fills does a pretty good job of hiding all the latency,
but it might matter in extreme cases.