当前位置:网站首页>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 <( ̄︶ ̄)>
边栏推荐
- What are PV and UV? pv、uv
- Nacos conformance protocol cp/ap/jraft/distro protocol
- 【数字IC验证快速入门】25、SystemVerilog项目实践之AHB-SRAMC(5)(AHB 重点回顾,要点提炼)
- [quickstart to Digital IC Validation] 20. Basic syntax for system verilog Learning 7 (Coverage Driven... Including practical exercises)
- Gd32 F3 pin mapping problem SW interface cannot be burned
- 简述keepalived工作原理
- 2.Golang基础知识
- [quick start of Digital IC Verification] 24. AHB sramc of SystemVerilog project practice (4) (AHB continues to deepen)
- Summer safety is very important! Emergency safety education enters kindergarten
- Clang compile link ffmpeg FAQ
猜你喜欢
unnamed prototyped parameters not allowed when body is present
[quick start of Digital IC Verification] 26. Ahb-sramc of SystemVerilog project practice (6) (basic points of APB protocol)
【数字IC验证快速入门】19、SystemVerilog学习之基本语法6(线程内部通信...内含实践练习)
2022全开源企业发卡网修复短网址等BUG_2022企业级多商户发卡平台源码
Briefly describe the working principle of kept
[deep learning] semantic segmentation experiment: UNET network /msrc2 dataset
webgl_ Graphic transformation (rotation, translation, zoom)
Steps to create P8 certificate and warehousing account
Iterator and for of.. loop
Cocos creator collision and collision callback do not take effect
随机推荐
webgl_ Enter the three-dimensional world (1)
Oracle control file loss recovery archive mode method
【数字IC验证快速入门】22、SystemVerilog项目实践之AHB-SRAMC(2)(AMBA总线介绍)
全日制研究生和非全日制研究生的区别!
【数字IC验证快速入门】20、SystemVerilog学习之基本语法7(覆盖率驱动...内含实践练习)
[Lanzhou University] information sharing of postgraduate entrance examination and re examination
[markdown grammar advanced] make your blog more exciting (IV: set font style and color comparison table)
Monthly observation of internet medical field in May 2022
Matlab experience summary
XMIND frame drawing tool
【目标检测】YOLOv5跑通VOC2007数据集
2022年5月互联网医疗领域月度观察
Annexb and avcc are two methods of data segmentation in decoding
什么是数据泄露
Cocos uses custom material to display problems
什麼是數據泄露
[deep learning] image hyperspectral experiment: srcnn/fsrcnn
使用Scrapy框架爬取网页并保存到Mysql的实现
How to build your own super signature system (yunxiaoduo)?
VS2005 strange breakpoint is invalid or member variable value cannot be viewed