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

Dave Lambley dave.lambley at gmail.com
Thu Dec 3 20:15:39 UTC 2009


I looked into this a while back. With modern kernels, when you run
swapon, it makes a list of all the physical blocks it has available
for swap. Unless you have fragmentation, you can therefore expect
identical poor performance for files, partitions and LVM partitions.

Dave

On 02/12/2009, Narender <narender.hooda at gmail.com> 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:
>
> Raid 1 146GB partition
> 33GB Swap File created on / (Note: the swap file was created when the
> OS was built, so the hard drives were not full and they were very
> empty)
> Kernel 2.6
>
>
> Best Regards
> N
> --
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>

-- 
Sent from my mobile device
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list