I believe that many friends will regard virtual memory as a swap partition.
In fact, virtual memory is not a real physical space, it is just a virtual thing.
To put it bluntly, it is used for the process, the process will treat virtual memory as the memory allocated to them.
When an early computer runs a program, it directly causes the process to occupy physical memory, but there are many problems in directly occupying physical memory.
As for the embarrassing question, I am not describing it in this article today.
In short, in order to solve these problems,
Smart computer scientists invented virtual memory between physical memory and processes.
Virtual memory is on a 32-bit system, up to 4G (2 to the 32nd power), so on a 64-bit system, the maximum virtual memory is very large.
Why is the maximum supported physical memory on the 32-bit operating system 4G, for this reason.
Each process is allocated enough virtual memory to run it at runtime, and this part of the virtual memory size is even larger than the physical memory. After the process is allocated virtual memory, the kernel maps the virtual memory to physical memory.
Virtual memory makes each application think that it has independent and contiguous available memory space (a continuous and complete address space).
In fact, it is usually mapped to multiple physical memory segments, and some are temporarily stored on external disk storage (this part of the disk space is the swap space).
Load it into memory as needed.
When the physical memory is not enough, or when some data in the physical memory is considered to be infrequently used, the kernel will store this part of the data on the swap.
In fact, even if the memory is enough, the kernel will also store some data in the interactive partition, but the amount of data is not too large.
I will summarize the details of the memory management.
car key cover,key holder for keychain,car key fob cover,key fob protector,honda accord accessories
Dongguan Metalwork Technology Co., LTD. , https://www.dgdiecastpro.com