Hemmann, Volker Armin wrote:
> On Dienstag, 1. Mai 2007, Norberto Bensa wrote:
> > True, but you're adding a layer (or more if you're using lvm) to the VM
> > subsystem. The whole point of the swap partition is to simplify access to
> > swapped pages and therefore make it very fast.
>
> that does not explain, why a good swapfile is not slower than a partition
> ;)

Do you have any benchmarks?

I don't, but two years ago I tried swapfiles and the box lagged on 
high-load/swapping. Creating a swap partition fixed the problem.


>
> > Moreover, a swap partion is easily reusable between other Linuxes on the
> > same box and although you can also reuse a swapfile, you'll need to mount
> > the partition first.
>
> so what is the difference between mounting a partition and mounting a
> partition?

You do not mount a swap partition:

/dev/swap-device   none   swap   sw   0 0

(Note mount-point is none.)


And a swapfile needs:

/dev/partition-with-swap-file    /mnt/swap  ext3  defaults  0 0

and then:

swapon /mnt/swap/path-to-swapfile

(ext3 as an example only)


Regards,
Norberto
-- 
[EMAIL PROTECTED] mailing list

Reply via email to