Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Madeeasy workbook, chapter: Memory management
Gaurav Padole
asked
in
Operating System
Dec 29, 2022
retagged
Dec 30, 2022
by
Lakshman Bhaiya
662
views
0
votes
0
votes
Consider a k-level paging system along with a TLB. A TLB takes 10ns, and a memory takes 100ns on average. The hit ratio of TLB is equal to 0.8. If it is known that the average memory access time is 70ns, then the value of k is?
operating-system
paging
translation-lookaside-buffer
memory-management
made-easy-booklet
Gaurav Padole
asked
in
Operating System
Dec 29, 2022
retagged
Dec 30, 2022
by
Lakshman Bhaiya
by
Gaurav Padole
662
views
answer
comment
Follow
share this
share
4 Comments
by
Kabir5454
commented
Dec 29, 2022
reply
Follow
share this
K will be 2 .
$10+0.2*(k+1)*100=70$
So ,$k=2$
0
0
by
Gaurav Padole
commented
Dec 30, 2022
reply
Follow
share this
why will it be (k+1) and not k?
the question is asking for k-level no?
0
0
by
Kabir5454
commented
Dec 30, 2022
reply
Follow
share this
(k+1) because say you have k level page table so , you will look up in each k page table which reside in memory. So k*memory access time it will take. Now from the last page table (k'th) you will get the address of the memory location where actual data reside . For which you need one more extra memory access.
So total memory access needed
=K* memory access time+memory access time
=(K+1) memory access time
0
0
by
Gaurav Padole
commented
Dec 31, 2022
reply
Follow
share this
ok i got it thanks
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
0
votes
TLB = t = 10ns
Memory time = m = 100ns
Hit ratio (tlb) = p = 0.8
Miss ratio = 1 – p = 0.2
Let assume there are k level for checking :
then formula for the Effective time calculation :
T effective = p( t + m ) + (1-p)(t + km + m )
T effective = pt + pm + t + km – pt – pkm + m – mp → t +m(k+1) ( 1-p)
Now , we only put the value in te formula :
T effective = t + (1-p) m (k+1)
70 = 10 + ( 1 – 0.8) * (k+1)* 100
60 = 0.2 * (k+1) * 100
60 = 20 *(k+1)
k = 3 – 1 = 2
ANSWER IS 2 LEVEL WILL REQUIRE :)
Shikhar.
answered
Mar 4, 2023
by
Shikhar.
comment
Follow
share this
0 Comments
Please
log in
or
register
to add a comment.
← Previous
Next →
← Previous in category
Next in category →
Related questions
1
vote
1
vote
1
answer
1
Soumya Tiwari
asked
in
Operating System
Dec 2, 2018
1,147
views
MadeEasy Workbook: Operating System - Memory Management
Consider the following sequence: Process P1 of size 7k loaded Process P2 of size 4k loaded Process P1 is terminated and space is returned Process P3 of size 3k loaded Process P4 of size 6k loaded If a system has 16KB memory and buddy system ... much space is wasted due to internal fragmentation? (Assume frame size is 1K). A 1K B 2K C 3K D NONE
Soumya Tiwari
asked
in
Operating System
Dec 2, 2018
by
Soumya Tiwari
1.1k
views
operating-system
memory-management
made-easy-booklet
1
vote
1
vote
2
answers
2
Na462
asked
in
Operating System
Jul 18, 2018
1,740
views
Virtual Memory
Which of the following is true? A. If the page size increases page fault rate may also increase. B. Multi-level paging optimizes program execution time. C. Dynamic linking increases program execution time.Correct Option D. TLB is a software data structure.
Na462
asked
in
Operating System
Jul 18, 2018
by
Na462
1.7k
views
virtual-memory
operating-system
memory-management
paging
translation-lookaside-buffer
2
votes
2
votes
2
answers
3
admin
asked
in
Operating System
Mar 30, 2020
1,192
views
NIELIT 2017 July Scientist B (CS) - Section B: 32
A CPU generates $32$-bit virtual addresses. The page size is $4$ KB. The processor has a Translation Look-aside Buffer (TLB) which can hold a total of $128$ page table entries and is $4$-way set associative. The minimum size of the TLB tag is $\text{11 bits}$ $\text{13 bits}$ $\text{15 bits}$ $\text{20 bits}$
admin
asked
in
Operating System
Mar 30, 2020
by
admin
1.2k
views
nielit2017july-scientistb-cs
operating-system
memory-management
paging
translation-lookaside-buffer
0
votes
0
votes
0
answers
4
admin
asked
in
Operating System
Oct 26, 2019
356
views
Andrew S. Tanenbaum (OS) Edition 4 Exercise 3 Question 55 (Page No. 261 - 262)
Write a program that can be used to compare the effectiveness of adding a tag field to $TLB$ entries when control is toggled between two programs. The tag field is used to effectively label each entry with the ... for a simple (but nontrivial) input example. Plot the number of $TLB$ updates per $1000$ references.
admin
asked
in
Operating System
Oct 26, 2019
by
admin
356
views
tanenbaum
operating-system
memory-management
paging
translation-lookaside-buffer
descriptive
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
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
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy