Interpret the standard setting method of XP virtual memory

  
. All of the following steps use the Windows XP operating system as an example.

Create a "standard room" for virtual memory

When the system is running, first adjust the required commands and data from external storage (such as hard disk, floppy disk, CD, etc.) In the memory, the CPU reads the instruction or data from the memory to perform the operation, and stores the operation result in the memory. The memory plays a role like a "setter". When running a program that requires a lot of data and takes up a lot of memory, the memory warehouse will be "stuffed", and in this "warehouse" there is always a part of the temporarily unused data occupying a limited space, so this part is to be " "Inert" data "please" out to free up space for "active" data usage. At this point, you need to create another backup "warehouse" to store "lazy" data. Due to the large space of the hard disk, the Microsoft Windows operating system selects the address of the backup "warehouse" on the hard disk. This backup "warehouse" is virtual memory. By default, virtual memory is saved in the system partition of the hard disk as a swap file called Pagefile.sys.

Manually setting virtual memory

In the default state, the system manages virtual memory, but the default management mode is usually conservative. Will cause the page file to be discontinuous, and reduce the efficiency of reading and writing, the work efficiency is not high, so there will often be a "sufficient memory" prompt, let us set it up.

1 Right-click on the "My Computer" icon on the desktop and select the "Properties" option in the context menu that appears to open the "System Properties" window. Click the "Advanced" tab in the window, the dialog box for advanced settings appears (Figure 1);
600)makesmallpic(this,600,1800);' height=490 alt="Win XP virtual memory standard setting method (Figure 1) " src="/upload_files/18/rqjkr__pu607_1.jpg" width=419 border=0 /> Figure 1

2 Click the "Settings" button in the "Performance" area, appears Select the Advanced tab in the Performance Options window to open its dialog. 3 In the dialog box, you can see the area about virtual memory. Click the “Change” button to enter the setting window of “Virtual Memory”. Select a partition with a larger free capacity, check the box in front of "Custom Size", fill in the specific values ​​in the "Initial Size" and "Maximum" columns, and then click the "Settings → OK" button. Yes (Figure 2), finally restart the computer to make the virtual memory settings take effect.


600)makesmallpic(this,600,1800);' height=432 alt="Win XP virtual memory standard setting method (Figure 2)" src="/upload_files/18/8mS5t__pu607_2. Jpg" width=344 border=0 />Figure 2

The above is the setting method of virtual memory in Windows XP operating system. I also briefly mention the settings in Windows 98 operating system:

In Windows 98, go to Start → Settings → Control Panel → System → Performance → Virtual Memory. In the pop-up dialog box, select the User-specified virtual memory setting option to set the virtual memory. The location is set in the appropriate partition, and the minimum and maximum values ​​of virtual memory are set, and finally click the "OK" button to complete (Figure 3).
600)makesmallpic(this,600,1800);' height=456 alt="Win XP virtual memory standard setting method (Figure 3)" src="http://www.qqread.com/ArtImage/20061027 /pu607_3.jpg" width=406 border=0 /> Figure 3

Suggestion: You can divide a small partition for virtual memory, IE temporary file storage, etc., and you can periodically make a disk for the partition. Organize to improve the efficiency of your computer. Tailor-made virtual memory


1. Common setting method According to the general setting method, the minimum and maximum values ​​of the virtual memory swap file can be set to 1.5 times the memory capacity at the same time, but If the memory itself has a large capacity, such as 512MB of memory, then the space it takes up is also considerable. So we can set the basic value of virtual memory in this way: the memory capacity is less than 256MB, it is set to 1.5 times; above 512MB, set to half of the memory capacity; between 256MB and 512MB is set to the same value as the memory capacity .

2.Precise setting method

Since the actual application of each person is not possible, for example, some people want to run large programs such as 3DMAX, Photoshop, etc., and some people may Just typing and playing small games, so the requirements for virtual memory are not the same, so we have to accurately set the value of the virtual memory space according to local conditions.

1 first set the virtual memory's "initial size" and "maximum value" to two identical values, such as 500MB;

2 and then open "Control Panel → Administrative Tools" →Performance”, in the “Performance” dialog box that appears, expand “Performance Log and Alarm” in the left column, select the “Counter Log” under it, right click in the blank space in the right column, select The "New Log Settings" option in the right-click menu;

3 Fill in any name in the "Name" column of the pop-up dialog box, such as "Virtual Memory Test". Click the "Add Counter" button in the window to go to the next window;

4Open the "Performance Object" drop-down list in this window, select "Paging File", and select "Select from the list" "Counter", and select "%Usage Peak" in the lower column; check "Select sample from list", select "_Total" in the lower column, and then click "Add → Close" to end (Figure 4).
600)makesmallpic(this,600,1800);' height=352 alt="Win XP virtual memory standard setting method (Figure 4)" src="http://www.qqread.com/ArtImage/20061027 /pu607_4.jpg" width=384 border=0 />Figure 4

5 In order to view the log file conveniently, you can open the "Log File" tab and select "Log File Type" as "Text File". Finally, click the "OK" button to return to the "performance" main interface; 6 in the right column you can find a "virtual memory test" project, if the project is red, it means that it has not been activated, click on the item, Select the "Start" option in the right-click menu (Figure 5).


600)makesmallpic(this,600,1800);' height=389 alt="Win XP virtual memory standard setting method (Figure 5)" src="/upload_files/18/u7mWT__pu607_5. Jpg" width=550 border=0 />Figure 5

Next, run some of your favorite applications. After running for a while, enter the default directory under the system partition where the log file is located. PerfLogs", find "virtual memory test _000001.csv" and open it with Notepad program (Figure 6). In this content, we look at the penultimate value in each column, which is the ratio of virtual memory usage. Find the maximum value of this value, such as "46" in the figure, multiply by 46% by 500MB (the value of the virtual memory set previously), and the value is 230MB.
600)makesmallpic(this,600,1800);' height=358 alt="Win XP virtual memory standard setting method (Figure 6)" src="/upload_files/18/nIeh0__pu607_6.jpg" width=562 border =0 /> Fig. 6

With this value, the initial size can be set to 230MB, and the maximum value can be set freely according to the disk space. It is generally recommended to set it to 2 to 3 times the minimum value. In this way, we can make the virtual memory more precise and make our love machine run more smoothly and more efficiently.

Copyright © Windows knowledge All Rights Reserved