linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dave Hansen <dave.hansen@intel.com>
To: Larry Bassel <larry.bassel@oracle.com>,
	Jerome Glisse <jglisse@redhat.com>
Cc: linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org
Subject: Re: question about page tables in DAX/FS/PMEM case
Date: Thu, 21 Feb 2019 15:51:05 -0800	[thread overview]
Message-ID: <6e4a5296-0ad0-ab1e-40a0-c1f69d11300a@intel.com> (raw)
In-Reply-To: <20190221225827.GA2764@ubuette>

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.

  reply	other threads:[~2019-02-21 23:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-20 23:06 question about page tables in DAX/FS/PMEM case Larry Bassel
2019-02-21 20:41 ` Jerome Glisse
2019-02-21 22:58   ` Larry Bassel
2019-02-21 23:51     ` Dave Hansen [this message]
2019-02-22  0:39     ` Jerome Glisse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6e4a5296-0ad0-ab1e-40a0-c1f69d11300a@intel.com \
    --to=dave.hansen@intel.com \
    --cc=jglisse@redhat.com \
    --cc=larry.bassel@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-nvdimm@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).