[linux-elitists] Performance issues with swap file vs. swap partition
Ragnar Hojland Espinosa
Thu Nov 6 04:28:14 PST 2003
On Thu, Nov 06, 2003 at 12:01:06PM +0000, Peter Whysall wrote:
> Whilst pondering the filesystem layout for a new box, a dim and distant
> memory was awakened; namely, the idea that under Linux 2.4, swapfiles
> give away no performance to swap partitions.
> Googling for this produced a very unhelpful set of results, with more
> questions than answers.
> So I turn to the elitists: given a 2.4 kernel, is a swap partition
> faster than a swap file, or not?
AFAIK, the performance difference on modern kernels is negligible.
That said, if you have a swap partition on a separate IDE channel or
SCSI disk, you won't starve the I/O bandwidth by swapping (which would
probabily happen if you have a swap file..)
Ragnar Hojland - Project Manager
Linalco "Specialists in Linux and Free Software"
http://www.linalco.com Tel: +34-91-4561700
More information about the linux-elitists