[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Swap partition vs swap file



Hello David,

David Guntner <davidg@akaMail.net> wrote:
> swap *file* instead.
> 
> So, anyone?  Pros & cons?  Is there any reason to prefer one over the other?

Are you sure you need swap at all? If so, will your server still
deliver acceptable performance if it is actively swapping? If yes,
then the performance of the swap space clearly matters. If not, you
want to avoid that anyways and just keep the swap around in case that
something bad™ happens (to avoid the OOM to kick in immediately).

A swap file gives you more flexibility at the cost of a slight
performance loss. As swap is nowadays not really needed, I would
hence suggest going with a swap file.

Best regards,

Claudius

Attachment: signature.asc
Description: PGP signature


Reply to: