Compute the number of pages in the virtual address space

Assignment Help Computer Engineering
Reference no: EM131006195

Question 1. Virtual Memory

Suppose we have a 32-bit virtual address space with a page size of 8K, and 4 bytes per page table entry.

1) Compute the number of pages in the virtual address space?

2) What is the maximum size of addressable physical memory in this system?

3) If the average process size is 8GB, would you use a one-level, two-level, or three-level page table? Why?

Question 2. Cache Coherence Transactions

Assume that you have the following multiprocessor system configuration:

• 4 CPU Cores (C0, C1, C2, and C3)
• MESI coherence protocol
• Each core has a 32 KB private L1 Cache (2-way set-associative, uses write-back scheme, with a 64 byte cacheline)
• Shared L2 between all cores (512 KB cache, 8-way set-associative, with a 64 byte cacheline)

Given the following sequence of memory accesses, write the state of each cacheline accessed in the respective core's L1 cache.

Hint: C0 performs a Load operation on address 0x00ffabc0. There will be a miss at both L1 and L2 (due to a cold cache). The requested cache line is fetched from DRAM and mapped to L2 and then on to L1. Thus, this access causes the cacheline to have an Exclusive (E) state in C0.

 

 

Core

Request Type

 

Address

C0 L1

State

C1 L1

State

C2 L1

State

C3 L1

State

1

0

Load

0x00ffabc0

E

-

-

-

2

0

Store

0x00ffabc8

 

3

1

Load

0x00ffabd4

4

1

Store

0x00ffabd8

5

1

Load

0x00afabc0

6

2

Load

0x00afabc8

7

1

Load

0x00bfabf0

8

0

Load

0x00ffabc0

Question 3. Paging

Assume we have a processor that support virtual memory with 4KB page size. The proces- sor uses one page table per program to track the mapping of virtual addresses to physical addresses, and has 28-bit virtual address. Assume we have 4-entry fully associative TLB, with the content specified in table below.

 

Valid

 

Tag

Physical Address

0

0x10

0x11

1

0xF

0x1F

1

0x3

0x13

1

0x6

0x16

Assume we start with the following series of accesses: 0x6D10, 0x9000, 0xF200, 0xF800, 0x8800, 0x0000, 0x3100

Also assume the following page table content:

 

Index

 

Valid

Physical Mapping

0

0

disk

1

1

0x11

2

1

0x12

3

1

0x13

4

0

disk

5

0

disk

6

1

0x16

7

1

0x17

8

1

0x18

9

0

disk

A

0

disk

B

0

disk

C

0

disk

D

0

disk

E

0

disk

F

1

0x1F

A. A Program Table Entries

Assume each entry in page table is 4-bytes. How many entries does the processor need to have in the page table for each program, and what is the total page table size? How about if the processor supports 16KB page size?

B TLB and Page Table States

Given the address sequence and the initial state of TLB and page table, what would be the final state of the TLB and page table? Assume ideal LRU replacement for the TLB. Specify what accesses hit on TLB, what addresses hit on page table, and what addresses are page fault.

C Two-Way Set-Associative TLB

Assume the TLB is 2-way set-associative instead of fully-associative. Given the address sequence and the initial state of TLB and page table, what would be the final state of the TLB and page table? Assume ideal LRU replacement for the TLB. Specify what accesses hit on TLB, what addresses hit on page table, and what addresses are page fault.

D Direct-Mapped TLB

Assume the TLB is direct-mapped instead of fully-associative. Given the address sequence and the initial state of TLB and page table, what would be the final state of the TLB and page table? Assume ideal LRU replacement for the TLB. Specify what accesses hit on TLB, what addresses hit on page table, and what addresses are page fault.

E Initial TLB and Page Table state

Assume the processor supports 16KB page size. Update the initial TLB state. Note that with 16KB page size, more bits are used for page offset, and less bits are used for tag in the TLB or for index in page table. Also note that TLB cannot have a entry which does not exist in the page table.

F Final TLB state

This question depends on the the results from part E. We are continuing on the assumption that the processor supports 16KB page size. What would be the state of TLB and Page table after running the given address sequence?

Discuss the advantages and disadvantages of a larger page size.

Reference no: EM131006195

Questions Cloud

Find how fast the shadow of the ball is moving : A ball is dropped from a point 4 m away from the pole. Find how Fast the shadow of the ball is moving when the ball is 2 m above the ground and moving at a speed of 9 m/sec.
Current environmental issue on freshwater pollution : Research and write a paper discussing the current environmental issue on Freshwater Pollution in Lake Victoria(Africa).
Develop a pricing strategy for the charity fair : Research charity and community fair opportunities for Olive Crest nonprofit to increase involvement in the Las Vegas community. Detail the steps involved in holding/service a charity fair or community fairs for Olive Crest. What type vendors, locatio..
Give a correct proof of the given claim : Consider the following proof of this claim: Let f(x) = 2 tan x - 3x. Then f(π/3) = 2√3 - π > 0 and f(π) = -3 π
Compute the number of pages in the virtual address space : Compute the number of pages in the virtual address space and what is the maximum size of addressable physical memory in this system?
Compare and contrast religion with science from sociological : Compare and contrast religion with science from a sociological viewpoint.Is science just another form of religion, with people like physicist Stephen Hawking among its high priests or mullah?Are science and religions simply both similar social constr..
What were the characteristics of each test : Review three to five A/B tests or multivariate tests from this website and in a 1 - 2 page paper, respond to the following: What were the characteristics of each test? In your opinion, which test stood out the most
Request to a hotel desk for room reservation : Assuming that a guest sends a request to a hotel desk for room reservation, draw a context diagram. Also consider the restaurant and hotel management in the diagram.
Problem regarding the clothing shack : The Clothing Shack is an online retailer of men's, women's, and children's clothing. The company has been in business for four years and makes a modest profit from its online sales. However, in an effort to compete successfully against online reta..

Reviews

Write a Review

Computer Engineering Questions & Answers

  A brief explanation of how the game was integrated

A brief explanation of how the game was integrated with the concepts of computing, if the game already exists. Three scenarios of game play including

  What is the syntax of the if statement

Find BNF OR EBNF grammars for Ada(available on the web). What is the syntax of the IF statement? Write a legal Ada if statement that look at the integer variables a and b.

  Definition of method dashedline

Write down the definition of the method dashedLine , with one parameter, an int. If parameter is negative or zero, method does nothing.

  Save the punch in or punch out date

Display an input field called "Choice" to input one of the four options - Inputting an incorrect option shall display a prompt indicating that the input was invalid and to try again.

  Questionassume that a risc machine uses five register

questionassume that a risc machine uses five register windows.a how deep can process calls go before registers must be

  Describe the challenges that result from continual change

challenges as a result of continual change of technology1. describe the challenges that result from continual change of

  How to deal with such issues

Whilst group synergy is good phenomenon to observe in action, the converse is sometimes just alike  to occur with work teams (virtual or otherwise). That is, teams might sometimes have disruptive or non-cooperative members who impair performance.

  Discuss the relationships and implementation differences

Discuss the relationships and implementation differences among: reference monitor concept, Trusted Computing Platform Architecture (TCPA), and Microsoft Next Generation Secure Computing Base (formerly known as Palladium project and partly implemen..

  The document must be complete and demonstrate that you can

this is an individual project. using the case study below develop a 3 - 5 page paper that is well organized and

  Questionselect any one model related to information

questionselect any one model related to information management in support of digital firm.research and cite at least

  Rea modelling and rea diagrams

REA is an acronym for Entities, Resources, and Agents. REA data modelling does not involve the traditional accounting elements like ledgers, chart of accounts, debits and credits.

  Compare and contrast the software development process

question 1 take a position on the idea that software development is either a creation process or a manufacturing

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd