When a system needs more memory but has free disk space it could auto create swap files and then delete them later.

The ideal solution would be configurable for:

The "listener" for the file creation should avoid thrashing, have timeouts, and handle disk space usage sanely.