sulekha
September 17th, 2009, 12:50 PM
Hi all,
I have read here
(http://www.softpanorama.org/Internals/Filesystems/linux_swap_filesyst...
)
that swapping to a file is slower than swapping to a partition , based on the following reasons
1) large files(swap file) will be somewhat fragmented forcing
additional disk/head movement in some cases and that you will have to
deal with metadata describing where on the disk the file blocks are.
this eats up both in-system filesystem cache and causes additional disk
activity while you load metadata that is not in cache
is there any other reason that justifies this claim OR what exactly is
the tradeoff between a swap partition and a swap file ??
I have read here
(http://www.softpanorama.org/Internals/Filesystems/linux_swap_filesyst...
)
that swapping to a file is slower than swapping to a partition , based on the following reasons
1) large files(swap file) will be somewhat fragmented forcing
additional disk/head movement in some cases and that you will have to
deal with metadata describing where on the disk the file blocks are.
this eats up both in-system filesystem cache and causes additional disk
activity while you load metadata that is not in cache
is there any other reason that justifies this claim OR what exactly is
the tradeoff between a swap partition and a swap file ??