Now virtual memory is only available in the case that the previous memory is not big enough. How to set up the virtual memory of my computer is best? Can't open virtual memory?
Introduction of virtual memory:
Virtual memory is computer system A technique for 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.
Systems that use this technology make it easier to write large programs and use real physical memory (such as RAM) more efficiently than systems that don't use virtual memory technology.
Virtual memory is not just "expanding physical memory with disk space" —— this just expands the memory level to include the hard drive. Extending memory to disk is a result of using virtual memory technology, and its effect can be achieved by overriding or swapping inactive programs and their data onto disk. The definition of virtual memory is based on the redefinition of the address space, that is, the address space is defined as "continuous virtual memory address", thereby using the "spoof" program to make them think they are using a large block. "Continuous" address.
Through the above introduction, you can find that the use of hard disk on the virtual memory of the online is not accurate, but also gives a very clear statement, the use of virtual memory will not slow down the speed of physical memory, but will Make physical memory more efficient!
The second question of the first paragraph will be understood, can't open virtual memory? Open! How much virtual memory is open? Now the first question is left. How much is the virtual memory?
How to set it up?
The following is a reference to a piece of information (quoted from the wiki). The file used by Windows to implement virtual memory is the page file pagefile.sys under the root of the system partition (with hidden , system properties) form to save. When the physical memory and page files are not enough, the system will automatically generate temppf.sys (meaning temporary pagefile, temporary page file) to make up, the size of temppf.sys is between the size and maximum value of the page file.
Because virtual memory uses a hard disk, files that are not continuously written on the hard disk will generate disk fragmentation. Therefore, once the file or partition used to implement virtual memory is too fragmented, the seek time of the hard disk will be lengthened, which will affect system performance.
There is a point of misconception that Windows systems frequently read and write pagefile.sys will produce disk fragmentation, but it is not. Because the pagefile.sys file is created, the continuous form of the distribution in the partition is fixed. The internal file read and write does not increase or decrease the file size of pagefile.sys. Temppf.sys created by the system will cause disk fragmentation only after the page file is warned.
The above paragraph If you don't like to watch, you can look at what I have summarized:
If you set up virtual memory is not enough, it will create temporary virtual memory, and this temporary virtual memory will cause performance degradation. And it will produce disk fragmentation. Virtual memory settings This depends mainly on what configuration of your computer,
1, if your memory is less than 4G, then it is recommended to set the virtual memory to 1.5 times or 2 times your physical memory;
2, if Your memory 4G-8G, then you can set it to 1x or 1.5 times your physical memory;
3, 8G or more, you can set it to 1x or set to 8G virtual memory.