Homework 3: Cache Organization and Indexing

Assigned Thursday, May 8, 2014
Due Date Friday, May 16, 2014 at 5:00pm
Submissions Submit a PDF of your solutions here.

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

Since these written homeworks are not programming lab assignments, you will turn in your assignment online as electronic documents in PDF format. We will not accept any paper submissions.

Grading

Same rules as for homework #1

We will provide solutions to all of the problems in the written homework assignments in a timely fashion after the assignment is due. Since the late policy affords you a maximum of three late days, we cannot release solutions until the Wednesday following the assignment's due date, at the earliest.

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 Problem 6.12. Explain why it is NOT a good idea to use the high-order bits of the address as the set index.
  3. Practice Problems 6.13-6.17. (Nothing required for turn-in.)
  4. Practice Problem 6.19. Repeat for an algae struct that has 4 integer fields instead of 2.
  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.

Notes

Make 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 turn in a PDF file containing your answers to the Catalyst Drop Box for this assignment. We will not accept submissions that are not in PDF format.