当前位置:网站首页>Virtual memory, physical memory /ram what
Virtual memory, physical memory /ram what
2022-07-07 15:42:00 【WhiteTian】
Original article , Reprint please indicate the source .
This article records my understanding of virtual memory 、 The role of physical memory
Preface
Understand a few concepts before understanding
1>RAM Ram = Physical memory : This is a piece of hardware inserted into the computer mainframe . That is what we often call memory module , There are also called running memory .
give an example : My colleague told me , His computer memory 8 individual G, Want to play and eat chicken . I answer him : You didn't 8 individual G, Can't play , Add one 8G Memory module .
2> Virtual memory : disk space , The system can be managed by default , We can also participate in setting its size and which drive letter to use . This document is called FilePage.SYS. It's easier to use than RAM slow : The speed of physical memory usage is that of virtual memory 30 More than times .
The difference between virtual memory and physical memory : Virtual memory is the opposite of physical memory , It refers to the memory space allocated from the virtual address of the hard disk according to the needs of the system , Is a computer system memory management technology , It belongs to computer program , Physical memory is hardware . Because sometimes when you deal with large programs, the system memory is not enough , At this time, the hard disk will be used as memory , To exchange data as a buffer , However, the processing speed of physical memory is that of virtual memory 30 More than times .
Virtual memory
First, virtual memory is the memory space on the hard disk .
When the space on our memory module cannot be allocated , It is also said on the Internet that the memory allocation of the memory module is slow , At this time, we will use our virtual memory . That is, I can use memory module space + Use disk space together . however
We can participate in specifying the size of this virtual memory : Generally, the system will be managed as a system disk by default , You can also set other drive letters . However, it should be noted that the disk used by your virtual memory must have a large amount of remaining space , You said it used C disc , result C The plate is left 1G There's space , At this time, running a larger game will report that the memory cannot be allocated . For example, the error report of the following pictures .
reflection : So when our computer RAM That is, when our memory module is large enough , Do you still need virtual memory ?
Then someone asked , How big is it big enough . We assume that When you reach 32G,64G.
answer : I don't think it's necessary , Your memory is big enough , Why use disk memory ? Disk memory is inherently larger than RAM Reading is much slower . There are fast and good , Why not . Right .
It can be understood that virtual memory is a backup force when the memory of our memory module is insufficient .
Physical memory /RAM
It also introduces , This is our memory module .
A running process , The memory he needs may be greater than the sum of the memory modules , For example, your memory module is 256M,
Your program has to create one 2G Data area of , Then not all data can be loaded into memory together ( Physical memory ) in ,
There must be some data to be put into other media ( For example, hard disk ), When the process needs to access that part of the data , Enter physical memory through scheduling .
therefore , Virtual memory is the sum of all memory space when a process is running , And some of them may not be in physical memory ,
Physical memory is the memory module we usually know . Some places , This virtual memory is also called memory swap area .
thank you , It's not easy to create , Great Xia, please stay … Move your lovely hands , Give me a compliment before you go <( ̄︶ ̄)>
边栏推荐
- How to deploy the super signature distribution platform system?
- 2.Golang基础知识
- jacoco代码覆盖率
- 【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)
- There is a cow, which gives birth to a heifer at the beginning of each year. Each heifer has a heifer at the beginning of each year since the fourth year. Please program how many cows are there in the
- 【跟着江科大学Stm32】STM32F103C8T6_PWM控制直流电机_代码
- Cut ffmpeg as needed, and use emscripten to compile and run
- Stm32f103c8t6 PWM drive steering gear (sg90)
- Unity's ASE realizes cartoon flame
- Pit avoidance: description of null values in in and not in SQL
猜你喜欢
![Super signature principle (fully automated super signature) [Yun Xiaoduo]](/img/b8/5bafbada054b335568e64c7e1ac6bb.jpg)
Super signature principle (fully automated super signature) [Yun Xiaoduo]
![[quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)](/img/cf/45775b712f60869186a25d3657ee1b.png)
[quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)

How to release NFT in batches in opensea (rinkeby test network)

Typescript release 4.8 beta

【数字IC验证快速入门】23、SystemVerilog项目实践之AHB-SRAMC(3)(AHB协议基本要点)
![[Data Mining] Visual Pattern Mining: Hog Feature + cosinus Similarity / K - means Clustering](/img/a4/7320f5d266308f6003cc27964e49f3.png)
[Data Mining] Visual Pattern Mining: Hog Feature + cosinus Similarity / K - means Clustering
![[server data recovery] data recovery case of raid failure of a Dell server](/img/5d/03bc8dcc6e554273b34a78c49a9eaf.jpg)
[server data recovery] data recovery case of raid failure of a Dell server

Starting from 1.5, build a microservice framework link tracking traceid
Implementation of crawling web pages and saving them to MySQL using the scrapy framework

微信小程序 01
随机推荐
众昂矿业:萤石继续引领新能源市场增长
Bye, Dachang! I'm going to the factory today
[Lanzhou University] information sharing of postgraduate entrance examination and re examination
Actually changed from 408 to self proposition! 211 North China Electric Power University (Beijing)
webgl_ Enter the three-dimensional world (2)
【數字IC驗證快速入門】20、SystemVerilog學習之基本語法7(覆蓋率驅動...內含實踐練習)
【OBS】RTMPSockBuf_ Fill, remote host closed connection.
[quick start of Digital IC Verification] 22. Ahb-sramc of SystemVerilog project practice (2) (Introduction to AMBA bus)
VS2005 strange breakpoint is invalid or member variable value cannot be viewed
Getting started with webgl (1)
Introduction of mongod management database method
Cocos makes Scrollview to realize the effect of zooming in the middle and zooming out on both sides
[quick start of Digital IC Verification] 23. AHB sramc of SystemVerilog project practice (3) (basic points of AHB protocol)
Create lib Library in keil and use lib Library
Points for attention in porting gd32 F4 series programs to gd32 F3 series
Spin animation of Cocos performance optimization
[target detection] yolov5 Runtong voc2007 data set
Gd32 F3 pin mapping problem SW interface cannot be burned
Shader Language
The significance of XOR in embedded C language