当前位置:网站首页>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 .
边栏推荐
- Unity beginner 1 - character movement control (2D)
- Inclination sensor accuracy calibration test
- [beauty of software engineering - column notes] 23 | Architect: programmers who don't want to be architects are not good programmers
- Inclination sensor is used for long-term monitoring of communication tower and high-voltage tower
- 阿里巴巴政委体系-第三章、阿里政委与文化对接
- An Optimal Buffer Management Scheme with Dynamic Thresholds论文总结
- Compatible with cc1101/cmt2300-dp4301 sub-1g wireless transceiver chip
- UE4 highlight official reference value
- Exercise: store department information
- Reading papers on false news detection (4): a novel self-learning semi supervised deep learning network to detect fake news on
猜你喜欢

Dynamic Thresholds Buffer Management in a Shared Buffer Packet Switch论文总结

Multifunctional signal generator based on AD9850

Redshift 2.6.41 for maya2018 watermark removal

Huawei wireless device configuration uses WDS technology to deploy WLAN services

随机抽奖转盘微信小程序项目源码

Privacy is more secure in the era of digital RMB

Simplefoc+platformio stepping on the path of the pit

Application of explosion-proof inclination sensor in safe operation of LNG

简易计算器微信小程序项目源码
![[beauty of software engineering - column notes]](/img/90/658f4d954c876bed2fccb431232e52.png)
[beauty of software engineering - column notes] "one question and one answer" issue 2 | 30 common software development problem-solving strategies
随机推荐
Qt/PyQt 窗口类型与窗口标志
SQL 面试碰到的一个问题
[academic related] why can't many domestic scholars' AI papers be reproduced?
C language problems
网络安全之安全基线
The difference between torch.tensor and torch.tensor
Hal learning notes - Advanced timer of 7 timer
Beautiful girls
An optimal buffer management scheme with dynamic thresholds paper summary
[robomaster] control RM motor from scratch (2) -can communication principle and electric regulation communication protocol
Dynamic Thresholds Buffer Management in a Shared Buffer Packet Switch论文总结
Arduino uno error analysis avrdude: stk500_ recv(): programmer is not responding
Operator overloading
Temperature acquisition and control system based on WiFi
(视频+图文)机器学习入门系列-第5章 机器学习实践
Implementation of support vector machine with ml11 sklearn
Unity Shader学习(六)实现雷达扫描效果
(Video + graphic) machine learning introduction series - Chapter 5 machine learning practice
Hal library learning notes - 8 concept of serial communication
Network Security Learning chapter