Binary package “swapspace” in ubuntu precise
dynamic swap space manager
Small, stable system add-on that continuously and automatically adapts
available virtual memory space to your actual memory needs. Claims disk space
for use as swap space when needed; frees it up for use by the filesystem when
not needed.