On Wed, 19 Mar 2008 15:45:16 -0700 "Ulrich Drepper" <drepper@gmail.com> wrote:yes, ultimately we'd end up pulling in most of the executable that way, and a 90%-good-enough solution is perhaps to just suck the whole thing into pagecache. I did some work on that many years ago and I do recall that it helped, but I forget how much. There's a very very easy way of testing this though. filemap_fault() _already_ does readaround when it gets a major fault. And this is tunable via /sys/block/sda/queue/read_ahead_kb. So set that to "infinity" to pull the whole file into pagecache at the first major fault and run some benchmarks. If that proves useful we could look at separating read()'s readahead tunable from filemap_fault()'s tunable. Note! Due to interaction between the linker and common filesystems, executables tend to be very poorly laid out on disk: the blocks are out-of-order, often grossly. So one shouldn't do performance testing of this form against executable files which were written directly by /usr/bin/ld. First use `cp' to straighten the file out.. bitmap-based madvise() or fadvise() sounds pretty easy to do. --
| Jeremy Fitzhardinge | Re: [RFC 00/15] x86_64: Optimize percpu accesses |
| jmerkey | [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released |
| Greg Kroah-Hartman | [PATCH 021/196] ISDN: Convert from class_device to device for ISDN capi |
| Ingo Molnar | Re: [PATCH 00/23] per device dirty throttling -v8 |
git: | |
| Linus Torvalds | Re: VCS comparison table |
| Peter Stahlir | Git as a filesystem |
| Johannes Schindelin | Re: git on MacOSX and files with decomposed utf-8 file names |
| Bill Lear | Meaning of "fatal: protocol error: bad line length character"? |
| Mayuresh Kathe | Re: What is our ultimate goal?? |
| Richard Stallman | Real men don't attack straw men |
| bofh | Re: web development on OpenBSD |
| Kevin | uvm_mapent_alloc: out of static map entries on 4.3 i386 |
| Mark Lord | Re: 2.6.25-rc8: FTP transfer errors |
| Evgeniy Polyakov | Re: [BUG] New Kernel Bugs |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andi Kleen | [PATCH RFC] [1/9] Core module symbol namespaces code and intro. |
