Virtual memory is a technology of computer system memory management. It makes the application think that it has contiguous available memory (a contiguous complete address space), which is usually separated into multiple physical memory fragments, and partly temporarily stored on external disk storage for data exchange when needed.
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 do not use virtual memory technology.
Virtual memory is not just about "extending physical memory with disk space"--it's just an expansion of the memory level to include the hard drive. Extending memory to disk is just one result of using virtual memory technology, and it can also be done by overwriting or swapping the inactive programs and their data to disk. The definition of virtual memory is based on the redefinition of the address space by defining the address space as a "continuous virtual memory address" to use this "spoofing" program to make them think they are using a large "contiguous" address.
Through the above introduction, you can find that the online rumors of virtual memory using hard disk is not accurate, but also gives a very clear statement, the use of virtual memory not only will not slow down the speed of physical memory, but will make physical memory become more efficient!
So the second question in the first paragraph is clear, does not open the virtual memory? Open it!
How much does the virtual memory open?
Now there is the first question, how much is the virtual memory? How do I set it? The file that Windows uses to implement virtual memory is saved in the form of a paging file Pagefile.sys (with hidden, system attributes) in the root directory of the system partition. When the physical memory and paging file are not enough, the system automatically generates Temppf.sys (meaning temporary pagefile, temporary paging file) to make up, temppf.sys size between the size of the paging file and the maximum value.
Because virtual memory uses a hard disk, a file that is not continuously written on the hard disk can produce fragmented disks, so that once the file or partition used to implement virtual memory is too fragmented, it can increase the search time for the hard drive and affect system performance.
There is a point of view that Windows system frequently read and write Pagefile.sys will produce disk fragments, in fact, otherwise. Because once the Pagefile.sys file is created, the continuous form of distribution in the partition is fixed, and the file's internal reading and writing does not increase or decrease the Pagefile.sys file size. The system-created Temppf.sys will bring disk fragmentation only when the paging file is depleted.
If you don't like it, you can take a look at my summary:
If you set up virtual memory is not enough, you will create temporary virtual memory, and this temporary virtual memory will cause performance degradation, and will produce disk fragmentation
Virtual memory settings This mainly depends on what your computer is configured for,
1, if your memory is less than 4G, it is recommended that the virtual memory set to 1.5 times times or twice times your physical memory;
2, if your memory 4g-8g, it is recommended to set the virtual memory to 1 time times or 1.5 times times your physical memory;
3, 8G or more, then it is recommended to set the virtual memory to 1 time times the physical memory.