Re: Swap: Location&Size

On 2013-08-26 10:56, chapati wrote:

> Where would be the best place for the swap, on the beginning of the hd
> (befor the boot partition), on the middle, at the end…?

About 1/3 of the way.

To be sure, you have to experiment with your disk and find out where
exactly it is faster. I did. I made a lot of equally sized partitions,
and then measured the speed on all with “hdparm -tT”, and with different
types of fielsystems. The faster place turned not to be the outer rim
nor near the spindle, but about 1/3 of the way.

This was true for the seagate drives I have, but it does not need to be
the same for other brands or models.

> I use the computer for video editing and have enough RAM (20GB), which
> swap-size would make sense in my case?
> :\

As much or as little as you need.

For speed you need ample RAM so that swap is never used. But if it is
used, you’d better have enough. So, to make sure, you need doing
experiments with your workload…


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))