How to slim down the Windows system hibernation file and release the C drive?

  

On Windows systems, everyone knows that there is a sleep function. This feature is very popular because it allows the computer to turn off the power and enter the sleep mode. At the same time, it can save all the data in the current memory. Reverted to the state before the shutdown, this feature is very popular among everyone before the popularity of solid state drives.

However, due to the limited capacity of some users' hard disks, they were not willing to put a few GB (the user with small memory may have a smaller hard disk ……) content on the C drive. After all, the C drive is easy. The account is bursting, so the user will endure the love (or under the optimization of the revised system and third-party software), directly turn off the function, and release the space for the sleeping file.

In fact, Microsoft has long been considered to this point, and therefore launched a hibernation file weight-loss mechanism, but the mechanism is disabled by default in Win7 /Win8.1, you need to manually open. In Win10, it has been turned on by default, and the percentage of slimming is intelligently adjusted, but the user can also manually adjust it. The maximum weight loss can reach 60%, that is, the sleep file after slimming only accounts for 40% of the memory capacity. Here's how to use this feature.

Caption: Windows7 virtual machine test system hibernation file slimming command (4GB x 80%)

Use the following method to command (for example to Windows10):

1 , an administrator runs the command prompt

2, run the following command (see below):

powercfg hibernate size XX

Note: the above & ldquo; XX & rdquo ; represents a percentage value, the range is an integer from 40 to 100. Entering a value below 40 will keep the size of the hibernation file at 40% of the system memory size.

Caption: tester memory size of 16GB, the maximum weight loss after hibernation file becomes 6.39GB (16 x 40%)

Caption: File Size change (hiberfil.sys file requires file Cancel the system file hiding protection in the folder option to appear)

Of course, if your device is better, the hard disk is large enough, you can enter 100 directly after the command, you can keep the same size as the computer memory. The amount, this is the best performance, but if your hard drive capacity is limited, it is recommended to slim down the hibernation file.

Copyright © Windows knowledge All Rights Reserved