Home  >  Article  >  What is virtual memory

What is virtual memory

青灯夜游
青灯夜游Original
2019-05-05 17:17:1846788browse

Virtual memory is a computer system memory management technology. It makes the application think that it has contiguous memory available, that is, a contiguous and complete address space. In fact, it is usually divided into multiple physical memory fragments, and some are temporarily stored on external disk storage for data exchange when needed.

What is virtual memory

What is virtual memory?

Virtual memory is a technology for computer system memory management. It makes the application think that it has contiguous available memory (a contiguous 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. Currently, most operating systems use virtual memory, such as the "virtual memory" of the Windows family; the "swap space" of Linux, etc.

1. Virtual memory is also called virtual memory (VirtualMemory).

All programs running in the computer need to be executed through memory. If the executed program takes up a large amount of memory, it will cause the memory to be exhausted. To solve this problem, Windows uses virtual memory technology, which allocates part of the hard disk space for memory use.

When the memory is exhausted, the computer will automatically call the hard disk to act as memory to relieve memory tension. If the computer does not have enough random access memory (RAM) to run a program or operate, Windows will use virtual memory to compensate. It combines your computer's RAM and temporary space on your hard drive.

When RAM runs slowly, it moves data from RAM to a space called the "paging file". Moving data into a paging file frees up RAM so work can be done. Generally speaking, the larger the RAM capacity of the computer, the faster the program will run.

If your computer's speed is slowing down due to a lack of free RAM space, you can try to compensate by increasing virtual memory. However, the computer reads data from RAM faster than from the hard disk, so expanding the RAM capacity (by adding memory modules) is the best choice.

2. Virtual memory is a part of the hard disk space used by Windows as memory.

Virtual memory is actually a huge file on the hard disk. The file name is PageFile.Sys, which cannot be seen under normal circumstances. You must turn off the explorer's protection function for system files to see this file. Virtual memory is sometimes called the "page file" from the file name of this file.

The role of virtual memory

Memory plays a great role in the computer. All programs running in the computer need to be executed through the memory. If the programs being executed are large or many, memory will be exhausted. In order to solve this problem, WINDOWS uses virtual memory technology, which uses a part of the hard disk space as memory. This part of the space is called virtual memory. The form of virtual memory on the hard disk is the page file PAGEFILE.SYS.

The above is the detailed content of What is virtual memory. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn