[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87wrwd9hqm.fsf@basil.nowhere.org>
Date: Mon, 12 Apr 2010 10:50:57 +0200
From: Andi Kleen <andi@...stfloor.org>
To: Taras Glek <tglek@...illa.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: Downsides to madvise/fadvise(willneed) for application startup
Taras Glek <tglek@...illa.com> writes:
> Hello,
> I am working on improving Mozilla startup times. It turns out that
> page faults(caused by lack of cooperation between user/kernelspace)
> are the main cause of slow startup. I need some insights from someone
> who understands linux vm behavior.
I have an older patch to create dynamic bitmaps based on the last
run and only prefetch those pages.
It wasn't entirely a win for everything and didn't work for shared
libraries, but with some additional tuning the approach still has
potential I think, by combining memory saving with prefetching.
ftp://firstfloor.org/pub/ak/pbitmap/INTRO
http://halobates.de/dp2.pdf
For your use case the algorithm would likely need some glibc support.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists