Question

4. Media applications that play audio or video files are part of a class of workloads...

4. Media applications that play audio or video files are part of a class of workloads called “streaming” workloads; i.e., they bring in large amounts of data but do not reuse much of it. Consider a video streaming workload that accesses a 512 KiB working set sequentially with the following address stream:

0, 4, 8, 12, 16, 20, ….

  1. Assume a 64 KiB direct-mapped cache with a 32-byte block. What is the miss rate for the address stream above?
  2. Re-compute the miss rate when the cache block size is 16 bytes, 64, bytes, and 128 bytes. What kind of locality this workload exploiting?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

A)If the stream represents byte addresses,the first address(0) will miss and bytes 0:31 will be brought in,making the access to 4,8,12,16,20,24,28 hits.Then 32 will miss and 32:63 will be brought in ....

so the miss rate will be

The misses are compulsory and based only on the access pattern and the block size.

========================================================================

B) Miss rate for 16 bytes is 1/4.

miss rate for 64 bytes is 1/16.

miss rate for 128 bytes is 1/32

The work load exploits spatial locality.

====================================================================

Dear student,If you have any doubt then please comment below so i can clear your doubts or modify the answer.Please upvote the answer if you like it.Thank you

Add a comment
Know the answer?
Add Answer to:
4. Media applications that play audio or video files are part of a class of workloads...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 3. Media applications that play audio or video files are part of a class of workloads...

    3. Media applications that play audio or video files are part of a class of workloads called "streaming" workloads; i.e., they bring in large amounts of data but do not reuse much of it. Consider a video streaming workload that accesses a 2 GB working set sequentially with the following address stream: 0, 8, 16, 24, 32, 40,.... a) Assume a 256 KB direct-mapped cache with a 64-byte block. What is the miss rate for the address stream above? b)...

  • Question 33 10 pts For a direct mapped cache of 4 blocks with a cache block...

    Question 33 10 pts For a direct mapped cache of 4 blocks with a cache block size of 1 byte, in which cache block will each memory location map to? The order of accesses if given by the operation number. Indicate if each access is a hit or a miss, and what the tag value is for each entry. Assume that the cache is initially empty, and the accesses are in order of appearance. REDRAW AND COMPLETE THE CACHE TABLE...

  • A short program loop goes through a 16 kB array one word at a time, reads...

    A short program loop goes through a 16 kB array one word at a time, reads a number from the array, adds a random number, and stores the result in the corresponding entry in another array that is located in the memory immediately following the first array. An outer loop repeats the above operation 100 times. The 64-bit processor, operating at a clock frequency of 4 GHz, is pipelined, has 48 address lines, three levels of caches with a 64...

  • 1a. convert the following decimal number to 32 bit single precision Floating point binary number and...

    1a. convert the following decimal number to 32 bit single precision Floating point binary number and convert that binary number to hexadecimal NUMBER = -134.5 in decimal b. convert the following 32-bit single precision floating point number to decimal: 01000111111100000000000000000000 2. Using Booth's algorithm, multiply the decimal numbers -12 and +13. 3. you have two improvement alternatives, which is better and why? The first one improves 15% of the instructions, and it improves that speed by a factor of 6....

  • 1 Overview The goal of this assignment is to help you understand caches better. You are...

    1 Overview The goal of this assignment is to help you understand caches better. You are required to write a cache simulator using the C programming language. The programs have to run on iLab machines. We are providing real program memory traces as input to your cache simulator. The format and structure of the memory traces are described below. We will not give you improperly formatted files. You can assume all your input files will be in proper format as...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT