[Gllug] performance difference between a swap partition vs a swap file.>>>>>

Avi Greenbury avismailinglistaccount at googlemail.com
Wed Dec 2 10:12:58 UTC 2009

Narender wrote:

> I have done a lot of research, but I do not have any real world
> experience so I'm hoping you can help me understand the real world
> differences in performance. The research tells me that if you create a
> swap file on an empty disk and on a OS using kernel 2.6 then the
> performance differences are minor, but that the swap partition is a
> slight favorite in terms of pure performance.
> Our Scenario:

>From what I understand through various sources I can't recall:

Swap files and swap partitions have very similar performance now

Swap is sloooow

Swap partitions were substantially 'better' than swap files on older
filesystems, it appears newer filesystems have fewer overheads that're
detrimental to swapping,

Swap partitions were substantially better than swap files on older
hardware, where the hard drives were more transparent about exactly
what was where on the platters. especially as regards whether the
'first' partition on a disk is really the first one, and whether it's

Avi Greenbury
http://aviswebsite.co.uk ;)
Gllug mailing list  -  Gllug at gllug.org.uk

More information about the GLLUG mailing list