On Dec 3, 2007 7:16 PM, Brian Nielsen <[EMAIL PROTECTED]> wrote:

> The swap off/on makes it look brand new by wiping out all prior knowledge

Correct. That forces Linux to migrate pages off that disk. If there's
a fair amount of blocks in-use (according to Linux) you will find that
it takes some time for the swapoff to complete (while Linux swaps
pages back in). Once you've done this, you could vary the disk
offline, detach it, and get a new VDISK from VM (and thus let VM free
up all those pages). I've actually done this automagically with a
workload that was predictable, but I'm not sure it's worth the
trouble.

It's interesting to see what happens to "free" when you do this. Part
of this magic is in "swap cache" (pages both in memory and on swap
disk, because they were swapped back in but not modified yet).

Rob
-- 
Rob van der Heij
Velocity Software, Inc
http://velocitysoftware.com/

Reply via email to