From: "Stephen C. Tweedie" <sct@redhat.com>
To: Paul Mackerras <paulus@samba.org>
Cc: "Stephen C. Tweedie" <sct@redhat.com>, linux-kernel@vger.kernel.org
Subject: Re: about kmap_high function
Date: Tue, 3 Jul 2001 16:34:18 +0100 [thread overview]
Message-ID: <20010703163418.E28793@redhat.com> (raw)
In-Reply-To: <3620762046.20010629150601@turbolinux.com.cn> <20010703103809.A29868@redhat.com> <15169.48856.428247.217216@cargo.ozlabs.ibm.com>
In-Reply-To: <15169.48856.428247.217216@cargo.ozlabs.ibm.com>; from paulus@samba.org on Tue, Jul 03, 2001 at 10:47:20PM +1000
Hi,
On Tue, Jul 03, 2001 at 10:47:20PM +1000, Paul Mackerras wrote:
> Stephen C. Tweedie writes:
>
> On PPC it is a bit different. Flushing a single TLB entry is
> relatively cheap - the hardware broadcasts the TLB invalidation on the
> bus (in most implementations) so there are no cross-calls required. But
> flushing the whole TLB is expensive because we (strictly speaking)
> have to flush the whole of the MMU hash table as well.
How much difference is there? We only flush once per kmap sweep, and
we have 1024 entries in the global kmap pool, so the single tlb flush
would have to be more than a thousand times less expensive overall
than the global flush for that change to be worthwhile.
If the page flush really is _that_ much faster, then sure, this
decision can easily be made per-architecture: the kmap_high code
already has all of the locking and refcounting to know when a per-page
tlb flush would be safe.
Cheers,
Stephen
next prev parent reply other threads:[~2001-07-03 16:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-29 7:06 about kmap_high function michaelc
2001-07-03 9:38 ` Stephen C. Tweedie
2001-07-03 12:47 ` Paul Mackerras
2001-07-03 15:34 ` Stephen C. Tweedie [this message]
2001-07-04 11:48 ` Paul Mackerras
2001-07-05 2:28 ` Re[2]: " michaelc
2001-07-05 10:41 ` Stephen C. Tweedie
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=20010703163418.E28793@redhat.com \
--to=sct@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.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