What is Swap Space in Linux?

0 votes
51 views
Mukul Goenka asked 15-Apr-2022 in troubleshooting by Mukul Goenka

What is Swap Space in Linux?

1 Answer

0 votes
Hitesh Vohra answered 16-Apr-2022 by Hitesh Vohra
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?