When a line must be evicted from a cache to make room for incoming data, either because the cache is full or because of conflicts for a set, the replacement policy determines which line is evicted. In direct-mapped caches, there is no choice about which line to evict, since the incoming line can only be placed in one location in the cache, but set-associative and fully associative caches contain multiple lines that could be evicted to make room for the incoming line. In these caches, the general goal of the replacement policy is to minimize future cache misses by evicting a line that will not be referenced often in the future. Designers of replacement policies must also take into account the cost of their replacement policy; if a replacement policy reduces future misses slightly but requires so much hardware that the capacity of the cache must be reduced to accommodate the replacement policy, the additional cache misses that result from the reduced capacity may overwhelm the savings from the improved replacement policy.
When a line must be evicted from a cache to make room for incoming data, either because the cache is full or because of conflicts for a set, the replacement policy determines which line is evicted. In direct-mapped caches, there is no choice about which line to evict, since the incoming line can only be placed in one location in the cache, but set-associative and fully associative caches contain multiple lines that could be evicted to make room for the incoming line. In these caches, the general goal of the replacement policy is to minimize future cache misses by evicting a line that will not be referenced often in the future. Designers of replacement policies must also take into account the cost of their replacement policy; if a replacement policy reduces future misses slightly but requires so much hardware that the capacity of the cache must be reduced to accommodate the replacement policy, the additional cache misses that result from the reduced capacity may overwhelm the savings from the improved replacement policy.
การแปล กรุณารอสักครู่..
