Nova Patents
EP0082949A2

Hybrid cache control.

Abstract

In a cache storage system a sharing (SH) flag is provided with each line representation in the cache directory to uniquely indicate for each cache line whether it is to be handled as a store-in-cache (SIC) line when its SH flag is in non-sharing state, and as a store-through (ST) cache line when its SH flag is in sharing state. At any time the hybrid cache can have some lines operating as ST lines, and other lines as SIC lines. Such cache storage systems are used as private caches in a multiprocessor (MP) system. A newly fetched line (resulting from a cache miss) has its SH flag set to non-sharing (SIC) state in its location determined by cache replacement selection circuits, unless the SH flag for the requested line is dynamically set to sharing (ST) state if a cross-interrogation (XI) hit in another cache is found by cross-interrogation (XI) controls, which interrogates all other cache directories in the MP for every store or fetch cache miss and for every store cache hit of a ST line (having SH=1). A XI hit signals that a conflicting copy of the line has been found in another cache. In the conflicting cache line is changed from its corresponding main storage (MS) line, the cache line is castout to MS. The sharing (SH) flag for the conflicting line is set to sharing state for a fetch miss, but the conflicting line is invalidated for a store miss.

EP0082949A2, drawing sheet 1
Sheet 1 of 12

Term

Term ended

Projected expiry passed 16 November 2002, 23.9 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

5 claims: 4 independent, 1 dependent

  1. 1
    Cache storage system with cache directory and cache control circuits characterized in that each line entry in the cache directory includes a sharing (SH) flag which is sensed by the cache control circuits to perform a store-through operation if the sharing flag is set or else a store-in-cache operation.
  2. 2
    Cache storage system in accordance with claim 1, characterized in that the sharing flag is set and reset by the cache control circuits.
  3. 3
    Cache storage system in accordance with claim 1, characterized in that the sharing flag is set and reset under program control.
  4. 5
    Multiprocessor system in accordance with claim 4, characterized in that each processor (CP) has a copy directory (CD) associated to its cache directory, which copy directory also includes the sharing (SH) flag in each line entry and is interrogated by the cross-examination (XI) means.