Consider a paging system with the page table stored in memory. 80 percent of all page-table references are found in the TLBS. We assume that a memory reference takes 300 ns and finding a page-table entry in the TLBS takes 50 ns. What is the effective access time?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
**Title: Calculating Effective Access Time in a Paging System**

**Text:**

Consider a paging system with the page table stored in memory. 80 percent of all page-table references are found in the TLBs (Translation Lookaside Buffers). We assume that a memory reference takes 300 nanoseconds (ns) and finding a page-table entry in the TLBs takes 50 ns. What is the effective access time?

**Explanation:**

In this paging system, TLBs play a crucial role in speeding up memory access. Here's a breakdown of the process and calculations:

1. **TLB Hit Ratio:** 
   - 80% of the time, the required page-table entry is found in the TLB. This event is referred to as a "TLB hit."

2. **TLB Miss Ratio:** 
   - 20% of the time, the page-table entry is not found in the TLB, leading to a "TLB miss."

3. **Access Times:**
   - **TLB Hit:** The time taken is the time to access the TLB (50 ns) plus the time to access memory (300 ns), totaling 350 ns.
   - **TLB Miss:** The time involves accessing the TLB (50 ns), failing to find the entry (another 300 ns to access memory for the page table), and then another memory reference (300 ns) to access the actual desired data. In total, this equals 650 ns.

4. **Effective Access Time Calculation:**
   - Effective Access Time (EAT) can be calculated using the formula:
     \[
     EAT = ( \text{TLB Hit Ratio} \times \text{Time on TLB Hit} ) + ( \text{TLB Miss Ratio} \times \text{Time on TLB Miss} )
     \]

   - Substituting the values:
     \[
     EAT = (0.8 \times 350) + (0.2 \times 650)
     \]

   - Calculating it:
     \[
     EAT = 280 + 130 = 410 \text{ ns}
     \]

The effective access time for this system is 410 nanoseconds. This calculation demonstrates the importance of TLBs in reducing effective memory access time in paging systems.
Transcribed Image Text:**Title: Calculating Effective Access Time in a Paging System** **Text:** Consider a paging system with the page table stored in memory. 80 percent of all page-table references are found in the TLBs (Translation Lookaside Buffers). We assume that a memory reference takes 300 nanoseconds (ns) and finding a page-table entry in the TLBs takes 50 ns. What is the effective access time? **Explanation:** In this paging system, TLBs play a crucial role in speeding up memory access. Here's a breakdown of the process and calculations: 1. **TLB Hit Ratio:** - 80% of the time, the required page-table entry is found in the TLB. This event is referred to as a "TLB hit." 2. **TLB Miss Ratio:** - 20% of the time, the page-table entry is not found in the TLB, leading to a "TLB miss." 3. **Access Times:** - **TLB Hit:** The time taken is the time to access the TLB (50 ns) plus the time to access memory (300 ns), totaling 350 ns. - **TLB Miss:** The time involves accessing the TLB (50 ns), failing to find the entry (another 300 ns to access memory for the page table), and then another memory reference (300 ns) to access the actual desired data. In total, this equals 650 ns. 4. **Effective Access Time Calculation:** - Effective Access Time (EAT) can be calculated using the formula: \[ EAT = ( \text{TLB Hit Ratio} \times \text{Time on TLB Hit} ) + ( \text{TLB Miss Ratio} \times \text{Time on TLB Miss} ) \] - Substituting the values: \[ EAT = (0.8 \times 350) + (0.2 \times 650) \] - Calculating it: \[ EAT = 280 + 130 = 410 \text{ ns} \] The effective access time for this system is 410 nanoseconds. This calculation demonstrates the importance of TLBs in reducing effective memory access time in paging systems.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education