2月11日 pte,pde

來源:互聯網
上載者:User
kd> !pte
               VA 00000000
PDE at   C0300000        PTE at C0000000
contains 0E474067      contains 00000000
pfn e474 ---DA--UWEV

虛擬位址0x00000000的pte在虛擬位址0xc0000000,pde在虛擬位址0xc0300000,
因為每個pte映射一個頁面,4k,每個pte在pde中佔4個位元組,,這樣要映射全部4gb虛擬位址空間需要4g/4k*4=4m.
給pde分配一個頁面,其中這4k中每4位元組是一個pte的虛擬位址,而pde的這個頁面也需要一個pte(頁表項)來表示,頁表是從0xc0000000開始放置.即地址0x00000000-0x00001000 這4k空間的pte表項存在0xc0000000開始的4位元組中,,這樣,,地址0xc0000000-0xc0001000的頁表項放在0xc0300000開始的4位元組中,,,所以這一個也表項正是pde所用的頁,,,pde選在0xc0300000是有道理的 :>
通過pde找到第一個頁表,也就找到了虛擬4g地址空間的開始

相關的一些
if paged pool expansion requires the allocation of a new system page table, the memory manager doesn't go back and update all the process page directories to point to the new system page table. Instead, it updates the process page directories when the processes reference the new virtual address.

Thus, a process can take a page fault when referencing paged pool that is in fact physically resident because its process page directory doesn't yet point to the new system page table that describes the new area of pool. Page faults don't occur when accessing nonpaged pool, even though it too can be expanded, because Windows 2000 builds enough system page tables to describe the maximum size during system initialization.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.