What is Swap Space in Linux?

Asked 15-Apr-2022
Viewed 422 times

1 Answer


0

What is Swap Space in Linux?
  • The swap space is stored on the hard drive as a partition or a file. It is used by Linux to increase the amount of RAM accessible to processes by saving infrequently used pages.
  • During the installation of the operating system, we normally specify swap space. It can also be changed afterwards with the mkswap and swapon scripts.
  • Swap space is hard disc space that serves as a substitute for physical memory. It's a type of virtual memory that stores process memory images. When our computer's physical memory runs out, it switches to virtual memory and saves information to disc.
  • Swap space is a type of disc space that works as a memory expansion. When the system's physical memory (RAM) is full and more memory resources are required, it is used.


Read More: What is the difference between BASH and DOS in Linux?