Table of Contents
This tip is about the how to Make Swap File on Linux. So read this free guide, How to Make Swap File on Linux step by step. If you have query related to same article you may contact us.
How to Make Swap File on Linux – Guide
A swap file allows Linux to simulate hard disk space as RAM. If your system runs out of memory, it will use swap memory and swap some memory for disk space. it frees up up working memory to serve more important processes. When main memory is free again, it stores data from disk. I recommend reading this article to learn more about swap in Linux. Traditionally, swap memory is used as a separate partition on the hard drive. When installing Linux, create a separate partition just for the swap. But that trend has changed in recent years. With the swap file, you no longer need a separate partition. You create a file in root and tell your system to use it as a swap space.
With a dedicated swap partition, resizing the amount of swap space is a nightmare and, in many cases, an impossible task. In the case of swap files, however, you can change the size as you wish. Swap memory is part of the system’s permanent memory (hard disk). When the system detects that the system’s physical memory is full, it automatically starts using the swap space available on the system. In simple terms, swap space is a part of the hard drive that is used as system memory.
How to Create swap file in Linux
How to enable swap space file persistently on Linux
Final note
I hope you like the guide How to Make Swap File on Linux. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.