Data processing method, device, electronic device and storage medium

By using the consistency maintenance module and directory prefetcher in multi-processor and multi-cache systems, the consistency problem caused by the same address data copy operation in the cache is solved, the processor access delay is reduced, and the system performance is improved.

CN116049031BActive Publication Date: 2024-08-30HYGON INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310187812.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

In a computer system with multiple processors and multiple caches, consistency problems may easily occur when operating data copies with the same address in the cache. Existing technologies are difficult to effectively solve these problems, resulting in increased processor access delays.

Method used

Maintain data consistency in multiple caches through the consistency maintenance module, receive the directory prefetch request from the processor, cache the corresponding consistent directory information into the cache, and use the directory prefetcher to prefetch directory information that may be needed in the future. Reduce the latency when the processor accesses an address.

Benefits of technology

It improves the efficiency of data consistency maintenance, reduces the delay when the processor accesses addresses, and improves system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116049031B
    Figure CN116049031B
Patent Text Reader

Abstract

A data processing method, device, electronic device and storage medium. The data processing method includes: maintaining the consistency of data corresponding to data storage information stored in multiple caches used by multiple processors through a consistency maintenance module, wherein the multiple caches are configured to store data storage information, and the first cache among the multiple caches is also configured to store consistency directory information, and the consistency directory information corresponds to at least part of the data corresponding to the data storage information; receiving an access request for a first storage address from a first processor among multiple processors; sending a directory prefetch request corresponding to the first storage address to the consistency maintenance module; and processing the directory prefetch request by the consistency maintenance module to cache the consistency directory information corresponding to the first storage address into the first cache. The data processing method can reduce the access delay when the processor accesses the address.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a data processing method, a data processing device, an electronic device and a storage medium. Background Art

[0002] At present, for computer systems with multiple processors and multiple cache memories (Cache, i.e. cache), the cache can cache a large amount of data, which may be exclusive, or copies of data with the same address may be stored in different caches. When different caches operate on cached data with the same address, consistency problems will arise. In order to solve this problem, many technologies have emerged to maintain data consistency. For example, when multiple caches store the same copy of data, when a processor wants to modify the data stored in a cache, the copies of the data in other caches will be marked invalid to avoid consistency errors. Summary of the invention

[0003] At least one embodiment of the present disclosure provides a data processing method, which includes: maintaining the consistency of data corresponding to data storage information stored in multiple caches used by multiple processors through a consistency maintenance module, wherein the multiple caches are configured to store data storage information, and a first cache among the multiple caches is also configured to store consistency directory information, and the consistency directory information corresponds to at least part of the data corresponding to the data storage information; receiving an access request for a first storage address from a first processor among the multiple processors; sending a directory prefetch request corresponding to the first storage address to the consistency maintenance module; and processing the directory prefetch request by the consistency maintenance module to cache the consistency directory information corresponding to the first storage address into the first cache.

[0004] For example, in the data processing method provided by at least one embodiment of the present disclosure, the directory prefetch request is processed by the consistency maintenance module to cache the consistency directory information corresponding to the first storage address in the first cache, including: the consistency maintenance module sends a directory read request corresponding to the directory prefetch request to the system memory to read the consistency directory information corresponding to the first storage address; in response to the consistency directory information corresponding to the first storage address being stored in the system memory, the consistency maintenance module caches the consistency directory information corresponding to the first storage address in the first cache.

[0005] For example, in the data processing method provided by at least one embodiment of the present disclosure, the directory prefetch request is processed by the consistency maintenance module to cache the consistency directory information corresponding to the first storage address in the first cache, and also includes: in response to the consistency directory information corresponding to the first storage address not existing in the system memory, the consistency maintenance module does not cache the consistency directory information corresponding to the first storage address in the first cache.

[0006] For example, in the data processing method provided by at least one embodiment of the present disclosure, the access request is a data pre-fetch request.

[0007] For example, in the data processing method provided by at least one embodiment of the present disclosure, the first processor issues the directory prefetch request at the same time as or after issuing the data prefetch request.

[0008] For example, in the data processing method provided by at least one embodiment of the present disclosure, the consistency maintenance module caches the consistency directory information corresponding to the first storage address into the first cache, including: in response to the absence of storage capacity conflict in the first cache, the consistency maintenance module directly caches the consistency directory information corresponding to the first storage address into the first cache.

[0009] For example, in the data processing method provided by at least one embodiment of the present disclosure, the consistency maintenance module caches the consistency directory information corresponding to the first storage address into the first cache, and also includes: in response to the existence of a storage capacity conflict in the first cache, determining the information to be replaced stored in the first cache based on a replacement rule; in response to the information to be replaced being consistency directory information, storing the consistency directory information corresponding to the first storage address in the storage address for storing the information to be replaced in the first cache, and storing the information to be replaced in the system memory.

[0010] For example, in the data processing method provided by at least one embodiment of the present disclosure, the consistency maintenance module caches the consistency directory information corresponding to the first storage address in the first cache, and also includes: in response to the information to be replaced being data storage information, and the data status information corresponding to the data corresponding to the data storage information indicates a dirty state, the consistency directory information corresponding to the first storage address is stored in the first cache in the storage address for storing the information to be replaced, and the information to be replaced is stored in the system memory; in response to the information to be replaced being data storage information, and the data status information corresponding to the data corresponding to the data storage information indicates a clean state, the consistency directory information corresponding to the first storage address is stored in the first cache in the storage address for storing the information to be replaced.

[0011] At least one embodiment of the present disclosure also provides an electronic device, which includes: multiple processors; multiple caches, including a first cache, wherein the multiple caches are configured to store data storage information, and the first cache among the multiple caches is also configured to store consistency directory information, and the consistency directory information corresponds to at least part of the data corresponding to the data storage information; a consistency maintenance module, configured to maintain the consistency of data corresponding to the data storage information stored in the multiple caches; a directory prediction module, wherein the directory prediction module is configured to: receive an access request for a first storage address from a first processor among the multiple processors, and send a directory prefetch request corresponding to the first storage address to the consistency maintenance module, wherein the consistency maintenance module is also configured to process the directory prefetch request for caching the consistency directory information corresponding to the first storage address into the first cache.

[0012] For example, in at least one embodiment of the electronic device, the consistency maintenance module is also configured to process the directory prefetch request to cache the consistency directory information corresponding to the first storage address in the first cache, including: the consistency maintenance module sends a directory read request corresponding to the directory prefetch request to the system memory to read the consistency directory information corresponding to the first storage address; in response to the consistency directory information corresponding to the first storage address being stored in the system memory, the consistency maintenance module caches the consistency directory information corresponding to the first storage address in the first cache.

[0013] For example, in at least one embodiment of the electronic device, the consistency maintenance module is configured to process the directory prefetch request for caching the consistency directory information corresponding to the first storage address in the first cache, and also includes: in response to the consistency directory information corresponding to the first storage address not existing in the system memory, the consistency maintenance module does not cache the consistency directory information corresponding to the first storage address in the first cache.

[0014] For example, in at least one embodiment of the electronic device, the access request is a data pre-fetch request.

[0015] For example, in the electronic device of at least one embodiment, the first processor includes the directory prediction module.

[0016] For example, in at least one embodiment of the electronic device, the consistency maintenance module caches the consistency directory information corresponding to the first storage address into the first cache, including: in response to the absence of storage capacity conflict in the first cache, the consistency maintenance module directly caches the consistency directory information corresponding to the first storage address into the first cache.

[0017] For example, in at least one embodiment of the electronic device, the consistency maintenance module caches the consistency directory information corresponding to the first storage address in the first cache, and also includes: in response to the existence of a storage capacity conflict in the first cache, determining the information to be replaced stored in the first cache based on a replacement rule; in response to the information to be replaced being consistency directory information, storing the consistency directory information corresponding to the first storage address in the storage address in the first cache for storing the information to be replaced, and storing the information to be replaced in the system memory.

[0018] For example, in at least one embodiment of the electronic device, the consistency maintenance module caches the consistency directory information corresponding to the first storage address in the first cache, and also includes: in response to the information to be replaced being data storage information, and the data status information corresponding to the data corresponding to the data storage information indicates a dirty state, storing the consistency directory information corresponding to the first storage address in the storage address for storing the information to be replaced in the first cache, and storing the information to be replaced in the system memory; in response to the information to be replaced being data storage information, and the data status information corresponding to the data corresponding to the data storage information indicates a clean state, storing the consistency directory information corresponding to the first storage address in the storage address for storing the information to be replaced in the first cache.

[0019] At least one embodiment of the present disclosure further provides a data processing device, which includes: a memory configured to store computer-executable instructions; and a processor configured to execute the computer-executable instructions, wherein the computer-executable instructions, when executed by the processor, implement the method described in any of the above embodiments.

[0020] At least one embodiment of the present disclosure further provides a non-transitory storage medium that non-transitorily stores computer-executable instructions, wherein when the computer-executable instructions are executed by a processor, the method described in any of the above embodiments is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure.

[0022] Figure 1 A schematic diagram of an electronic device provided for some embodiments of the present disclosure.

[0023] Figure 2 A schematic diagram of the structure of an electronic device provided for at least one embodiment of the present disclosure.

[0024] Figure 3 A schematic diagram of the structure of a first cache provided for some embodiments of the present disclosure.

[0025] Figure 4 A schematic diagram of the structure of a first cache and a system memory provided for some embodiments of the present disclosure.

[0026] Figure 5 A flowchart of a data processing method provided for some embodiments of the present disclosure.

[0027] Figure 6 A schematic diagram of directory prefetching provided for some embodiments of the present disclosure.

[0028] Figure 7 A schematic diagram of a data processing device provided by an embodiment of the present disclosure is shown.

[0029] Figure 8 A schematic diagram of a non-transitory storage medium provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0031] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0032] In order to keep the following description of the embodiments of the present disclosure clear and concise, the present disclosure omits detailed descriptions of some known functions and known components.

[0033] In an electronic device (e.g., a computer system) having multiple processors (or processor cores), in order to improve the efficiency of data consistency maintenance, technologies such as snoop filtering can be used to maintain data consistency. Snoop filtering can help track the cache status of data in multiple caches, for example, whether the data has only a single copy in the cache, multiple copies, or the data only exists in the system memory (e.g., main memory).

[0034] In a computer system with multiple processors and multiple caches, some directory-based consistency systems currently track the cache status of data through a directory and store the cache status of the tracked data in the directory, that is, the directory can be used to maintain data consistency. When the consistency agent listens to the bus and discovers a consistency transaction, it queries the directory for the information tracked and sends a responsive probe to complete consistency maintenance. For example, a memory access request issued by the processor to a private cache will first be sent to the directory structure that owns the corresponding cache block. The directory structure records the sharing status of the current cache block. The directory structure controller will choose to respond to this request or forward this request to other corresponding private caches based on the status of the current cache block.

[0035] When the processor needs to read or write system consistency data, it will first query in the multi-level cache. If there is no hit, it will send a read or write request to the consistency maintenance module. The consistency maintenance module will query the system level cache (SLC) of the cacheable directory. If there is no hit, it will read the data of the corresponding address and / or the corresponding directory information from the system memory. If the directory information read back from the system memory can be hit, the consistency maintenance module will perform consistency maintenance on the cache address and return a corresponding reply to the processor that sent the request. If the directory information read back from the system memory does not hit, the consistency maintenance module will update the directory information cached at the address and save it at the corresponding address of the SLC, and return a corresponding reply to the processor that sent the request.

[0036] The cached directory information is like the cached data. When a cache capacity conflict occurs, it will be replaced by the conflicting data according to the replacement rules. The replaced directory information will be saved to the pre-allocated mapping address of the system memory. When the same address is accessed again, when reading system data from the system memory, the directory data must also be read from the mapped directory address to the SLC. The consistency maintenance module requires the directory information of the cache address to complete the consistency transaction processing. However, when the directory information of a certain address is stored from the cache to the system memory, when the processor needs to access this address, it needs to wait for the directory information to be read from the system memory before performing the consistency maintenance operation, which will increase the access delay of the processor.

[0037] At least one embodiment of the present disclosure provides a data processing method. For example, an electronic device provided by the present disclosure includes multiple processors, multiple caches used by the multiple processors, and a consistency maintenance module, the multiple caches include a first cache, the first cache is configured to store consistency directory information corresponding to at least part of the data corresponding to all data storage information stored in the multiple caches, and the consistency maintenance module is configured to maintain the consistency of data corresponding to all data storage information stored in the multiple caches. The data processing method includes: receiving an access request for a first storage address from a first processor among the multiple processors; sending a directory prefetch request corresponding to the first storage address to the consistency maintenance module; and processing the directory prefetch request by the consistency maintenance module to cache the consistency directory information corresponding to the first storage address in the first cache.

[0038] In an embodiment of the present disclosure, when a processor (such as the first processor mentioned above) actually sends a request to access an address (such as the first storage address mentioned above), the consistency maintenance module can directly read the previously pre-fetched consistency directory information from the cache to perform consistency maintenance, thereby reducing the access delay when the processor accesses the address.

[0039] At least some embodiments of the present disclosure also provide an electronic device, including: multiple processors, multiple caches, a consistency maintenance module, and a directory prediction module. The multiple caches are configured to be used by multiple processors, wherein the multiple caches include a first cache, the first cache is configured to store consistency directory information corresponding to at least part of the data corresponding to all data storage information stored in the multiple caches; the consistency maintenance module is configured to maintain the consistency of the data corresponding to all data storage information stored in the multiple caches; the directory prediction module is configured to: receive an access request for a first storage address from a first processor among the multiple processors, and send a directory prefetch request corresponding to the first storage address to the consistency maintenance module. The consistency maintenance module is also configured to process the directory prefetch request, so as to cache the consistency directory information corresponding to the first storage address into the first cache.

[0040] The technical effect of the electronic device of the above embodiment is the same as the technical effect of the above data processing method.

[0041] In the above embodiment, the first processor may be any processor among a plurality of processors, and the first storage address may be any storage address, that is, the "first" here is only used to identify the processor or storage address as the description object, rather than specifically referring to a specific processor or storage address.

[0042] Various embodiments of the present disclosure will be described below with reference to specific examples.

[0043] Figure 1 A schematic diagram of an electronic device provided by at least one embodiment of the present disclosure, Figure 2 A schematic diagram of the structure of an electronic device provided for at least one embodiment of the present disclosure.

[0044] like Figure 1 As shown, Figure 1 and Figure 2 As shown, the electronic device 100 includes a plurality of caches 101 (cache 1011-cache 1016), a consistency maintenance module 102, a plurality of processors 103 (processors 1031-1032) and a system memory 105. Figure 1 and Figure 2 The specific number of caches, processors, consistency maintenance modules, and system memories are exemplarily shown in the figure, but the embodiments of the present disclosure are not limited thereto, and the specific number can be set to any value according to actual needs.

[0045] For example, Figure 1 and Figure 2As shown, the multiple caches 101 include multiple dedicated caches used by multiple processors 103 and at least one shared cache shared by multiple processors 103. In some embodiments, the at least one shared cache includes a first cache 1011, that is, the first cache 1011 is a shared cache and can be shared by multiple processors 103; in other embodiments, the first cache 1011 can be a dedicated cache; the embodiments of the present disclosure do not specifically limit this.

[0046] It should be noted that, in the embodiments of the present disclosure, the dedicated cache of a processor refers to a cache that can only be accessed by the processor, while the shared cache can be accessed by multiple processors.

[0047] Each processor 103 may use at least one private cache and at least one shared cache, for example, Figure 1 and Figure 2 The cache 1012 and cache 1013 shown may be dedicated caches used by the processor 1031. Figure 1 and Figure 2 Cache 1014 and cache 1015 shown may be dedicated caches used by processor 1032. Figure 1 and Figure 2 The cache 1016 shown may be a shared cache shared by the processor 1031 and the processor 1032. For example, the first cache 1011 may also be a shared cache shared by the processor 1031 and the processor 1032. For example, the cache 1012 and the cache 1014 may be a first-level cache (L1), and the cache 1013 and the cache 1015 may be a second-level cache (L2). The cache 1016 may be a third-level cache (L3), and the first cache 1011 may be a system level cache (SLC, system level cache, SLC generally refers to a cache distributed between the system memory and the multi-level cache (L1, L2, L3, etc.) in a computer system).

[0048] It should be noted that in the electronic device 100, the structure level of the cache can be set according to actual conditions and is not limited to Figure 2 As shown in the structure, for example, in some embodiments, the structure of the cache may include an interconnect topology.

[0049] The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), wearable electronic devices, and the like, as well as fixed terminals such as digital TVs, desktop computers, smart home devices, and the like, and various types of servers.

[0050] For example, the plurality of caches 101 are configured to be used by the plurality of processors 103. The consistency maintenance module 102 is configured to maintain the consistency of data corresponding to all data storage information stored in the plurality of caches 101. Figure 1 and Figure 2 As shown, the plurality of caches 101 include a first cache, for example, Figure 1 and Figure 2 The cache 1011 shown may be an example of a first cache. The present disclosure is not limited thereto. In other embodiments, Figure 1 and Figure 2 The cache 1016 shown may also be an example of a first cache. In the example of the present disclosure, the plurality of caches 101 are configured to store data storage information, and the first cache 1016 in the plurality of caches 101 is configured to store consistency directory information, which corresponds to at least part of the data corresponding to the data storage information stored in the plurality of caches 101. For example, the first cache is configured to store consistency directory information corresponding to at least part of the data corresponding to all the data storage information stored in the plurality of caches 101.

[0051] The following description is made by taking cache 1011 as the first cache as an example. Therefore, in the following description, 1011 is used to represent the first cache.

[0052] For example, the first cache 1011 may be a cache used only to store consistent directory information. However, the present disclosure is not limited thereto, and in some embodiments, the first cache 1011 may be used to store both consistent directory information and data storage information.

[0053] For example, Figure 2 As shown, according to the logical order of accessing the cache, cache 1012 is closest to processor 1031, and cache 1011 is farthest from processor 1031, that is, processor 1031 accesses cache 1012 first and accesses cache 1011 last; similarly, cache 1014 is closest to processor 1032, and cache 1011 is farthest from processor 1032.

[0054] For example, in some embodiments, Figure 2 As shown, the consistency maintenance module 102 is coupled to the first cache 1011 (for example, the two are directly coupled, thereby increasing the speed at which the consistency maintenance module 102 accesses the first cache 1011 ) to directly access the first cache 1011 .

[0055] For example, Figure 2As shown, the electronic device 100 further includes a coherent interconnect bus 104, which is directly coupled to the cache 1016 and directly coupled to the coherence maintenance module 102. The coherent interconnect bus 104 is a public communication trunk for information transmission, for example, the coherent interconnect bus 104 is a transmission harness composed of electronic components such as wires and follows a corresponding coherence protocol.

[0056] For example, in another embodiment, when the cache 1016 is used as the first cache, the coherent interconnect bus 104 couples the coherence maintenance module 102 to the first cache (ie, the cache 1016 ).

[0057] For example, Figure 1 and Figure 2 As shown, the electronic device 100 further includes a system memory 105. The first cache 1011 is configured to store coherent directory information corresponding to at least part of all data stored in at least one system memory.

[0058] For example, the system memory 105 may be a main memory (eg, DRAM), or may be a memory external to the electronic device 101, such as a hard disk, a floppy disk, an optical disk, a USB flash drive, and the like.

[0059] For example, Figure 2 As shown, the consistency maintenance module 102 is coupled to the system memory 105 , for example, directly coupled, that is, the consistency maintenance module 102 can directly access the system memory 105 , thereby maintaining the consistency of the data stored in the system memory 105 .

[0060] It should be noted that, in the present disclosure, “coupling” two devices means that one of the devices can access the other device in a logical relationship.

[0061] For example, each system memory may include a directory storage space, and the directory storage space is used to store consistent directory information corresponding to at least part of the data corresponding to all data storage information stored in the multiple caches 101. The consistent directory information stored in the directory storage space and the consistent directory information stored in the first cache 1011 may be partially the same.

[0062] It should be noted that, for the directory storage space in the system memory, the determination of the consistent directory information stored in the directory storage space is implemented by the consistency maintenance module 102 .

[0063] Figure 3 A schematic diagram of the structure of a first cache provided for some embodiments of the present disclosure.

[0064] like Figure 3As shown, the first cache 1011 includes a cache control module 1011A, which can implement comparison between addresses. For example, when the processor 103 issues a read request and the read request is transmitted to the first cache 1011, the cache control module 1011A can parse the read request and obtain the storage address (address on the system memory) that the processor 103 needs to read. The cache control module 1011A can compare the cached storage address (for example, including a tag, an index, etc.) in each storage block in the first cache 1011 with the parsed storage address to determine whether the first cache 1011 has cached data corresponding to the parsed storage address. It should be noted that the comparison process of the directory information (i.e., the comparison process of the address) and the comparison process of the data are independent of each other.

[0065] For cache, in order to facilitate quick query of the content stored in the cache, each cache can be divided into multiple storage groups, each storage group includes multiple storage blocks. Figure 3 As shown, the first cache 1011 may include a plurality of storage groups C1-Cn, each storage group including a plurality of storage blocks B1-Bm ( Figure 3 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, Figure 3 The storage group C1 and the storage group C2 shown may be cache storage groups. The multiple cache storage groups are used to store consistent directory information corresponding to at least part of all the data stored in the multiple caches 101 .

[0066] It should be noted that the number of storage blocks corresponding to the multiple storage groups may be different, or may be at least partially the same, and the specific design may be based on actual design requirements. Figure 3 In the example shown, the number of storage blocks corresponding to each storage group is m, that is, each storage group includes m storage blocks.

[0067] For example, for each data among all data stored in the plurality of caches 101: the address corresponding to the data in the system memory used to store the data includes a first address portion and a second address portion. It should be noted that “the address corresponding to the data in the system memory used to store the data” means that the data is stored in the location indicated by the address in the system memory.

[0068] For example, the consistency directory information corresponding to the data includes the cache status information of the data and the first address part. The first address part indicates the directory address flag. The cache status information of the data is used to indicate the cache storing the data, that is, which cache stores the data. The cache status information of the data is also used to indicate whether the data has been modified and other information.

[0069] For example, the second address portion is used to determine a cache storage group in the first cache 1011 for storing consistency directory information corresponding to the data. For example, the consistency maintenance module 102 stores the consistency directory information corresponding to the data in any storage block in the cache storage group corresponding to the second address portion in the first cache 1011 based on the second address portion. For example, in some embodiments, the consistency maintenance module 102 stores the consistency directory information corresponding to the data in any storage block in the cache storage group corresponding to the second address portion in the first cache 1011 through a group-associative address mapping method based on the second address portion.

[0070] For example, in multiple cache storage groups, consistency directory information corresponding to multiple data is stored in a group-associative manner. The consistency directory information can represent the storage status of the data in the cache. In order to quickly find the storage status of a certain data in the cache, usually a part of the address corresponding to the data in the system memory used to store the data (i.e., the second address part) is mapped as a group-associative address mapping relationship, and the remaining part of the address corresponding to the data in the system memory used to store the data (i.e., the first address part) and the cache status information of the data are stored as the consistency directory information corresponding to the data in a storage block of the corresponding cache storage group in the first cache 1011.

[0071] For example, in an embodiment of the present disclosure, each storage block in each cache storage group may store consistency directory information corresponding to multiple data. Figure 3 As shown, for a storage block B1 in a storage group C1, the content stored in the storage block B1 in the storage group C1 may include a directory flag and multiple consistent directory information. Each consistent directory information may include a directory address flag and cache status information. The directory flag is used to indicate that the content stored in the storage block B1 in the storage group C1 is consistent directory information. For example, Figure 3 In the example shown, storage block B1 in storage group C1 can store two consistent directory information, namely directory address flag 0 and cache status information 0 and directory address flag 1 and cache status information 1. It should be noted that the present disclosure does not limit the amount of consistent directory information stored in a storage block in a storage group.

[0072] For example, the plurality of storage groups C1-Cn may also include a plurality of data storage groups, for example, Figure 3The storage group Cn shown may be a data storage group. Each storage block in each data storage group is used to store data storage information corresponding to one data.

[0073] like Figure 3 As shown, in one example, for a storage block B1 in a storage group Cn, the content stored in the storage block B1 may include a data flag and data storage information. Each data storage information may include a data address flag, data status information, and the data itself. The data flag is used to indicate that the content stored in the storage block B1 in the storage group Cn is data. For example, Figure 3 In the example shown, the content stored in the storage block B1 in the storage group Cn is the data storage information corresponding to data 0, and the data storage information corresponding to data 0 includes data address mark 0, data state information 0, and data 0. It should be noted that the present disclosure does not limit the amount of data storage information that can be stored in a storage block in the storage group.

[0074] For example, data status information usually indicates whether the data is in a "clean" or "dirty" state, that is, whether the data has been rewritten. When the data status information is in a "dirty" state, it indicates that the data has been rewritten (for example, the corresponding data in the main memory has not been rewritten at the same time); when the data status information is in a "clean" state, it indicates that the data has not been rewritten. It should be noted that the data status information can also indicate other status information of the data.

[0075] Figure 4 A schematic diagram of the structure of a first cache and a system memory provided for some embodiments of the present disclosure.

[0076] For example, Figure 4As shown, the system memory 105 may include a directory storage space 105A. When the consistent directory information of a certain data needs to be stored in a certain cache storage group in the first cache 1011, if there is a capacity conflict in the cache storage group, that is, all storage blocks of the cache storage group have already stored information (consistent directory information or data storage information), then it is necessary to perform corresponding processing on a certain information stored in a certain cache storage group (for example, information to be replaced). For example, if the information to be replaced is consistent directory information, the information to be replaced can be expanded and stored in the directory storage space 105A, and then the consistent directory information of the data is stored in the cache storage group; for example, if the information to be replaced is data storage information, and the data status information in the data storage information is in a dirty state, the information to be replaced can be written into the corresponding system memory, and then the consistent directory information of the data is stored in the cache storage group; for example, if the information to be replaced is data storage information, and the data status information in the data storage information is in a clean state, the consistent directory information of the data is directly stored in the cache storage group to cover the information to be replaced.

[0077] For example, the processor not only includes a multi-level cache architecture to save recently accessed data, but can also (for example, using a prefetcher) discover the processor's access patterns to data and instructions to pre-fetch the data and instructions that are about to be accessed into the cache. If instructions are pre-fetched, it is called instruction pre-fetch, and the corresponding pre-fetcher is an instruction pre-fetcher; if data is pre-fetched, it is called data pre-fetch, and the corresponding pre-fetcher is a data pre-fetcher. The data read request (access request) for data pre-fetching issued by the processor's data pre-fetcher is a data pre-fetch request.

[0078] Figure 5 A flowchart of a data processing method provided for some embodiments of the present disclosure. Figure 6 A schematic diagram of directory prefetching provided for some embodiments of the present disclosure.

[0079] For example, the data processing method of the embodiment of the present disclosure may be applied to the electronic device provided by the embodiment of the present disclosure, for example, the electronic device 100 described above, which includes multiple processors and multiple caches of the electronic device 100. Figure 5 As shown, in some embodiments of the present disclosure, the data processing method includes the following steps S101-S103.

[0080] Step S101: receiving an access request for a first storage address from a first processor among a plurality of processors.

[0081] For example, Figure 6 As shown, the electronic device may include a first processor 1035, the first processor 1035 may include a directory prediction module 103A, and the first processor 1035 may be regarded as Figure 1 and 2 The directory prediction module 103A may receive an access request for a storage address from the first processor 1035. For example, the access request for the storage address may be a conventional data read request or a data pre-fetch request.

[0082] For example, in one embodiment of the present disclosure, the directory prediction module 103A can be implemented by a directory prefetcher. For example, the directory prefetcher can predict directory information that may be needed in the future and load the directory information into the processor's cache in advance to accelerate the maintenance of cache consistency. The directory prefetcher usually monitors the program's access pattern to the cache, then predicts the directory information that may be needed in the future, and prefetches the corresponding directory information into the cache. For example, the directory prefetcher of the present disclosure can accelerate the maintenance of cache consistency and improve the execution efficiency of the program. It should be noted that the present disclosure does not impose any limitation on the specific hardware structure of the directory prefetcher, as long as the hardware that can implement the directory prefetching operation of the present disclosure can meet the requirements.

[0083] Figure 6 The directory prediction module 103A shown in FIG. 1 is only one embodiment of the present disclosure. The embodiments of the directory prediction module of the present disclosure are not limited thereto. For example, multiple processors may share a directory prediction module or each processor may include a dedicated directory prediction module. The directory prefetching module may be a part of the processor or an independent module separated from the processor. Figure 6 The directory prediction module 103A shown in FIG. 1 is included in the first processor 1035 for explanation.

[0084] Step S102: Send a directory pre-fetch request corresponding to the first storage address to the consistency maintenance module.

[0085] For example, Figure 6 As shown, the directory prediction module 103A may send a directory pre-fetch request corresponding to the first storage address to the consistency maintenance module 102. For example, when the first processor 1035 needs to pre-fetch data corresponding to a certain address, consistency maintenance for the data corresponding to the address may be triggered, and the consistency maintenance operation requires the consistency directory information of the data corresponding to the address. Therefore, the first processor 1035 may read the consistency directory information corresponding to the data stored in the address cache into the cache in advance.

[0086] For example, the first processor 1035 may issue a directory prefetch request at the same time as or after issuing a data prefetch request. The directory prefetch request refers to a prefetch request for consistent directory information corresponding to data to be prefetched by the processor.

[0087] For example, as an example, when the data prefetcher performs speculative prefetching of data, if the directory corresponding to the prefetched data is also stored in the system memory, it is usually necessary to prefetch the directory information to complete the speculative prefetching of the directory to improve the processing efficiency of the processor. At this time, the processor usually triggers the directory prefetch request after issuing the data prefetch request. However, the present disclosure is not limited to this. As another example, the corresponding directory prefetch request can also be issued at the same time as the data prefetch request is issued to fully utilize the parallel performance of the processor and avoid waiting for the use of the corresponding directory to improve system performance; or, as another example, the corresponding directory prefetch request can also be issued after the data prefetch request is issued, for example, after a predetermined interval time. The predetermined interval time can be selected to avoid waiting for the use of the corresponding directory, or to avoid waiting for too long to use the corresponding directory, thereby improving system performance.

[0088] Step S103: The consistency maintenance module processes the directory pre-fetch request to cache the consistent directory information corresponding to the first storage address into the first cache.

[0089] For example, Figure 6 As shown, after receiving the directory prefetch request sent by the directory prediction module 103A, the consistency maintenance module 102 processes the directory prefetch request to cache the consistent directory information corresponding to the first storage address in the first cache. For example, the consistency maintenance module 102 sends a directory read request corresponding to the directory prefetch request to the system memory 105 to read the consistent directory information corresponding to the first storage address. For example, in response to the consistent directory information corresponding to the first storage address being stored in the system memory 105, the system memory 105 returns the consistent directory information corresponding to the first storage address to the consistency maintenance module 102, and the consistency maintenance module 102 caches the consistent directory information corresponding to the first storage address in the first cache 1011.

[0090] For example, in response to the consistency directory information corresponding to the first storage address not existing in the system memory 105, the consistency maintenance module does not cache the consistency directory information corresponding to the first storage address in the first cache 1011. For example, in response to the consistency directory information corresponding to the first storage address not existing in the system memory 105, the consistency maintenance module 102 does not cache the consistency directory information corresponding to the first storage address in the first cache 1011.

[0091] In at least one embodiment of the present disclosure, when the first processor 1035 actually sends a request to access an address, the consistency maintenance module 1035 can directly read the previously pre-fetched consistency directory information from the first cache 1011 to perform consistency maintenance, thereby reducing the access delay when the first processor 1035 accesses the address.

[0092] For example, in response to the first cache not having a storage capacity conflict, the consistency maintenance module directly caches the consistency directory information corresponding to the first storage address in the first cache 1011. For example, when the consistency directory information corresponding to the first storage address needs to be stored in a cache storage group in the first cache 1011, if the cache storage group does not have a capacity conflict, that is, the cache storage group has an idle storage block that has not yet stored information (consistent directory information or data storage information), the consistency directory information corresponding to the first storage address can be directly cached in the first cache 1011.

[0093] For example, in response to a storage capacity conflict in the first cache 1011, information to be replaced stored in the first cache 1011 is determined based on a replacement rule; in response to the information to be replaced being consistent directory information, the consistent directory information corresponding to the first storage address is stored in the storage address for storing the information to be replaced in the first cache 1011, and the information to be replaced is stored in the system memory 105.

[0094] For example, when the consistency directory information of the first storage address needs to be stored in a cache storage group in the first cache 1011, if there is a capacity conflict in the cache storage group, that is, all storage blocks of the cache storage group have already stored corresponding information (consistency directory information or data storage information), then it is necessary to perform corresponding processing on a certain information stored in the cache storage group (for example, information to be replaced). For example, if the information to be replaced is consistency directory information, then the information to be replaced can be expanded and stored in the directory storage space 105A, and then the consistency directory information of the data is stored in the cache storage group.

[0095] For example, in response to the information to be replaced being data storage information, and the data status information corresponding to the data corresponding to the data storage information indicates a dirty state, the consistency directory information corresponding to the first storage address is stored in the storage address used to store the information to be replaced in the first cache 1011, and the information to be replaced is stored in the system memory 105; in response to the information to be replaced being data storage information, and the data status information corresponding to the data corresponding to the data storage information indicates a clean state, the consistency directory information corresponding to the first storage address is stored in the storage address used to store the information to be replaced in the first cache 1011.

[0096] For example, if the information to be replaced is data storage information, and the data status information in the data storage information is in a dirty state, the information to be replaced can be written into the system memory 105, and then the consistency directory information corresponding to the first storage address is stored in the cache storage group; for example, if the information to be replaced is data storage information, and the data status information in the data storage information is in a clean state, the consistency directory information corresponding to the first storage address is directly stored in the cache storage group to overwrite the information to be replaced.

[0097] In an embodiment of the present disclosure, when the processor actually sends an access request to the first storage address, the consistency maintenance module 102 can directly read the previously pre-fetched consistency directory information from the first cache 1011 to perform consistency maintenance, thereby reducing the access delay when the processor accesses the address.

[0098] For example, refer to Figure 1 , Figure 2 and Figure 6 Some embodiments of the present disclosure also provide an electronic device, the electronic device 100 comprising a plurality of processors 103 (processors 1031-1032), a plurality of caches 101 (cache 1011-cache 1016), a consistency maintenance module 102 and a directory prediction module 103A. For example, the plurality of caches 101 are configured to be used by the plurality of processors 103, the plurality of caches 101 include a first cache 1011, the first cache 1011 is configured to store consistency directory information corresponding to at least part of the data corresponding to all data storage information stored in the plurality of caches 101. For example, the consistency maintenance module 102 is configured to maintain the consistency of the data corresponding to all data storage information stored in the plurality of caches 101. The directory prediction module 103A is configured to: receive an access request for a first storage address from a first processor among the plurality of processors 103, and send a directory prefetch request corresponding to the first storage address to the consistency maintenance module 102. For example, the consistency maintenance module 102 is further configured to process the directory prefetch request, so as to cache the consistency directory information corresponding to the first storage address in the first cache.

[0099] The above-mentioned first processor can be any processor among multiple processors, and the first storage address can be any storage address, that is, the "first" here is only used to identify the processor or storage address as the description object, rather than specifically referring to a specific processor or storage address.

[0100] For example, for a specific description of the functions that the multiple processors 103 and the multiple caches 101 can be used to implement, reference can be made to the description of the multiple processors 103 and the multiple caches 101 in the above-mentioned embodiment of the data processing method.

[0101] For example, the catalog prediction module 103A can be used to implement Figure 5 Regarding steps S101 and S102 in the data processing method shown, for specific descriptions of the functions or operations that can be implemented by the catalog prediction module 103A, reference can be made to the description of steps S101 and S102 in the embodiment of the above data processing method.

[0102] For example, the access request for the storage address may be a conventional data read request or a data pre-fetch request. The embodiments of the present disclosure may not limit the manner in which the data pre-fetch request is generated.

[0103] For example, Figure 6 As shown, the electronic device may include a first processor 1035, and the first processor 1035 may include a catalog prediction module 103A. Figure 6 The directory prediction module 103A shown in is only one embodiment of the present disclosure, and the embodiments of the directory prediction module of the present disclosure are not limited to this. For example, multiple processors can share a directory prediction module or each processor can include a dedicated directory prediction module. The directory prefetch module can be part of the processor or an independent module separate from the processor.

[0104] For example, the consistency maintenance module 102 can be used to implement Figure 5 For step S103 in the data processing method shown, for a specific description of the functions that can be implemented by the consistency maintenance module 102, reference can be made to the description of step S103 in the embodiment of the data processing method described above.

[0105] In an embodiment of the present disclosure, when a processor (such as the first processor mentioned above) actually sends a request to access an address (such as the first storage address mentioned above), the consistency maintenance module 102 can directly read the previously pre-fetched consistency directory information from the cache to perform consistency maintenance, thereby reducing the access delay when the processor accesses the address.

[0106] Some embodiments of the present disclosure also provide a data processing device. Figure 7 Schematic diagram of a data processing device provided in some embodiments of the present disclosure. Figure 7 As shown, the data processing device 500 according to an embodiment of the present disclosure includes a processor 501 and a memory 502 , and the processor 501 and the memory 502 may be interconnected via a bus 503 .

[0107] The processor 501 can perform various actions and processes according to the program or code stored in the memory 502. Specifically, the processor 501 can be an integrated circuit chip with signal processing capabilities. For example, the processor 501 can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the various methods and steps disclosed in the embodiments of the present disclosure. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can be an X86 architecture or an ARM architecture, etc.

[0108] The memory 502 is used to store computer executable instructions in a non-temporary manner, and the processor 501 is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor 501, the data processing method provided by at least one embodiment of the present disclosure is implemented.

[0109] For example, memory 502 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. Nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronously linked dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). It should be noted that the memory of the method described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0110] The embodiments of the present disclosure also provide a non-transitory storage medium, which may be a non-transitory computer-readable storage medium. The non-transitory storage medium is used to non-transitorily store computer-executable instructions, which implement the data processing methods provided in some embodiments of the present disclosure when executed by a computer.

[0111] Figure 8 is a schematic diagram of a non-transitory storage medium provided by some embodiments of the present disclosure. Figure 8As shown, the non-transitory storage medium 600 can non-transitorily store computer executable instructions 610 , and the computer executable instructions 610 implement the data processing method provided by any embodiment of the present disclosure when executed by a computer.

[0112] Similarly, the non-transitory storage medium in the embodiments of the present disclosure may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. It should be noted that the memory of the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0113] The embodiments of the present disclosure also provide a computer program product or a computer program, which includes a computer instruction stored in a non-transitory storage medium. A processor of a computer device reads the computer instruction from the non-transitory storage medium, and the processor executes the computer instruction, so that the computer device executes the data processing method according to the embodiments of the present disclosure.

[0114] The technical effects of the above-mentioned data processing device and non-transitory storage medium are the same as the technical effects of the above-mentioned data processing method, and will not be repeated here.

[0115] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of the code contains at least one executable instruction for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0116] In general, various example embodiments of the present disclosure may be implemented in hardware or dedicated circuits, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device. When various aspects of the embodiments of the present disclosure are illustrated or described as block diagrams, flow charts, or using some other graphical representation, it will be understood that the blocks, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general purpose hardware or controllers or other computing devices, or some combination thereof as non-limiting examples.

[0117] There are a few points to note about this disclosure:

[0118] (1) The drawings of the embodiments of the present disclosure only relate to the structures related to the embodiments of the present disclosure, and other structures may refer to the general design.

[0119] (2) For the sake of clarity, the thickness and size of layers or structures are exaggerated in the drawings used to describe the embodiments of the present disclosure. It is understood that when an element such as a layer, film, region, or substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element, or there may be intervening elements.

[0120] (3) In the absence of conflict, the embodiments of the present disclosure and the features therein may be combined with each other to obtain new embodiments.

[0121] The above description is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and the protection scope of the present disclosure shall be based on the protection scope of the claims.

Claims

1. A data processing method, comprising: Maintaining, by a consistency maintenance module, consistency of data corresponding to data storage information stored in a plurality of caches used by a plurality of processors, wherein the plurality of caches are configured to store data storage information, and a first cache of the plurality of caches is further configured to store consistency directory information, the consistency directory information corresponding to at least part of the data corresponding to the data storage information; receiving an access request for a first storage address from a first processor among the plurality of processors; Sending a directory prefetch request corresponding to the first storage address to the consistency maintenance module; The directory pre-fetch request is processed by the consistency maintenance module to cache the consistency directory information corresponding to the first storage address stored in the system memory into the first cache.

2. The method according to claim 1, wherein: Processing the directory prefetch request by the consistency maintenance module to cache the consistency directory information corresponding to the first storage address stored in the system memory into the first cache includes: The consistency maintenance module sends a directory read request corresponding to the directory pre-fetch request to the system memory to read the consistency directory information corresponding to the first storage address; In response to the consistency directory information corresponding to the first storage address being stored in the system memory, the consistency maintenance module caches the consistency directory information corresponding to the first storage address in the first cache.

3. The method according to claim 2, wherein: The consistency maintenance module processes the directory prefetch request to cache the consistency directory information corresponding to the first storage address stored in the system memory into the first cache, and further includes: In response to the consistency directory information corresponding to the first storage address not existing in the system memory, the consistency maintenance module does not cache the consistency directory information corresponding to the first storage address in the first cache.

4. The method according to claim 1, wherein: The access request is a data pre-fetch request.

5. The method according to claim 4, wherein: The first processor issues the directory prefetch request simultaneously with or after issuing the data prefetch request.

6. The method according to claim 2, wherein: The consistency maintenance module caches the consistency directory information corresponding to the first storage address into the first cache, including: In response to the absence of storage capacity conflict in the first cache, the consistency maintenance module directly caches the consistency directory information corresponding to the first storage address into the first cache.

7. The method according to claim 2, wherein: The consistency maintenance module caches the consistency directory information corresponding to the first storage address into the first cache, and further includes: In response to a storage capacity conflict in the first cache, determining information to be replaced stored in the first cache based on a replacement rule; In response to the information to be replaced being consistent directory information, the consistent directory information corresponding to the first storage address is stored in the storage address for storing the information to be replaced in the first cache, and the information to be replaced is stored in the system memory.

8. The method according to claim 7, wherein: The consistency maintenance module caches the consistency directory information corresponding to the first storage address into the first cache, and further includes: In response to the information to be replaced being data storage information, and the data state information corresponding to the data corresponding to the data storage information indicating a dirty state, storing the consistency directory information corresponding to the first storage address in the storage address for storing the information to be replaced in the first cache, and storing the information to be replaced in the system memory; In response to the information to be replaced being data storage information, and the data status information corresponding to the data corresponding to the data storage information indicates a clean state, the consistency directory information corresponding to the first storage address is stored in the storage address in the first cache for storing the information to be replaced.

9. An electronic device, comprising: Multiple processors; A plurality of caches, including a first cache, wherein the plurality of caches are configured to store data storage information, and the first cache of the plurality of caches is further configured to store consistency directory information, the consistency directory information corresponding to at least part of the data corresponding to the data storage information; a consistency maintenance module, configured to maintain the consistency of data corresponding to the data storage information stored in the plurality of caches; A directory prediction module, wherein the directory prediction module is configured as follows: receiving an access request for a first storage address from a first processor among the plurality of processors, sending a directory prefetch request corresponding to the first storage address to the consistency maintenance module, The consistency maintenance module is further configured to process the directory pre-fetch request so as to cache the consistency directory information corresponding to the first storage address stored in the system memory into the first cache.

10. The electronic device according to claim 9, wherein: The consistency maintenance module is further configured to process the directory prefetch request to cache the consistency directory information corresponding to the first storage address stored in the system memory into the first cache, including: The consistency maintenance module sends a directory read request corresponding to the directory pre-fetch request to the system memory to read the consistency directory information corresponding to the first storage address; In response to the consistency directory information corresponding to the first storage address being stored in the system memory, the consistency maintenance module caches the consistency directory information corresponding to the first storage address in the first cache.

11. The electronic device according to claim 9, wherein: The consistency maintenance module is configured to process the directory prefetch request to cache the consistency directory information corresponding to the first storage address stored in the system memory into the first cache, and further includes: In response to the consistency directory information corresponding to the first storage address not existing in the system memory, the consistency maintenance module does not cache the consistency directory information corresponding to the first storage address in the first cache.

12. The electronic device according to claim 9, wherein: The access request is a data pre-fetch request.

13. The electronic device according to claim 9, wherein: The first processor includes the catalog prediction module.

14. The electronic device according to claim 10, wherein: The consistency maintenance module caches the consistency directory information corresponding to the first storage address into the first cache, including: In response to the absence of storage capacity conflict in the first cache, the consistency maintenance module directly caches the consistency directory information corresponding to the first storage address into the first cache.

15. The electronic device according to claim 10, wherein: The consistency maintenance module caches the consistency directory information corresponding to the first storage address into the first cache, and further includes: In response to a storage capacity conflict in the first cache, determining information to be replaced stored in the first cache based on a replacement rule; In response to the information to be replaced being consistent directory information, the consistent directory information corresponding to the first storage address is stored in the storage address for storing the information to be replaced in the first cache, and the information to be replaced is stored in the system memory.

16. The electronic device according to claim 15, wherein: The consistency maintenance module caches the consistency directory information corresponding to the first storage address into the first cache, and further includes: In response to the information to be replaced being data storage information, and the data state information corresponding to the data corresponding to the data storage information indicating a dirty state, storing the consistency directory information corresponding to the first storage address in the storage address for storing the information to be replaced in the first cache, and storing the information to be replaced in the system memory; In response to the information to be replaced being data storage information, and the data status information corresponding to the data corresponding to the data storage information indicates a clean state, the consistency directory information corresponding to the first storage address is stored in the storage address in the first cache for storing the information to be replaced.

17. A data processing device, comprising: a memory configured to store computer executable instructions; as well as a processor configured to execute the computer executable instructions, Wherein, when the computer executable instructions are executed by the processor, the method according to any one of claims 1-8 is implemented.

18. A non-transitory storage medium that non-transitorily stores computer-executable instructions, wherein: When the computer executable instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Method for accessing data in multiprocessor system and multiprocessor system

    CN113342709A

  • Electronic equipment, data processing method and device and computer system

    CN114238171A