1 Pages Page的概念来源为处理器Processor的部件MMU(Memory Management Unit),MMU通过设置好的页表(通过设置CR3寄存器,指向页目录所在的物理内存)对内存进行管理,管理操作包括: a) 建立线性内存地址与物理内存地址的对应关系,即pa()和va()函数: b) 管理哪些内存页驻存(Resident)于物理内存中,而哪些内存被交换到Swap文件中: c) 哪些内存页被映射到哪个进程的虚拟地址空间: d) 管理哪些内存页存储磁盘上(或者文件系统中)文件的…
1.struct page /* Each physical page in the system has a struct page associated with * it to keep track of whatever it is we are using the page for at the * moment. Note that we have no way to track which tasks are using * a page, though if it is a pa…
The Process On modern operating systems,processes provide two virtualizations:a virtualized processor and virtual memory The Process Family Tree iterates over the entire task list.On each iteration,task points to the next task in the list: struct tas…