Talking about optimization of hibernate memory files and virtual memory files

  

In the system disk, there are two system files with the suffix .sys: hiberfil.sys and pagefile.sys. What are these two files used for? Can it be deleted? Today, let us take a look at the functions of these two system files.

hiberfil.sys is the backup file left after the computer uses the hibernation function. We know that the computer's sleep state can guarantee that the memory file will remain in the event of a power outage. This hibernation feature benefits from the hiberfil.sys file. When the computer is in hibernation, the memory file will be saved to the hiberfil.sys file on the hard disk, and then when the computer is reawakened, the information will be restored to the memory from the file, just like the state before the hibernation. Consistent.

Since this file is used to back up memory information, its size is generally the same as the size of the computer's memory, but you can reduce the footprint of this file by setting it and using compression technology. The setting method is as follows: In the command prompt cmd window, enter the command: powercfg – H size 50, the sleep backup file will be compressed to 50% of the memory.

If you don't want to use the hibernation function, you can delete this file completely, but you must first turn off the hibernation function. Otherwise, even if you delete this file, the file will appear after the next use of the hibernation function. To disable the sleep function, do the following: In the command prompt cmd window, enter the command: powercfg –H off.

pagefile.sys is a virtual memory page file created during the installation process. The size of this file is set by the system's virtual memory. If the system disk space is insufficient, you can manually set the size of the virtual memory page file. The setting method is as follows:


Right click on “Computer”-“Properties”, select “Advanced System Settings>-“Advanced>Settings>-“Advanced” changes in the following pop-up box:

Do not check “Auto Manage the paging file size of all drives, that is, you can set the paging file size of each drive, you can choose the "custom size" method to set the initial size and maximum value. This will optimize the size of the memory page file.



Copyright © Windows knowledge All Rights Reserved