A desktop computer uses conventional volatile processor registers, cache and RAM, plus a solid-state drive (SSD). All power is removed, and there is no backup power or automatic saving. Which statements about data retention are correct? Select all that apply.
A document version saved on the SSD can remain after power is removed.
Loading a saved file into RAM makes its existing SSD copy become volatile.
Unsaved document edits held only in RAM are lost when power is removed.
Copies held in processor cache preserve the RAM contents after power is removed.
Unlock full course notes by signing up
Average Read Time with One Cache
A processor checks its cache for every read request, taking 3 ns. The cache hit rate is 90%. A miss requires an additional 60 ns to fetch the requested data from main memory after the cache lookup finishes. Assume requests do not overlap and ignore all other delays. Calculate the mean time per read request in ns, to one decimal place.
Address Width and Word Width
Three independent memories use every possible combination of their binary address inputs. In each memory, a word is the complete group of bits selected by one address. Each address selects a different word, and no locations are reserved.
Complete the table with the number of addressable locations and the total capacity in KiB. Use exact integers. One byte contains eight bits.
Splitting a Cache Address
A processor uses 18-bit byte addresses and a direct-mapped cache, in which each memory block has exactly one permitted cache line. The cache has 16 lines, numbered 0 through 15. Each line holds one 32-byte block.
Memory blocks are numbered from zero: block 0 contains byte addresses 0 through 31, block 1 contains addresses 32 through 63, and so on. Consecutive blocks map cyclically to cache lines 0 through 15. The tag is the remaining upper portion of the address after the line-index and byte-offset bits are removed.
For decimal byte address 13228, find the permitted cache line index, the byte offset within its block in bytes, and the tag value. Give all three answers as exact decimal integers. Determine the mapping regardless of whether the block is currently cached.
A Larger but Slower Second-Level Cache
An engineering team is comparing two designs for a processor's memory hierarchy. Every read checks the first-level cache, L1, in 1 ns. L1 serves 80% of all reads. Reads that miss L1 then check the second-level cache, L2. A read that also misses L2 requires an additional 80 ns from main memory.
The current L2 lookup takes 6 ns and serves 75% of the reads that reach it. A proposed larger L2 would take 10 ns per lookup and serve 90% of the reads that reach it. Assume the L1 hit rate remains 80%, all accesses occur sequentially without overlap, and no other delays apply.
Calculate the mean time per read for the current design and the proposed design. Give both answers in ns, to one decimal place.