Search

CN-121979661-A - Data reading method, consistency controller, agent device and processor chip

CN121979661ACN 121979661 ACN121979661 ACN 121979661ACN-121979661-A

Abstract

The disclosure relates to a data reading method, a consistency controller, agent equipment and a processor chip, and belongs to the technical field of computers. According to the method, the large-granularity reading request of the source device is sent to the consistency controller through the proxy device of the source device, the consistency controller reads a plurality of data segments of target data from the system memory based on the large-granularity reading request, the read data segments are returned to the proxy device, and in the process, the consistency controller does not need to receive the small-granularity reading request from the proxy device, so that the interaction times between the proxy device and the consistency controller in the process of reading the target data are reduced, the transmission transaction times in a transmission network in the process of reading the data can be reduced, and the data transmission efficiency is improved.

Inventors

  • YANG KAIGE

Assignees

  • 海光信息技术股份有限公司

Dates

Publication Date
20260505
Application Date
20251216

Claims (11)

  1. 1. A data reading method for a coherence controller in a computer system, the method comprising: Receiving, from a proxy device of a source device in the computer system, a read request from the source device, the read request indicating to read target data from a system memory in the computer system, the target data having a data size greater than a data read granularity of the coherence controller; Sequentially reading a plurality of first data segments of the target data from the system memory based on the read request, wherein the data volume of the first data segments is less than or equal to the data reading granularity; and sending the read first data segments to the proxy equipment.
  2. 2. The method of claim 1, wherein the sending the plurality of first data segments read to the proxy device comprises: Combining the read plurality of first data segments to obtain the target data; And sending the target data to the proxy equipment.
  3. 3. The method of claim 2, wherein the target data has a data volume greater than a bit width of a data transmission link between the coherence controller and the proxy device, the bit width being greater than the data read granularity; the sending the target data to the proxy device includes: And sequentially sending a plurality of second data segments of the target data to the proxy equipment through the data transmission link, wherein the data volume of the second data segments is smaller than or equal to the bit width.
  4. 4. The method of claim 1, wherein the sending the plurality of first data segments read to the proxy device comprises: In response to reading any first data segment, storing the first data segment into a cache of the consistency controller, and sending the first data segment to the proxy device; and in response to receiving an acknowledgement message for the first data segment by the proxy device, releasing the space occupied by the first data segment in the buffer, wherein the acknowledgement message indicates the proxy device to acknowledge the receipt of the first data segment.
  5. 5. A data reading method, applied to a proxy device of a source device in a computer system, the method comprising: Receiving a read request from the source device, the read request indicating to read target data from a system memory in the computer system, the target data having a data size greater than a data read granularity of a coherence controller in the computer system; Sending a read request of the source device to the coherence controller; receiving the target data read by the consistency controller; And sending the target data to the source equipment.
  6. 6. The method of claim 5, wherein the target data has a data volume greater than a bit width of a data transmission link between the coherence controller and the proxy device, the bit width being greater than the data read granularity; the receiving the target data read by the consistency controller includes: Sequentially receiving a plurality of second data segments of the target data sent by the consistency controller from the data transmission link, wherein the data quantity of the second data segments is smaller than or equal to the bit width; And merging the plurality of second data segments to obtain target data.
  7. 7. The method of claim 5, wherein the target data comprises a plurality of first data segments, the first data segments having an amount of data less than or equal to the data read granularity; the receiving the target data read by the consistency controller includes: In response to receiving any first data segment sent by the consistency controller, sending an acknowledgement message to the consistency controller, wherein the acknowledgement message indicates the proxy device to acknowledge receipt of the first data segment; And merging the received plurality of first data segments to obtain the target data.
  8. 8. A coherence controller comprising control circuitry and a cache for storing data, the control circuitry configured to perform the method of any one of claims 1 to 4.
  9. 9. A proxy device comprising control circuitry and a cache for storing data, the proxy device being configured to perform the method of any one of claims 5 to 7.
  10. 10. A processor chip comprising a processor core and the coherence controller of claim 8.
  11. 11. A computer system comprising the coherence controller of claim 8 and the proxy device of claim 9.

Description

Data reading method, consistency controller, agent device and processor chip Technical Field The present disclosure relates to the field of computer technologies, and in particular, to a data reading method, a coherence controller, an agent device, and a processor chip. Background Current computer systems include a coherence controller, a system memory, a plurality of processor clusters, and a proxy device for each processor cluster, the coherence controller to maintain cache coherence among the plurality of processor clusters. Each processor cluster comprises a plurality of processor cores, and the processor cores can perform read-write operation on the system memory through the proxy equipment of the processor cluster and the consistency controller. Taking a read operation of the system memory as an example, the process of reading target data from the system memory by the processor core may be that the processor core sends a read request a to a proxy device of the processor cluster to which the processor core belongs, if the data size of the target data requested to be read by the read request a is greater than the data read granularity of the coherence controller, the proxy device splits the read request a into a plurality of read requests B, and sends the plurality of read requests B to the coherence controller through a transmission network in the computer system, where each read request B indicates to read one data segment of the target data. Each time the coherence controller receives a read request B, a data segment of the target data is read from the system memory based on the read request B, and the read data segment is returned to the proxy device via the transmission network. After receiving the data segments returned by the consistency controller based on the read requests B, the proxy equipment splices the received data segments into target data, and returns the target data to the processor core. In the data reading process, the number of transmission transactions in the transmission network can be increased by multiple interactions between the proxy equipment and the consistency controller, and the data transmission efficiency is reduced. Disclosure of Invention The present disclosure provides a data reading method, a coherence controller, a proxy device, and a processor chip, so as to at least solve the problem of low data transmission efficiency in the data reading process in the related art. The technical scheme of the present disclosure is as follows: according to a first aspect of embodiments of the present disclosure, there is provided a data reading method applied to a coherence controller in a computer system, the method including: Receiving, from a proxy device of a source device in the computer system, a read request from the source device, the read request indicating to read target data from a system memory in the computer system, the target data having a data size greater than a data read granularity of the coherence controller; Sequentially reading a plurality of first data segments of the target data from the system memory based on the read request, wherein the data volume of the first data segments is less than or equal to the data reading granularity; and sending the read first data segments to the proxy equipment. Optionally, the sending the read plurality of first data segments to the proxy device includes: Combining the read plurality of first data segments to obtain the target data; And sending the target data to the proxy equipment. Optionally, the data amount of the target data is larger than a bit width of a data transmission link between the coherence controller and the proxy device, the bit width being larger than the data reading granularity; the sending the target data to the proxy device includes: And sequentially sending a plurality of second data segments of the target data to the proxy equipment through the data transmission link, wherein the data volume of the second data segments is smaller than or equal to the bit width. Optionally, the sending the read plurality of first data segments to the proxy device includes: In response to reading any first data segment, storing the first data segment into a cache of the consistency controller, and sending the first data segment to the proxy device; and in response to receiving an acknowledgement message for the first data segment by the proxy device, releasing the space occupied by the first data segment in the buffer, wherein the acknowledgement message indicates the proxy device to acknowledge the receipt of the first data segment. According to a second aspect of the embodiments of the present disclosure, there is provided a data reading method applied to a proxy device of a source device in a computer system, the method including: Receiving a read request from the source device, the read request indicating to read target data from a system memory in the computer system, the target data having a data size greater th