On Dienstag, 1. Mai 2007, Norberto Bensa wrote: > 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? >
no, I trust the kernel devs how said, that a swapfile in 2.6 should not be slower. > > You do not mount a swap partition: > > /dev/swap-device none swap sw 0 0 > > (Note mount-point is none.) you 'activate it', which is pretty similar to mounting. > > And a swapfile needs: > > /dev/partition-with-swap-file /mnt/swap ext3 defaults 0 0 > > and then: > > swapon /mnt/swap/path-to-swapfile > -- [EMAIL PROTECTED] mailing list