Awesome q2a theme
0 votes
59 views
Assume a system with 2-levels of paging with the main memory access time of 100ns, and the cache lookup time of 50ns. Assuming a cache hit rate of 90% and no parallel memory access , what is the average time to read a location from main memory? (in nanoseconds)

the answer mentioned is 180ns and sugested explanation says 3 memory accesses would be required however i got my answer as 60nsec.

can someone please help me with this.
in Operating System by (24 points) | 59 views
0
No,I don't think by default we assume page tables in cache...they should mention it explicitly.
0
I feel that the answer revolves around hierarchical access of memory also no overlapping of operations.

since the question says cannot be accessed parallely it might even mean that the data cannot even be read parallel that is each required word has to be accessed individually, therefore, they might have multiplied it by 3.

which gives us 60*3 as the answer.this is all that i can conclude from all the responses.
0
what is wrong if i compute it this way?

0.9*(50+100) + 0.1*350
+1
Firstly - that is a whole lot of assumptions you are making simply to justify the given answer. Remember - solutions come from concepts. Not concepts from solutions.

Secondly, assuming page tables are cached - 0.9*(50+100) + 0.1*350 - the problem with this is that you are assuming both levels of page table will be available in the cache at all times, or none will be available. Whereas in reality, it is entirely possible for one level of page table to be in cache, and the other level being a cache miss. This solution does not account for that.

Anyway - if you understand the concept, move on to the next one. Don't try to justify the given answer by any means necessary and risk picking up wrong concepts :)
0
thankyou for the response,it really did helped :)

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users 2020 Aug 03 - 09
  1. Mellophi

    98 Points

  2. Ashutosh777

    70 Points

  3. Kushagra गुप्ता

    12 Points

  4. srestha

    11 Points

  5. arjun12

    10 Points

  6. prakhar2810

    8 Points

  7. sdutta

    7 Points

  8. shivarajkumar

    6 Points

  9. kuldeep kumar07

    6 Points

  10. toppoavinash

    6 Points

Weekly Top User (excluding moderators) will get free access to GATE Overflow Test Series for GATE 2021
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.
Top Users Aug 2020
  1. Mellophi

    104 Points

  2. Ashutosh777

    73 Points

  3. Shaik Masthan

    13 Points

  4. srestha

    13 Points

  5. Kushagra गुप्ता

    12 Points

  6. arjun12

    10 Points

  7. Unnayan kumar

    8 Points

  8. prakhar2810

    8 Points

  9. sdutta

    7 Points

  10. Sourav Kar

    7 Points

7,725 questions
1,826 answers
11,148 comments
95,095 users