Soft test senior system architect designer (3) Basic knowledge of operating system 2 (paging/segmentation/segment page storage)

Table of contents

storage management

paging

Segment storage

Segmented paging


storage management

The main purpose of storage management: to solve the problem of multiple users sharing main memory (how to allocate memory??)

It mainly includes partition storage management, page storage management , segment memory management, segment page storage management and virtual storage management

       ps: There are three different methods of partition storage management: static partition, variable partition, and relocatable partition.

paging

 When allocating memory for a process, several pages in the process are loaded into multiple physical blocks that may not be contiguous in units of blocks. Because the last page of the process is often not full enough to form an unusable fragment, it is called " in-page fragmentation ".

ps: 4KB, the page address needs 4K (2^12) binary representation

ps: Physical address calculation, logical address 2 corresponds to physical address/physical block number is 6, so it is 110

Contents in the page table:

Elimination principle: (status bit is 1, in memory) access bit is 0, followed by modification bit is 0

Practice questions:

 

Segment storage

 

Practice questions:

 

ps: Cannot exceed segment length 

Segmented paging

Segmentation (different size of each segment) ---------> paging (same size of each page)

 

The number of pages represented: 9-13, 2^5=32

The number of segments represented: 14-16, 2^3=8

 

Guess you like

Origin blog.csdn.net/wodeyijia911/article/details/131301314