Homework Assignment 5 CS 350c Unique Number: 51160 Spring, 2016 Given: February 16, 2016 Due: February 25, 2016 This homework concerns exploring the x86 memory management mechanisms. You may need to refer to the x86 documentation to be able to complete this assignment. 1. If you want to create a set of page tables to map 19,217,112 bytes of contiguous memory, how many 4K pages would there need to be assuming that all of the memory is of the same type? 2. What is the minimum amount of memory that would be required for all of the page-table, memory-resident, mapping information necessary to make mapping possible for 19,217,112 bytes of contiguous read/write data memory when using 4K pages? 3. What is the minimum amount of memory that would be required for all of the page-table, memory-resident, mapping information necessary to make mapping possible for 19,217,112 bytes of contiguous read/write data memory when using 2M pages? 4. Does it matter where the 19,217,112 bytes start in the memory as it concerns the required number of page-table entries? 5. Using 4K pages, how large would the TLB need to be so that we could address all 19,217,112 bytes without ever needing to reload the TLB? 6. Using 2M pages, how large would the TLB need to be so that we could address all 19,217,112 bytes without ever needing to reload the TLB?