Exam 5: Large and Fast
Exam 1: Computer Abstractions and Technology13 Questions
Exam 2: Instructions12 Questions
Exam 3: Arithmetic for Computers12 Questions
Exam 4: The Processor21 Questions
Exam 5: Large and Fast33 Questions
Exam 6: Storage and Other Io Topics17 Questions
Exam 7: Multicores, Multiprocessors, and Clusters11 Questions
Select questions type
This question covers virtual memory access. Assume a 5-bit virtual address and a memory system that uses 4 bytes per page. The physical memory has 16 bytes (four page frames). The page table used is a one-level scheme that can be found in memory at the PTBR location. Initially the table indicates that no virtual pages have been mapped. Implementing a LRU page replacement algorithm, show the contents of physical memory after the following virtual accesses: 10100, 01000, 00011, 01011, 01011,11111. Show the contents of memory and the page table information after each access successfully completes in figures that follow. Also indicate when a page fault occurs. Each page table entry (PTE) is 1 byte.






(Essay)
4.8/5
(33)
Cache performance is of less importance in faster processors because the processor speed compensates for the high memory access time.
(True/False)
4.9/5
(35)
What needs to be stored in a branch target buffer in order to eliminate the branch penalty for an unconditional branch?
(a) Address of branch target
(b) Address of branch target and branch prediction
(c) Instruction at branch target.
(Essay)
4.8/5
(37)
The Average Memory Access Time equation (AMAT) has three components: hit time, miss rate, and miss penalty. For each of the following cache optimizations, indicate which component of the AMAT equation is improved.
Using a second-level cache
Using a direct-mapped cache
Using a 4-way set-associative cache
Using a virtually-addressed cache
Performing hardware pre-fetching using stream buffers
Using a non-blocking cache
Using larger blocks
(Essay)
4.8/5
(40)
A virtual cache access time is always faster than that of a physical cache?
(True/False)
4.9/5
(31)
Both DRAM and SRAM must be refreshed periodically using a dummy read/write operation.
(True/False)
4.7/5
(41)
Invalidation vs. Update-based Protocols.
(a) As miss latencies increase, does an update protocol become more or less preferable to an invalidation-based protocol? Explain.
(b) In a multilevel cache hierarchy, would you propagate updates all the way to the first-level cache or only to the second-level cache? Explain the trade-offs.
(Essay)
4.7/5
(42)
Describe the general characteristics of a program that would exhibit very little temporal and spatial locality with regard to instruction fetches. Provide an example of such a program (pseudo- code is fine). Also, describe the cache effects of excessive unrolling. Use the terms static instructions and dynamic instructions in your description.
(Essay)
4.9/5
(41)
a. What are the two characteristics of program memory accesses that caches exploit?
b. What are three types of cache misses?
c. Design a 128KB direct-mapped data cache that uses a 32-bit address and 16 bytes per block. Calculate the following: (a)How many bits are used for the byte offset?
(b)How many bits are used for the set (index) field? (c) How many bits are used for the tag?
(Essay)
4.9/5
(27)
Write the formula for the average memory access time assuming one level of cache memory:
(Essay)
4.9/5
(40)
Memory interleaving is a technique for reducing memory access time through increased bandwidth utilization of the data bus.
(True/False)
4.9/5
(26)
Rather than a two-level page table, what other page table architecture could be used to reduce the memory foot print of page tables for the 64-bit address space from the last question? Assume that you do not need to map the full address space, but some small fraction (people typically do not have 264 bytes of physical memory). However, you should assume that the virtual pages that are mapped are uniformly distributed across the virtual address space (i.e. it is not only the low addresses or high addresses that are mapped, but rather a few pages from all ranges of memory).
(Essay)
4.9/5
(32)
The memory architecture of a machine X is summarized in the following table.
(a) Assume that there are 8 bits reserved for the operating system functions (protection, replacement, valid, modified, and Hit/Miss- All overhead bits) other than required by the hardware translation algorithm. Derive the largest physical memory size (in bytes) allowed by this PTE format. Make sure you consider all the fields required by the translation algorithm.
(b) How large (in bytes) is the page table?
(c) Assuming 1 application exists in the system and the maximum physical memory is devoted to the process, how much physical space (in bytes) is there for the application's data and code.

(Essay)
4.8/5
(46)
Showing 21 - 33 of 33
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)