On Wed, May 2, 2012 at 3:31 PM, Paul Hartman <paul.hartman+gen...@gmail.com> wrote: > On Wed, May 2, 2012 at 1:53 PM, walt <w41...@gmail.com> wrote: >> I have two machines with 4GB of ram and I've never seen either one use >> swapspace (yet) so I'm thinking I could delete my swap partitions and >> substitute a much smaller swapfile -- if it's safe. >> >> Any downside to using a swap file instead of a swap partition, maybe >> depending on which filesystem you use, or something? Security holes? >> Any horror stories out there? > > I think a swapfile cannot be used for suspend-to-disk. When creating a > swap file you should take care to ensure it is not fragmented. > Otherwise, performance should be equal between swap partition or swap > file under normal circumstances, as far as I know.
And I will add: be sure the swapfile you create is not a sparse file!