Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2016-04-06
HUAWEI TECH CO LTD +1
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for implementing a cache directory, which can solve the problems of slow access speed and low storage usage of the cache directory in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for realizing cache directory
  • Method and device for realizing cache directory
  • Method and device for realizing cache directory

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for achieving a cache catalogue and relates to the field of communication. The method and the device are used for resolving the problems in the prior art of low access speed of the cache catalogue and low storage use efficiency. The method includes building the cache catalogue which comprises a public data catalogue and a private data catalogue. The public data catalogue is used for recording data block information of public data, and the private data catalogue is used for recording data block information of private data. The method further includes determining data type of target data that a read-write request corresponds to when receiving the read-write request that a first processor transmits. The data type comprises private data or public data. The method further includes recording the data block information of the target data in the cache catalogue. The method and the device are suitable for the communication field and are used for recording the data block information of data in a multi-processor system.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and device for realizing a cache directory. Background technique [0002] A processor (CPU) is an essential and important component in terminal equipment and server equipment. With the continuous improvement of the performance of terminal equipment and server equipment, multi-core processor systems have gradually become mainstream, such as common UMA (Uniform Memory Access, unified memory access) systems and NUMA (Non-Uniform Memory Access, non-uniform memory access) systems, etc. a processor module. In a multi-core processor system, due to the difference in read and write speed, when the CPU accesses the memory, it will first search and obtain the target data from the local cache; if the target data is not stored in the local cache memory (cache) of the CPU, then Search and obtain the target data from the caches of other CPUs; if the target data is not stored in the local ca...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/0817
Inventor 张悠慧李艳华郑伟
Owner HUAWEI TECH CO LTD