当前位置:网站首页>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 <( ̄︶ ̄)>
边栏推荐
- [quick start for Digital IC Validation] 26. Ahb - sramc (6) for system verilog project practice (Basic Points of APB Protocol)
- 【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)
- What is data leakage
- [target detection] yolov5 Runtong voc2007 data set
- VS2005 strange breakpoint is invalid or member variable value cannot be viewed
- Yunxiaoduo software internal test distribution test platform description document
- #HPDC智能基座人才发展峰会随笔
- [markdown grammar advanced] make your blog more exciting (IV: set font style and color comparison table)
- How to deploy the super signature distribution platform system?
- Excerpted words
猜你喜欢
[target detection] yolov5 Runtong voc2007 data set
Summer safety is very important! Emergency safety education enters kindergarten
Configure mongodb database in window environment
【数字IC验证快速入门】19、SystemVerilog学习之基本语法6(线程内部通信...内含实践练习)
如何在opensea批量发布NFT(Rinkeby测试网)
Zhongang Mining: Fluorite continues to lead the growth of new energy market
众昂矿业:萤石继续引领新能源市场增长
[quick start for Digital IC Validation] 26. Ahb - sramc (6) for system verilog project practice (Basic Points of APB Protocol)
MySQL bit type resolution
【OBS】RTMPSockBuf_ Fill, remote host closed connection.
随机推荐
[server data recovery] data recovery case of raid failure of a Dell server
Points for attention in porting gd32 F4 series programs to gd32 F3 series
[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset
Pit avoidance: description of null values in in and not in SQL
[original] all management without assessment is nonsense!
How to build your own super signature system (yunxiaoduo)?
众昂矿业:萤石继续引领新能源市场增长
Matlab experience summary
使用Scrapy框架爬取网页并保存到Mysql的实现
Use cpolar to build a business website (2)
[quick start of Digital IC Verification] 26. Ahb-sramc of SystemVerilog project practice (6) (basic points of APB protocol)
2.Golang基础知识
【深度学习】图像超分实验:SRCNN/FSRCNN
Guangzhou Development Zone enables geographical indication products to help rural revitalization
Super simple and fully automated generation super signature system (cloud Xiaoduo minclouds.com cloud service instance), free application in-house test app distribution and hosting platform, maintenan
Shader Language
[quick start of Digital IC Verification] 18. Basic grammar of SystemVerilog learning 5 (concurrent threads... Including practical exercises)
How to understand that binary complement represents negative numbers
有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?
【数据挖掘】视觉模式挖掘:Hog特征+余弦相似度/k-means聚类