On Wed, 11 Jan 2012 02:14:32 -0500 KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxx> wrote: > > Another factor is that swapping on modern systems is often a > > temporary thing. During a load spike, things get swapped out > > and run slowly. After the load spike is over, or some memory > > hog process got killed, we want the system to recover to normal > > performance as soon as possible. __This often involves swapping > > everything back into memory. > > Hmmm.... OK, I have to agree this. > But if so, to skip hole is not best way. I think we should always makes > one big IO, even if the swap cluster have some holes. one big IO is > usually faster than multiple small IOs. Isn't it? Not necessarily. If we have two requests in the disk for blocks 0-3 and 8-11, one would hope that the disk is smart enough to read both blocks within a single rotation. If the kernel were to recognise this situation and request the entire 12 blocks then we'd see lower command overhead but higher transfer costs. Still, Rik's testing shows that either approach would be superior to what we have at present, which is to not read blocks 8-11 at all! It sounds like Rik will be doing a v2 with some minor updates? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>