review of symbols review of symbols cs 105
play

Review of Symbols Review of Symbols CS 105 Basic Parameters Tour - PowerPoint PPT Presentation


  1. ✍ ☎ ✄ ✁ ✂ ✡ ☎ ☞ ✁ ☎ ✌ ✂ ☛ ☎ ☛ ☎ ✞ ✂ ☎ ☛ ☎ ✂ ☎ ☎ ☛ ✝ ✁ ✂ ✁ ✄ ✁ ✁ ✁ ☎ ✆ ✞ ✄ ✟ ✠ ✡ ✂ ✄ ✁ ☎ ✝ ✆ ☎ ☎ ☎ ✞ ☎ ✂ ✁ ✁ ☎ ✄ ☎ ✞ ☎ ☛ ☎ ✌ ✁ ☎ ✌ ☎ ✆ ☎ ☛ ☎ ✂ ☎ ☎ ✄ ✟ ☎ ☎ ☛ ☎ ✝ ☎ ☛ ☎ ✄ ✄ ☛ ✁ ☎ ☞ ☎ ☛ ☎ ✡ ☎ ☛ ☎ ✄ ✝ ✟ ✂ ✞ ✁ ✁ ✠ ✁ ✂ ✁ ✟ ✁ ✁ ✁ ✝ ✝ ✆ ☎ ✄ ✂ ✂ ✁ ✂ ✄ ✠ ✟ � ✁ ✡ ✁ ✠ ✁ ✂ ✁ ✞ ✁ ✝ ✁ ✁ ✁ ✝ ✁ ✆ ✁ ☎ ✁ ✁ ✁ ☎ ✝ ✂ ✟ ✠ ✡ ✂ ✄ ✁ ✟ ☎ ✞ ✝ ✝ ✆ ☎ ✄ ✂ ✁ ✠ ✆ ✞ ✁ ✁ ✁ ✂ ✁ ✄ ✁ ✁ ✁ ☎ ✆ ✝ ✞ ✁ ✠ ✟ ✡ ✂ ✄ ✁ ☎ ✁ Review of Symbols Review of Symbols CS 105 Basic Parameters “Tour of the Black Holes of Computing!” N = 2 n : Number of addresses in virtual address space M = 2 m : Number of addresses in physical address space P = 2 p : Page size (bytes) Virtual Memory: Systems Virtual Memory: Systems Components of the virtual address (VA) TLBI: TLB index TLBT: TLB tag VPO: Virtual page offset Topics VPN: Virtual page number Simple memory system example Components of the physical address (PA) PPO: Physical page offset (same as VPO) Case study: Core i7 PPN: Physical page number Linux memory management CO: Byte offset within cache line Memory mapping CI: Cache index CT: Cache tag CS 105 – 2 – Simple Memory System Example Simple Memory System Example 1. Simple Memory System TLB 1. Simple Memory System TLB Addressing 16 entries 14-bit virtual addresses 4-way associative 12-bit physical address Page size = 64 bytes ���� ���� ��� ��� ��� ��� ������������������� ������������������� ��� ��� �������������������� �������������������� CS 105 CS 105 – 3 – – 4 –

  2. ✏ ☛ ✌ ✏ ✂ ✏ ✏ ☎ ☎ ☛ ✁ ☛ ☛ ✎ ✄ ✁ ☎ ☛ ☛ ☞ ✠ ☛ ☎ ☎ ✁ ✠ ✆ ✝ ✆ ✌ ✄ ☛ ✆ ☛ ☛ ☛ ☞ ✌ ✄ ✁ ✂ ☛ ✌ ✂ ✆ ✡ ✁ ☎ ☛ ☛ ☛ ☛ ✓ ✒ ✌ ✠ ✂ ✟ ✆ ☎ ✄ ✂ ✁ ✍ ✂ ✟ ✠ ✁ ✁ ✡ ☎ ✟ ✆ ✡ ✂ ✁ ✁ ✄ ✂ ✁ ✁ ✂ ✝ ✞ ✞ ☎ ☞ ✌ ✁ ✁ ✁ ✠ ✡ ✂ ✄ ☎ ✄ ☎ ✂ ✡ ✠ ✟ ✞ ✝ ✆ ☎ ✁ ✆ ✁ ✞ ✁ ✄ ✁ ✁ ✁ ☎ ✆ ✝ ✟ ✝ ☎ ✁ ✄ ✂ ✡ ✠ ✟ ✞ ✁ ✁ ✁ ✌ ✂ ✟ ✆ ☎ ✄ ✂ ✁ ✑ ✂ ✒ ✌ ✁ ✌ � ✌ ✝ ✡ ✄ ✠ ✆ ✄ ☎ ✁ ✂ ✁ ✁ ☎ ✁ ✁ ✁ ✆ ✓ ✝ ✞ ✟ ✠ ✡ ✂ ✄ ✁ ✑ ✂ ✁ ✍ ☛ ☛ ☛ ☛ ☎ ✂ ✁ ✟ ✁ ✌ ☎ ✟ ✞ ✄ ✂ ✟ ✁ ☎ ✌ ✠ ☎ ✆ ✝ ✞ ✁ ✟ ✡ ☎ ✁ ✁ ✁ ☎ ✆ ✝ ✞ ✟ ✠ ✂ ✁ ✄ ✁ ☎ ☎ ✂ ✌ ✌ ✎ ✄ ✁ ✁ ✍ ✍ ✌ ✁ ☛ ☛ ☎ ✁ ✠ ✁ ✁ ✁ ✄ ✂ ✁ ☛ ✆ ✆ ✁ ✁ ✆ ☎ ✌ � ✌ ✡ ✁ ☛ ✂ ✄ ☎ ✡ ☛ ☛ ☛ ☛ ☎ ✂ ✟ ✂ ☎ ✝ ✄ ✂ ✁ ✂ ✡ ☎ ✄ ☎ ☎ ✁ ✁ ✏ 2. Simple Memory System Page Table 2. Simple Memory System Page Table 3. Simple Memory System Cache 3. Simple Memory System Cache Only show first 16 entries (out of 256) 16 lines, 4-byte block size Physically addressed Direct mapped ��� ��� ����� ��� ��� ����� �� �� �� �� �� � �� �� � �� � � �� �� � �� �� � �� �� � ��� ��� �� �� � �� � � �� � � �� � � �� �� � �� �� � �� � � �� �� � �� � � �� �� � CS 105 CS 105 – 5 – – 6 – Address Translation Example #1 Address Translation Example #1 Address Translation Example #2 Address Translation Example #2 Virtual Address: 0x03D4 Virtual Address: 0x0020 ���� ���� ���� ���� ��� ��� ��� ��� VPN ____ TLBI ___ TLBT ____ TLB Hit? __ Page Fault? __ PPN: ____ VPN ____ TLBI ___ TLBT ____ TLB Hit? __ Page Fault? __ PPN: ____ Physical Address Physical Address �� �� �� �� �� �� ��� ��� ��� ��� CO ___ CI___ CT ____ Hit? __ Byte: ____ CO___ CI___ CT ____ Hit? __ Byte: ____ CS 105 CS 105 – 12 – – 20 –

  3. ✂ ★ ✣ ✓ ✲ ☞ ✌ ✱ ✥ ✕ ✢ ✩ ✧ ✓ ☎ ✁ ✄ ✂ ✒ ✓ ✔ ✕ ✗ ✓ ✘ ✙ ✘ ✕ ✓ ✴ ✣ ✗ ✓ ✤ ✴ ✙ ✕ ✙ ✘ ✗ ✙ ✕ ✔ ✓ ✚ ✶ ✫ ✵ ✦ ✴ ✳ ✕ ✙ ✚ ✴ ✒ ✎ ✌ ✬ ✭ ✧ ✮ ✫ ✯ ✮ ✬ ✰ ✫ ✁ ✡ ✠ ✟ ✞ ✝ ✆ ✁ ✁ ✄ ✁ ☞ ✒ ✛ ✓ ✜ ✢ ✣ ✤ ✓ ✙ ✘ ✓ ✢ ✕ ✥ ✪ ✥ ✦ ✕ ✢ ✢ ✧ ★ ✩ ✢ ✕ ✥ ★ ★ ✁ ✞ ✁ ✁ ✁ ☎ ✆ ✝ ✟ ✁ ✠ ✡ ✂ ✄ ✁ ☎ ☎ ✄ ✥ ✁ ✁ ✂ ✁ ✄ ✁ ✁ ☎ ✂ ✆ ✝ ✞ ✟ ✠ ✡ ✟ ✠ ☎ ✠ ✄ ✟ ✣ ✢ ✄ ✷ ✸ ✒ ✰ Intel Core i7 Memory System Intel Core i7 Memory System Address Translation Example #3 Address Translation Example #3 Processor package Virtual Address: 0x0316 Core x4 Instruction MMU Registers ���� ���� fetch fetch (addr translation) (addr translation) L1 d-cache L1 i-cache L1 d-TLB L1 i-TLB 32 KB, 8-way 32 KB, 8-way 64 entries, 4-way 64 entries, 4-way 128 entries, 4-way 128 entries, 4-way 32 KB, 8-way 32 KB, 8-way ��� ��� L2 unified cache L2 unified TLB VPN ____ TLBI ___ TLBT ____ TLB Hit? __ Page Fault? __ PPN: ____ 256 KB, 8-way 256 KB, 8-way 512 entries, 4-way 512 entries, 4-way To other cores QuickPath interconnect Physical Address 4 links @ 25.6 GB/s each To I/O �� �� �� bridge L3 unified cache DDR3 Memory controller 8 MB, 16-way 3 x 64 bit @ 10.66 GB/s (shared by all cores) 32 GB/s total (shared by all cores) ��� ��� CS 105 Main memory CS 105 – 26 – – 27 – End-to-End Core i7 Address Translation End-to-End Core i7 Address Translation Core i7 Level 1-3 Page Table Entries Core i7 Level 1-3 Page Table Entries 32/64 CPU L2, L3, and Result main memory Virtual address (VA) 36 12 VPN VPO L1 L1 miss hit 32 4 TLBT TLBI L1 d-cache ���������������������������������������������������������������� (64 sets, 8 lines/set) TLB ��� ����������������������������������������������������������� hit ����� ������������������������������������������������������������������������� TLB ... ... miss ����� ��������������������������������������������������������������������������� L1 TLB (16 sets, 4 entries/set) ���� ������������������������������������������������������������������� ���� �������������������������������������������������������������������� 9 9 9 9 40 12 40 6 6 VPN1 VPN2 VPN3 VPN4 PPN PPO CT CI CO ����� ������������������������������������������������������� ������ Physical ���������������������������������� ������������������������������������������������ CR3 address ���������������������������������������������� PTE PTE PTE PTE (PA) ��� ����������������������������������������������������������������������������� CS 105 CS 105 – 28 – – 29 – Page tables

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend