What is Non-blocking cache?
A cache that keeps servicing other accesses while a miss is outstanding. It can handle multiple misses at once, overlapping and hiding memory latency.
Japanese name: ノンブロッキングキャッシュ
A cache that keeps servicing other accesses while a miss is outstanding. It can handle multiple misses at once, overlapping and hiding memory latency.
Japanese name: ノンブロッキングキャッシュ
A simple cache accepts no other accesses after a miss until the data arrives. Data can take several hundred processor clock cycles to arrive from memory. A processor that executes instructions out of order can carry on with later, unrelated instructions while the instruction that missed is waiting. For this, the cache must remain usable during the wait. A cache that allows this is a non-blocking cache.
It has dedicated buffers that record the misses in progress: which line is being requested and which instructions are waiting for that data. When another miss on the same line arrives, no new request is issued; it is merged into the same record. The number of these buffers is the upper limit on how many misses can be handled at once. When all the buffers are full, a new miss waits until one is free. Even while misses are being handled, accesses to data already in the cache are answered as usual.
When unrelated misses overlap, their waiting times overlap too. If one miss takes 100 ns, four misses handled one after another take 400 ns, but handled simultaneously they take about 100 ns. Reading an array in order allows misses to overlap because the next address is known in advance. Following pointers is different. The next address is inside the data read previously, so the misses can only be waited for one at a time. This is one reason traversing a linked list tends to be slow.
Answer: C. Miss latencies overlap, and hits proceed meanwhile
In a blocking cache, every subsequent access waits until a miss is serviced. A non-blocking cache keeps miss information in dedicated registers (MSHRs), so it can return hits during a miss and send other misses to memory at the same time. This overlaps and hides latency, but the number of misses is unchanged, as is the time to read one miss from memory. It pays off in combination with out-of-order execution.
A new miss waits until one of the buffers is free. The number of misses that can overlap is limited to the number of buffers.
Yes. Prefetches also issue their requests to memory through the same mechanism.
As an Amazon Associate I earn from qualifying purchases.
This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.