What is the use of virtual memory

Computer users should know that memory is an indispensable core component in computers. In fact, many users have overlooked a very important system function, that is, virtual memory.

Virtual memory is a technology of computer system memory management. It makes the application think that it has continuous available memory (a continuous and complete address space), but in fact, it is usually divided into multiple physical memory fragments, and some are temporarily stored on external disk storage. Data exchange at the time. Currently, most operating systems use virtual memory, such as the "virtual memory" of the Windows family and the "swap space" of Linux.

The role of virtual memory

What exactly is the function of virtual memory? Virtual memory is actually a combination of PC physical memory space and temporary space on the hard disk, and timely recalls data from physical memory and puts it in virtual memory space, so as to release memory space under high load conditions and improve program running speed.

To put it simply, virtual memory uses a hard disk to simulate memory usage, so that some software or games that take up too much memory can run more stably, so that these programs will not crash due to insufficient physical memory.

At this time, many users will have questions, wondering if we set up more virtual memory, will we not burst the memory and drop frames when playing large games? But the actual answer is that the card will still be stuck.
What is the use of virtual memory
At this time, many users will ask, do I need to set up virtual memory at all for my 32G large memory? In fact, objectively speaking, if your memory is large enough, virtual memory is not needed, but in fact, this is often impossible, because many programs still rely on virtual memory when they are running, no matter how large the physical memory is. Errors may occur when setting virtual memory.

So does virtual memory have no effect at all to improve the experience of low-memory users? In fact, the speed of virtual memory also depends on the speed of our hard disk to a large extent. Therefore, users with large memory are generally recommended to set the size of virtual memory to the size of the system managed, and for users with low memory, it is recommended to set it to 1.5 times the current physical memory, not the bigger the better.

How to set up virtual memory

Having said that, many users may not know how to set virtual memory. Here we briefly introduce the steps:

First, right-click the computer, click "Properties", click "Advanced system settings", click "Settings" in the performance box, click "Advanced", and click "Change" in the virtual memory box. Here we need to pay attention to it. Set the virtual memory to a non-system drive letter, then click "Custom Size", enter the set value, and then click "Set" after the value is entered.
What is the use of virtual memory
Because the size of virtual memory is recommended to be 1.5 times that of physical memory, we can set it to 6144MB for 4G, 12288MB for 8G, and 24576MB for 16G.

The benefits of setting up virtual memory

1. You can easily save those RAM blocks that are hardly used but occupied, and then use the released RAM to accommodate more programs with higher priority;

2. Prevent the situation where RAM space is used up and other programs cannot be executed;

3. The virtual memory acts as a backup of RAM, thereby increasing the actual space of RAM;

4. During the sleep process, all the contents of RAM are written into the swap space. Therefore, to successfully hibernate, virtual memory is necessary;

5. Improve the overall performance of the system (when the kernel parameters are set reasonably);

Guess you like

Origin blog.51cto.com/14827913/2608219