If you have idle io time in your hands, you can choose to back up some dirty
anonymous pages to the swap device. This way, when pages really needs to get
freed, you can just drop the pages (just like you would drop clean file
backed pages.) This obviously eliminates a great latency (somebody said
something about a "swap storm"), because the write happened beforehand.
There's nothing wrong with the swap being in use (and the pages may still be
in memory). If you have swap, it makes sense to use it. What doesn't make
sense is to waste time waiting for paging to happen.
-- v --
v@iki.fi
-
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/