Assume a system with 32-bit pointers and 512-byte blocks. Its cache is 2 MB, excluding metadata. Each memory cell is one byte. (a) How many blocks can be stored in the cache? (b) How many bits is the block offset? (c) Assuming a fully-associative cache, how many bits is the tag?
Assume a system with 32-bit pointers and 512-byte blocks. Its cache is 2 MB, excluding metadata. Each memory cell is one byte. (a) How many blocks can be stored in the cache? (b) How many bits is the block offset? (c) Assuming a fully-associative cache, how many bits is the tag?
Chapter11: Operating Systems
Section: Chapter Questions
Problem 21VE
Related questions
Question
Do not send copied answer. This is warning
![Assume a system with 32-bit pointers and 512-byte
blocks. Its cache is 2 MB, excluding metadata. Each
memory cell is one byte.
(a) How many blocks can be stored in the cache?
(b) How many bits is the block offset?
(c) Assuming a fully-associative cache, how many
bits is the tag?
(d) Assuming a two-way set-associative cache, how
many sets (i.e. rows) are there?
(e) Assuming a two-way set-associative cache, how
many bits is the index (i.e. the component of the
address that indicates the cache row)?
(f) Assuming a two-way set-associative cache, how
many bits is the tag?
(g) Assuming an eight-way set-associative cache,
how many sets are there?
(h) Assuming an eight-way set-associative cache,
how many bits is the index?
(i) Assuming an eight-way set-associative cache,
how many bits is the tag?](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd2a8fcd4-3892-4cbc-afa3-574ba8855dc6%2F8b26e36f-c254-4904-bb1c-96250087aee0%2F4l15hrmw_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Assume a system with 32-bit pointers and 512-byte
blocks. Its cache is 2 MB, excluding metadata. Each
memory cell is one byte.
(a) How many blocks can be stored in the cache?
(b) How many bits is the block offset?
(c) Assuming a fully-associative cache, how many
bits is the tag?
(d) Assuming a two-way set-associative cache, how
many sets (i.e. rows) are there?
(e) Assuming a two-way set-associative cache, how
many bits is the index (i.e. the component of the
address that indicates the cache row)?
(f) Assuming a two-way set-associative cache, how
many bits is the tag?
(g) Assuming an eight-way set-associative cache,
how many sets are there?
(h) Assuming an eight-way set-associative cache,
how many bits is the index?
(i) Assuming an eight-way set-associative cache,
how many bits is the tag?
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 5 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![Enhanced Discovering Computers 2017 (Shelly Cashm…](https://www.bartleby.com/isbn_cover_images/9781305657458/9781305657458_smallCoverImage.gif)
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
![Enhanced Discovering Computers 2017 (Shelly Cashm…](https://www.bartleby.com/isbn_cover_images/9781305657458/9781305657458_smallCoverImage.gif)
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning