From: Hugh Dickins <hugh@veritas.com>
To: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Robin Holt <holt@sgi.com>,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: munmap extremely slow even with untouched mapping.
Date: Sun, 30 Oct 2005 16:58:14 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.4.61.0510301631360.2848@goblin.wat.veritas.com> (raw)
In-Reply-To: <43644C22.8050501@yahoo.com.au>
On Sun, 30 Oct 2005, Nick Piggin wrote:
> Hugh Dickins wrote:
> >
> > I prefer your patch too. But I'm not very interested in temporary
> > speedups relative to 2.6.14. Attacking this is a job I'd put off
> > until after the page fault scalability changes, which make it much
> > easier to do a proper job.
>
> Yeah definitely.
>
> I wonder if we should go with Robin's fix (+/- my variation)
> as a temporary measure for 2.6.15?
You're right, I was too dismissive. I've now spent a day looking into
the larger rework, and it's a bigger job than I'd thought - partly the
architecture variations, partly the fast/slow paths and other "tlb" cruft,
partly the truncation case's i_mmap_lock (and danger of making no progress
whenever we drop it). I'll have to set all that aside for now.
I've taken another look at the two patches. The main reason I preferred
yours was that I misread Robin's! But yes, yours takes it a bit further,
and I think that is worthwhile.
But a built and tested version would be better. Aren't you trying to
return addr from each level (that's what I liked, and what I'll want to
do in the end)? But some levels are returning nothing, and unmap_vmas
does start +=, and the huge case leaves start unchanged, and zap_work
should be a long so it doesn't need casting almost everywhere, and...
given all that, I bet there's more!
As to whether p??_none should count for 1 where !pte_none counts for
PAGE_SIZE, well, they say a picture is worth a thousand words, and I'm
sure that's entered your calculation ;-) I'd probably make the p??_none
count for a little more. Perhaps we should get everyone involved in a
great profiling effort across the architectures to determine it.
Config option. Sys tunable. I'll shut up.
Hugh
--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2005-10-30 16:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-28 1:37 Robin Holt
2005-10-28 10:45 ` Nick Piggin
2005-10-28 15:20 ` Hugh Dickins
2005-10-30 4:29 ` Nick Piggin
2005-10-30 16:58 ` Hugh Dickins [this message]
2005-10-31 9:10 ` Nick Piggin
2005-10-31 9:19 ` Nick Piggin
2005-10-31 12:20 ` Robin Holt
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=Pine.LNX.4.61.0510301631360.2848@goblin.wat.veritas.com \
--to=hugh@veritas.com \
--cc=holt@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=nickpiggin@yahoo.com.au \
/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