NoCache

Preview of Create/Remove/Resize Swap Space without Modifying Partitions on Linux

Create/Remove/Resize Swap Space without Modifying Partitions on Linux

Cyrus Kao

When a Linux machine runs out of physical memory (a.k.a random-access memory - RAM), the swap space will be used instead. It literally swaps data from your RAM to your disk space to free up memory. In some perspectives, it even speeds up your CPU too, since when the less the memory is free, more time the CPU spend on GC (Garbage Collection).