摘要 |
A processing system (100) having multilevel cache employs techniques for identifying and selecting valid candidate cache lines for eviction from a lower level cache (108) of an inclusive cache hierarchy (102), so as to reduce invalidations resulting from an eviction of a cache line in a lower level cache (110) that also resides in a higher level cache (108). In response to an eviction trigger for a lower level cache, a cache controller (122) identifies candidate cache lines (307) for eviction from the cache lines residing in the lower level cache based on the replacement policy. The cache controller uses residency metadata (310) to identify the candidate cache line as a valid candidate if it does not also reside in the higher cache and as an invalid candidate if it does reside in the higher cache. The cache controller prevents eviction of invalid candidates, so as to avoid unnecessary invalidations in the higher cache while maintaining inclusiveness. |