public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Dean Roe <roe@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] - Make pfn_valid more precise for SGI Altix systems
Date: Thu, 10 Nov 2005 16:19:37 +0000	[thread overview]
Message-ID: <20051110161937.GA7244@sgi.com> (raw)
In-Reply-To: <20051109202506.GA4152@sgi.com>

On Wed, Nov 09, 2005 at 03:34:46PM -0800, Luck, Tony wrote:
> Ignore earlier message ... I thought I saw a || when you really
> just have && all the way through this:
> 
> +# define pfn_valid(pfn)		(((pfn) >= min_low_pfn) && ((pfn) < max_low_pfn) && ia64_pfn_valid(pfn))
> 
> Doesn't that mean that you are optimizing for the case where some
> one passed in a bad pfn ... does that really happen a lot?
> 
> -Tony

Well, as much as the check against max_low_pfn was optimizing for the
other end.  This does occur on Altix systems when processes access memory
on other partitions (you probably saw Jack and Robin's comments about this
in the 4-level page table thread today).  I'm not sure if there are many
cases other than that, although I did notice that some of the other
architecture definitions do a similar check.

Dean

-- 
Dean Roe
Silicon Graphics, Inc.
roe@sgi.com

      parent reply	other threads:[~2005-11-10 16:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-09 20:25 [PATCH] - Make pfn_valid more precise for SGI Altix systems Dean Roe
2005-11-09 23:24 ` Luck, Tony
2005-11-09 23:34 ` Luck, Tony
2005-11-10 16:19 ` Dean Roe [this message]

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=20051110161937.GA7244@sgi.com \
    --to=roe@sgi.com \
    --cc=linux-ia64@vger.kernel.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