What is swap in Linux

Swap file of swap space is a memory that is set on the hard drive to manage the total memory when the hard memory is full.

The hard memory is the fastest part of the memory and Linux will use it to make some system calculation and jobs.

The Swap file is an additional memory for the web server.

If the web server requires a lot of memory, then Linux will clean the hard memory.