While you complete some operations, the data of all running applications are not stored on the disk. Instead, it is stored in the faster RAM. With a large number of active programs, RAM can overflow, resulting in out-of-memory errors and computer crashes. To prevent this and to keep applications running even when RAM runs out, Windows and other operating systems use a swap file.
A swap file acts like a continuation of the main memory and is used to store data that does not fit into it. It is a hidden file that resides on the system disk. Windows 10 has two such files: swapfile.sys and pagefile.sys. The first is responsible for operating of built-in applications and programs from the Windows store, and the second is for software from third-party sources.
The size of the paging file depends on the amount of RAM: the larger the RAM, the smaller the file. By default, Windows manages its size automatically and does a pretty good job with it. So if there is no special reason, it is better to leave all the settings as they are.
If you want to experiment, it is worth relying on your own experience of using a PC. To do this, start all the applications you need for work and open the "Task Manager" by pressing Shift + Control + Esc. Switch to the "Performance" tab, select the "Memory" section in the side menu, and see how much of it is used.
Multiply this number by two and subtract the amount of RAM you have. The resulting number will be the optimal size of the swap file for your Windows 10. If the calculation results in a negative value, then there is no need to change the file size.
After this, the system prompts you to restart your computer. Click OK for the changes to take effect.
We do not recommend you do this because even with a lot of RAM, Windows still uses the swap file. If you disable it, it will cause errors when the RAM is full: applications may crash, and some applications won't start at all.
What about starting a discussion? Be the first to share your thoughts!