The number in Mb for the swap file should be half your drives size in Gb.

E.g. 500Gb drive, 250Mb swap.

Having too small a swap will cause trouble, but bigger is ok.

Peter.