Swap space in Linux is used when the amount of physical memory (RAM) is full. ... Swap space is located on hard drives, which have a slower access time than physical memory. Swap space can be a dedicated swap partition (recommended), a swap file, or a combination of swap partitions and swap files