The solution I was thinking of is adding a hook to the VFS layer so
that filesystems can offer the kernel free swap pages on demand. This
would be better than swap files, since less maintenance and accounting
need be done on pages that are to be cleansed on reboot. It would
increase your virtual memory size to be your RAM plus all swap
partitions plus all of the free pages on all of the filesystems that
support this operation. One could add options to the filesystem to
control what percentage of available space to be offered or what
amount to leave available for normal files.
And I would not have to dink around with swap files any more.
-- Gene McCulley mcculley@iag.net http://www.iag.net/~mcculley