Linux Memory Management Learning Notes

Source: Internet
Author: User

Linux memory uses the flat model of protected mode, which bypasses Intel's segment memory management, as the segment selector for all processes points to GDT, and only four of the GDT are useful:

The code is as follows Copy Code
. Quad 0X00CF9A000000FFFF/* 0x10 kernel 4GB Code at 0x00000000 * *
. Quad 0X00CF92000000FFFF/* 0x18 kernel 4GB data at 0x00000000 * *
. Quad 0X00CFFA000000FFFF/* 0x23 user 4GB Code at 0x00000000 * *
. Quad 0X00CFF2000000FFFF/* 0x2b user 4GB data at 0x00000000 * *

The base of each segment descriptor is 0, the size is 4G, only the difference of permissions.
Also said that the virtual address in Linux after the section-type management of the map into a linear address, the value of the unchanged.
Linux Real memory management is based on page management, in the case of Level two page table: the subscript of the high 10-bit of the linear address is used to locate the page table, the middle 10-bit subscript for PT is used to locate the page table entry, and the lower 12 bit is the page offset address.

Related Article

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.