[linux-elitists] Performance issues with swap file vs. swap partition
Thu Nov 6 11:13:20 PST 2003
> 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?
I might also mention, adding the swap partition to the end of your drive
should give you a little more speed since the partitions are setup from
the inside of the disk spreading out.
Since the outside of the drive has the highest angular velocity your
read write time should be faster.
I have been doing this little trick for quite some time now but i cant
point out any numbers to verify it as i have never tested it out against
adding the swap to the inside of the disk. Its one of those things i
learned having come from the hardware world.
> The IWETHEY project: http://www.iwethey.org
> Collaborative Media Foundation: http://collaborativemedia.org
| Linux Solutions Provider, Linux Consultant and IT Services. |
0 Windows to Linux Migration Specialists 0
| http://www.pervasivenetwerks.com |
PGP Key Fingerprint
AA05 B115 5019 754A A151 04F2 822D A1C9 EAB6 AA5B
More information about the linux-elitists