当前位置:网站首页>Segment paging and segment page combination
Segment paging and segment page combination
2022-07-29 08:16:00 【Meme_ xp】
Pagination 、 Before the advent of segmented Technology
Before the technology of segmentation appeared , To run a program, you need to allocate enough continuous memory from memory , Then load the whole program
The size of a program is 10M, then , There needs to be continuous 10M The program can only be loaded into the memory space . If you can't find a continuous 10M Memory , You can't load this program into memory , The program cannot be run
A problem
① Address space is not isolated
② The address when the program is running is uncertain
③ Low memory usage
The emergence of segmentation technology and virtual address space
piecewise : Is to divide a program into code segments , Data segment , Stack segment or something , Each segment manages different data
Virtual address space
Simply put, it's an addressable space . If this space is virtual , We call it virtual address space ; If this space is real , We call it physical address space . The virtual address space can be arbitrarily large , Because it's virtual . The physical address space is real , So it's Limited
Segmentation technology maps virtual address space to physical address space , And the program you write operates on a virtual address
Segmentation technology solves the problem of isolation , So that the program does not need to pay attention to the physical address , As long as the virtual address hasn't changed , that , The program will not operate on the two problems of improper address
The emergence of paging technology solves the problem of low efficiency
General principle of paging technology
The basic method of paging is to divide the address space into a fixed size page ; The size of each page is determined by the hardware , Or it's up to the operating system ( If the hardware supports multiple page sizes ).
Page size selection
The page size is fixed , It's up to your machine and hardware , Different machines may have different page sizes
The page size is generally 2 The power of , Usually 512B~8KB
Small page size : Memory fragmentation is small , High memory utilization , But the number of pages , Make the page table too long , Take up a lot of memory , High management overhead
Large page size : Page table end , Low memory utilization and large memory fragmentation , Low management overhead
Pagination 、 Differences in segmentation
Paragraphs and pages combine advantages and disadvantages
advantage
(1) It provides a lot of virtual storage space .
(2) Can effectively use main memory , It provides convenience for organizing the running of multiple programs .
shortcoming :
(1) Increased hardware costs 、 The complexity of the system and the opening and elimination of management .
(2) There is a risk of system jitter .
(3) There are internal fragments .
(4) There are also various forms that take up main memory space .
边栏推荐
- Cs4344 domestic substitute for dp4344 192K dual channel 24 bit DA converter
- Vmstat memory consumption query
- Unity beginner 3 - enemy movement control and setting of blood loss area (2D)
- TCP——滑动窗口
- Lora opens a new era of Internet of things -asr6500s, asr6501/6502, asr6505, asr6601
- Convert source package to RPM package
- 数仓分层设计及数据同步问题,,220728,,,,
- Privacy is more secure in the era of digital RMB
- An Optimal Buffer Management Scheme with Dynamic Thresholds论文总结
- [beauty of software engineering - column notes] 23 | Architect: programmers who don't want to be architects are not good programmers
猜你喜欢
UE4 principle and difference between skylight and reflecting sphere
110 MySQL interview questions and answers (continuously updated)
TCP——滑动窗口
An optimal buffer management scheme with dynamic thresholds paper summary
TCP - sliding window
Ansible (automation software)
New energy shared charging pile management and operation platform
数字人民币时代隐私更安全
Rotation in model space and rotation in world space
数仓分层设计及数据同步问题,,220728,,,,
随机推荐
Inclination sensor accuracy calibration test
(Video + graphic) machine learning introduction series - Chapter 5 machine learning practice
UE4 principle and difference between skylight and reflecting sphere
Unity多人联机框架Mirro学习记录(一)
Temperature acquisition and control system based on WiFi
Simplefoc parameter adjustment 2- speed and position control
Hal library learning notes - 8 concept of serial communication
Smart energy management system solution
CentOS deploy PostgreSQL 13
torch.nn.functional.one_hot()
[beauty of software engineering - column notes] 29 | automated testing: how to kill bugs in the cradle?
Some tools, plug-ins and software links are shared with you~
Ue4/ue5 C disk enlargement processing
An Optimal Buffer Management Scheme with Dynamic Thresholds论文总结
Tle5012b+stm32f103c8t6 (bluepill) reading angle data
Simulation of four way responder based on 51 single chip microcomputer
Phy6252 is an ultra-low power Bluetooth wireless communication chip for the Internet of things
Process and concept of process
NFC two-way communication 13.56MHz contactless reader chip -- si512 replaces pn512
pnpm install出现:ERR_PNPM_PEER_DEP_ISSUES Unmet peer dependencies