From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Tony.P.Lee@nokia.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: mprotect() api overhead.
Date: Sat, 23 Mar 2002 01:03:00 +0000 (GMT) [thread overview]
Message-ID: <E16oZvx-00010N-00@the-village.bc.nu> (raw)
In-Reply-To: <4D7B558499107545BB45044C63822DDE3A2043@mvebe001.NOE.Nokia.com> from "Tony.P.Lee@nokia.com" at Mar 22, 2002 02:10:20 PM
> For x86 system, is there way to specify 4MB page table entry
> instead of 4K page table entry when use the mmap() api.
> With 4MB mmap() page table entry, mprotected should take only
> 8 iterations to change the access bits for 32 MB of share
> memory as compare to 8k iterations for 4k page table entries.
> Am I corrected on this?
The mainstream kernel has no real support for 4Mb pages - some experimental
work has been done but little else. Even then the TLB flush has a non
trivial overhead. On SMP the effect will be more significant since it
must ensure the other threads on other processors also see updated page
tables.
Alan
next prev parent reply other threads:[~2002-03-23 1:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-22 22:10 Tony.P.Lee
2002-03-22 22:57 ` Andrew Morton
2002-03-23 1:03 ` Alan Cox [this message]
2002-03-22 23:09 Tony.P.Lee
2002-03-23 1:59 Tony.P.Lee
2002-03-23 2:20 ` Alan Cox
2002-03-25 4:19 ` Benjamin LaHaise
2002-04-06 4:13 Pete Zaitcev
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=E16oZvx-00010N-00@the-village.bc.nu \
--to=alan@lxorguk.ukuu.org.uk \
--cc=Tony.P.Lee@nokia.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®