CSE 410 Homework 3: Cache Organization and Indexing

Assigned Wednesday, November 20, 2013
Due Date Tuesday, November 26 at 11:00 pm

Introduction

The purpose of written homework assignments is to get you thinking about the topics being covered in lecture and in readings in the textbook which are not represented in the hands-on, programming lab assignments. These written assignments also better prepare you for course examinations. It is worth noting that the book contains many practice problems similar to the problems we ask on these written assignments. The solutions for those practice problems are located at the end of each chapter and should give you a feel for the kind of answers we expect you to turn in for these kind of assignments.

Logistics

Please write up your answers and submit them as a PDF file in the online dropbox. This simplifies our grading and ensures we read your answers clearly. If you don't know how to create a PDF, a quick internet search should help, or ask us. You may submit a scanned file with a hand-written solution as long as the file is legible and is not too large (a few MB max, please).

We will provide solutions to all of the problems in the written homework assignments in a timely fashion after the assignment is due. This may be several days after the due date, in general, because a student may use up to 2 late days on an assignment.

Questions

Answer the following problems from the textbook. If a practice problem is listed, try to solve the problem on your own first, then check your answer at the end of the chapter. Make sure you understand the solution provided, then complete the additional questions below. Your write-up only needs to contain the information necessary to understand your answer to the additional questions - you do NOT need to turn in the answer to the practice problem in its entirety.

  1. Practice Problem 6.10. Repeat this problem for the following two real caches: Intel Xeon L1 data cache: m = 38, C = 32768, B = 64, E = 8. AMD Opteron 6168 L2 unified cache: m = 48, C = 524288, B = 64, E = 16.
  2. Practice Problems 6.12-6.17. (Nothing required for turn-in. These questions provide background for later ones.)
  3. Practice Problem 6.19. Repeat for an algae struct that has 4 integer fields instead of 2.
  4. Homework Problem 6.27.
  5. Homework Problem 6.29. Be sure to review and completely understand Practice Problems 6.13 - 6.17 before working on this problem.
  6. Homework Problem 6.30. Be sure to review and completely understand Practice Problems 6.13 - 6.17 before working on this problem.
  7. Homework Problem 6.37 (A, C, D, E)

Notes

Be sure you are using the 2nd edition of Computer Systems: A Programmer's Perspective. If you're not using the right book, you might be doing the wrong problems!

Submitting Your Work

Please submit a PDF file with your solutions using the Catalyst drop box linked from the CSE 410 main web page.