On the Windows operating system, there is one built-in file on the computer or laptop drive, which provides an additional source of RAM if the program requires more than the device has. How to set up swap file on Windows 10? This article details the options for virtual memory, as well as the intricacies of using a file.
How to set up a swap file on Windows 10
Setting up a swap file, also known as a paging file, on Windows 10 is a straightforward process. Here’s a step-by-step guide:
- Open System Properties:
- Right-click on ‘This PC’ or ‘My Computer’ on your desktop or in File Explorer.
- Select ‘Properties’ from the context menu.
- Click on ‘Advanced system settings’ on the left side of the System window.
- Access Performance Settings:
- In the System Properties window, go to the ‘Advanced’ tab.
- Under ‘Performance’, click on ‘Settings’.
- Modify Virtual Memory:
- In the Performance Options window, go to the ‘Advanced’ tab.
- Under ‘Virtual memory’, click on ‘Change’.
- Adjusting the Paging File:
- Uncheck ‘Automatically manage paging file size for all drives’ at the top if it’s checked.
- Select the drive where you want to set up the swap file.
- Choose either ‘System managed size’ to let Windows manage the paging file size, or select ‘Custom size’ to set your own values for the initial and maximum size.
- If you choose ‘Custom size’, enter the initial size and maximum size for your swap file in megabytes (MB). It’s generally recommended to set the initial size to the amount of RAM in your computer, and the maximum size to twice that amount.
- Set and Confirm:
- Click ‘Set’ to apply your changes.
- Click ‘OK’ to close each of the open dialogs.
- Restart Your Computer:
- For the changes to take effect, you need to restart your computer.
Remember, the swap file is used by Windows to manage memory usage. If your system runs out of physical RAM, it uses the swap file as an extension. However, accessing data in the swap file is slower than accessing data in RAM, so it’s best to have enough physical RAM to minimize reliance on the swap file.
What is the size of the paging file to set?
It is recommended to change this parameter only in extreme cases, since the volume is calculated by the operating system automatically. The OS detects memory shortages on average by increasing the size. If RAM is enough, virtual memory is used only for demanding and voluminous tasks.
There is a method for determining how many megabytes or gigabytes of the paging file are needed for the stable operation of the OS and the device as a whole. Step-by-step instruction:
- Open the apps you use regularly.
- Launch Task Manager. Press CTRL + SHIFT + ESC.
- Go to the Performance tab. See how much memory is occupied by programs.
- Multiply the amount of used memory by 2. For example, if there is only 6 GB and only one is free, then multiply 5 by 2. You get 10.
- Subtract the total amount of RAM from the resulting number: 10 – 6. It turns out 4 GB.
This determines the optimal size for virtual memory. Some users have a negative number. This means that the computer is powerful enough, and you should not touch the paging file.
Please note: It is not recommended to set virtual memory three or more times the total RAM. This will further reduce OS performance.
How do I increase the swap file?
The following step-by-step guide will help you quickly increase the size of virtual memory to improve OS performance:
- To get started, go to the Start menu, open the Control Panel, select the “Small icons” display mode.
- Click on System. On the left side of the window, open additional options.
- Go to the performance settings, then to the tab with additional options.
- In the “Virtual memory” section, click on the “Change” button.
- Disable the automatic configuration of the page file by unchecking the corresponding box.
- Select the drive where the OS is installed from the list. Click on “Specify Size”.
- Select a range. The item “Initial size” is responsible for the minimum amount of used memory. She will be active almost always. You cannot install less than 400 megabytes. Next, select the maximum size. This volume will be subtracted from the system space. It is indicated in megabytes. To convert MB to GB, multiply the number of gigabytes by 1024.
When the fields are completed, confirm the settings, click “OK”. After that, it is advisable to reboot the OS. Remember, you cannot use virtual memory on an SSD. Rewrite cycles are consumed faster. This will increase wear on the drive.
Tip: In order not to waste space on your hard drive, add RAM, buying another board, if possible. This is a more efficient way to increase productivity.
How do I disable the swap file?
Not everyone needs extra RAM, but hard drive space will come in handy. You should not turn off virtual RAM completely, since there is a risk of various programs crashing at peak computer loads. 400 megabytes can unexpectedly save progress in any program. However, if there is such a need, then the following instructions will help to disable the file. Use them at your own risk. There are many other ways to clear space on Windows 10 (temporary files, downloads, cache and others), so you do not always need to turn off virtual memory.
pagefile.sys
Disconnecting a file:
- Open the Run program with the Win + R keyboard shortcut.
- Enter “systempropertiesperformance” (without quotes) in the string.
- Select the Advanced tab.
- Click “Change” in the memory options.
- Turn off system sizing, click on “No swap file.” Confirm the settings.
It is not recommended to disable swapfile.sys through the registry, as this often leads to problems with the OS. It is also worth creating a restore point before using this instruction.
The paging file is a useful feature of Windows. These guides will help you tune virtual memory and improve the performance of your computer or laptop.
Conclusion
Setting up a swap file on your Windows 10 computer can greatly improve system performance and stability, especially when dealing with memory-intensive tasks. By following the step-by-step guide provided in this article, you can easily set up a swap file and optimize your computer’s performance. Remember to allocate sufficient space and monitor your system’s performance to ensure an optimal experience.
