Physical memory is the size of the memory bar that we plug into the memory slot on the motherboard. Look at the computer configuration, the main look is this physical memory. General memory size is 1G, 2G, 4G. As shown in the following illustration:
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.
Computer knowledge
Maybe that's not very well understood. For example, if you use 2G of RAM, the system detects that your physical memory is 2G, but if you have more than your physical memory, the software will not be installed, so you need to use virtual memory, These virtual memory is used to invoke the memory of the hard disk so that the applications can be installed through virtual memory. Small. It combines the computer's RAM with the temporary space on the hard disk. When RAM is running at a slow rate, it moves data from RAM to a space called a paging file. Moving data into a paging file frees up RAM to complete the work. Of course we can set the size of the virtual memory.