How the computer double compress the hibernation file

Source: Internet
Author: User
Tags file size sleep root directory microsoft pc

we can double compress the hibernation file to minimize the amount of disk space that the hibernation file takes up without losing the hibernate feature. Of course, we also need to pay attention to this, reasonable resolution due to the size of the sleep compressed file is not suitable for the blue screen to appear problems.

1. To ascertain the details of the dormant file

Now many computers are equipped with larger memory, 4GB Common, 8GB, 16GB also more and more. The hibernation state of Windows 7 systems (including Windows 7) defaults to a space equivalent to about 75% of the physical memory in the system disk, which is used to save data in memory after entering the energy-saving state. Therefore, if the computer installed 8GB physical memory, by default, the system will appear under the packing directory of more than 6GB Hiberfil.sys file (4GB memory for more than 3GB).

In the Windows 8.1/10 Explorer file search box, enter the Hiberfil.sys file name to search, you may find that the results disappoint you and get nothing (Figure 1). Don't you have this file under C? No, this file is not visible in the search results because the file has system protection and suppressed properties, but the file is actually installed by default after system installation.

So, where is it? How can I see it? We simply click the "Options" button from Explorer's View tab panel and go to the Folder Options window, "√" before the "Hide protected operating system files" option in the Advanced Settings list on the View tab, and then select Show hidden files, folders, and drives (Figure 2), and then search to see the file (Figure 3). In the figure, we see that the size of this file is about 3.17GB with the 4GB memory installed on this computer.

2. Parameter compress hibernate file shrink body

We've seen this file, and it's really big enough, if your device is a 16GB-capacity tablet, this footprint is "brutal". So, can this file be smaller? How can it be smaller?

System before Windows 7, the hibernation file size is equal to the total physical memory. Microsoft PC System from Windows 7 began to increase this default setting hibernation files occupy the total system physical memory 75% of the function. and starting with Windows 7, we can actually compress the hibernation file by the specified 50%~100% compression ratio, which is not a lot of people to know.

To compress the hibernation file, simply press the WIN+X key combination or right-click on the Windows 8.1/10 Start menu, select Command Prompt (Administrator) from the pop-up menu, and run the following format command in the Black window that is subsequently opened (Figure 4):

Powercfg/hibernate/size nn

where "NN" is a compression percentage, you can enter an integer between 50~100, if not indicated, the system default value is 75.

After you log back in, you will notice that the size of the hibernation file has changed.

3. Self-squeezing to give more space

In addition to using the hibernation file's own parameter settings to make the dormant file smaller, we can also use the system itself to compress the file two times.

Right-click on the Hiberfil.sys file, click the "Advanced" button in the Properties window that pops up (Figure 5), select the "Compress content to save disk space" item in the active Advanced Properties window, and then determine (Figure 6).

Small tip:

The Windows system defaults to NTFS-formatted disks, and if the file is compressed, the color defaults to blue and the uncompressed file remains black. We can selectively compress the entire drive or part of a file folder and file. However, it should be noted that the compressed file, its access efficiency is lower than the normal time, that is, file compression will affect the efficiency of the system to varying degrees, which is to obtain the system space must pay the "price."

4. Can cause blue screen compression need to be careful

Note that if the above parameters are too small, the "STOP 0x000000a0 internal_power_error" blue screen error may occur when the system sleeps. For computers that run different programs and perform different tasks, the probability of a blue screen may vary because the compression rate setting is not appropriate. The actual available compression rates may not be identical and cannot be generalized. Perhaps a system with up to 50% compression rate can be normal sleep, but to another system less than 60% will not work. The specific use of how much compression rate to ensure that the system is working, this requires the user specific settings to try, the test period is best not to deal with important data on the computer, so as to avoid the blue screen and loss of data. After the system test is stable and then normal work.

Since the compressed hibernation file may appear blue screen, there is a certain risk. Therefore, it is generally recommended that the physical memory is very large and the system disk space is severely insufficient to modify this setting. If the memory itself is relatively small, for example, only 2GB, compressed sleep files can make space is also very limited, at the expense of stability at the expense of a little space is not worth it.

Small tip:

If hibernation encounters the above blue screen error after modification, the system can be restarted into the Maintenance Command window to set a larger compression rate. If the problem persists, try executing the "powercfg/hibernate/size 100" command, changing the hibernate file to "Grand Slam" without compressing the test. Note that the hibernation file can only be located in the system root directory and cannot be set to other hard disk partitions, as other files do.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.