Systems and methods for cache replacement monitoring (CRM) are provided.
The system includes a monitored cache comprising a monitored cache line
set, the monitored cache line set comprising at least one cache line
capable of holding data of a monitored address; and a CRM mechanism
operatively associated with the monitored cache. The CRM mechanism
collects CRM information for the monitored address. The method includes
the steps of collecting CRM information for a monitored address in a
monitored cache; and recording the CRM information for the monitored
address, when at least one of (1) the monitored address is cached in the
monitored cache, (2) the monitored address is replaced in the monitored
cache, (3) any cache line in a cache line set corresponding to the
monitored address is cached in the monitored cache, and (4) any cache
line in a cache line set corresponding to the monitored address is
replaced in the monitored cache.