login
Header Space

 
 

Re: [PATCH prototype] [0/8] Predictive bitmaps for ELF executables

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Andi Kleen <andi@...>, <linux-kernel@...>, <linux-mm@...>
Date: Wednesday, March 19, 2008 - 8:15 pm

El Wed, 19 Mar 2008 02:04:40 -0700, Andrew Morton <akpm@linux-foundation.org> escribió:


In the Dark Side of operating systems, the prefetching system they use
can log several access patterns for a single executable, because a single
executable can have different behaviours even for the same user, depending
on what parameters the executable is passed and what COM machinery it
uses. For example, wmplayer.exe can play a dvd, rip a CD, listen to a music
stream, etc...diferent usages, different access patterns. Linux probably faces
the same problem (bash, cat...)

A alternative design for a userspace solution that doesn't needs LD_PRELOAD
is to use CONFIG_PROC_EVENTS to get notifications of what processes are
started, which can be used to poll its /proc files or try to preload data
(asynchronously, and a bit hacky maybe).

But if a kernel patch is really needed to implement this properly, maybe
it'd be worth to take a look at the prefetch project that the Ubuntu guys
are apparently going to merge in the next ubuntu development release (8.10)...
https://wiki.ubuntu.com/DesktopTeam/Specs/Prefetch

There are even kernel patches:
http://code.google.com/p/prefetch/source/browse/tags/soc2007-end/trunk/kernel-patches/...
http://code.google.com/p/prefetch/source/browse/tags/soc2007-end/trunk/kernel-patches/...
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH prototype] [8/8] Add mmap_full_slurp support, Andi Kleen, (Mon Mar 17, 9:09 pm)
[PATCH prototype] [1/8] Give ELF shdr types a name, Andi Kleen, (Mon Mar 17, 9:09 pm)
Re: [PATCH prototype] [0/8] Predictive bitmaps for ELF execu..., Diego Calleja, (Wed Mar 19, 8:15 pm)
speck-geostationary