subject

Consider the following computation: float A[1024] [1024], B[1024] [1024], C[1024][1024]; for (i=0; i<1024; i++) for (j=0; j<1024; j++) C[i][j] 0.5*(A[i][j] +B[j][i]); = Consider a processor with a cache with capacity of 1 Mbytes (i. e., 1024 x 1024 bytes) and linesize of 64 bytes. Assume that each element occupies 4 bytes. For each part below, perform cache miss analysis for each array independently, without considering the actual interleaved accesses to the elements. (a) [10 pts) Compute the number of cache misses for A, B, C, assuming a direct- mapped cache.
(b) [10 pts] Compute the total number of cache misses for A, B, C, assuming a fully associative cache.
(c) [10 pts] Compute the total number of cache misses, assuming a 4-way set- associative cache.
(d) [10 pts] What is the minimum additional capacity that must be added (keeping total capacity as a perfect power of 2) to the above direct-mapped cache (linesize stays as 64 bytes) in order that the number of cache misses for B becomes equal to the number of cache misses for A?
(e) [10 pts] What is the minimum degree of associativity required (linesize = 64, total capacity is 1 Mbyte, and associativity is a power of 2) for the number of cache misses for B to equal the number of cache misses for A?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:30
How can you know if the person or organization providing the information has the credentials and knowledge to speak on this topic? one clue is the type of web site it is--the domain name ".org" tells you that this site is run by a nonprofit organization.
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 24.06.2019 06:50
What are the things you are considering before uploading photos on social media?
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
You know the right answer?
Consider the following computation: float A[1024] [1024], B[1024] [1024], C[1024][1024]; for (i=0; i...
Questions
question
Mathematics, 18.08.2019 12:00