Re: swapin readahead pre-patch (what about the code?)

2001-01-05 Thread Marcelo Tosatti
On Fri, 5 Jan 2001, Andreas Dilger wrote: > I suppose the other area to look at is how pages are layed out when > they are swapped to disk. If you go from medium memory pressure (where > unused pages have been swapped already) to thrashing, then if you can > put the remaining pages of each pro

Re: swapin readahead pre-patch (what about the code?)

2001-01-05 Thread Andreas Dilger
Marcelo Tosatti writes: > The following patch does this, and it also changes the readahead code to > readaround. I'm not sure if readaround is better than readahead for the > swapin case, and I'll have to test this more to make sure. No comment on the code itself, but in general I would think tha

swapin readahead pre-patch (what about the code?)

2001-01-05 Thread Marcelo Tosatti
On Fri, 5 Jan 2001, Marcelo Tosatti wrote: > The following patch does this, and it also changes the readahead code to > readaround. I'm not sure if readaround is better than readahead for the > swapin case, and I'll have to test this more to make sure. Ok, I'm stupid. I forgot to attach the pat

swapin readahead pre-patch

2001-01-05 Thread Marcelo Tosatti
Hi, As I've told before, swapin readahead code is done at a physical basis, and the correct thing is to swapin readahead only if the physical on-swap pages are virtually contiguous wrt the one which suffered the fault and is being swapped in. The following patch does this, and it also changes