Windows virtual memory standard setting method

  
        1, the role of virtual memory


Memory in the computer is very useful, all running programs in the computer need to go through the memory to execute, if the program is very large or a lot, it will lead to memory exhaustion . In order to solve this problem, Windows uses the virtual memory technology
, which takes out part of the hard disk space to serve as memory. When the memory is occupied, the computer will automatically call the hard disk to act as memory to ease the memory. tension. For example, if the computer has only 128MB of physical memory, when reading a file with a capacity of 200MB, it must use a relatively large virtual memory. After the file is read by the memory, it will be stored in the virtual memory. After waiting for the memory to store all the files in the virtual memory, the files stored in the virtual lining will be released to the original installation directory. Let's take a look at how to set up virtual memory.


2, virtual memory settings


For virtual memory, two main settings, memory size and paging location, memory size is to set the minimum and maximum virtual memory; and paging location The virtual disk space in that partition should be used to set the virtual memory. For the memory size setting, how do you get the minimum and maximum values? You can do this by selecting "Start → Programs → Accessories → System Tools → System Monitor" (if the system tool is not available, you can install it via the Windows Installer in "Add/Remove Programs") to open the System Monitor. , then select "Edit → Add Item", select "Memory Manager" in the "Type" item, and select "Exchange File Size" in the list on the right. This will show the fluctuation of the value of the exchange file as you operate. You can open the programs you use frequently and then use them. Then look at the performance values ​​in the system monitor, because the user The situation is different when using a computer, so it is best to monitor the swap file for a long time to find the value that best matches your swap file, so that the system performance is stable and kept in an optimal state.


After finding the most suitable range value, when setting the virtual memory, right click on "My Computer", select "Properties", pop up the system properties window, select the "Performance" tab, click below " Virtual memory "button, pop-up virtual memory settings window, click the "user-specified virtual memory settings" radio button, "hard disk" select the partition of the larger remaining space, and then enter in the "minimum" and "maximum" text boxes The appropriate range value. If you feel that using System Monitor to get the maximum and minimum is a bit of a hassle, here is the option to "Let Windows manage virtual memory settings."


3, adjust the paging position


Windows 9x virtual memory paging location, in fact, is stored in the root directory of the C drive a virtual memory file (also known as the swap file) Win386.swp, Its storage location can be any partition. If the capacity of the system disk C is limited, we can transfer Win386.swp to another partition by opening the System.ini (C:Windows) file in Notepad. ,null,null,3],In the 386Enh] section, change "PagingDrive=C:WindowsWin


386.swp" to the path of the other partition. If you put the swap file in D:, change it to "PagingDrive=D:Win386. Swp", if you don't have the above statement, you can type it directly.


For Windows 2000 and Windows XP, you can select "Settings→Advanced→Change" in "Control Panel→System→Advanced→Performance" to open the virtual memory setting window on the drive [label] The default is to select the partition where the system is located. If you want to change to other partitions, first set the original partition to no paging file, and then select another partition.

Copyright © Windows knowledge All Rights Reserved