Create swap file on Ubuntu
Sometimes, a computer does not have enough physical RAM to perform all planned operations properly. In these situations, you can borrow memory from disk space, sacrificing access speed: the memory-intensive task will be executed, albeit not as quickly as desired.