Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider a system with a two-level paging sch... Start Learning for Free
Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?
  • a)
    645 nanoseconds
  • b)
    1050 nanoseconds
  • c)
    1215 nanoseconds
  • d)
    1230 nanoseconds
Correct answer is option 'D'. Can you explain this answer?
Verified Answer
Consider a system with a two-level paging scheme in which a regular me...
Please note that page fault rate is given one page fault per 10,000 instructions. Since there are two memory accesses per instruction, so we need double address translation time for average instruction execution time. Also, there are 2 page table accessed if TLB miss occurred. TLB access assumed as 0. Therefore, Average Instruction execution time = Average CPU execution time + Average time for getting data(instruction operands from memory for each instruction) = Average CPU execution time + Average address translation time for each instruction + Average memory fetch time for each instruction + Average page fault time for each instruction = 100 + 2×(0.9×(0)+0.1×(2×150)) + 2×150 + 1 /10000 × 8 × 106 = 100 + 60 + 300 + 800 = 1260 ns So, none option is correct.
View all questions of this test
Most Upvoted Answer
Consider a system with a two-level paging scheme in which a regular me...
Understanding the Problem
To find the effective average instruction execution time, we need to consider the different scenarios that can occur during memory accesses, including TLB hits, TLB misses, and page faults.
Parameters Given
- Regular memory access time: 150 ns
- Page fault servicing time: 8 ms (or 8,000,000 ns)
- Average instruction time: 100 ns
- Memory accesses per instruction: 2
- TLB hit ratio: 90% (0.9)
- Page fault rate: 1 in 10,000 instructions (0.0001)
Calculating Effective Instruction Execution Time
1. TLB Hit Scenario:
- TLB hit time: 2 accesses x 150 ns = 300 ns
- Total time for TLB hit instruction: 100 ns (instruction) + 300 ns (memory) = 400 ns
2. TLB Miss Scenario:
- TLB miss time: 2 accesses x 150 ns + 150 ns (for page table access) = 450 ns
- Total time for TLB miss instruction: 100 ns + 450 ns = 550 ns
3. Page Fault Scenario:
- Page fault time: 8,000,000 ns
- Total time for page fault instruction: 100 ns + 8,000,000 ns = 8,000,100 ns
Calculating Average Execution Time
Using the probabilities:
- TLB hit: 0.9
- TLB miss: 0.1 (1 - TLB hit ratio)
- Page fault: 0.0001 (1 in 10,000)
Let’s calculate the effective average time:
- TLB hit contribution: 0.9 * 400 ns = 360 ns
- TLB miss contribution: 0.1 * 550 ns = 55 ns
- Page fault contribution: 0.0001 * 8,000,100 ns = 800 ns
Final Calculation
Effective average instruction execution time = 360 ns + 55 ns + 800 ns = 1215 ns.
Thus, the correct answer is option 'D' - 1230 nanoseconds.
Explore Courses for Computer Science Engineering (CSE) exam

Similar Computer Science Engineering (CSE) Doubts

Top Courses for Computer Science Engineering (CSE)

Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer?
Question Description
Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer?.
Solutions for Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer?, a detailed solution for Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer? has been provided alongside types of Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider a system with a two-level paging scheme in which a regular memory access takes 150 nanoseconds, and servicing a page fault takes 8 milliseconds. An average instruction takes 100 nanoseconds of CPU time, and two memory accesses. The TLB hit ratio is 90%, and the page fault rate is one in every 10,000 instructions. What is the effective average instruction execution time?a)645 nanosecondsb)1050 nanosecondsc)1215 nanosecondsd)1230 nanosecondsCorrect answer is option 'D'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev