Firstly, to deactivate, delete the swapfile.sys file, it's essential to understand what swapfile.sys is and how this file operates. Swapfile.sys is a file located on the hard drive containing data from Windows Store Apps. When apps installed from the Windows Store run on RAM, if the computer experiences hanging or RAM overflow, the system will automatically transfer the data of these apps from RAM to be stored in the Swapfile.sys file, thereby freeing up RAM, and consequently, the system will run smoother, as RAM is freed up. This is similar to the operation mechanism of the pagefile.sys and hiberfil.sys files.
If you deactivate, delete the Swap.sys file, the system will not find a partition on the hard drive to transfer data into, causing RAM overflow and some apps may not function properly. Therefore, users should carefully consider before performing these actions.
Deactivate, delete Swapfile.sys file
Step 1: Right-click on the Start button, select Control Panel or press Windows + X, then press P key
Step 2: In Control Panel, find the System section
Step 3: In the System section, choose Advance system setting
Step 4: Select the
Step 5: In Performance Options, select the Advanced tab, in the Virtual memory section click Change
Step 6: Uncheck the box for Automatically manage paging file size for all drives
Then select No paging file, click Set.
Step 7: A confirmation window will appear, click Yes to confirm.
Step 8: Click OK to finish, then restart your computer. Both Swapfile.sys and Pagefile.sys have been successfully deactivated. To re-enable, follow the steps above and check the boxes as instructed.
Deactivate Swapfile.sys without deactivating pagefile.sys
If you follow the above instructions, you will deactivate both swapfile.sys and pagefile.sys. However, if you only want to deactivate swapfile.sys, follow these steps:
Step 1: Press Windows + R key combination to open the Run window, type regedit, then press OK.
Step 2: Navigate to the key with the path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
Step 3: Right-click on the right panel, select New, choose DWORD (32-bit) Value
Step 4: Name the new key SwapfileControl then press Enter
Step 5: Restart your computer, the swapfile.sys file will be disabled. If you want to re-enable the swapfile.sys file, follow the above steps and delete the created key.
Here are some methods to quickly delete the swapfile.sys file. This file only occupies a small amount of space on the hard drive and does not affect the system, so you should consider before proceeding.
Computer RAM is one of the crucial components, if necessary, you should also consider upgrading RAM for the system to run better and more stable. Upgrading RAM also requires you to have a clear understanding of the computer's configuration to avoid wasting time buying RAM that cannot be installed or the computer does not recognize.
You should also pay attention to system cleanup to make it run faster and more stable by using software such as CCleaner... CCleaner software not only helps clean up the hard drive but also helps uninstall unnecessary software on the computer.