1 / 7

Process_Memory_Allocation

Process_Memory_Allocation. Yuan Lin 20130128. Step 1: Generate PE File (After Compile & Link ). Header. Section Table. Section .text. Section .data. Section . bss. ……. PE File Format. Step 2 : Execute PE File. 1GB. Kernel Space. Parameter & Environ. Stack. ……. Linear Space

Download Presentation

Process_Memory_Allocation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Process_Memory_Allocation Yuan Lin 20130128

  2. Step 1: Generate PE File (After Compile & Link ) Header Section Table Section .text Section .data Section .bss …… PE File Format

  3. Step 2: Execute PE File 1GB Kernel Space Parameter & Environ Stack …… Linear Space Totally 4GB 3GB Heap Segment bss Segment data Segment text Process memory allocation Q&A: what kind address in application? (Linear address)

  4. Step 2: Execute PE File 0GB 3GB 4GB Linear Space Totally 4GB Process User Space Kernel Space 0GB 1GB 4GB Kernel Q&A: How two spaces communicate? (systemcall, ioctl, sysfs, proc, etc…)

  5. Step 3: Address Transition Logical Address Program Segmentation Kernel (MMU) Linear Address Paging Hardware Physical Address

  6. Step 3: Address Transition Q&A: Segmentation functionalities? (share, multiple virtual spaces) Q&A: If total of multiple virtual spaces larger than 4GB, how to allocate linear space? Q&A: How to explain logical address equals to linear address when have no segmentation? Q&A: Paging functionalities? (Prevent fragmentized, increase utilization efficiency)

  7. Appendix: MMU: buddy system, slab, high memory Kernel: interruption, system call, virtual file system

More Related