As we all know, the task of the operating system is to rationally allocate various resources of the system and provide an operating environment for various programs. It can be regarded as a medium between hardware and application software. Among them, the management of memory is one of the main responsibilities of the system. How to make limited memory be used in the blade, how to get rid of the memory "bottleneck" limitation required by the system itself is a problem that deserves our attention.
I do not know what is virtual memory is not found, there is a system file called pagefile.sys (98 under Windows as Win386.swp) under Windows 2000 (XP) directory, often its own size changed It may be only a few tens of megabytes when it is small, and hundreds of megabytes when it is small. This kind of irregular change really makes many people puzzled. In fact, pagefile.sys is a virtual memory under Windows. Its function is basically similar to physical memory, but it exists as a "backup force" of physical memory, that is, only when physical memory is not enough. It will work.
virtual memory produce
we all know, although not as good as the memory on the hard disk speed, but the memory capacity is not on par with the hard disk. When running a program that requires a lot of data and takes up a lot of memory, the memory is "stuffed" and the data that is temporarily unused is placed on the hard disk, and the space occupied by the data is virtual memory. Now we also understand why the size of pagefile.sys will change frequently.
virtual memory optimization
virtual memory size is controlled by Windows, but the default Windows setting is not the best solution, so we have to be some adjustments. This will give the best performance of the system.
1, change the location of the page file
its main purpose is to maintain the continuity of virtual memory. Because the data read by the hard disk is * the magnetic head is read on the magnetic material, and the page file is placed in different areas on the disk, the magnetic head will jump and jump, which is not conducive to improving efficiency. Moreover, there are many system disk files, and the virtual memory is certainly not continuous, so it should be placed on other disks. To change the location of the page file: Right-click on "My Computer" and select "Properties → Advanced → Performance Settings → Advanced → Change Virtual Memory" and select the location you want to change in the drive bar. It is worth noting that after moving the page file, the original file will be deleted (the system will not delete it automatically). After
2, change the size of the page file
change the location of the page file, we can also make some adjustments to its size. We need to pay attention to the adjustment, do not set the maximum and minimum page files to equal values. Because usually the memory will not be really "filled", it will automatically put some of the temporarily unused data into the hard disk when the internal storage reaches a certain level. The larger the minimum page file, the lower the percentage and the slower the execution. The maximum page file is the limit value. Sometimes a lot of programs are opened. The memory and the minimum page file are "stuffed" and will automatically overflow to the maximum page file. So it is unreasonable to set the two equal. In general, the minimum page file is set smaller so that more data can be stored in memory as much as possible, which is more efficient. The maximum page file size is set larger to avoid the situation of "full staff".
3, disable the page file
When have more than 512MB of memory, the role of the paging file will not be obvious, so we can disable it. To do this, go to the registry editor "HKEY_LOCAL_MacHINESystemCurrentControlSetControlSession Ma-nagerMemoryManagement" and set its value to "1" in the "DisablePa-ging Executive" option.
4, clear the page file
there in the same position a "(shutdown to clear the page file) ClearPageFileAtShutdown", the value is set to "1." The "clear" page file mentioned here does not mean that the pagefile.sys file is completely deleted from the hard disk, but it is "cleaned" and organized, so that the next time you start Windows XP, you can make better use of virtual memory. Good preparation.