All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ray Bryant" <raybry@mpdtxmail.amd.com>
To: "Andi Kleen" <ak@suse.de>
Cc: "Dave McCracken" <dmccr@us.ibm.com>, "Robin Holt" <holt@sgi.com>,
	"Hugh Dickins" <hugh@veritas.com>,
	"Linux Kernel" <linux-kernel@vger.kernel.org>,
	"Linux Memory Management" <linux-mm@kvack.org>
Subject: Re: [PATCH/RFC] Shared page tables
Date: Mon, 23 Jan 2006 18:53:54 -0600	[thread overview]
Message-ID: <200601231853.54948.raybry@mpdtxmail.amd.com> (raw)
In-Reply-To: <200601240139.46751.ak@suse.de>

On Monday 23 January 2006 18:39, Andi Kleen wrote:
> On Tuesday 24 January 2006 01:16, Ray Bryant wrote:
> > On Monday 23 January 2006 17:58, Ray Bryant wrote:
> > <snip>
> >
> > > ... And what kind of alignment constraints do we end up
> > > under in order to make the sharing happen?   (My guess would be that
> > > there aren't any such constraints (well, page alignment.. :-)  if we
> > > are just sharing pte's.)
> >
> > Oh, obviously that is not right as you have to share full pte pages.   So
> > on x86_64 I'm guessing one needs 2MB alignment in order to get the
> > sharing to kick in, since a pte page maps 512 pages of 4 KB each.
>
> The new randomized mmaps will likely actively sabotate such alignment. I
> just added them for x86-64.
>
> -Andi

Hmmm, does that mean there is a fundamental conflict between the desire to 
share pte's and getting good cache coloring behavior?

Isn't it the case that if the region is large enough (say >> 2MB), that 
randomized mmaps will just cause the first partial page of pte's to not be 
shareable, and as soon as we have a full pte page mapped into the file that 
the full pte pages will be shareable, etc, until the last (partial) pte page 
is not shareable?

> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-- 
Ray Bryant
AMD Performance Labs                   Austin, Tx
512-602-0038 (o)                 512-507-7807 (c)


WARNING: multiple messages have this Message-ID (diff)
From: "Ray Bryant" <raybry@mpdtxmail.amd.com>
To: Andi Kleen <ak@suse.de>
Cc: Dave McCracken <dmccr@us.ibm.com>, Robin Holt <holt@sgi.com>,
	Hugh Dickins <hugh@veritas.com>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	Linux Memory Management <linux-mm@kvack.org>
Subject: Re: [PATCH/RFC] Shared page tables
Date: Mon, 23 Jan 2006 18:53:54 -0600	[thread overview]
Message-ID: <200601231853.54948.raybry@mpdtxmail.amd.com> (raw)
In-Reply-To: <200601240139.46751.ak@suse.de>

On Monday 23 January 2006 18:39, Andi Kleen wrote:
> On Tuesday 24 January 2006 01:16, Ray Bryant wrote:
> > On Monday 23 January 2006 17:58, Ray Bryant wrote:
> > <snip>
> >
> > > ... And what kind of alignment constraints do we end up
> > > under in order to make the sharing happen?   (My guess would be that
> > > there aren't any such constraints (well, page alignment.. :-)  if we
> > > are just sharing pte's.)
> >
> > Oh, obviously that is not right as you have to share full pte pages.   So
> > on x86_64 I'm guessing one needs 2MB alignment in order to get the
> > sharing to kick in, since a pte page maps 512 pages of 4 KB each.
>
> The new randomized mmaps will likely actively sabotate such alignment. I
> just added them for x86-64.
>
> -Andi

Hmmm, does that mean there is a fundamental conflict between the desire to 
share pte's and getting good cache coloring behavior?

Isn't it the case that if the region is large enough (say >> 2MB), that 
randomized mmaps will just cause the first partial page of pte's to not be 
shareable, and as soon as we have a full pte page mapped into the file that 
the full pte pages will be shareable, etc, until the last (partial) pte page 
is not shareable?

> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

-- 
Ray Bryant
AMD Performance Labs                   Austin, Tx
512-602-0038 (o)                 512-507-7807 (c)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2006-01-24  0:54 UTC|newest]

Thread overview: 109+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-05 16:19 [PATCH/RFC] Shared page tables Dave McCracken
2006-01-07 12:25 ` Heiko Carstens
2006-01-07 12:25   ` Heiko Carstens
2006-01-07 18:09   ` Dave McCracken
2006-01-07 18:09     ` Dave McCracken
2006-01-08 12:09     ` Heiko Carstens
2006-01-08 12:09       ` Heiko Carstens
2006-01-08 14:04       ` Dave McCracken
2006-01-08 14:04         ` Dave McCracken
2006-01-13  5:15 ` Brian Twichell
2006-01-13  5:15   ` Brian Twichell
2006-01-13 22:34   ` Ray Bryant
2006-01-13 22:34     ` Ray Bryant
2006-01-17  4:50     ` Brian Twichell
2006-01-17  4:50       ` Brian Twichell
2006-01-25  4:14   ` Brian Twichell
2006-01-25  4:14     ` Brian Twichell
2006-01-13 15:18 ` Phillip Susi
2006-01-13 15:18   ` Phillip Susi
2006-01-14 20:45   ` Brian Twichell
2006-01-14 20:45     ` Brian Twichell
2006-01-17 23:53 ` Robin Holt
2006-01-17 23:53   ` Robin Holt
2006-01-18  0:17   ` Dave Hansen
2006-01-18  0:17     ` Dave Hansen
2006-01-18  6:11     ` Dave McCracken
2006-01-18  6:11       ` Dave McCracken
2006-01-18  1:27   ` Chen, Kenneth W
2006-01-18  1:27     ` Chen, Kenneth W
2006-01-18  3:32     ` Robin Holt
2006-01-18  3:32       ` Robin Holt
2006-01-23 23:58   ` Ray Bryant
2006-01-23 23:58     ` Ray Bryant
2006-01-24  0:16     ` Ray Bryant
2006-01-24  0:16       ` Ray Bryant
2006-01-24  0:39       ` Andi Kleen
2006-01-24  0:39         ` Andi Kleen
2006-01-24  0:51         ` Dave McCracken
2006-01-24  0:51           ` Dave McCracken
2006-01-24  1:11           ` Andi Kleen
2006-01-24  1:11             ` Andi Kleen
2006-01-24  1:26             ` Dave McCracken
2006-01-24  1:26               ` Dave McCracken
2006-01-24  0:53         ` Ray Bryant [this message]
2006-01-24  0:53           ` Ray Bryant
2006-01-24  1:00           ` Dave McCracken
2006-01-24  1:00             ` Dave McCracken
2006-01-24  1:10           ` Andi Kleen
2006-01-24  1:10             ` Andi Kleen
2006-01-24  1:23             ` Benjamin LaHaise
2006-01-24  1:23               ` Benjamin LaHaise
2006-01-24  1:38               ` Andi Kleen
2006-01-24  1:38                 ` Andi Kleen
2006-01-24  7:08                 ` Arjan van de Ven
2006-01-24  7:08                   ` Arjan van de Ven
2006-01-24  7:06             ` Arjan van de Ven
2006-01-24  7:06               ` Arjan van de Ven
2006-01-24  7:18               ` Andi Kleen
2006-01-24  7:18                 ` Andi Kleen
2006-01-27 18:16                 ` Martin Bligh
2006-01-27 18:16                   ` Martin Bligh
2006-02-01  9:49                 ` Nick Piggin
2006-02-01  9:49                   ` Nick Piggin
2006-01-24 14:48               ` Dave McCracken
2006-01-24 14:48                 ` Dave McCracken
2006-01-24 14:56                 ` Arjan van de Ven
2006-01-24 14:56                   ` Arjan van de Ven
2006-01-24  0:19     ` Dave McCracken
2006-01-24  0:19       ` Dave McCracken
2006-01-24  0:46       ` Ray Bryant
2006-01-24  0:46         ` Ray Bryant
2006-01-24 23:43       ` Ray Bryant
2006-01-24 23:43         ` Ray Bryant
2006-01-24 23:50         ` Dave McCracken
2006-01-24 23:50           ` Dave McCracken
2006-01-25  0:21           ` Ray Bryant
2006-01-25  0:21             ` Ray Bryant
2006-01-25 22:48           ` Ray Bryant
2006-01-25 22:48             ` Ray Bryant
2006-01-25 22:52             ` Dave McCracken
2006-01-25 22:52               ` Dave McCracken
2006-01-26  0:16               ` Ray Bryant
2006-01-26  0:16                 ` Ray Bryant
2006-01-26  0:58               ` Ray Bryant
2006-01-26  0:58                 ` Ray Bryant
2006-01-26  4:06                 ` Robin Holt
2006-01-26  4:06                   ` Robin Holt
2006-01-20 21:24 ` Hugh Dickins
2006-01-20 21:24   ` Hugh Dickins
2006-01-20 21:54   ` Chen, Kenneth W
2006-01-20 21:54     ` Chen, Kenneth W
2006-01-23 17:39   ` Dave McCracken
2006-01-23 17:39     ` Dave McCracken
2006-01-23 20:19     ` Benjamin LaHaise
2006-01-23 20:19       ` Benjamin LaHaise
2006-01-24 17:50     ` Hugh Dickins
2006-01-24 17:50       ` Hugh Dickins
2006-01-24 18:07       ` Dave McCracken
2006-01-24 18:07         ` Dave McCracken
2006-01-24 18:20         ` Hugh Dickins
2006-01-24 18:20           ` Hugh Dickins
2006-01-27 22:50   ` Brian Twichell
2006-01-27 22:50     ` Brian Twichell
2006-01-30 18:46     ` Ray Bryant
2006-01-30 18:46       ` Ray Bryant
2006-01-31 18:47       ` Brian Twichell
2006-01-31 18:47         ` Brian Twichell
2006-01-31 19:18         ` Dave McCracken
2006-01-31 19:18           ` Dave McCracken

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=200601231853.54948.raybry@mpdtxmail.amd.com \
    --to=raybry@mpdtxmail.amd.com \
    --cc=ak@suse.de \
    --cc=dmccr@us.ibm.com \
    --cc=holt@sgi.com \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.