From: Ingo Molnar <mingo@elte.hu>
To: Andi Kleen <ak@muc.de>
Cc: Andrew Morton <akpm@digeo.com>,
Linus Torvalds <torvalds@transmeta.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: [patch] mmap-speedup-2.5.42-C3
Date: Wed, 16 Oct 2002 10:03:52 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.44.0210160957150.4018-100000@localhost.localdomain> (raw)
In-Reply-To: <m3bs5vl79h.fsf@averell.firstfloor.org>
On 15 Oct 2002, Andi Kleen wrote:
> When you oprofile KDE startup you notice that a lot of time is spent in
> get_unmapped_area too. The reason is that every KDE process links with
> 10-20 libraries and ends up with a 40-50 entry /proc/<pid>/maps.
actually, library mappings alone should not cause a slowdown, since we
start the search at MAP_UNMAPPED_BASE and most library mappings are below
1GB. But if those libraries use mmap()-ed anonymous RAM that has different
protections then the anonymous areas do not get merged and the scanning
overhead goes up.
> Optimizing this case would be likely useful too, although I suspect
> Ingo's last hit cache would already help somewhat.
well, could you check how much of an impact it has on KDE's kernel
profile? For the threaded test it's was a more than 10x application
speedup, and in the kernel profile get_unmapped_area() was like 90% of the
hits - after the change it was like 1% of the hits. (but, this test is the
best-case for the search cache, so ...)
if this simpler approach solves two different problem categories
sufficiently then i cannot see any reason to go for the much more complex
(and still not 100% scanning-less) approach.
Ingo
next prev parent reply other threads:[~2002-10-16 7:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-15 13:11 Ingo Molnar
2002-10-15 18:09 ` Andrew Morton
2002-10-15 21:30 ` Andi Kleen
2002-10-16 8:03 ` Ingo Molnar [this message]
2002-10-16 8:07 ` Jakub Jelinek
2002-10-16 8:27 ` Ingo Molnar
2002-10-16 8:22 ` Jakub Jelinek
2002-10-16 9:16 ` Andi Kleen
2002-10-16 9:47 ` Ingo Molnar
2002-10-16 12:08 ` Jakub Jelinek
2002-10-16 1:14 ` Saurabh Desai
2002-10-16 8:14 ` Ingo Molnar
2002-10-16 14:52 ` Linus Torvalds
2002-10-16 15:49 ` Arjan van de Ven
2002-10-16 16:10 ` Andrew Morton
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.44.0210160957150.4018-100000@localhost.localdomain \
--to=mingo@elte.hu \
--cc=ak@muc.de \
--cc=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®