SECTORED CACHE REPLACEMENT ALGORITHM FOR REDUCING MEMORY WRITEBACKS
First Claim
1. A method for selecting a cache sector among a plurality of cache sectors for replacement in a computer system, said method comprising:
- determining a first set of cache sectors among said plurality of cache sectors, wherein each of said first set of cache sectors has the least amount of modified data among said plurality of cache sectors and is not the most recently used cache sector; and
selecting a first single cache sector for replacement if said first set of cache sectors comprises one cache sector.
2 Assignments
0 Petitions
Accused Products
Abstract
An improved sectored cache replacement algorithm is implemented via a method and computer program product. The method and computer program product select a cache sector among a plurality of cache sectors for replacement in a computer system. The method may comprise selecting a cache sector to be replaced that is not the most recently used and that has the least amount of modified data. In the case in which there is a tie among cache sectors, the sector to be replaced may be the sector among such cache sectors with the least amount of valid data. In the case in which there is still a tie among cache sectors, the sector to be replaced may be randomly selected among such cache sectors. Unlike conventional sectored cache replacement algorithms, the improved algorithm implemented by the method and computer program product accounts for both hit rate and bus utilization.
-
Citations
10 Claims
-
1. A method for selecting a cache sector among a plurality of cache sectors for replacement in a computer system, said method comprising:
-
determining a first set of cache sectors among said plurality of cache sectors, wherein each of said first set of cache sectors has the least amount of modified data among said plurality of cache sectors and is not the most recently used cache sector; and selecting a first single cache sector for replacement if said first set of cache sectors comprises one cache sector. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer program product for selecting a cache sector among a plurality of cache sectors for replacement in a computer system, said computer program product comprising a computer-readable storage medium having computer-readable program code instructions stored therein comprising:
-
a first set of computer instructions for determining a first set of cache sectors among said plurality of cache sectors, wherein each of said first set of cache sectors has the least amount of modified data among said plurality of cache sectors and is not the most recently used cache sector; and a second set of computer instructions for selecting a first single cache sector for replacement if said first set of cache sectors comprises one cache sector. - View Dependent Claims (7, 8, 9, 10)
-
Specification