What is virtual memory

ByLian Guss 2020-01-07 1739

Memory plays an important role in the computer, all the programs running in the computer need to go through memory to execute, if the execution of a large or many programs, it will lead to memory depletion. In order to solve this problem, virtual memory technology is used in Windows, that is, a part of the hard disk space is used as memory. When the memory is used up, the computer will automatically call the hard disk to act as memory, so as to alleviate the shortage of memory. For example, if the computer only has 128MB physical memory, when reading a file with a capacity of 200MB, you must use a relatively large virtual memory. After the file is read by the memory, it will first be stored in the virtual memory, waiting for the memory to store all the files in the virtual memory, and then the files stored in the virtual will be released to the original installation directory.

For virtual memory, there are two main settings, namely, the memory size and the paging location, the memory size is to set the minimum and maximum virtual memory, and the paging location is to set the virtual memory to use the hard disk space in that partition. For the setting of memory size, how do you get the minimum and maximum values? You can open the system Monitor by selecting start programs attachments system tools system Monitor (if it is not in the system tools, you can install it through the Windows installer in add / remove programs), then select Edit add items, select memory Manager in the Type item, and select swap File size in the list on the right. In this way, with the operation, the fluctuation of the exchange file value will be displayed. You can open the frequently used program and then use it. At this time, check the performance value in the system monitor. Because the situation is different each time the user uses the computer, it is best to monitor the exchange file for a long time to find out the value that best matches your exchange file. Only in this way can we ensure the stable performance of the system and keep it in the best state.

After finding out the most appropriate range value, when setting up virtual memory, click "my computer" with the right mouse button, select "Properties", pop-up system properties window, select "performance" tab, click the "virtual memory" button below, pop up the virtual memory settings window, click the "user-specified virtual memory settings" radio button, and "hard disk" select the partition with larger remaining space. Then enter the appropriate range values in the minimum and maximum text boxes. If you find it troublesome to use the system monitor to get the maximum and minimum values, you can choose "Let Windows manage virtual memory settings" here. The virtual memory paging location of

Windows 9x is actually a virtual memory file (also known as swap file) stored in the root directory of C disk. The Win386.swp, storage location can be any partition. If the system disk C capacity is limited, you can transfer the Win386.swp to another partition by opening the System.ini (C:\ Windows) file in notepad and "PagingDrive=C:WindowsWin386.swp" in the [386Enh] section. Change to the path of other partitions, such as putting the swap file in D:, then change to "PagingDrive=D:Win386.swp". If you don't have the above statement, you can type it directly.

For those who use Windows 2000 and Windows XP, you can select Settings Advanced changes in the Control Panel system Advanced performance to open the virtual memory settings window. The partition where the system is located is selected by default in the drive [volume label]. If you want to change it to another partition, you should first set the original partition to no paging file, and then select another partition.

If the hard disk space is large enough, you can also set up your own virtual memory, the specific steps are as follows: right-click my computer Properties Advanced performance Settings Advanced Virtual memory changes Select the partition stored in virtual memory (page file) Custom size determine maximum and minimum setting. In general, virtual memory is 1.5 times larger than physical memory, and if you don't want virtual memory to change frequently, you can set the maximum and minimum values to the same.


Set up the page file in the partition where the Windows system is located, and the size of the file is determined by the setting of the system. The specific setting method is as follows: open the "my computer" Properties setting window, switch to the "Advanced" tab, in the "start and failure recovery" window, "write debugging information" bar, if you use "none", then set the page file size to about 2MB, if you use "Core memory Storage" and "full memory Storage", then set the page file value to a little larger. It's about the same as physical memory.

Tip: for the system partition whether to set up the page file, there is a contradiction: if set, the system may read this part of the page file frequently, thus increasing the load on the track where the system disk is located, but if not set, when the system has a blue screen crash (especially STOP error), a dump file (Memory.dmp) cannot be created, thus unable to debug the program and report the error. So the compromise is to set up a smaller page file on the system disk, as long as it is enough.

Create a separate blank partition and set up virtual memory in this partition. The minimum value is set to 1.5 times the physical memory, and the maximum value is set to 3 times the physical memory. This partition is specially used to store page files. Do not store any other files. The reason why a separate partition is used to set up virtual memory is mainly based on two considerations: first, because there are no other files on the partition, so the partition will not produce disk fragments, which ensures that the data reading and writing of the page file will not be disturbed by disk fragments; second, according to Windows's memory management technology, Windows will give priority to the use of infrequently accessed partitions.

Other hard disk partitions do not set any page files. Of course, if you have multiple hard drives, you can create a page file for each hard disk. When the information is distributed on multiple page files, the hard disk controller can perform read and write operations on multiple hard disks at the same time. In this way, the performance of the system will be improved.


 You may also want to read:
 Xiaomi Mi Watch Color VS HUAWEI Watch GT2 VS Amazfit GTR: Which is More Worth Buying?
 Xiaomi Mi Watch Color In-depth Review: Fashion Products Without Electricity Anxiety
 How to Turn your Xiaomi Mi Band 4 as a remote shutter for Android camera?
 How to hide the display notch of Redmi Note 8 and Redmi Note 8 Pro?

Gearbest Daily deals up to 69 percent off

Extensive Product Selection

● Over 300,000 products

● 20 different categories

● 15 local warehosues

● Multiple top brands

Convenient Payment

● Global payment options: Visa, MasterCard, American Express

● PayPal, Western Union and bank transfer are accepted

● Boleto Bancario via Ebanx (for Brazil)

Prompt Shipping

● Unregistered air mail

● Registered air mail

● Priority line

● Expedited shipping

Dedicated After-sales Service

● 45 day money back guarantee

● 365 day free repair warranty

● 7 day Dead on Arrival guarantee (DOA)

You might also like

HOT TOPICS

Related Products