Today I would disable swap and pagefiles all together, it doesn't compute with containers. So get enough ram, only solution to modern computers in my opinion. Docker for example doesn't start, if you enable paging/swapping.
Edit: Disabling Swap in Windows is a bad idea, just tried it. Some Apps refuse to work without it. WTF. Windows Programmers.
Edit:Edit: Well, disabled Swap again, was working fine, I had a problem while switching off swap. Now the rig runs fine without swap.
So, be careful when disabling swap, but not use swap is the best idea. Get enough Ram. 32GB+