Multi-node cache consistency maintenance method, device, equipment, medium and product
By using the node controller in the NUMA architecture to receive and process cache consistency requests and obtain target data directly from other nodes, the problem of low efficiency in processing cross-node cache consistency requests is solved and computing performance is improved.
Patent Information
- Application Number
- CN202410866670.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-01
AI Technical Summary
In the NUMA architecture, the processing efficiency of cross-node cache consistency requests is low, which affects the overall computing performance.
By receiving the cache consistency request of the remote computing node in the node controller of the local computing node, parsing the address field segment in the data packet, querying the cache of other remote computing nodes to see whether there is target data, and directly fetching data from other nodes when there is data. Gets and returns data without forwarding it to the master node module, thereby speeding up the processing of cache coherence requests.
It greatly improves the processing speed of cross-node cache consistency requests, shares the tasks of the main node module, and improves the overall computing performance.
Smart Images

Figure CN118394773B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a multi-node cache consistency maintenance method, device, equipment, medium and product. Background Art
[0002] The explosive growth of data processing volume and the rapid development of technologies such as artificial intelligence and cloud computing have placed increasing demands on the performance of computing systems. However, as Moore's Law approaches its limit, the rate of increase in the number of transistors in a single processor has gradually slowed down. The performance improvement of the central processing unit (CPU) mainly depends on the increase in the number of cores. As the number of cores increases, the performance bottleneck of the memory controller reading memory of the traditional processor using a symmetric multi-processor system architecture becomes increasingly obvious, resulting in very limited expansion capabilities. Based on this, the Non-Uniform Memory Access (NUMA) architecture has become a trend in the development of central processing units.
[0003] In the NUMA architecture, each computing node has its own memory, and this memory can also be accessed by other nodes, resulting in the CPU core accessing the memory in its own node faster than the memory access speed in other nodes. In the relevant technical solution, in order to maintain the cache consistency of the system, all cache consistency requests of a computing node will directly enter the main node module in the computing node for processing, which further leads to a decrease in the processing efficiency of cross-node cache consistency requests, thereby affecting the overall computing performance of the system. Summary of the invention
[0004] The purpose of the present invention is to provide a multi-node cache consistency maintenance method, device, equipment, medium and product, which can greatly improve the processing speed of cross-node cache consistency requests, thereby improving the overall computing performance.
[0005] In order to solve the above technical problems, the present invention provides a multi-node cache consistency maintenance method, which is applied to a node controller of a local computing node, and the method comprises:
[0006] Receiving a first cache coherence request sent by a first remote computing node;
[0007] Parsing the address field in the data packet of the first cache coherence request, querying whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node;
[0008] If yes, sending a first monitoring request to other remote computing nodes to make other remote computing nodes return the target data;
[0009] sending the target data to the first remote computing node;
[0010] If not, the first cache consistency request is forwarded to the master node module in the local computing node.
[0011] In a first aspect, the multi-node cache consistency maintenance method provided by the present invention further includes:
[0012] Receiving a second monitoring request from the local computing node;
[0013] Parse the address domain in the data packet of the second monitoring request, and when it is found that there is dirty data in a shared state corresponding to the parsing result in the cache of the target remote computing node, determine that the dirty data is stored in its own cache module, take out the dirty data and return it to the master node module in the local computing node;
[0014] At the same time, the second monitoring request is forwarded to the target remote computing node; the target remote computing node does not need to return data.
[0015] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, parsing the address field in the data packet of the first cache consistency request, querying whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node, includes:
[0016] Parsing the address field in the data packet of the first cache coherence request to obtain first target address information;
[0017] According to the first target address information, query its own directory module;
[0018] It is determined whether the caches of other remote computing nodes except the first remote computing node recorded in the directory module have the target data corresponding to the first target address information.
[0019] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, parsing the address field in the data packet of the first cache consistency request to obtain the first target address information includes:
[0020] When all computing nodes are m When the first cache coherence request is received, the first cache coherence request packet is parsed from the initial bit to Bit address encoding;
[0021] The address information obtained by parsing is used as the first target address information.
[0022] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, sending a first listening request to other remote computing nodes so that the other remote computing nodes return the target data includes:
[0023] A first monitoring request is sent to other remote computing nodes with the highest cache status authority, so that the other remote computing nodes with the highest cache status authority return the target data.
[0024] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, sending the target data to the first remote computing node includes:
[0025] When the target data is dirty data, the target data is sent to the first remote computing node, and the target data is stored in its own cache module;
[0026] When the target data is non-dirty data, only the target data is sent to the first remote computing node.
[0027] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, before receiving the first cache consistency request sent by the first remote computing node, it also includes:
[0028] When the directory record in the master node module in the local computing node has a cache line data corresponding to a memory address in the node controller in a state that the cache line exists only in the current cache, the directory module of the local computing node is used to record that the cache line data exists in the second remote computing node, and the state in the second remote computing node is that the cache line exists only in the current cache;
[0029] Correspondingly, determining whether the cache of other remote computing nodes except the first remote computing node recorded in the directory module has the target data corresponding to the first target address information includes:
[0030] Determine whether the cache of the second remote computing node recorded in the directory module has the target data corresponding to the first target address information;
[0031] Correspondingly, sending a first monitoring request to other remote computing nodes with the highest cache status authority so that other remote computing nodes with the highest cache status authority return the target data includes:
[0032] A first monitoring request is sent to the second remote computing node, so that the second remote computing node returns the target data.
[0033] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, when the second remote computing node returns the target data, it also includes:
[0034] The second remote computing node returns a snoop response message, and updates the cache line data state to a state that the cache line may be stored in other caches and is dirty according to the snoop response message;
[0035] Correspondingly, sending the target data to the first remote computing node includes:
[0036] The target data completes the monitoring response according to the received monitoring response information, and sends the completion response information and the target data to the first remote computing node.
[0037] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, while sending the completion response information and the target data to the first remote computing node, it also includes:
[0038] Writing the completion response information into its own cache module and updating the directory information in its own directory module;
[0039] A directory synchronization request is sent to the master node module in the local computing node to update the directory information of the master node module in the local computing node.
[0040] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, updating the directory information of the master node module in the local computing node includes:
[0041] The state of the cache line data recorded in the directory in the master node module in the local computing node in the node controller is updated to a state that the cache line may be stored in other caches and is dirty;
[0042] A response to the directory synchronization request is sent to the node controller.
[0043] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, after the first remote computing node receives the completion response information, it also includes:
[0044] updating the cache line data state to a state in which the cache line may be stored in other caches and may have been modified according to the completion response information;
[0045] A response to the completion response information is sent to the node controller.
[0046] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, the address field in the data packet of the second listening request is parsed, and when it is found that there is dirty data in a shared state corresponding to the parsing result in the cache of the target remote computing node, it is determined that the dirty data is stored in its own cache module, and the dirty data is taken out and returned to the master node module in the local computing node, including:
[0047] Parsing the address field in the data packet of the second monitoring request to obtain second target address information;
[0048] According to the second target address information, query its own directory module;
[0049] If the target remote computing node recorded in the directory module has dirty data corresponding to the second target address information, and the dirty data is in a shared state, it is determined that the dirty data is also stored in its own cache module;
[0050] The dirty data is retrieved according to the second target address information and sent to a master node module in the local computing node.
[0051] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, parsing the address field in the data packet of the second monitoring request to obtain the second target address information includes:
[0052] When all computing nodes are m When the second monitoring request data packet is parsed, the first bit is from the initial bit to the Bit address encoding;
[0053] The address information obtained by parsing is used as the second target address information.
[0054] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, before receiving the second monitoring request of the local computing node, it also includes:
[0055] When the directory record in the main node module within the local computing node has a cache line data corresponding to a memory address and the status in the node controller is that the cache line may be stored in other caches and is dirty, its own directory module is used to record that the cache line data only exists in the target remote computing node, and the status in the target remote computing node is that the cache line may be stored in other caches and is dirty.
[0056] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, receiving the second monitoring request of the local computing node includes:
[0057] When the master node module in the local computing node receives the second cache consistency request sent by the target remote computing node, and finds that the address data of the second cache consistency request is dirty data located in the cache of the target remote computing node and in a shared state, the second listening request sent by the local computing node is received.
[0058] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, after forwarding the second listening request to the target remote computing node, it also includes:
[0059] The target remote computing node updates the cache line data state to a state in which the cache line may be stored in other caches and may have been modified according to the second listening request;
[0060] The monitoring response information for the second monitoring request is returned to the node controller.
[0061] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, taking out the dirty data according to the second target address information and sending it to the master node module in the local computing node includes:
[0062] The dirty data is retrieved according to the second target address information, and the dirty data and the monitoring response information are sent to the main node module in the local computing node, so that the main node module in the local computing node updates the directory information after receiving the dirty data and the monitoring response information.
[0063] On the other hand, in the multi-node cache consistency maintenance method provided by the present invention, after returning the monitoring response information for the second monitoring request to the node controller, it also includes:
[0064] Update the state of the cache line data recorded in the directory information in the own directory module in the target remote node to a state in which the cache line may be stored in other caches and may have been modified;
[0065] At the same time, a directory synchronization request is sent to the master node module in the local computing node so that the state of the cache line data recorded in the directory in the master node module in the local computing node in the node controller is updated to a state where the cache line may be stored in other caches and may have been modified.
[0066] In order to solve the above technical problems, the present invention also provides a multi-node cache consistency maintenance device, which is applied to a node controller of a local computing node, and the device includes:
[0067] A request receiving module, configured to receive a first cache coherence request sent by a first remote computing node;
[0068] a request processing module, configured to parse the address domain in the data packet of the first cache coherence request, and query whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node;
[0069] A request routing module, used for sending a first listening request to other remote computing nodes to enable other remote computing nodes to return the target data when it is found that the target data corresponding to the parsing result is in the cache of other remote computing nodes except the first remote computing node; sending the target data to the first remote computing node; and forwarding the first cache consistency request to the main node module in the local computing node when it is found that the target data corresponding to the parsing result is not in the cache of other remote computing nodes except the first remote computing node.
[0070] On the other hand, in the above-mentioned multi-node cache consistency maintenance device provided by the present invention, the request receiving module is further used to receive a second monitoring request of the local computing node;
[0071] The request processing module is further used to parse the address domain segment in the data packet of the second monitoring request, and query whether there is target data corresponding to the parsing result in the cache of the target remote computing node;
[0072] The request routing module is also used to determine that the dirty data is stored in its own cache module when it is found that there is dirty data in a shared state corresponding to the parsing result in the cache of the target remote computing node, and return the dirty data to the main node module in the local computing node; at the same time, forward the second listening request to the target remote computing node; the target remote computing node does not need to return data.
[0073] In order to solve the above technical problems, the present invention also provides a multi-node cache consistency maintenance device, the device comprising:
[0074] Memory for storing computer programs;
[0075] A processor is used to implement the steps of the above-mentioned multi-node cache consistency maintenance method when executing the computer program.
[0076] In order to solve the above technical problem, the present invention also provides a non-volatile storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above multi-node cache consistency maintenance method are implemented.
[0077] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the above multi-node cache consistency maintenance method when executed by a processor.
[0078] It can be seen from the above technical scheme that a multi-node cache consistency maintenance method provided by the present invention is applied to a node controller of a local computing node, and the method includes: receiving a first cache consistency request sent by a first remote computing node; parsing the address field segment in the data packet of the first cache consistency request, and querying whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node; if so, sending a first listening request to the other remote computing nodes to enable the other remote computing nodes to return the target data; sending the target data to the first remote computing node; if not, forwarding the first cache consistency request to the master node module in the local computing node.
[0079] The beneficial effect of the present invention lies in that in the above-mentioned multi-node cache consistency maintenance method provided by the present invention, the cache consistency request can be received and processed by the node controller of the local computing node. When the node controller receives the first cache consistency request sent by the first remote computing node, it parses the address field segment in the request data packet. If it is queried that the cache in other remote computing nodes has the target data corresponding to the parsed result, a first listening request can be initiated in advance to send the target data to the other remote computing nodes, so that the target data is returned to the node controller, which is convenient for the node controller to send the target data to the first remote computing node that initiated the first cache consistency request. In this process, the node controller does not need to forward the first cache consistency request to the main node module in the local computing node, that is, the node controller shares part of the tasks of the main node module, which can greatly improve the processing speed of cross-node cache consistency requests, thereby improving the overall computing performance.
[0080] In addition, the present invention also provides a corresponding multi-node cache consistency maintenance device, a multi-node cache consistency maintenance equipment, a non-volatile storage medium and a product for a multi-node cache consistency maintenance method, which have the same or corresponding technical features as the above-mentioned multi-node cache consistency maintenance method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0082] Figure 1A flow chart of a multi-node cache consistency maintenance method provided by an embodiment of the present invention;
[0083] Figure 2 A schematic diagram of a framework of multiple computing nodes and corresponding node controllers provided by an embodiment of the present invention;
[0084] Figure 3 The embodiment of the present invention provides Figure 1 Corresponding signaling interaction diagram;
[0085] Figure 4 A schematic diagram of a data packet format for a directory synchronization request provided by an embodiment of the present invention;
[0086] Figure 5 Another flow chart of a multi-node cache consistency maintenance method provided by an embodiment of the present invention;
[0087] Figure 6 The embodiment of the present invention provides Figure 5 Corresponding signaling interaction diagram;
[0088] Figure 7 A schematic diagram of the structure of a multi-node cache consistency maintenance device provided by an embodiment of the present invention;
[0089] Figure 8 A schematic diagram of the structure of a multi-node cache consistency maintenance device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0090] The NUMA architecture is an architectural model for multiple central processing units to access memory. In this architectural model, the central processing units are divided into different groups, each of which consists of one or more central processing units and has independent local memory, input / output (I / O) and other resources. In the NUMA architecture, each node has its own memory and computing resources, which allows the processor to allocate resources more flexibly and improves overall performance and efficiency. In addition, the NUMA architecture can also expand the computing and storage capabilities of the processor by increasing the number of nodes, making it an architecture that is very suitable for large-scale parallel processing. However, in the relevant technical solutions, in order to maintain the cache consistency of the system, all cache consistency requests of the computing node will directly enter the main node module in the computing node for processing, which further leads to a decrease in the processing efficiency of cross-node cache consistency requests, thereby affecting the overall computing performance of the system.
[0091] Based on this, the present invention provides a multi-node cache consistency maintenance method, device, equipment, medium and product to solve the technical problem of reduced processing efficiency of cross-node cache consistency requests mentioned above.
[0092] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.
[0093] In order to make the technical personnel in this field better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. A multi-node cache consistency maintenance method provided by the present invention is applied to a node controller of a local computing node. Figure 1 A flow chart of a multi-node cache consistency maintenance method provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0094] S101. Receive a first cache coherence request sent by a first remote computing node.
[0095] It should be noted that cache consistency refers to maintaining data consistency when data is cached on multiple nodes in a distributed system; when data changes, it is necessary to ensure that cached data on all nodes can be updated in a timely manner to avoid problems with dirty or expired data. The cache consistency request of the present invention refers to a cross-node cache consistency request.
[0096] When executing step S101, the first cache consistency request sent by the first remote computing node can be received by the request receiving module in the node controller corresponding to the local computing node. The node controller here can be understood as a cache consistency request agent between the local computing node and other computing nodes other than the local computing node. The node controller can forward memory access requests (such as cache consistency requests) sent by the local computing node to other computing nodes, and can also forward memory access requests (such as cache consistency requests) sent by other computing nodes to the local computing node. The first cache consistency request here can be a cache consistency read request.
[0097] S102: Parse the address field in the data packet of the first cache coherence request.
[0098] It should be noted that the above data packets are data transmission units below the transport layer. The above address field is the part of the data packet that is used to identify the address information of the sender, receiver or intermediate routing point. These address information may include source address, destination address, LAN (Media Access Control Address, referred to as MAC) address, logical address or port number, etc., depending on the network protocol and hierarchy used.
[0099] When executing step S102, the node controller may be responsible for processing cache coherence requests sent from other computing nodes to the local computing node. Specifically, the address field in the data packet of the first cache coherence request may be parsed by the data processing module of the node controller.
[0100] S103: Query whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node.
[0101] It should be pointed out that the node controller of the present invention itself has a cache module and a directory module; wherein the cache module can store cache data of some other computing nodes, for example, after the storage node controller processes a cache consistency request, the dirty cache data in a shared state corresponding to the memory address maintained by the local computing node in other remote computing nodes; the directory module can record the status of the cache data corresponding to the memory address managed by the local computing node in all caches in each remote computing node.
[0102] When executing step S103, the present invention can query through the data processing module of the node controller whether there is target data corresponding to the parsing result (i.e., the data copy corresponding to the memory address in the address domain segment) in the cache of other remote computing nodes except the first remote computing node in the directory module according to the address domain segment in the data packet of the first cache consistency request.
[0103] If yes, then execute step S104 and step S105 in sequence; if no, then execute step S106;
[0104] S104: Send a first monitoring request to other remote computing nodes, so that the other remote computing nodes return target data.
[0105] S105. Send the target data to the first remote computing node.
[0106] During implementation, if it is queried that the cache in other remote computing nodes contains target data corresponding to the parsing result, a listening request to the other remote computing nodes can be initiated in advance. When the target data in the other remote computing nodes is returned to the node controller, the target data is returned to the first remote computing node that initiated the request. The entire process completes the request without forwarding the cache consistency request to the main node module inside the local computing node, that is, the task part that should have been processed by the main node module is unloaded to the node controller.
[0107] S106. Forward the first cache consistency request to the master node module in the local computing node.
[0108] In implementation, if no target data corresponding to the parsing result is found in the cache of other remote computing nodes, the first cache consistency request is directly forwarded to the master node module in the local computing node, and the master node module processes the first cache consistency request. This processing process can be consistent with the traditional request processing method.
[0109] When executing step S104 to step S106, the present invention can forward the first monitoring request and the first cache consistency request accordingly through the data routing module of the node controller.
[0110] In the above-mentioned multi-node cache consistency maintenance method provided by an embodiment of the present invention, a cache consistency request can be received and processed by a node controller of a local computing node. When the node controller receives a first cache consistency request sent by a first remote computing node, it parses the address field in the request data packet. If it is found that the cache in other remote computing nodes has target data corresponding to the parsed result, a first listening request can be initiated in advance to send the target data to the other remote computing nodes, so that the target data is returned to the node controller, which is convenient for the node controller to send the target data to the first remote computing node that initiated the first cache consistency request. In this process, the node controller does not need to forward the first cache consistency request to the main node module in the local computing node, that is, the node controller shares part of the tasks of the main node module, which can greatly improve the processing speed of cross-node cache consistency requests, thereby improving the overall computing performance.
[0111] Figure 2 A schematic diagram of the framework of multiple computing nodes and corresponding node controllers provided by an embodiment of the present invention. Figure 2 As shown, each computing node includes one or more request node modules (Request Node, referred to as RN, i.e., the initiator of cache consistency request) and one or more home node modules (HomeNode, referred to as HN, i.e., the processor of cache consistency request). Figure 2 It shows computing node 1, computing node 2, computing node 3, ..., computing node n, node controller 01, node controller 02, node controller 03, and node controller N. Computing node 1 corresponds to node controller 01, computing node 2 corresponds to node controller 03, computing node 3 corresponds to node controller 03, and computing node n corresponds to node controller N. Each computing node here includes a request node module, a main node module, and a memory, and each node controller includes a request receiving module, a directory module, a request processing module, a request routing module, and a cache module; the request node module and the main node module are interconnected, and the main node module and the memory are interconnected; the main node module and the node controller are interconnected, and different node controllers are interconnected.
[0112] Furthermore, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, the address field segments in the data packet of the first cache consistency request are parsed in step S102 and step S103, and whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node is queried. Specifically, it may include: parsing the address field segments in the data packet of the first cache consistency request to obtain first target address information; querying its own directory module based on the first target address information; and determining whether the cache of other remote computing nodes except the first remote computing node recorded in the directory module has the target data corresponding to the first target address information.
[0113] During implementation, after the first remote computing node sends a first cache consistency read request, it first parses the address field in the request data packet to obtain the first target address information, and then queries its own directory module based on the first target address information to determine whether other remote computing nodes recorded in the directory module have a copy of the data corresponding to the first target address information.
[0114] Furthermore, in a specific implementation, the above step of parsing the address field in the data packet of the first cache coherence request to obtain the first target address information may specifically include: when all computing nodes are m When the first cache coherence request is parsed, the first cache coherence request packet is parsed from the initial bit to The address information obtained by parsing is used as the first target address information.
[0115] In implementation, the request routing module in the node controller forwards the request to the target node according to the corresponding routing mode, such as: m Compute nodes, the front of the memory address (Round up) bits correspond to the server node code (for example, if there are 64 computing nodes, the first The request routing module can parse the first n bits of the address code in the data packet of the first cache consistency request and forward the request to the target node server.
[0116] Further, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, step S104 sends a first listening request to other remote computing nodes so that other remote computing nodes return target data, which may specifically include: sending a first listening request to other remote computing nodes with the highest cache status authority so that other remote computing nodes with the highest cache status authority return target data.
[0117] In implementation, if other remote computing nodes recorded in the directory module have data copies corresponding to the first target address information, a first monitoring request is sent to other remote computing nodes with the highest cache status authority recorded in the directory module, requiring them to return data.
[0118] Further, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, step S105 sends the target data to the first remote computing node, which may specifically include: when the target data is dirty data, sending the target data to the first remote computing node, and storing the target data in its own cache module; when the target data is non-dirty data, only sending the target data to the first remote computing node.
[0119] In implementation, if the target data returned at this time is dirty data, the dirty data is sent to the first remote request node and stored in the cache module in the node controller for subsequent processing of the first cross-node cache consistency request; if the target data returned is clean data, the target data is only sent to the first remote computing node.
[0120] Furthermore, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, before executing step S101 to receive the first cache consistency request sent by the first remote computing node, it may also include: when the directory record in the main node module in the local computing node has a cache line data corresponding to a memory address and the status in the node controller is that the cache line only exists in the current cache (Unique, referred to as U state), using its own directory module to record that the cache line data exists in the second remote computing node, and the status in the second remote computing node is that the cache line only exists in the current cache.
[0121] Correspondingly, determining whether the cache of other remote computing nodes recorded in the directory module except the first remote computing node has the target data corresponding to the first target address information may specifically include: determining whether the cache of the second remote computing node recorded in the directory module has the target data corresponding to the first target address information.
[0122] Correspondingly, sending a first listening request to other remote computing nodes with the highest cache status authority so that other remote computing nodes with the highest cache status authority return target data may specifically include: sending a first listening request to the second remote computing node so that the second remote computing node returns the target data.
[0123] Figure 3 The embodiment of the present invention provides Figure 1 The corresponding signaling interaction diagram is shown below. Figure 3As shown, the directory in the main node module in the local computing node records that the state of the cache line data corresponding to a certain memory address in the node controller is U state (i.e., U@node controller), and the directory module in the node controller records that the cache line data exists in the second remote computing node, and the state is U state (i.e., U@second remote computing node). At this time, the state of the cache line data in other remote computing nodes except the second remote computing node is invalid (Invalid, referred to as I state), that is, the state is I@other remote nodes. When the first remote computing node issues a shared read request, it reaches the node controller of the local computing node through the interconnection network. The node controller then queries the directory module to determine whether the cache of the second remote computing node recorded in the directory module has the target data corresponding to the first target address information, and sends a first monitoring request to the second remote computing node through the interconnection network; after receiving the first monitoring request, the second remote computing node returns the dirty data to the node controller.
[0124] Furthermore, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, while the second remote computing node returns the target data, it may also include: the second remote computing node returns a monitoring response message, and updates the cache line data status to a Shared Dirty (SD) state in which the cache line may be stored in other caches and is dirty according to the monitoring response information.
[0125] Correspondingly, sending the target data to the first remote computing node may specifically include: completing a listening response for the target data according to the received listening response information, and sending the completion response information and the target data to the first remote computing node.
[0126] In implementation, when the second remote computing node returns the dirty data to the node controller along with the snoop response information, the cache line data state can be updated to the SD state according to the snoop response information. After receiving the snoop response information and the dirty data, the node controller sends the data along with the request completion response to the request initiator, i.e., the first remote computing node.
[0127] Furthermore, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, while sending the completion response information and the target data to the first remote computing node, it may also include: first, writing the completion response information to its own cache module, and updating the directory information in its own directory module; then, sending a directory synchronization request to the master node module in the local computing node to update the directory information of the master node module in the local computing node.
[0128] During implementation, the node controller can write dirty data and completion response information into its own cache module, and update the directory information in the directory module at the same time. It can then send a directory synchronization request to the master node module in the local computing node to update the directory information of the master node module.
[0129] Figure 4 Schematic diagram of the data packet format of the directory synchronization request provided by the embodiment of the present invention. Figure 4 As shown, the data packet format of the directory synchronization request may include the memory address information (such as address code [x:0]) required in the directory synchronization mechanism and the node controller cache data status information (such as status code [m:0]).
[0130] In addition, in order to efficiently maintain the cache consistency of the system, an independent channel can be set up for the data packets of the above-mentioned directory synchronization request to prevent congestion with other types of requests. The data packets of the above-mentioned directory synchronization request can also be set up through channels such as request response channels that are unconditionally received by the target node. Details are not given here.
[0131] In specific implementation, the above steps update the directory information of the main node module in the local computing node, which may specifically include: updating the status of the cache row data of the directory record in the main node module in the local computing node in the node controller to the SD status (i.e., SD@node controller); and sending a response to the directory synchronization request to the node controller.
[0132] The cache consistency of the master node module and the node controller in the local computing node of the present invention can have a directory synchronization mechanism, which reduces unnecessary cache consistency monitoring requests, thereby further improving the processing speed of cache consistency requests.
[0133] It should be emphasized that after the node controller completes processing of the cache consistency request, the node controller can send a directory synchronization request to the master node module in the node. After receiving the directory synchronization request, the master node module updates the directory information maintained by itself and sends a completion signal to the node controller. After receiving the signal, the node controller considers that the directory synchronization request has been processed.
[0134] After the node controller completes processing of the cross-node cache consistency request, the directory module will update the cache data status of other computing nodes after the request is completed. As the cache consistency request agent between the local computing node and other computing nodes, it is necessary to synchronize the updated cache data status of other computing nodes to the master node module in the local node so that the master node module can correctly handle subsequent cache consistency requests and maintain the cache consistency of the system.
[0135] Furthermore, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, after the first remote computing node receives the completion response information, it may also include: updating the cache line data state to a state in which the cache line may be stored in other caches and may have been modified according to the completion response information; and sending a response to the completion response information to the node controller.
[0136] In implementation, after the first remote computing node receives the completion response information, the state of the cache line data in the first remote computing node can be changed from the I state to a state in which the cache line may be stored in other caches and may have been modified (Shared Clean, referred to as SC state), that is, SC@first remote computing node, according to the completion response information, and the shared read request is ended.
[0137] In order to ensure the request order, after receiving the completion response information, the first remote computing node may send a response to the completion response to the node controller, and then terminate the read request.
[0138] It should be added that the above process is one case of a method for processing a cross-node cache consistency request. Another case of a method for processing a cross-node cache consistency request is introduced below.
[0139] Figure 5 Another flow chart of the multi-node cache consistency maintenance method provided by the embodiment of the present invention. Figure 5 As shown, in the above multi-node cache consistency maintenance method provided by the embodiment of the present invention, it can also include:
[0140] S201. Receive a second monitoring request from a local computing node.
[0141] In the specific implementation, step S201 receives the second listening request of the local computing node, which may specifically include: when the master node module in the local computing node receives the second cache consistency request sent by the target remote computing node, and it is queried that the address data of the second cache consistency request is dirty data located in the cache of the target remote computing node and in a shared state, the second listening request sent by the local computing node is received.
[0142] During implementation, when the main node module in the local computing node processes the second cache consistency request, it queries that the target address data of the request is dirty data, located in the cache of the request node module of other nodes, and is in a shared state. At this time, the second monitoring request can be sent to the node controller of the local node.
[0143] S202. Parse the address field in the data packet of the second monitoring request. When it is found that there is dirty data in a shared state corresponding to the parsing result in the cache of the target remote computing node, it is determined that the dirty data is stored in its own cache module, and the dirty data is taken out and returned to the main node module in the local computing node.
[0144] In implementation, the address domain in the data packet of the second listening request is parsed, and the target remote computing node's cache is queried based on the parsing result to see if there is dirty data in a shared state corresponding to the parsing result. If so, it means that the cache module in the node controller has also cached the dirty data, so the dirty data is taken out based on the address domain information and returned to the master node module in the local computing node. If not, the master node module in the local computing node directly processes the second cache consistency request.
[0145] S203. Simultaneously forward the second monitoring request to the target remote computing node; the target remote computing node does not need to return data.
[0146] In implementation, the node controller of the present invention is also responsible for caching the data (such as dirty data) in the shared state in the cache corresponding to the memory data maintained by the local computing node in the master node module in other remote computing nodes, shortening the distance between the data and the local computing node, so that the requesting node module in the local computing node can quickly return the dirty data when it needs it. At this time, the second monitoring request can be forwarded to other computing nodes storing the dirty data, but there is no need to require them to return the data, thereby reducing the data transmission load of the interconnection network of each computing node, and the master node module can receive the dirty data earlier.
[0147] Further, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, step S202 parses the address field segment in the data packet of the second listening request, and when it is queried that there is dirty data in a shared state corresponding to the parsed result in the cache of the target remote computing node, it is determined that the dirty data is stored in its own cache module, and the dirty data is taken out and returned to the main node module in the local computing node. Specifically, it may include: parsing the address field segment in the data packet of the second listening request to obtain the second target address information; querying its own directory module according to the second target address information; if the target remote computing node recorded in the directory module has dirty data corresponding to the second target address information, and the dirty data is in a shared state, it is determined that the dirty data is also stored in its own cache module; taking out the dirty data according to the second target address information, and sending it to the main node module in the local computing node.
[0148] In implementation, after receiving the second listening request from the local computing node, the address field in the request data packet is first parsed to obtain the second target address information, and then the directory module of the local computing node is queried according to the second target address information to determine whether the target remote computing node recorded in the directory module has a data copy corresponding to the second target address information. If so, it is determined that the dirty data is also stored in the cache module of the local computing node, and the dirty data is taken out according to the second target address information and sent to the master node module in the local computing node.
[0149] Further, in the specific implementation, in the multi-node cache consistency maintenance method provided in the embodiment of the present invention, the above step of parsing the address field in the data packet of the second listening request to obtain the second target address information may specifically include: when all computing nodes are m When the second listening request data packet is parsed, the first bit to the The address information obtained by parsing is used as the second target address information.
[0150] In implementation, the request routing module in the node controller forwards the second listening request to the target remote computing node according to the corresponding routing mode, such as: m Compute nodes, the front of the memory address (Round up) bits correspond to the server node code (for example, if there are 64 computing nodes, the first The request routing module can parse the first n bits of the address code in the data packet of the second monitoring request, and then forward the second monitoring request to the target remote computing node.
[0151] Furthermore, in a specific implementation, before executing step S201 to receive the second listening request of the local computing node, it may also include: when the directory record in the main node module within the local computing node has a cache line data corresponding to a memory address and the status in the node controller is that the cache line may be stored in other caches and is dirty, using its own directory module to record that the cache line data only exists in the target remote computing node, and the status in the target remote computing node is that the cache line may be stored in other caches and is dirty.
[0152] Figure 6 The embodiment of the present invention provides Figure 5 The corresponding signaling interaction diagram is shown below. Figure 6As shown, the directory in the master node module in the local computing node records that the state of the cache line data corresponding to a certain memory address in the node controller is SD state (i.e. SD@node controller), and the directory module in the node controller records that the cache line data only exists in the target remote computing node, and the state is SD state (i.e. SD@target remote computing node). At this time, the state of the cache line data in other remote computing nodes except the target remote computing node is I state (i.e. I@other remote computing nodes). Due to the request initiated by the request node module in the local computing node, the master node module initiates a second monitoring request to the node controller. After the node controller accepts the second monitoring request, it queries the directory and sends the second monitoring request to the target remote node through the interconnection network.
[0153] Furthermore, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, after forwarding the second listening request to the target remote computing node, it may also include: the target remote computing node updates the cache line data state to a state in which the cache line may be stored in other caches and may have been modified according to the second listening request; and returns the listening response information for the second listening request to the node controller.
[0154] That is, after the target remote computing node receives the second monitoring request sent by the local node controller, it can directly update the cache line data state to the SC state (ie, SC@target remote node) according to the second monitoring request information, and send a monitoring response message to the node controller without returning the dirty data.
[0155] Furthermore, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, the dirty data is taken out according to the second target address information and sent to the master node module in the local computing node, which may specifically include: taking out the dirty data according to the second target address information, and sending the dirty data and the monitoring response information to the master node module in the local computing node, so that the master node module in the local computing node updates the directory information after receiving the dirty data and the monitoring response information.
[0156] In implementation, after sending the second listening request to the target remote node, the dirty data can be taken out from the cache module according to the address information and sent to the master node module along with the listening response information. After receiving the response and the dirty data, the master node module changes the directory information to "SC@Node Controller" and ends the listening request processing flow initiated to the node controller.
[0157] Furthermore, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance method provided in an embodiment of the present invention, after returning the listening response information for the second listening request to the node controller, it may also include: updating the status of the cache line data recorded in the directory information in its own directory module in the target remote node to a state in which the cache line may be stored in other caches and may have been modified; and at the same time, sending a directory synchronization request to the master node module in the local computing node, so that the status of the cache line data recorded in the directory in the master node module in the local computing node in the node controller is updated to a state in which the cache line may be stored in other caches and may have been modified.
[0158] In implementation, after receiving the monitoring response information, the node controller may change the directory information to "SC@remote node 1, I@other remote nodes" and terminate the monitoring request processing flow initiated to the target remote node.
[0159] It should be added that the multi-node cache consistency maintenance method provided by the present invention can be applied to a computing system composed of large-scale multi-computing node interconnections based on the NUMA architecture. By setting a node controller, the shared dirty cache data located in the remote computing node is closer to the local computing node; at the same time, the cache consistency request initiated by the remote computing node is processed, so that the listening request that should be initiated by the main node module in the local computing node is issued in advance, thereby improving the system's processing speed for cache consistency requests. In addition, it should be pointed out that the multi-node cache consistency maintenance method of the present invention does not need to set limits on routing methods, interconnection network architectures, or specific cache consistency protocols.
[0160] In the above embodiments, the multi-node cache consistency maintenance method is described in detail, and the present invention also provides a multi-node cache consistency maintenance device and a multi-node cache consistency maintenance device. It should be noted that the present invention describes the device embodiment from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0161] Figure 7 This is a schematic diagram of the structure of a multi-node cache consistency maintenance device provided by an embodiment of the present invention. This embodiment is based on the perspective of functional modules and is applied to a node controller of a local computing node, such as Figure 7 As shown, the device may include:
[0162] A request receiving module 10, configured to receive a first cache coherence request sent by a first remote computing node;
[0163] The request processing module 11 is used to parse the address field in the data packet of the first cache coherence request, and query whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node;
[0164] The request routing module 12 is used to send a first listening request to other remote computing nodes to enable other remote computing nodes to return the target data when it is found that the target data corresponding to the parsing result is in the cache of other remote computing nodes except the first remote computing node; send the target data to the first remote computing node; and forward the first cache consistency request to the main node module in the local computing node when it is found that the target data corresponding to the parsing result is not in the cache of other remote computing nodes except the first remote computing node.
[0165] In the above-mentioned multi-node cache consistency maintenance device provided by an embodiment of the present invention, the request receiving module 10 receives the first cache consistency request sent by the first remote computing node, and uses the request routing module 11 to parse the address field segment in the request data packet. If the request processing module 12 queries that the cache in other remote computing nodes has target data corresponding to the parsing result, it can initiate a first listening request to other remote computing nodes in advance, so that the target data is returned to the node controller, which is convenient for the node controller to send the target data to the first remote computing node that initiated the first cache consistency request. In this process, the node controller does not need to forward the first cache consistency request to the main node module in the local computing node, that is, the node controller shares part of the task of the main node module, which can greatly improve the processing speed of cross-node cache consistency requests, thereby improving the overall computing performance.
[0166] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part refer to the description of the embodiments of the method part, which will not be described here. And it has the same beneficial effects as the multi-node cache consistency maintenance method mentioned above.
[0167] Furthermore, in a specific implementation, in the multi-node cache consistency maintenance device provided in the embodiment of the present invention, the request receiving module 10 may also be used to receive a second monitoring request from a local computing node;
[0168] The request processing module 11 may also be used to parse the address domain in the data packet of the second monitoring request, and query whether there is target data corresponding to the parsing result in the cache of the target remote computing node;
[0169] The request routing module 12 can also be used to determine that dirty data is stored in its own cache module when it is found that there is dirty data in a shared state corresponding to the parsing result in the cache of the target remote computing node, and return the dirty data to the main node module in the local computing node; at the same time, the second listening request is forwarded to the target remote computing node; the target remote computing node does not need to return data.
[0170] Furthermore, in a specific implementation, in the above-mentioned multi-node cache consistency maintenance device provided in an embodiment of the present invention, the request processing module 11 can be specifically used to parse the address field segment in the data packet of the first cache consistency request to obtain the first target address information; query its own directory module based on the first target address information; determine whether the cache of other remote computing nodes other than the first remote computing node recorded in the directory module has the target data corresponding to the first target address information; and can also be specifically used to parse the address field segment in the data packet of the second listening request to obtain the second target address information; query its own directory module based on the second target address information; determine whether the target remote computing node recorded in the directory module has dirty data corresponding to the second target address information.
[0171] Further, in specific implementation, in the above-mentioned multi-node cache consistency maintenance device provided by the embodiment of the present invention, the request routing module 12 can be specifically used to send a first listening request to other remote computing nodes with the highest cache status authority, so that other remote computing nodes with the highest cache status authority return the target data; it can also be specifically used to send the target data to the first remote computing node when the target data is dirty data, and store the target data in its own cache module at the same time; when the target data is non-dirty data, only send the target data to the first remote computing node; it can also be specifically used to determine that the dirty data is also stored in its own cache module if the target remote computing node recorded in the directory module has dirty data corresponding to the second target address information, and the dirty data is in a shared state; the dirty data is taken out according to the second target address information, and sent to the main node module in the local computing node.
[0172] Furthermore, in a specific implementation, the multi-node cache consistency maintenance device provided in the embodiment of the present invention may further include:
[0173] A directory module for recording that cache line data exists in a second remote computing node and that the state in the second remote computing node is that the cache line only exists in the current cache when a directory record in a master node module in a local computing node has a cache line data corresponding to a memory address and that the state in the node controller is that the cache line only exists in the current cache; and for recording that cache line data only exists in a target remote computing node and that the state in the target remote computing node is that the cache line may be stored in other caches and is dirty when a directory record in a master node module in a local computing node has a cache line data corresponding to a memory address and that the state in the node controller is that the cache line may be stored in other caches and is dirty.
[0174] Figure 8 This is a structural diagram of a multi-node cache consistency maintenance device provided by an embodiment of the present invention. This embodiment is based on the hardware perspective, such as Figure 8 As shown, the multi-node cache consistency maintenance device includes:
[0175] A memory 20, used for storing computer programs;
[0176] The processor 21 is used to implement the steps of the multi-node cache consistency maintenance method mentioned in the above embodiment when executing a computer program.
[0177] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0178] The memory 20 may include one or more non-volatile storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the multi-node cache consistency maintenance method disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be short-term storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to the data involved in the multi-node cache consistency maintenance method mentioned above.
[0179] In some embodiments, the multi-node cache consistency maintenance device may further include a display screen 22, an input and output interface 23, a communication interface 24, a power supply 25, and a communication bus 26. Those skilled in the art will appreciate that Figure 8 The structure shown in does not constitute a limitation on the multi-node cache consistency maintenance device, and may include more or fewer components than shown in the figure. The multi-node cache consistency maintenance device provided by the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following method: a multi-node cache consistency maintenance method, the effect is the same as above.
[0180] Finally, the present invention also provides an embodiment corresponding to a non-volatile storage medium. The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0181] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code. The non-volatile storage medium provided by the present invention can implement the multi-node cache consistency maintenance method mentioned above, and the effect is the same as above.
[0182] Finally, the present invention also provides an embodiment corresponding to a computer program product. The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps described in the above multi-node cache consistency maintenance method embodiment are implemented. The computer program product provided by the present invention can implement the multi-node cache consistency maintenance method mentioned above, and the effect is the same as above.
[0183] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or equipment including the elements.
[0184] The multi-node cache consistency maintenance method, device, equipment, medium and product provided by the present invention are introduced in detail above. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified in several ways, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A multi-node cache consistency maintenance method, characterized in that: A node controller applied to a local computing node, the method comprising: Receiving a first cache coherence request sent by a first remote computing node; Parsing the address field in the data packet of the first cache coherence request, querying whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node; If yes, sending a first monitoring request to other remote computing nodes to make other remote computing nodes return the target data; sending the target data to the first remote computing node; If not, forwarding the first cache coherence request to the master node module in the local computing node; Receiving a second monitoring request from the local computing node; Parse the address domain in the data packet of the second monitoring request, and when it is found that there is dirty data in a shared state corresponding to the parsing result in the cache of the target remote computing node, determine that the dirty data is stored in its own cache module, take out the dirty data and return it to the master node module in the local computing node; At the same time, the second monitoring request is forwarded to the target remote computing node; the target remote computing node does not need to return data.
2. The multi-node cache consistency maintenance method according to claim 1, characterized in that: Parsing the address field in the data packet of the first cache coherence request, and querying whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node, including: Parsing the address field in the data packet of the first cache coherence request to obtain first target address information; According to the first target address information, query its own directory module; It is determined whether the caches of other remote computing nodes except the first remote computing node recorded in the directory module have the target data corresponding to the first target address information.
3. The multi-node cache consistency maintenance method according to claim 2, characterized in that: Parsing the address field in the data packet of the first cache coherence request to obtain first target address information includes: When all computing nodes are m When the first cache coherence request is received, the first cache coherence request packet is parsed from the initial bit to Bit address encoding; The address information obtained by parsing is used as the first target address information.
4. The multi-node cache consistency maintenance method according to claim 2, characterized in that: Sending a first monitoring request to other remote computing nodes so that the other remote computing nodes return the target data includes: A first monitoring request is sent to other remote computing nodes with the highest cache status authority, so that the other remote computing nodes with the highest cache status authority return the target data.
5. The multi-node cache consistency maintenance method according to claim 1, characterized in that: Sending the target data to the first remote computing node includes: When the target data is dirty data, the target data is sent to the first remote computing node, and the target data is stored in its own cache module; When the target data is non-dirty data, only the target data is sent to the first remote computing node.
6. The multi-node cache consistency maintenance method according to claim 4, characterized in that: Before receiving the first cache coherence request sent by the first remote computing node, the method further includes: When the directory record in the master node module in the local computing node has a cache line data corresponding to a memory address in the node controller in a state that the cache line exists only in the current cache, the directory module of the local computing node is used to record that the cache line data exists in the second remote computing node, and the state in the second remote computing node is that the cache line exists only in the current cache; Correspondingly, determining whether the cache of other remote computing nodes except the first remote computing node recorded in the directory module has the target data corresponding to the first target address information includes: Determine whether the cache of the second remote computing node recorded in the directory module has the target data corresponding to the first target address information; Correspondingly, sending a first monitoring request to other remote computing nodes with the highest cache status authority so that other remote computing nodes with the highest cache status authority return the target data includes: A first monitoring request is sent to the second remote computing node, so that the second remote computing node returns the target data.
7. The multi-node cache consistency maintenance method according to claim 6, characterized in that: When the second remote computing node returns the target data, the method further includes: The second remote computing node returns a snoop response message, and updates the cache line data state to a state that the cache line may be stored in other caches and is dirty according to the snoop response message; Correspondingly, sending the target data to the first remote computing node includes: The target data completes the monitoring response according to the received monitoring response information, and sends the completion response information and the target data to the first remote computing node.
8. The multi-node cache consistency maintenance method according to claim 7, characterized in that: While sending the completion response information and the target data to the first remote computing node, the method further includes: Writing the completion response information into its own cache module and updating the directory information in its own directory module; A directory synchronization request is sent to the master node module in the local computing node to update the directory information of the master node module in the local computing node.
9. The multi-node cache consistency maintenance method according to claim 8, characterized in that: Updating directory information of the master node module in the local computing node includes: The state of the cache line data recorded in the directory in the master node module in the local computing node in the node controller is updated to a state that the cache line may be stored in other caches and is dirty; A response to the directory synchronization request is sent to the node controller.
10. The multi-node cache consistency maintenance method according to claim 7, characterized in that: After the first remote computing node receives the completion response information, the method further includes: updating the cache line data state to a state in which the cache line may be stored in other caches and may have been modified according to the completion response information; A response to the completion response information is sent to the node controller.
11. The multi-node cache consistency maintenance method according to claim 1, characterized in that: Parsing the address domain in the data packet of the second monitoring request, when querying that there is dirty data in a shared state corresponding to the parsing result in the cache of the target remote computing node, determining that the dirty data is stored in its own cache module, taking out the dirty data and returning it to the master node module in the local computing node, including: Parsing the address field in the data packet of the second monitoring request to obtain second target address information; According to the second target address information, query its own directory module; If the target remote computing node recorded in the directory module has dirty data corresponding to the second target address information, and the dirty data is in a shared state, it is determined that the dirty data is also stored in its own cache module; The dirty data is retrieved according to the second target address information and sent to a master node module in the local computing node.
12. The multi-node cache consistency maintenance method according to claim 11, characterized in that: Parsing the address field in the data packet of the second monitoring request to obtain the second target address information includes: When all computing nodes are m When the second monitoring request data packet is parsed, the first bit is from the initial bit to the Bit address encoding; The address information obtained by parsing is used as the second target address information.
13. The multi-node cache consistency maintenance method according to claim 1, characterized in that: Before receiving the second monitoring request of the local computing node, the method further includes: When the directory record in the main node module within the local computing node has a cache line data corresponding to a memory address and the status in the node controller is that the cache line may be stored in other caches and is dirty, its own directory module is used to record that the cache line data only exists in the target remote computing node, and the status in the target remote computing node is that the cache line may be stored in other caches and is dirty.
14. The multi-node cache consistency maintenance method according to claim 13, characterized in that: Receiving a second monitoring request from the local computing node includes: When the master node module in the local computing node receives the second cache consistency request sent by the target remote computing node, and finds that the address data of the second cache consistency request is dirty data located in the cache of the target remote computing node and in a shared state, the second listening request sent by the local computing node is received.
15. The multi-node cache consistency maintenance method according to claim 14, characterized in that: After forwarding the second monitoring request to the target remote computing node, the method further includes: The target remote computing node updates the cache line data state to a state in which the cache line may be stored in other caches and may have been modified according to the second listening request; The monitoring response information for the second monitoring request is returned to the node controller.
16. The multi-node cache consistency maintenance method according to claim 11, characterized in that: Taking out the dirty data according to the second target address information and sending it to the master node module in the local computing node includes: The dirty data is retrieved according to the second target address information, and the dirty data and the monitoring response information are sent to the main node module in the local computing node, so that the main node module in the local computing node updates the directory information after receiving the dirty data and the monitoring response information.
17. The multi-node cache consistency maintenance method according to claim 15, characterized in that: After returning the monitoring response information for the second monitoring request to the node controller, the method further includes: Update the state of the cache line data recorded in the directory information in the own directory module in the target remote node to a state in which the cache line may be stored in other caches and may have been modified; At the same time, a directory synchronization request is sent to the master node module in the local computing node, so that the state of the cache line data recorded in the directory in the master node module in the local computing node in the node controller is updated to a state where the cache line may be stored in other caches and may have been modified.
18. A multi-node cache consistency maintenance device, characterized in that: A node controller applied to a local computing node, the device comprising: A request receiving module, configured to receive a first cache coherence request sent by a first remote computing node; and also configured to receive a second monitoring request from the local computing node; a request processing module, configured to parse the address domain segment in the data packet of the first cache coherence request, and query whether there is target data corresponding to the parsing result in the cache of other remote computing nodes except the first remote computing node; and to parse the address domain segment in the data packet of the second monitoring request, and query whether there is target data corresponding to the parsing result in the cache of the target remote computing node; A request routing module, used for sending a first listening request to other remote computing nodes to make other remote computing nodes return the target data when it is found that the cache of other remote computing nodes except the first remote computing node contains target data corresponding to the parsing result; sending the target data to the first remote computing node; also used for forwarding the first cache consistency request to the main node module in the local computing node when it is found that the cache of other remote computing nodes except the first remote computing node does not contain the target data corresponding to the parsing result; also used for determining that the dirty data is stored in its own cache module when it is found that the cache of the target remote computing node contains dirty data in a shared state corresponding to the parsing result, and returning the dirty data to the main node module in the local computing node; and forwarding the second listening request to the target remote computing node at the same time; the target remote computing node does not need to return data.
19. A multi-node cache consistency maintenance device, characterized in that: The device comprises: Memory for storing computer programs; A processor, configured to implement the steps of the multi-node cache consistency maintenance method as described in any one of claims 1 to 17 when executing the computer program.
20. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the multi-node cache consistency maintenance method according to any one of claims 1 to 17 are implemented.
21. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the multi-node cache consistency maintenance method as described in any one of claims 1 to 17 are implemented.
