Method and device for realizing cache directory
A technology for caching directories and directories, applied in the field of communications, can solve problems such as low storage usage and slow access to cache directories, and achieve the effect of improving usage efficiency and saving storage space
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] The embodiment of the present invention provides a method for implementing a cache directory, such as figure 1 As shown, the method includes:
[0047] 101. The directory cache controller creates a cache directory, the cache directory includes a public data directory and a private data directory, the public data directory is used to record data block information of public data, and the private data directory is used to record data of private data block information.
[0048] It should be noted that the cache directory in this embodiment is used to record the data block information of the cached data in the cache of the processor module, where the processor module includes multiple processors, and the cache is shared by the multiple processors. The number of items in the directory entry of the cache directory depends on the amount of cached data in the cache. Since the storage space of the cache is limited, and the storage space of the cache is usually much smaller than t...
Embodiment 2
[0054] The embodiment of the present invention provides a method for implementing a cache directory, such as figure 2 As shown, the method includes:
[0055] 201. The directory cache controller creates a cache directory, the cache directory includes a public data directory and a private data directory, the public data directory is used to record data block information of public data, and the private data directory is used to record data of private data block information.
[0056] It is worth noting that, unlike the full-map directory in the prior art, the cache directory in this embodiment is used to record data block information of cached data in the processor system. Wherein, the data block information of the public data includes the corresponding relationship between the physical address of the cached data and the bit vector identifier, and the bit vector identifier includes N pointers, which are used to represent the processor corresponding to the public data, and the N ...
Embodiment 3
[0076] An embodiment of the present invention provides a device for implementing a cache directory, which can implement the above-mentioned method embodiments, such as Figure 4 As shown, the device includes:
[0077] The establishment unit 41 is used to create a cache directory, the cache directory includes a public data directory and a private data directory, the public data directory is used to record data block information of public data, and the private data directory is used to record data of private data block information;
[0078] A determining unit 42, configured to determine the data type of the target data corresponding to the read-write request when receiving the read-write request sent by the first processor, the data type including private data or public data;
[0079] The recording unit 43 is configured to record the data block information of the target data in the cache directory created by the establishing unit 41 according to the data type determined by the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 