Hmmm, interesting...
The laptop-with-disk-configured-to-spin-down scenario would seem, (in
theory), to benefit from a completely different approach to swapping
to what we have at the moment.
Instead of trying to minimise the I/O bandwidth used, we could more or
less ignore it, but consider the initial request, (after a certain
timeout), to be very expensive.
So, all the time the disk was spinning, we'd make sure that the swap
area contained the most useful data, possibly duplicating what was in
RAM, and then spin the disk down at the earliest opportunity. That
way, you could effectively swap in and swap out without spinning the
disk up.
(Obviously, you can't do _both_ :-), but the idea would be to either
swap out a lot, or swap in a lot, before spinning down, that way you
get a 'free' swap either way, and consolidate disk reads/writes).
John.
-
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/