The gains from this might be largely illusion but you could get some
theoretical benefits:
o could write out lots of pages to swap without having to flush TLBs
like you would if doing normal swap, since page remains present
o if swsusp does not need to write already-backed pages it could
reduce suspend time
Maybe something like this?
if about_to_spin_down_disks || swap_disk_idle
if lots_of_memory_free
page_in
if little_memory_free
copy_pages_to_swap
-- "Let's fight till six, and then have dinner," said Tweedledum. --Lewis Carroll, _Through the Looking Glass_ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/