From: "David S. Miller" <davem@redhat.com>
To: mingo@elte.hu
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [patch, feature] nonlinear mappings, prefaulting support, 2.5.42-F8
Date: Mon, 14 Oct 2002 05:45:00 -0700 (PDT) [thread overview]
Message-ID: <20021014.054500.89132620.davem@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0210141334100.17808-100000@localhost.localdomain>
- TLB flush avoidance: the MAP_FIXED overmapping of larger than 4K cache
units causes a TLB flush, greatly increasing the overhead of 'basic'
DB cache operations - both the direct overhead and the secondary costs
of repopulating the TLB cache are signifiant - and will only increase
with newer CPUs. remap_file_pages() uses the one-page invalidation
instruction, which does not destroy the TLB.
Maybe on your cpu.
We created the range tlb flushes so that architectures have a chance
of optimizing such operations when possible.
If that isn't happening for small numbers of pages on x86 currently,
that isn't justification for special casing it here in this non-linear
mappings code.
If someone does a remap of 1GB of address space, I sure want the
option of doing a full MM flush if that is cheaper on my platform.
Currently, this part smells of an x86 performance hack, which might
even be suboptimal on x86 for remapping of huge ranges.
--
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/
next prev parent reply other threads:[~2002-10-14 12:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-14 12:38 Ingo Molnar
2002-10-14 12:45 ` David S. Miller [this message]
2002-10-14 13:30 ` Ingo Molnar
2002-10-14 13:18 ` David S. Miller
2002-10-14 13:52 ` William Lee Irwin III
2002-10-14 15:02 ` Ingo Molnar
2002-10-14 15:15 ` Ingo Molnar
2002-10-14 15:20 ` William Lee Irwin III
2002-10-14 15:52 ` Ingo Molnar
2002-10-14 16:02 ` Ingo Molnar
2002-10-14 21:02 ` William Lee Irwin III
2002-10-14 21:20 ` William Lee Irwin III
2002-10-14 21:25 ` William Lee Irwin III
2002-10-14 20:27 ` Andrew Morton
2002-10-15 1:18 ` Jamie Lokier
2002-10-15 6:48 ` Linus Torvalds
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=20021014.054500.89132620.davem@redhat.com \
--to=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
--cc=torvalds@transmeta.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