This toipic has probably been covered before, but can anyone add there 2
cents here for a discussion we're having in-house?
Which provides better eprformance and why: a swap file or a swap partiton?
Here are my reasons- tell me if I'm all wet:
The disadvantage to setting up a swap file is that it is considered a file
within a file system, therefore, when backing up a file system, a rather
large swap file (empty file) would also be backed up if you don't
specifically exclude it.
Also, because a swap file is simply a file in some file system, you will not
ever be able to unmount that file system while the swap file is in use.
Finally, which type of swap area provides the best performance: a swap
partition, or a swap file. I've seen reasons stated in favor of both
scenarios, however, one of the best I've seen in favor of a swap partition
is that a partition provides contiguous space and can be positioned between
specific cylinders that will provide the best performance.
Any thoughts or things to add?