Only when the wrong pages have been swapped out and need to be swapped
in again. Swapped out pages should be relatively inactive, the amount of
swap space allocated number that you see in 'free' is not the same as
the amount of pages that are actually swapped out and removed from
memory, any active ones should still be around in the pagecache.
> Use the swap as little as possible == good.
Nope, Use the swap-in as little as possible == good, I don't mind having
4GB of data in swap, as long as I typically don't need to load it back
into in memory. And every page that is in swap that I don't really need
means another page that can be used to avoid paging out an executable,
or purging the dentry lookup caches, or dropping one of those files I
access once every 5 minutes.
Jan
-
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/