For Windows operating systems and applications Program The required memory size exceeds the physical memory size installed on the computer, the operating system will temporarily write data that does not need to be accessed to a special file on the hard disk through a paging operation, to release the memory for programs and data that need to use the memory immediately, this special file on the hard disk is a paging file (that is, a virtual memory file, or a swap file, the paging file name in Windows 2000/XP/2003 is pagefile. Sys is a hidden file of system properties ). The Virtual Memory adjustment process is as follows:
Right-click my computer on the desktop and the right-click menu is displayed, as shown in 1.
In the pop-up context menu, click "properties" to open the "System Properties" window, and then click the "advanced" tab in the "System Properties" window, as shown in figure 2.
In the "System Properties" window, click "Settings" in the "performance" column. The "performance options" window is displayed. In the "performance options" window, click the "advanced" tab, shown in 3.
In the "performance options" window, click "change" in the "virtual memory" column to bring up the "virtual memory" window, as shown in figure 4.
From the perspective of virtual memory in disk C, the initial value allocated by the system by default is 384 Mb. The maximum value is MB (varies with the memory size ). The initial value of the virtual memory is the size divided when the system starts. As the system needs the virtual memory, it is allocated until the maximum value. If the initial value and maximum value of the virtual memory are different, it is easy to generate disk fragments. We recommend that you set the initial value and maximum value to the same size. Generally, the virtual memory size is set to 1.5-2 times of the memory size. A reasonable setting is shown in Figure 5:
Run the large program you need in the system and open several more common tasks. After a few minutes, press CTRL + ALT + Delete to bring up the "Task Manager" window, on the "performance" tab in the "Task Manager" window, record the "memory usage-peak" and "physical memory-total" values, divide "memory usage --- peak" minus "physical memory -- total" by the value after 1000 plus about 100, and set the calculation result to the initial value and maximum value of the virtual memory. When the calculation result is negative, you can disable the virtual memory (that is, no paging files), but If you disable all paging files, some third-party applications may encounter memory insufficiency errors. Therefore, when the calculation result is negative, it is better to set the initial and maximum values of the virtual memory to MB or a larger value.
Here, I want to set the initial and maximum values of the virtual memory to 384 Mb: on the screen of 4, change the initial and maximum values to, as shown in 6
Click the "set" button to make it take effect. The virtual memory displayed on disk C has been changed, as shown in figure 7.
Click "OK" to close the window.
How to change the virtual memory to another partition:
As shown in figure 4, when you enter the "virtual memory" window, to change the paging file (Virtual Memory) from drive C to drive D, you should first Delete the paging file of drive C and then create it from drive D. The process is as follows:
Go to Figure 4 (drive C selected currently) and select "No paging file", as shown in figure 8.
Click the "set" button to make it take effect. The virtual memory displayed on disk C has been deleted, as shown in figure 9.
Click drive D and select it, as shown in figure 10.
Select "Custom size" and enter 384 at the initial value and maximum value (depending on the memory size and software used), as shown in Figure 11.
Click "set" to make it take effect. The virtual memory displayed on disk D has been changed, as shown in Figure 12.
Click "OK" to save the settings, as shown in Figure 13.
Click "OK" to restart the computer.
Note: The memory is smaller than MB. If you often play large games and use 3D graphics or other programs that require large memory, you should set the virtual memory to a larger value, to reduce the slow response, slow response, and crashes.