| In defence against swap on my personal computer: -PCs have a lot of RAM now -When you allocate that much memory it's usually a bug in your own code like a size_t that overflowed. I never saw programs I would actually want to use try to allocate that much -When using swap instead of ram, everything becomes so slow that you're screwed anyway. The UI doesn't even respond fast enough to kill whatever tries to use all that memory. -How common is a situation where you need more memory than your ram size yet less than ram+swap size in a useful way? Usually if something needs a lot, it's really lot (and as mentioned above not desirable) -Added complexity of making extra partition -Added complexity if you want to use full disk encryption -I do the opposite of using disk as ram: I put /tmp in a ramdisk of a few gigs -Disks are slow and fast ssd's are expensive so you would't want to sacrifice their space (maybe if this changes some day...) |
I imagine this would solve the full disk encryption complexity too.