Docsity

Memory Reference Times in a Segmented Paging System with TLB - Prof. Arup Guha, Study notes of Computer Science

Toggle sidebar
bg1
CIS 3360 โ€“ Security in Computing
Spring 2016
Homework 2.4 (50 points)
12) [10+20] Consider a segmented paging system with the segment table and the page
table within a segment stored in memory. First part of the address is segment number,
second part is the page number within a segment and the third part is the offset within
a page.
a) If a memory reference takes 200 nanoseconds, how long does a segmented page
memory reference take?
In a segmented paged memory reference scheme, system will look at the
segment table first and make a segment reference, which takes 200
nanoseconds. Then a second look up on the page reference is made, which
takes 200 nanoseconds as well. The word access in physical memory takes
another 200 nanoseconds. So a paged memory reference takes overall
200+200+200=600 nanoseconds.
b) If we add Translation Lookaside Buffer (TLB), and 80% of all memory references
are found in the TLB, what is the effective memory reference time in each case?
(Assume that finding a segmented page-table entry in the TLBs takes zero time, if
the entry is there. Otherwise memory tables must be searched to determine the
physical address. )
Case 1: TLB hit:
When the segmented page address entry is found in TLB, the memory
address lookup in the TLB needs 0 nanosecond and thus a memory reference
takes 100 nanoseconds.
Case 2: TLB miss:
When the segmented page-table entry is not in the TLB, a memory reference
takes 100+100+100=300 nanoseconds.
So, effective memory reference time:
(Hit ratio * memory reference time on TLB hit) + (Miss ratio * memory
reference time on TLB Miss)
=80%*200 + 20%*600 = 280 nanoseconds
13) [20] In multiprogramming operating system (OS), objects are shared by users. These
sharing can be managed by the OS in a centralized access control list. Describe a
possible implementation of centralized access control list with an example five
objects( OB-1, OB-2, OB-3, OB-4, and OB-5 ), eight users (USR-1, USR-2, USR-3,
USR-4, USR-5, USR-6, USR-7, and USR-8) where each user has some access rights
to at least three objects. Each object is owned by one user only. You can arbitrarily
assign access rights of users to objects, but these access rights should be logical. (You
can draw diagram and explain how it works). [see lecture on OS Security]
pf2

Partial preview of the text

Download Memory Reference Times in a Segmented Paging System with TLB - Prof. Arup Guha and more Study notes Computer Science in PDF only on Docsity!

CIS 3360 โ€“ Security in Computing Spring 2016 Homework 2.4 (50 points)

  1. [10+20] Consider a segmented paging system with the segment table and the page table within a segment stored in memory. First part of the address is segment number, second part is the page number within a segment and the third part is the offset within a page.

a) If a memory reference takes 200 nanoseconds, how long does a segmented page memory reference take?

In a segmented paged memory reference scheme, system will look at the segment table first and make a segment reference, which takes 200 nanoseconds. Then a second look up on the page reference is made, which takes 200 nanoseconds as well. The word access in physical memory takes another 200 nanoseconds. So a paged memory reference takes overall 200+200+200=600 nanoseconds.

b) If we add Translation Lookaside Buffer (TLB), and 80% of all memory references are found in the TLB, what is the effective memory reference time in each case? (Assume that finding a segmented page-table entry in the TLBs takes zero time, if the entry is there. Otherwise memory tables must be searched to determine the physical address. )

Case 1: TLB hit: When the segmented page address entry is found in TLB, the memory address lookup in the TLB needs 0 nanosecond and thus a memory reference takes 100 nanoseconds. Case 2: TLB miss: When the segmented page-table entry is not in the TLB, a memory reference takes 100+100+100=300 nanoseconds. So, effective memory reference time: (Hit ratio * memory reference time on TLB hit) + (Miss ratio * memory reference time on TLB Miss) =80%200 + 20%600 = 280 nanoseconds

  1. [20] In multiprogramming operating system (OS), objects are shared by users. These sharing can be managed by the OS in a centralized access control list. Describe a possible implementation of centralized access control list with an example five objects( OB-1, OB-2, OB-3, OB-4, and OB-5 ), eight users (USR-1, USR-2, USR-3, USR-4, USR-5, USR-6, USR-7, and USR-8) where each user has some access rights to at least three objects. Each object is owned by one user only. You can arbitrarily assign access rights of users to objects, but these access rights should be logical. (You can draw diagram and explain how it works). [see lecture on OS Security]

Each object has a list that shows all users who have access to the object and what kind of access they have.