Second, open drive C. Here are two files that are particularly large and look very eye-catching:
Hiber fil. sys——Windows uses the "hibernation" function, in order to save the user's working state, all the data in the system memory will be saved in Hiberfil.sys, so that the power of the whole computer can be completely turned off without consuming any electricity. When the user wakes up the computer, Windows directly reads the data from hiberfil.sys and restores it to the memory. Before hibernation, all the working states of the software and hardware will be completely restored, and the previous work can be directly continued. This file is often the same size as computer memory and can only be saved in the root directory of the system disk.
Pagefile.sys-When the computer is running, the processor can only read data directly from the memory, which is determined by the design architecture of the computer. Because the installed physical memory capacity is limited, the more applications run in the system, the more data to be processed and the more memory to be occupied. In order to prevent the system from continuing to run because the memory is full, various operating systems have introduced the concept of "page file".
You can save the data in the memory to the hard disk and read it back to the memory when you want to use it, which cleverly avoids the problem of insufficient physical memory. The file can only be saved in the root directory, and its size will be automatically adjusted according to the operation of the system. Generally speaking, it will take up half to twice the space of physical memory. Since these two files are so big, it must be great to clean them up. The cleaning method is as follows:
Reduce the number of dormant files. ※
In order to completely save the working state of the system, the size of the hibernation file is equal to the size of the physical memory in the computer. If 4GB of memory is installed in the system, the hibernation file will occupy 4GB of C disk space. Then why not generate this file when you enter hibernation, but let it go and keep it? This is to avoid not having enough space left when creating the hibernation file, so as long as the system supports the hibernation function, this file will always exist. But you may find that the above situation is not correct, because in Windows 7, the hibernation file will be smaller than the system memory. For example, the hibernation file corresponding to 2GB of system memory is only 1.5GB, which is a new function in Windows 7. By using compression technology, the volume of dormant files is reduced, and the compression ratio can be specified by command. In Windows 7, the capacity of hibernation file is 75% of the system memory. To modify this ratio, just open the command prompt (cmd) window as an administrator, and then run the following command: After Powercfg -H size 50 runs, the hibernation file will be compressed to 50% of the memory, and the occupied hard disk space will be reduced to 25% of the memory!
Delete the hibernation file completely. ※
Maybe you are a hardware enthusiast with 6G or even 8GB of memory. Even if it is set to 50%, the hibernation file will still occupy 4GB of space. If you don't use the hibernation file, can you completely delete this file? No problem, as long as you run as an administrator and execute the powercfg–off command at the command prompt, you can turn off the hibernation function: hiberfil.sys file will disappear completely from your system disk.
The hard disk space saved is considerable!
※ Set the page file size.
In Windows 7, the page file size of virtual memory is not fixed, but is automatically adjusted by the operating system according to the requirements. When there is enough space left on the hard disk, the user does not need to set it manually. But in order to save the space occupied by drive C, we can still try to specify a smaller usage for the page file. To set the page file size, you can run System Properties Advanced and open it.
Advanced system properties: click the "Settings" button under "Performance" to open the "Performance Options", and then switch to the "Advanced" tab; click the "Change" button to open the "Virtual Memory" setting dialog box: as you can see, by default, the system will automatically manage the size of paging files, and if the system disk has insufficient space, it can also use the space of other partitions, thus ensuring the operating system to do its best. Let's deselect the option "Automatically manage the paging file size of all drives", then specify the maximum and minimum values of paging files below, and remember to click "Settings" so that paging files don't take up too much hard disk space: