Ee4 SWAP - or how to implement one

Does v4 creates SWAP file?
If not, how to implement one?
I am still on v3 btw.