If a file is large enough to exhaust your computer's random access memory (RAM), it
is stored in virtual memory (the swap file). Storing in the swap file takes much
longer than storing in RAM. If the swap file is not large enough, the computer may
stop responding.
It is set by default, you can change it...