[lkml]   [2010]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Downsides to madvise/fadvise(willneed) for application startup
Taras Glek <> 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.

For your use case the algorithm would likely need some glibc support.


-- -- Speaking for myself only.

 \ /
  Last update: 2010-04-12 10:53    [W:0.142 / U:2.032 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site