Revealing the secret of Windows virtual memory

  

Virtual memory is a technology for computer system memory management. It makes the application think that it has continuous available memory (a continuous complete address space), but in fact, it is usually divided into multiple physical memory fragments, and some are temporarily stored on external disk storage, when needed Data exchange is performed. Today, I will talk about the Windows virtual memory for everyone. I want to know what my friends are watching.

Setting up virtual memory

Memory plays a big role in the computer, all in the computer. The running program needs to be executed through memory. If the program executed is large or many, it will lead to memory exhaustion. In order to solve this problem, Windows uses virtual memory technology, which takes out part of the hard disk space to act as memory. When the memory is occupied, the computer will automatically call the hard disk to act as memory to ease the memory shortage. 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.

When the system is running, first transfer the required commands and data from the external memory (such as hard disk, floppy disk, CD, etc.) into the memory, and the CPU then reads the instructions or data from the memory for calculation. And the result of the operation is stored in the memory, the role of the memory is like a "setter" role. When running a program requires a lot of data and takes up a lot of memory, the memory will be filled with “, and in this "warehouse" there is always a part of the temporarily unused data occupying a limited space, so Put this part of the "Inert" data "to" and go out to make room for "activity" data usage. At this time, you need to create another backup "Warehouse" to store the "Inert" data. Due to the large space of the hard disk, the Microsoft Windows operating system will select the address of the backup "warehousing" on the hard disk, and 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 of the system is usually conservative, which will cause the page file to be discontinuous during automatic adjustment. , while reducing 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 from the right-click menu that appears to open the “System Properties” window. Click the “Advanced” tab in the window to bring up the Advanced Settings dialog box.

2Click the “Performance” button in the “Settings” button, in the “Progress Options” option. Select the “Advanced” tab in the 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 “Customize Size", fill in the specific values ​​in the "Initial Size", “Maximum" column, and then click &ldquo ; set → OK & rdquo; button, and finally restart the computer to make the virtual memory settings take effect.

Suggestion: You can divide a small partition for virtual memory, IE temporary file storage, etc., and you can periodically defragment the partition, which can improve the working efficiency of the computer.

First, 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 at the same time. It is 1.5 times the memory capacity, 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 . Previous123Next page Total 3 pages

Copyright © Windows knowledge All Rights Reserved