public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@davemloft.net>
To: davidm@hpl.hp.com
Cc: davidm@napali.hpl.hp.com, rohit.seth@intel.com,
	linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [patch] arch hook for notifying changes in PTE protections bits
Date: Sun, 20 Mar 2005 00:27:29 +0000	[thread overview]
Message-ID: <20050319162729.12d6789d.davem@davemloft.net> (raw)
In-Reply-To: <16956.35789.229286.442052@napali.hpl.hp.com>

On Sat, 19 Mar 2005 12:30:05 -0800
David Mosberger <davidm@napali.hpl.hp.com> wrote:

> I agree about your concern about cost.  Accessing the page_map is
> expensive (integer division + memory access) and we have to do that in
> order to find out if the page is i-cache clean.

First, it's a multiply by reciprocol.  At least on sparc64 I get
this emitted by the compiler.

Secondly, if you're willing to sacrifice 8 bytes per page struct
simply define WANT_PAGE_VIRTUAL and page struct will be exactly
64 bytes and thus the divide a will turn into a simple shift.

  reply	other threads:[~2005-03-20  0:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050318162943.A3157@unix-os.sc.intel.com>
2005-03-19  4:05 ` [patch] arch hook for notifying changes in PTE protections bits David S. Miller
2005-03-19 20:22   ` Seth, Rohit
2005-03-19 20:30     ` David Mosberger
2005-03-20  0:27       ` David S. Miller [this message]
2005-03-20 22:38   ` Seth, Rohit

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=20050319162729.12d6789d.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=davidm@hpl.hp.com \
    --cc=davidm@napali.hpl.hp.com \
    --cc=linux-ia64@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rohit.seth@intel.com \
    /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