On Sat, Apr 07, 2007 at 11:09:46AM +0200, Stefan Reinauer wrote:
- Peter Stuge stuge-linuxbios@cdy.org [070407 05:34]:
There's a simple but good enough sector cache in read_sector() that gets used here so this is not a problem.
Can we enhance this and use it for loading the kernel too ("readahead") so we don't have to patch all filesystems?
Yes, but it would be difficult to find a good compromise between cache size and load time. Ward's kernel was in two chunks. My kernel is in 15 chunks.
Also, unless the filesystem caches needed metadata (journal) internally, every journal read will cause a cache miss and refill. :\
//Peter