Directory replacement method and device
First Claim
1. A directory replacement method, comprising:
- receiving, by a home agent, a data access request from a first cache agent, the data access request comprising a first address corresponding to a first directory entry;
selecting, by the home agent, a second directory entry from a directory if a designated storage with preset capacity is entirely occupied by the directory, and the first directory entry corresponding to the first address is not in the directory, wherein an address for the second directory entry is a third address when a quantity of second cache agents whose share status to a cache line corresponding to the third address is S status is the largest; and
deleting, by the home agent, the second directory entry from the directory, and adding the first directory entry corresponding to the first address into the directory.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides a directory replacement method and device. An HA receives a data access request including a first address from a first CA, if a designated storage where a directory is located is entirely occupied by the directory, and a first directory entry corresponding to the first address is not in the directory, the HA selects a second directory entry from the directory, deletes it and adds the first directory entry into the directory; before the HA replaces the directory entry in the directory, no matter what status (for example, I status, S status or A status) a share status of a cache line corresponding to an address in the directory entry to be replaced is, the HA does not need to request a corresponding CA to perform an invalidating operation on data, but directly replaces the directory entry in the directory, thereby improving replacement efficiency.
5 Citations
8 Claims
-
1. A directory replacement method, comprising:
-
receiving, by a home agent, a data access request from a first cache agent, the data access request comprising a first address corresponding to a first directory entry; selecting, by the home agent, a second directory entry from a directory if a designated storage with preset capacity is entirely occupied by the directory, and the first directory entry corresponding to the first address is not in the directory, wherein an address for the second directory entry is a third address when a quantity of second cache agents whose share status to a cache line corresponding to the third address is S status is the largest; and deleting, by the home agent, the second directory entry from the directory, and adding the first directory entry corresponding to the first address into the directory. - View Dependent Claims (2, 3, 4)
-
-
5. A directory replacement device, comprising:
-
a processor configured to; receive a data access request from a first cache agent, the data access request comprising a first address corresponding to a first directory entry; select a second directory entry from the directory if a designated storage with preset capacity is entirely occupied by the directory and the first directory entry corresponding to the first address is not in the directory, wherein an address for the second directory entry is a third address when a quantity of second cache agents whose share status to a cache line corresponding to the third address is S status is the largest; and delete the second directory entry from the directory, and add the first directory entry corresponding to the first address into the directory. - View Dependent Claims (6, 7, 8)
-
Specification