Realizing 4 GB of address space [msdn]

Source: Internet
Author: User
Realizing 4 GB of address space

Note: every process has its own page Directory.
Translating a virtual address from page Directory to page frame is similar to traversing a B-tree structure, where the page Directory is the root; page tables are the immediate descendants of the root; and page frames are the page table's descendants. figure 3 Organization strates this Organization.

Figure 3. Translating a virtual address is similar to traversing a B-tree structure.

A page Directory has up to 1024 PDES or a maximum of 1024 page tables. each page table contains up to 1024 PTES with a maximum of 1024 page frames per page table. each page frame has its own 4096 one-byte locations of actual data. all totaled, the 32-bit virtual address can be translated into 4 GB of address space (1024*1024*4096 ). yet, there is still the question of the pages that are used to represent the page tables and page Directory.

Looking closely at Figure 3 reveals that a considerable amount of overhead is required to completely realize all of the page frames in memory. in fact, to address each location in the 4-gb address space wowould require one page Directory and 1024 page tables. because each page is 4 K of memory, 4 MB (approximately) of memory wocould be needed just to represent the address space ([1024 page tables + 1 page Directory] * 4096 bytes/page ).

Although that may seem like a high price to pay, it really isn't, for two reasons: first, 4 MB is less than 0.1 percent of the entire 4-gb address space, which is a reasonably small amount of overhead when you consider comparable operating systems. second, Windows NT realizes the address space as it is needed by the application, rather than all at once, so page tables are not created until the addresses they are used to translate are needed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.