Web lists-archives.com

Re: if you have no swap in your installation this is what you do??? Why???

Darac Marjal <mailinglist@xxxxxxxxxxxx> wrote:

> A swap partition is not subject to the controls of a file system. That
> is, it can't get fragmented, it can be positioned at the fast (or slow)
> end of a disk, it can be (as you suggest) placed on a completely
> separate device. It can be shared between dual-booting Linux systems.

A swap file does not get fragmented either, since it has to be allocated
completely before use. Also the myth that a swap file is slower compared
to a partition is not true since at least Linux 2.3.

And the placement of the swap is of just theoretical nature. The speed
of swap is like comparing the movement speed of a glacier with that of
the speed of sound to star with. Even if a swap space in the other
portion of a HDD is 1.5 times faster than a swap space in the inner one,
it still is abysmally slower than RAM. So in the end really does not
matter where you place your swap on your HDD.

Placing swap on an SSD helps, but if your system starts to heavily swap
pages out, you are trashed anyways.


Sigmentation fault. Core dumped.