dphys-swapfile | Autogenerate and use a swap file | Mehr ...
This init.d script exists so one does not need to have a fixed size swap partition. Instead install without swap partition and then run this, with file size (re-)computed automatically to fit the current RAM size.