Please enable JavaScript.
Coggle requires JavaScript to display documents.
Memory (:pineapple:Swapping (backing storage (:icecream:Linux, UNIX交换区,…
Memory
:pineapple:Swapping
out of memory => swap a process temporarily to a backing store and then brought back into memory for continued execution
backing storage
:icecream:Linux, UNIX交换区, Windows交换文件(pagefile.sys)
-
-
-
-
-
-
-
-
:pineapple:Segmentation
Segmentation
:pineapple:formats
:one:<segment-number, offset>
-
:two:<limit, base>
:one:limit
-
:warning:if offset > limit, the a trap is caused, and addressing error
-
-
-
-
-
-
-
:heavy_dollar_sign:<segment number, offset>
=> absolute physical address
-
:question:questions:
问题1
:pencil2:calculate
-
:two:根据一个页面大小知道右数第4个数字表示第几个页面,所以虚地址2362表示虚页面是2
:three:确定指定虚页面的物理页面起始地址,并且加上偏移地址
-
-
-
:two:Consider a logical address space of 256 pages with a 4-KB page size, mapped onto a physical memory of 64 frames.
-
:question:I think the answer should be 20; 20; since we should make sure that all logical addresses can be successfully mapped
也许是因为实际内存不一定足够程序的虚拟内存空间把,所以实际取值按实际内存而不是虚拟内存
:three:The BTV operating system has a 21-bit virtual address, yet on certain
embedded devices, it has only a 16-bit physical address. It also has a
2-KB page size. How many entries are there in each of the following?
a. A conventional, single-level page table
b. An inverted page table
-
:four:Assuming a 1-KB page size, what are the page numbers and offsets for the following address references (provided as decimal numbers):
3085 page numbers:
3
, offsets :
13
b. 42095 page numbers:
41
, offsets :
111
c. 215201 page numbers:
210
, offsets :
161
-
:five:assume that a task is divided into 4 equal-sized segments, and that the system builds an 8-entry page table for each segment. Therefore, the system has a combination of segmentation and paging. Assume also that the page size is 2Kbytes.
这里的8-entry page table是指什么意思,是说每个segment都有指向8个page的page table吗
-
-
:strawberry:MMU
:strawberry:映射
-
-
:bread:虚拟地址空间的用户空间不同进程会通过MMU映射在内存的不同的页(4k,内存的最小单元),而内核空间则是不同进程相同程序会映射在相同页上.但是MMU会保证内核空间即使映射在相同的页上也能实现PCB保持2个进程间的不同
:pizza:三级映射
:bread:PCB中有个页目录指针,页目录指针指向页目录;页目录有很多指针,这些指针指向多个页表;页表里面也有许多指针,这些指针指向物理页面(里面存储数据,为内存单元)
:warning:新线程有独立的PCB,但是指向页目录的指针是和主线程基本一样的=>虚拟地址空间是基本一样
-
:heavy_dollar_sign:作用
-
:one:给CPU访问内存的时候设置访问级别
:star:用户空间是3级,内核空间是0级.级别越低越严格
-
Contiguous Allocation
:recycle:types
:one:fixed partitioning
-
-
-
-
What is the name of memory that is allocated but haven't been used by the process and memory that is not allocated yet
-
-
-
-
-
-