Then maybe it would be possible to check if ( (free memory) - (used swap) < 0 ) and give a warning if the swap contents won't fit into memory? In my case I had firefox open in the background; if I had been given a warning, I could have closed FF first and (probably) avoided the freeze.
-- If ubiquity disables swap during installation, system may become unusable https://launchpad.net/bugs/57763 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs