Since Microsoft introduced WINDOWS 7, many people abandoned XP and Linux operating systems and installed WINDOWS 7. However, after installing WINDOWS 7, the space occupied by the C disk (system disk) without any application program has reached more than 10G, which gives people a feeling of being fat. In fact, through the correct settings, the system disk occupation can be kept at about 6G without affecting the system performance and stability, and stability is the first and slimming is the second.
First, delete the sleep file hiberfil.sys
The common function of a computer is the sleep function, that is, after it is not used for a certain period of time, it enters a low-power and energy-saving state, and its working attitude is stored in memory. When they are restored, they can be restored to their original working state within 1-2 seconds. This function is very practical and most commonly used. Sleep is to write the working state, that is, all the memory information, to the hard disk. Take 4G memory as an example, that is, write 4G files to the hard disk first, and then turn it off.
Boot recovery requires reading 4G files into memory and restoring the original working interface. Reading and writing 4G files takes a lot of time, which is no less than normal startup, so the sleep function is not practical now (for memory above 1G, small memory below 5 12MB still has a certain effect). Heberfield SYS file is used to save the memory state during sleep. It will take up the space equivalent to the memory capacity of drive C (taking 4G memory as an example, this file is 4G), so it can be completely deleted without affecting everyone's use. It will also greatly save the occupation of C disk space.
Operation method:
Run CMD with administrator privileges and issue the following command:
POWERCFG -H off
The file will be deleted automatically. You can see the change of C disk space before and after processing (refresh), and sometimes you need to restart the computer.
Tip: How to run as an administrator?
Right-click all programs-> Accessories-> Command Prompt and select Run as Administrator.
Second, set up virtual memory correctly to save the space of C disk (system disk).
1. What is virtual memory?
Memory plays a great role in the computer. All running programs in the computer need memory. If the executed program is large or many, it will lead to memory exhaustion. In order to solve this problem, WINDOWS uses virtual memory technology, that is, a part of the hard disk space is used as memory, which is called virtual memory, and the virtual memory exists on the hard disk in the form of page files. Virtual memory is only a supplement to the lack of physical memory, so don't deify it. The reading and writing performance of virtual memory (that is, the reading and writing speed of hard disk) is only a few tenths of that of physical memory, and high-frequency reading and writing operations are very harmful to hard disk! Hard disk bad track is easy to happen! Don't use it if you can, and use it less if you can! The principle is enough to add a small amount of margin.
2. Virtual memory settings
In WIN7 system environment, the memory is generally 5 12MB. According to the actual memory usage, the virtual memory can be set to 5 12-768MB (the sum of memory+virtual memory is generally 256MB higher than normal usage). 1GB memory, according to the actual usage of memory, you can set the virtual memory as 128-5 12MB (the sum of memory+virtual memory is generally 256-5 12MB higher than the normal usage). If the memory is more than 2G, you can generally disable virtual memory (if there are software restrictions, you can set a small amount of virtual memory, such as 128MB). Some people who do use a lot of memory, such as playing large 3D games, making large pictures, 3D modeling, etc. , and received a warning that the system memory is insufficient, and virtual memory needs to be increased appropriately.
3. Optimization of virtual memory
Generally, you can disable the virtual memory first, restart the computer to enter safe mode (don't run many programs at this time), then defragment it, and reset the virtual memory after completion, so that the page file can be read and written faster without fragmentation. Or use PE/ emergency disk to boot into the system, delete the page file, tidy up the disk, and restart.
4. Settings of virtual memory
Take WIN7 as an example, right-click "computer", properties, advanced system settings, performance > settings, advanced, virtual memory > change, automatic management cancellation, custom size, settings, OK, exit and restart.
Third, compress the C:\Windows\winsxs folder.
This folder is the system installation folder and is not used most of the time. After compression, you can save more than 1GB of disk space. Methods: First, get the read and write permission of the WINSXS folder (by default, the administrator only has the read permission of this folder), then select WINSXS, click the right mouse button, and compress the contents in General-> Advanced ...-> to save disk space. The compression process takes 10-30 minutes, depending on the performance of the hard disk.
Tip: Getting read and write permission of WINSXS folder will affect the security of WIN system files! So please be careful! Friends who don't know much about it suggest not to operate this step.
Through the above three steps, your WIN7 pure system should be around 6G. Does this make the original hypertrophy system thinner? Installing WINDOWS 7 can save C disk space.