Partial memory updates using preset templates

By introducing intermediate devices and logical operations into the computer system, merging data and templates and performing a single write, the problems of low data storage efficiency and large delay in the existing technology are solved, and more efficient memory updates and bandwidth usage are achieved.

CN118829974APending Publication Date: 2024-10-22MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280093195.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-28
Filing Date
2022-12-26
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing computer systems suffer from inefficiencies in the data storage process, resulting in high system interface bandwidth consumption and significant delays between write operations, especially during the combination of read and write operations.

Method used

By introducing an intermediate device between the data source and the memory, logical operations are performed to merge the data and the template, reducing the number of write operations, and using a single write operation to store the merged result into the target memory, avoiding read and write operations. sequence.

Benefits of technology

It reduces the number of operations and delays in memory update, significantly reduces the use of interface bandwidth, and improves the efficiency of data storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118829974A_ABST
    Figure CN118829974A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure include techniques for partial memory updates in a computer system. A data structure template is received. First write data for a first write operation is received from a first data source, the first write operation being performed in conjunction with provisioning of a first data payload to a memory communicatively coupled to a processing unit. A first merge operation involving the first write data and the first data structure template is performed to obtain a first data structure update. The first data structure update is written to the memory, thereby improving the efficiency of updating the first data structure associated with the first data payload.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] The present disclosure relates to a computing system. More specifically, the present disclosure relates to a technique for performing data transactions with a memory of a computer system.

[0002] Input / output (IO) devices enable users and external systems to interact with a computer system. IO devices may provide updates to indicate the presence of new data to be processed by the computer system. In conjunction with storing the payload of new data into a memory buffer visible to the entity using the memory buffer, hardware structures and protocols are used to read the old data and merge the new data with the old data. A process involving a combination of read operations and write operations is performed to appropriately process and store the data structures and new data. This process is inefficient, consumes valuable bandwidth on the system interface, and may result in significant delays between write operations performed by different entities as part of the process. BRIEF DESCRIPTION OF THE DRAWINGS

[0003] Figure 1 An example computer system is illustrated in accordance with one or more embodiments.

[0004] Figure 2 A first example data flow diagram is illustrated in which a series of data transactions are performed in conjunction with storage of a data payload in accordance with one or more embodiments.

[0005] Figure 3 A second example data flow diagram is illustrated in which a series of data transactions are performed in conjunction with storage of a data payload in accordance with one or more embodiments.

[0006] Figure 4 The present invention illustrates a method for Figure 1 An example data structure updated in a host memory of a computer system

[0007] Figure 5A The diagram illustrates a method according to one or more embodiments. Figure 1 The first template for computer system implementation.

[0008] Figure 5B The diagram illustrates a method according to one or more embodiments. Figure 1 A second template for computer system implementation.

[0009] Fig. 6A The diagram illustrates a method according to one or more embodiments. Figure 1 The computer system performs a first merge operation at a merge point.

[0010] Figure 6B The diagram illustrates a method according to one or more embodiments. Figure 1 The computer system performs a second merge operation at a merge point.

[0011] Figure 7 The present invention illustrates a method according to one or more embodiments. Figure 1 An example template control register for a memory controller of a computer system.

[0012] Figure 8 A third example data flow diagram is illustrated in which a series of data transactions are performed in conjunction with storage of a data payload in accordance with one or more embodiments.

[0013] Fig. 9 A method for performing a partial memory update in a computer system according to one or more embodiments is illustrated.

[0014] Fig.10 Illustrated is a simplified block diagram of an example computer system in accordance with one or more embodiments. DETAILED DESCRIPTION

[0015] In the following description, for the purpose of explanation, many examples and specific details are set forth in order to provide a thorough understanding of the present disclosure. Such examples and details should not be interpreted as unduly limiting the elements of the claims or the subject matter claimed as a whole. Based on the language of the different claims, it will be clear to those skilled in the art that the subject matter claimed may include some or all of the features in these examples, alone or in combination, and may also include modifications and equivalents of the features and techniques described herein.

[0016] Embodiments herein relate to techniques for writing updates to memory in conjunction with new data supplied by a data source (such as an IO device) to be processed or stored on a computer system. Features disclosed herein reduce the number of operations performed for memory updates, reduce delays between operations, and reduce interface bandwidth usage. One or more embodiments herein disclose an implementation of a template in an intermediate device between a data source and a data target provided by the data source. One or more logical operations are performed to merge a set of data with the template, thereby adjusting the size and / or layout of the set of data. The results of the one or more logical operations are then stored to the target of the data using a single write operation rather than a sequence of data reads and writes.

[0017] Figure 1A computer system 100 according to one or more embodiments is illustrated. The computer system 100 includes a processing unit 102, which includes a set of processor cores 104, and a cache memory 106. In some embodiments, the processing unit 102 may be a system on a chip or a system on a package including additional components not shown. Individual cores in the set of processor cores 104 are configured to process data independently of other cores in the set of processor cores 104. The cache memory 106 stores data processed or to be processed by one or more of the processor cores 104. Each of the processor cores 104 is an individual processing element or computing engine that processes data or coordinates the processing of data on behalf of the entire processing unit 102. The processor cores 104 may be homogeneous or heterogeneous. For example, the processor cores 104 may include processor cores of different sizes or processing capabilities, or may be programmable, have a fixed set of functions, or be a hybrid of programmable and fixed function cores.

[0018] Computer system 100 also includes one or more data sources 110-1, 110-2, ... 110-N (collectively, "data sources 110"), a memory controller 112, a storage device 114, and a host memory 116. Data source 110 provides data to be processed by processing unit 102 and / or stored in a memory (such as storage device 114 or host memory 116). Memory controller 112 sends and receives data, for example, in control signals, for controlling write operations and read operations involving data source 110, host memory 116, and / or processing unit 102. In some embodiments, memory controller 112 includes a memory controller 112-A that is separate from processing unit 102. In some embodiments, memory controller 112 includes a memory controller 112-B (e.g., an integrated memory controller) located on processing unit 102.

[0019] As non-limiting examples, one or more data sources 110 may include a network interface controller (NIC), an input device (e.g., a mouse, a keyboard), a port, and / or a peripheral device. As non-limiting examples, storage device 114 includes one or more types of non-volatile (e.g., read-only) memory, such as solid-state memory, a hard drive, an electrically erasable programmable read-only memory, and flash memory. Host memory 116 is an area of ​​random access or volatile memory that is accessible by and primarily visible to processing unit 102.

[0020] The computer system 100 includes a plurality of interfaces 118 through which data is exchanged. More specifically, the computer system 100 includes an interface 118-1 between the processing unit 102 and the memory controller 112-A; an interface 118-2 between the memory controller 112-A and the host memory 116; one or more interfaces 118-3 between the data source 110 and the memory controller 112-A; one or more interfaces 118-4 between the processing unit 102 and the data source 110; and an interface 118-5 between the processing unit 102 and the storage device 114. As non-limiting examples, the interfaces 118-4 and 118-5 may include various types of buses, such as a peripheral component interconnect (PCI) bus, a personal computer memory card international association (PCMCIA) bus, a universal serial bus (USB), and a high-speed PCI (PCIe) bus.

[0021] In computer system 100, one or more payloads 120-1, 120-2, ..., 120-N of data may be transmitted via one or more of interfaces 118 and stored in host memory 116. For example, data source 110-1 may be a NIC, and payload 120-1 may be a payload of a network data packet received via the NIC on one or more networks. A write operation may be performed in which payload 120-1 is transmitted through one or more of interfaces 118 and stored on host memory 116. In conjunction with the storage of payload 120-1, a series of data transactions are performed in which memory controller 112 stores data associated with payload 120-1 to host memory 116.

[0022] Figure 2 A first example data flow diagram 200 is illustrated in which a series of data transactions are performed in conjunction with the storage of a data payload in accordance with one or more embodiments. The various features described with respect to the flow diagram 200 are similar to those described with respect to Figure 1 Flowchart 200 includes data transactions involving one or more data sources 202, one or more processor cores 204, a memory controller 206, and a host memory 208. As used herein, the phrase "data transaction" refers to an operation that reads or writes data from one device in computer system 100 to another device.

[0023] Flowchart 200 represents a complementary process of a data transaction in which a payload of data (such as payload 120-1) is transferred from one device to another. For example, data source 202 may be a NIC, and the payload portion of the data packet may be processed by processing unit 102, such as for compression, encryption. The NIC performs a write operation in which the payload portion of the data packet (e.g., payload 120-1) is written to a memory buffer via memory controller 112. As a result of the write operation or in conjunction with the write operation, a separate data structure is updated to indicate information about the data to be read and processed by a device of computer system 100. For the above example in which data source 202 is a NIC, the payload portion of the data packet may be read for transmission, and the data structure may be provided separately, such as after performing or attempting a transmission process for the payload portion. For example, the data structure may provide a status indicating whether the transmission of the payload portion was successful.

[0024] refer to Figure 2 In conjunction with attempting to transfer the data payload from the data source 202 to the host memory 208, the data source 202 performs a write operation 210 in which a certain amount of data is written to the memory controller 206. For example, the write operation 210 may involve writing an 8-byte portion of data from the data source 202 to the memory controller 206. The write operation 210 may be performed at a time 211 after the time at which the storage of the data payload is initiated.

[0025] As a result of the write operation 210, the memory controller 206 issues a read request 212 to the host memory 208. In some embodiments, the read request 212 is a request by the memory controller 206 to read a portion of the data stored in the host memory 208. The read request 212 may specify an amount of data to be read and / or an identifier of the data to be read. The identifier of the data to be read may include a memory address of the data, such as a row address and / or a column address in a memory array of the host memory 208.

[0026] In response to the read request 212, a read data operation 214 is performed in which the requested data is read by the memory controller 206 from the host memory 208. The amount of data read in the read data operation 214 is greater than the amount of data in the write operation 210. For example, the memory controller 206 may read a 64-byte portion of data from the host memory 208. In some embodiments, the read data operation 214 involves reading a message associated with a payload of data provided by the data source 202. The message may include a group of bytes corresponding to a fixed header associated with the payload, another group of bytes corresponding to an error message associated with the payload transmission, and a group of bytes corresponding to a status of the payload transmission.

[0027] The memory controller 206 compares the first data obtained in the write operation 210 with the second data obtained in the read data operation 214. As a result of the comparison, the memory controller 206 updates the second data based on the first data, and performs a write operation 216 in which the updated second data is written back to the host memory 208. The updated second data written in the write operation 216 may be the same size as the data read in the read data operation 214. For example, the write operation 216 may involve writing 64 bytes of data to the host memory 208. In some embodiments, the size of the write operation 216 corresponds to the size of a line of a cache memory of the memory controller 206.

[0028] The execution of the write operation 210, the read request 212, the read data operation 214, and the write operation 216 can be collectively considered to be the execution of the first update process 217 on the data structure associated with the payload 120-1 in the host memory 208. There are several drawbacks associated with the first update process 217. The number of operations involved in the first update process 217 on the host memory 208 is inefficient. The process of the first update process 217 involves a significant expansion of bandwidth. For example, for an 8-byte write operation 210, the total amount of bandwidth used for the read data operation 214 and the write operation 216 is 128 bytes, which is a 16-fold expansion of the initial bandwidth usage of the write operation 210.

[0029] The process of the first update process 217 combined with the storage of the payload introduces a delay. For example, consider a write operation 218 performed at a first time 220, the write operation 218 corresponding to the write operation 210. As described with respect to the read request 212, the read data operation 214, and the write operation 216, the read request 222, the read operation 224, and the write operation 226 are performed sequentially. A second write operation 228 may be initiated at a second time 230 before the write operation 226 is completed. The memory controller 206 registers the write operation 228 and completes the execution of the write operation 226. Then, in response to the write operation 230, the memory controller 206 executes the read request 232, the read operation 234, and the write operation 236. During this time, the memory controller 206 receives a third write operation 238 at a third time 240 before the execution of the read operation 234. Therefore, there is a delay between the current sequence of operations being executed and the time when the write operation is received to initiate the current sequence. This delay may continue to grow as additional write operations are received from the data source to utilize the valuable computational resources and interface bandwidth of the memory controller 206 .

[0030] Figure 3 A second example data flow diagram 300 is illustrated in which a series of data transactions are performed in conjunction with the storage of a data payload in accordance with one or more embodiments. The various features described with respect to the flow diagram 300 are similar to those described with respect to Figure 1 Flowchart 300 includes data transactions involving one or more data sources 302 , one or more processor cores 304 , a memory controller 306 , and a host memory 308 .

[0031] The processor core 304 performs a write operation in which a template 310 is written to the memory of the memory controller 306. The template 310 is a data structure in which individual bytes of the template 310 are set to defined values. The template 310 has a size corresponding to the size of the data involved in the write operation performed as a result of receiving the write operation from the data source 302 by the memory controller 306. For example, the size of the template 310 can be equal to the size of the write operation 216 performed as a result of the memory controller 206 receiving the write operation 210. More specifically, the length of the template 310 can be 64 bytes. In some embodiments, the processor core (s) 304 can send multiple templates 310 for a single data source 302. Each of the multiple templates can correspond to a specific data type, data format, or data size of the data to be written from the data source 302.

[0032] In some embodiments, one or more devices other than the processor core 304 may provide the template 310 to the memory controller 306. As non-limiting examples, the template 310 may be sent by an interconnect system controller or switch device (e.g., a PCI controller, a PCIe controller, a PCIe root complex), a storage device (e.g., a flash device), or another hardware device communicatively coupled to the memory controller 306. In some embodiments, one or more devices other than the processor core 304 may be hard-coded to send the template 310 (e.g., at runtime, at design time), or may be configured to read / retrieve the template 310 from a data store, such as, for example, from a defined location on a storage device.

[0033] In some embodiments, template 310 may be generated by an authorized user (such as a technician or engineer) who installs software or firmware to processing unit 102. In some embodiments, template 310 may be installed on processing unit 102 as a result of an update to computer system 100 (such as an update to software, firmware, or an operating system of computer system 100). Template 310 may be specific to a type, generation, model, etc. of data source 302. For example, template 310 may have a size and / or format (e.g., bit values) that is specific to a NIC, a camera, or a USB memory storage device.

[0034] In some embodiments, one or more devices other than the memory controller 306 may receive the template 310 and perform the merge operation as described herein. For example, one or more interconnect system controllers or switching devices (e.g., PCI controllers, PCIe controllers, PCIe root complexes) may be configured to receive the template and / or perform the merge operation using the received template. In some embodiments, the memory controller 306 may be a cache memory controller.

[0035] After supplying the template 310 to the memory controller 306, the data source 302 performs a write operation 312 to the memory controller 306. Figure 1 and Figure 2 As described, write operation 312 is performed in conjunction with a process in which a data payload is attempted to be transferred from data source 302 to host memory 308. Write operation 312 may include an amount of data that is smaller in size than template 310. Template 310 may have a data size of 64 bytes, while write operation 312 may have a data size of 8 bytes.

[0036] The memory controller 306 performs a merge operation 314 in which the data in the write operation 312 and the data in the template 310 are merged together. The merge operation 314 may include one or more logical operations involving the template 310 and the data written in the write operation 312. For example, the one or more logical operations may be performed using the data written in the write operation 312 and the first set of bytes of the template 310. The logical operations performed may include Boolean operations such as an AND operation or an OR operation. The merge operation 314 expands the data received in the write operation 312 to a larger size, such as an entire line size of a cache memory of the memory controller 306.

[0037] The memory controller 306 performs a write operation 316 in which the result of the merge operation 314 is written to the host memory 308. The sequence of operations including the write operation 312, the merge operation 314, and the write operation 316 can be viewed as a second update 317 to a data structure in the host memory 308 that is associated with a payload supplying data from the data source 302 to the host memory 308. Figure 2 The second update process 317 provides several benefits compared to the described operation sequences 210, 212, 214, and 216. The second update process 317 involves fewer overall operations and does not involve read operations or read requests between the memory controller 306 and the host memory 308.

[0038] The second update process 317 reduces bandwidth expansion relative to the first update process 217. The read request 212 itself may occupy at least the same amount of interface bandwidth as the write operation 210 (e.g., 8 bytes), while the read data operation 214 and the write operation 216 each involve eight times the amount of interface bandwidth as the write operation 210 (e.g., 64 bytes each). In contrast, the merge operation 314 does not occupy any read bandwidth on the interface between the memory controller 306 and the host memory 308, thereby achieving a significant reduction in bandwidth usage.

[0039] The second update process 317 also reduces latency relative to the first update process 217. More specifically, the amount of time involved in the execution of the merge operation 314 is less than the amount of time involved in the execution of the read request 212 and the read data operation 214 of the first update process 217. Therefore, the memory controller 306 can complete the second update process 317 faster than the first update process 217. In response to the initiation of the write operation 318 after the write operation 312, the memory controller 306 can perform the merge operation 320 and the subsequent write operation 322 on the host memory 308 without delay. In the first update process 217, there is a delay between the time when the memory controller 206 receives the write operation 228 and the time when the read request 232 and the subsequent read operation 234 are executed.

[0040] The size of the data received from the data source(s) 302 in the write operation 318 is the same as the size of the data received from the data source(s) 302 in the write operation 312. The execution of the merge operation 320 may increase the size of the data received in the write operation 318 to the same size as the template 310. In some embodiments, the data written in the write operation 322 has the same size as the data written in the write operation 316, e.g., 64 bytes. In some embodiments, the size of the data written in each of the write operations 316 and 322 is the same as the size of the template 310.

[0041] Figure 4 1 illustrates a data structure 400 updated in a host memory of a computer system 100 according to one or more embodiments. The data structure 400 is updated with a data payload (such as payload 120-1) from Figure 1 1 and 12. The data structure 400 is associated with the transfer of one of the data sources 110 in the host memory 116 to the host memory 116. The data structure 400 includes a first segment 402, a second segment 404, and a third segment 406. The first segment 402 includes a first group of bytes 408, the second segment 404 includes a second group of bytes 410, and the third segment 406 includes a third group of bytes 412.

[0042] As a non-limiting example, the data source 110 may be a NIC that provides a network data packet as the payload 120-1. In this example, the first segment 402 may be a header of the data packet, the second segment 404 may indicate (multiple) errors associated with the data packet, and the third segment 406 may be a status associated with the data packet or the transmission / storage of the data packet. The length of the data structure 400 associated with the data packet may be greater than 8 bytes, for example, the length of the data structure 400 may be 64 bytes. The length of the first group of bytes 408 may be 28 bytes, the length of the second group of bytes 410 may be three (3) bytes, and the length of the third group of bytes 412 may be eight (8) bytes. A single write operation initiated by the data source 302 to the memory controller 306 may include data for the third segment 406, but not for the first segment 402 or the second segment 404.

[0043] Figure 5A 1 shows a first template 500A implemented by the computer system 100 according to one or more embodiments. The first template 500A may be provided by the processor core 304 to the memory controller 306, as described with respect to Figure 3 The first template 500A includes a first segment 502 and a second segment 504. The first segment 502 includes a first set of template bytes 506, and the second segment 504 includes a second set of template bytes 508. The size of the first segment 502 may be different from the size of the second segment 504. For example, the length of the first set of template bytes 506 may be 56 bytes, and the length of the second set of template bytes 508 may be eight (8) bytes.

[0044] The structure of the first template 500A partially corresponds to the data structure 400. The first group of template bytes 506 may include a first group of bytes "XXXX...X", a second group of fixed bytes "AAAA", and a third group of bytes "B". The first group of bytes "XXXX...X" may be bytes of the same value (e.g., zero). The second group of bytes "AAAA" may be bytes with different values ​​corresponding to the first group of bytes 408. The third group of bytes "B" may be bytes with different values ​​corresponding to the second group of bytes 410. The second group of template bytes 508 of the second segment 504 has a value corresponding to the third group of bytes 412.

[0045] For subsequent transfers or storage operations of the payload 120-1 to the host memory 116, certain portions of the data structure 400 may remain constant for most operations, while other portions of the data structure 400 may change more frequently. As a non-limiting example, the first set of bytes 408 and the second set of bytes 410 of the data structure 400 may be the same for different transfers / storage operations of the payload 120-1, while the third set of bytes 412 may vary between different transfers / storage operations of the payload 120-1. Thus, the first set of template bytes 506 may be static or fixed bytes that include the bytes "AAA...ABBB" for the first set of bytes 408 and the second set of bytes 410. The second set of template bytes 508 may be the same value Y, such as all zeros.

[0046] Fig. 6A 1 shows a merge operation 600A performed by a merge point of computer system 100 according to one or more embodiments. Merge operation 600A may be performed by memory controller 306 or any other entity in computer system 100 in which a data structure, such as data structure 400, is updated in conjunction with the storage and / or transmission of a data payload. Merge operation 600A involves template 602 provided to the merge point by processor core 304. Template 602 corresponds to Figure 5A and template 500A described elsewhere herein. Template 602 includes a set of bytes 604 including a segment having a value of "AAAAB", as described with respect to Figure 5A described.

[0047] At least some of the remaining portion of the group of bytes 604 include predetermined values ​​based on one or more logical operations to be performed by the memory controller 306 in the merge operation 600A. For example, the group of bytes 604 includes the byte string "YYY", which may be all ones (1) or all zeros (0). The group of bytes 604 also includes the byte string "XXXXXXX", which may be all ones or all zeros. The byte string "XXXXXXX" may be the same as or different from the byte string "YYY".

[0048] The merge operation 600A also involves write content 606 received from a data source, such as data source 302. The write content 606 includes a group of bytes 608 represented by the value "CCCCCCCC", where each value "C" is a byte of data. For example, the write content 606 may correspond to status bytes associated with the storage or transmission of the payload 120-1 to the host memory 116. Individual bytes or sets of bytes in the group of bytes 608 may correspond to a status indicating, for example, the size of one or more data packets transmitted in the payload 120-1, the address or address range of the data packets in the host memory 116. In some contexts, the write content 606 may be considered metadata.

[0049] The merge operation 600A involves performing a set of logical operations 610 using the template 602 and the received write content 606 as operands. The set of logical operations 610 may include an AND operation, an OR operation, an XNOR operation, an XOR operation, a NAND operation, a shift operation, a NOT operation, or other logical operations. As a specific non-limiting example, the "X" and "Y" values ​​in the set of bytes 604 may be zero, while the "A" and "B" values ​​in the set of bytes may correspond to static values ​​of the data structure 400 to be updated in the host memory 308.

[0050] As a result of performing the set of logical operations 610, the memory controller 306 generates a write operation content 612 based on the received write content 606. For example, the write operation content 612 includes a set of bytes 614, which includes the bytes "AAA...ABBB", which are generally the same for different write operations from the same data source 302. The write operation content 612 also includes the bytes "CCCCCCCCC" that match the values ​​of the bytes in the received write content 606. Performing the set of logical operations 610 using the template 602 and the received write content 606 expands the size of the received write content 606 to a larger defined size. The size of the received write content 606 can be 8 bytes, while the size of the write operation content 612 can be 64 bytes. In some embodiments, the size of the write operation content 612 corresponds to an entire row of the cache memory of the memory controller 306.

[0051] In some embodiments, the set of logical operations 610 may involve a combination of logical operations. For example, a NOT logical operation may be initially performed on the received write content 606 to obtain an intermediate result. Then, an XOR logical operation may be performed using the intermediate result and the template 602 as operands to obtain the write operation content 612. Various sequences of logical operations may be performed based on various attributes of the template 602, the data structure 400, the memory controller 306, and / or the data source.

[0052] In some embodiments, different portions of data structure 400 may be updated in conjunction with transferring or storing payload 120-1 to host memory 116. For example, a set of least significant bytes of first segment 402 may be changed in addition to a set of bytes 412 of third segment 406. In this case, the template may include more than two segments.

[0053] Figure 5B 1 shows a second template 500B implemented by the computer system 100 according to one or more embodiments. The second template 500B may be provided by the processor core 304 to the memory controller 306, as described with respect to Figure 3 The second template 500B includes a first segment 510, a second segment 512, a third segment 514, and a fourth segment 516. The first segment 502 includes a first set of template bytes 518, which includes fixed or static bytes of the first group of bytes 408. The second segment 512 includes a second set of template bytes 520, which corresponds to the set of least significant bytes of the first segment 402, which can change in different data structure updates. The third segment 514 includes a third set of template bytes 522, which corresponds to the second set of bytes 410 of the second segment 404 of the data structure 400. Finally, the fourth segment 516 includes a fourth set of template bytes 524, which corresponds to the fourth set of template bytes 524 with respect to Figure 5A The second set of template bytes 508. In a merge operation, the memory controller 306 may update the data bytes corresponding to the second segment 512 and the fourth segment 516 without changing the remaining bytes.

[0054] Figure 6B 1 shows a merge operation 600B performed by a merge point of computer system 100 in accordance with one or more embodiments. Merge operation 600B may be performed by memory controller 306 or any other entity in computer system 100 in which a data structure, such as data structure 400, is updated in conjunction with the storage and / or transmission of a data payload. Merge operation 600B involves template 616 provided to the merge point by processor core 304. Template 616 corresponds to Figure 5B and template 500B described elsewhere herein. Template 616 includes a set of bytes 618 including one segment "YY" and another segment "ZZZZZZ" that correspond to portions of data structure 400 that may change in different write operations.

[0055] The merge operation 600B also involves write content 620 received from a data source, such as data source 302. The write content 620 includes a group of bytes 622 represented by the value "AACCCCCC", where the portion "AA" corresponds to a group of bytes of the first segment 402 of the data structure 400, and the portion "CCCCCC" corresponds to a group of bytes of the third segment 406 of the data structure 400. The write content 606 may correspond to header bytes and status bytes associated with the storage or transmission of the payload 120-1 to the host memory 116. For example, the portion "AA" may be the least significant bytes of the header, and the portion "CCCCCC" may be the least significant bytes of the status.

[0056] As about Fig. 6A As described above, the merge operation 600B involves performing a set of logical operations 624 using the template 616 and the received write content 620 as operands. The set of logical operations 624 corresponds to the Fig. 6A Those described above, so further description thereof is omitted for the sake of brevity. As a result of performing the group of logical operations 624, the memory controller 306 generates a write operation content 626 based on the received write content 620. A group of bytes 628 of the write operation content 626 includes a first part 628A and a second part 628B, which correspond to the part of the data structure 400 that can be changed due to different write operations from the same data source 302. The write operation content 612 also includes a byte "CCCCCCCCC" that matches the value of the byte in the received write content 606. As shown in the figure, the first part 628A is separated from the second part 628B by one or more bits or bytes. The size of the received write content 620 can be 8 bytes, and the size of the write operation content 626 can be 64 bytes. The memory controller 308 performs a write operation, such as a write operation 316, to write the write operation content 626 to the host memory 308.

[0057] The memory controller 306 may include template control registers for controlling various aspects of the merge operation, such as the bytes to be used as operands and the set of logical operations to be performed. Figure 7 An example of a template control register 700 is shown in accordance with one or more embodiments. The memory controller 306 may perform the merge operation 600A and / or the merge operation 600B based on one or more characteristics in the template control register 700 .

[0058] The template control register 700 is a defined area of ​​memory of the memory controller 306 that includes a plurality of bytes of data. The template control register 700 includes a template definition 702 and a template register 704. The template definition 702 includes a set of bits 706 that indicate how the template is formatted, such as which template bytes are fixed, which template bytes are variable, the size of the template segments, etc. In some embodiments, the template definition 702 may specify information about a set of logical operations involved in the execution of the merge operation, such as the logical operations to be performed and the order of operations. In some embodiments, the information about the logical operations to be performed may be included in a separate segment of the template control register 700. In some embodiments, the template definition 702 may include information about the data source 302 initiating the write operation (such as the write operation 312). The information about the data source 302 may identify the type of the data source 302, an identifier of the data source 302 (e.g., a MAC address), and / or a location on a bus of the computer system 100.

[0059] The template register 704 includes a set of bytes 708 that store a template provided by the processor core 304. More specifically, the template register 704 stores the template 500A, the template 500B, or any template provided by the processor core 304. The size of the template register 704 is sufficient to store the template provided by the processor core 304. In some embodiments, the size and / or format of the template register 704 matches the granularity of the cache memory 106 and the memory operations to and / or from the cache memory 106. For example, the template register 704 may have the same size and / or format as a cache line of the cache memory 106. In some implementations, the size of the length of the template register 704 may be 64 bytes. In some embodiments, the template control register 700 includes a range field 706 that specifies different ranges that define the segments of the template register 704 (such as the first segment 510, the second segment 512, the third segment 514, and the fourth segment 516 of the template 500B).

[0060] In some embodiments, memory controller 306 may include a plurality of template registers for storing a plurality of templates provided by a processor core of computer system 100 . Figure 8 An example data flow diagram 800 is shown in which a series of data transactions are performed in conjunction with the storage of a data payload according to one or more embodiments. The various features described with respect to the flow diagram 800 are similar to those described with respect to Figure 1 and Figure 3The flowchart 800 includes data transactions involving a first data source 802 - 1 , a second data source 802 - 2 , one or more processor cores 804 , a memory controller 806 , and a host memory 808 .

[0061] In data flow diagram 800, processor core 804 may detect first data payload 120-1 (see Figure 1 ) from the data source 802-1 to the host memory 808, and the second data payload 120-2 (see Figure 2 ) from the data source 802-2 to the host memory 808. Detecting the supply of the first data payload 120-1 or the second data payload 120-2 may include receiving information from the data source 820 indicating that one or more write operations of the first data payload 120-1 or the second data payload 120-2 are performed on the host memory 808.

[0062] In conjunction with detection of the first data payload 120-1, the processor core(s) 804 may supply a first template 810 to the memory controller 806. In conjunction with detection of the second data payload 120-2, the processor core 804 may supply a second template 812 to the memory controller 806. In some embodiments, the first template 810 has one or more attributes that are different from one or more attributes of the second template 812. For example, the first template 810 may have a different size than the second template 812. As another example, the first template 810 may include a different number of segments than the second template 812.

[0063] The first template 810 corresponds to the data source 802-1, and the second template 812 corresponds to the data source 802-2. The data source 802-1 and the data source 802-2 may differ from each other in one or more aspects. The data source 802-1 may be a different type of device than the data source 802-2. For example, the data source 802-1 may be a NIC, and the data source 802-2 may be a camera device. In some embodiments, the data source 802-1 may be a different brand / model than the data source 802-2, for example, the data source 802-1 may be a camera connected to the computer system 100 via a USB port, and the data source 802-2 may be a camera integrated with the computer system 100. The memory controller 806 may receive the first template 810 and the second template 812. Figure 1 The result of transmission or storage of the first payload 120 - 1 and the second payload 120 - 2 .

[0064] The data source 802-1 may perform a first write operation 814 to the memory controller 806. The first write operation 814 may include a data amount that is smaller in size than the first template 810. The first template 810 may have a data size of 64 bytes, while the first write operation 814 may have a data size of 8 bytes. The memory controller 806 performs a first merge operation 816 in which the data involved in the first write operation 814 and the first template 810 are operands of one or more logical operations. The memory controller 806 performs a write operation 818 involving a result of the first merge operation 816. More specifically, the write operation 818 may include content corresponding to the write operation 316. The result of the write operation 818 is stored to a memory location of the host memory 808.

[0065] The data source 802-2 may perform a second write operation 820 on the memory controller 806 after the first write operation 814. The second write operation 820 may include a data amount that is smaller in size than the second template 812. The second template 812 may have a data size of 64 bytes, while the second write operation 820 may have a data size of 8 bytes. The memory controller 806 performs a second merge operation 822 in which the data involved in the second write operation 820 and the second template 812 are operands of one or more logical operations, such as Fig. 6A and Figure 6B The memory controller 806 performs a write operation 824 involving the result of the second merge operation 822. The result of the write operation 824 is stored in the determined memory location of the host memory 808.

[0066] In some embodiments, the memory controller 806 is configured to perform multiple merge operations (e.g., merge operation 816, merge operation 822) from multiple data sources 802. In some embodiments, the memory controller 806 is configured to concurrently perform multiple merge operations involving write operation data from multiple data sources 802. For example, the memory controller 806 may concurrently perform the merge operation 816 and the merge operation 822. The memory controller 806 may concurrently perform multiple merge operations based on write operations received serially through the physical memory interface (e.g., interface 118-1, interface 118-3).

[0067] Fig. 9A method 900 for performing a partial memory update in a computer system according to one or more embodiments is shown. Some or all of the method 900 may be performed by one or more appropriate entities described herein, such as the computer system 100, the memory controller 112, the memory controller 306, and / or the memory controller 806. The method 900 includes receiving, at 902, a data structure template, such as the template 310 provided by the processor core 304.

[0068] In some embodiments, the data structure template may be received at 902 from a processor core or from a device other than a processing unit, such as with respect to Figure 3 and as described elsewhere herein. In some embodiments, a plurality of data structure templates may be received at 902. In some embodiments, some of the plurality of data structure templates may correspond to the same data source or the same type of data source. In some embodiments, a first data structure template may correspond to a first data source, and a second data structure template may correspond to a second data source. For example, the first data source may be a data source of a first type, and the second data source may be a data source of a second type different from the first type.

[0069] Method 900 may also include storing the template received in 902 in a template control register at 904, such as with respect to Figure 7 The template control register 700 described above. The method 900 also includes receiving first write data of the first write operation from the data source at 906. For example, receiving at 906 may include receiving data via Figure 3 The write operation 312 receives write data. At 906, the write data may be received in conjunction with an initiation of a write operation by a data source to a memory of the computer system 100 (e.g., the host memory 116). At 908, the method 900 includes performing a merge operation involving the template received at 902 and the write data received at 906. The execution of the merge operation at 908 may extend the size of the write data (e.g., 8 bytes) to a larger size (e.g., 64 bytes). In some embodiments, performing the merge operation may include performing one or more logical operations using the received write data and / or the template.

[0070] The method 900 also includes writing the result of the merge operation to the memory of the computer system at 910. In some embodiments, the result of the merge operation is write data having a size greater than the write data received in 906. In some embodiments, the write data generated as a result of performing the merge operation in 908 may have the same size as the template received in 902. The method 900 may include many other operations described herein. The method 900 improves the efficiency of updating data structures associated with the provision of data payloads of data. For example, the method 900 can reduce bandwidth expansion, reduce latency, and reduce or eliminate read operations between a memory controller and a memory in conjunction with updating data structures in the memory.

[0071] Example Computer System

[0072] Fig.10 A simplified block diagram of an example computer system 1000 according to some embodiments is depicted. The computer system 1000 may be used to implement any of the computing devices, systems, or servers described in the foregoing disclosure. Fig.10 As shown, computer system 1000 includes one or more processors 1002 that communicate with a number of peripheral devices via an interconnect system 1004. These peripheral devices include data storage 1006 (including memory 1008 and file storage subsystem 1100), user interface input devices 1012, user interface output devices 1014, and network interface subsystem 1016.

[0073] The interconnect system 1004 may provide a mechanism for the various components and subsystems of the computer system 1000 to communicate with each other as intended. Although the interconnect system 1004 is schematically shown as a single bus, alternative embodiments of the bus subsystem may utilize multiple busses.

[0074] The network interface subsystem 1016 may serve as an interface for transferring data between the computer system 1000 and other computer systems or networks. Embodiments of the network interface subsystem 1016 may include, for example, an Ethernet card, a Wi-Fi and / or cellular adapter, a modem (telephone, satellite, cable, ISDN, etc.), a digital subscriber line (DSL) unit, etc.

[0075] The user interface input device 1012 may include a keyboard, a pointing device (e.g., a mouse, a trackball, a touch pad, etc.), a touch screen incorporated into a display, an audio input device (e.g., a voice recognition system, a microphone, etc.), and other types of input devices. In general, the use of the term "input device" is intended to include all possible types of devices and mechanisms for entering information into the computer system 1000.

[0076] The user interface output device 1014 may include a display subsystem, a printer, or a non-visual display, such as an audio output device, etc. The display subsystem may be, for example, a flat panel device, such as a liquid crystal display (LCD) or an organic light emitting diode (OLED) display. In general, the use of the term "output device" is intended to include all possible types of devices and mechanisms for outputting information from the computer system 1000.

[0077] Data storage 1006 includes memory 1008 and file / disk storage subsystem 1010. Subsystems 1018 and 1020 represent non-transitory computer-readable storage media that may store program code and / or data that provide the functionality of embodiments of the present disclosure.

[0078] The memory 1008 includes a plurality of memories, including a main random access memory (RAM) 1018 for storing instructions and data during program execution and a read-only memory (ROM) 1020 in which fixed instructions are stored. The file storage subsystem 1010 may provide persistent (i.e., non-volatile) storage for program and data files, and may include a magnetic or solid-state hard drive, an optical drive and associated removable media (e.g., CD-ROM, DVD, Blu-ray, etc.), a removable flash-based drive or card, and / or other types of storage media known in the art.

[0079] It should be understood that computer system 1000 is illustrative and that many other configurations are possible having more or fewer components than system 1000 .

[0080] Other embodiments

[0081] Embodiments of the present disclosure include systems, methods, devices, techniques, and other implementations for partial memory updates in a computer system. Some embodiments include a computer system comprising a memory and a first data source, the first data source being communicatively coupled to the memory and configured to supply a first data payload to the memory, the computer system being configured to receive a first data structure template in conjunction with the supply of the first data payload to the memory; receiving first write data of a first write operation from the first data source; performing a first merge operation involving the first write data and the first data structure template to obtain a first data structure update; and writing the first data structure update to the memory, thereby improving the efficiency of updating a first data structure associated with the first data payload. In some embodiments, the computer system includes a memory controller configured to perform the above operations. In some embodiments, the first data structure template is received from one or more processor cores of a processing unit. In some embodiments, the first data structure template is received from a hardware device other than a processor core.

[0082] In some embodiments, the first merge operation includes a logical operation using at least the first write data and the first data structure template as operands. In some embodiments, the size of the first write data is different from the size of the first data structure. In some embodiments, the size of the first data structure update matches the size of the first data structure. In some embodiments, the first data structure update includes a first segment and a second segment, the first segment corresponding to a static portion of the first data structure update, and the second segment corresponding to a dynamic portion of the first data structure update. In some embodiments, the first data structure update includes a first segment and a second segment, the first segment corresponding to the static portion of the first data structure update, and the second segment corresponding to the dynamic portion of the second data structure update.

[0083] In some embodiments, the computer system is configured to obtain a second data structure template; receive second write data of a second write operation performed by a first data source in conjunction with the supply of a second data payload to a memory; perform a second merge operation involving the second write data and a second data structure template to obtain a second data structure update; and write the second data structure update to the memory, wherein the first data structure template and the second data structure template are associated with the first data source.

[0084] In some embodiments, a computer system includes a second data source communicatively coupled to a memory and configured to supply a second data payload to the memory, wherein the computer system is configured to obtain a second data structure template; receive second write data for a second write operation performed by the second data source in conjunction with the supply of the second data payload to the memory; perform a second merge operation involving the second write data and the second data structure template to obtain a second data structure update; and write the second data structure update to the memory.

[0085] In some embodiments, the computer system is configured to store the first data structure template in a template control register, wherein the first merge operation is performed based on the contents of the template control register. In some embodiments, the first data structure template is received in a message from a peripheral device or via an interconnect system for connecting the peripheral device to the computer system. In some embodiments, the first data structure template is received from one or more processor cores of a processing unit.

[0086] Embodiments of the present disclosure include a method comprising receiving a first data structure template; receiving first write data of a first write operation from a first data source, the first write operation being initiated in conjunction with supply of a first data payload to a memory communicatively coupled to a processing unit; performing a first merge operation involving the first write data and the first data structure template to obtain a first data structure update; and writing the first data structure update to the memory, thereby improving efficiency in updating a first data structure associated with the first data payload. In some embodiments, the first data structure template is received from one or more processor cores of the processing unit.

[0087] In some embodiments, the first merge operation includes performing a logic operation using at least the first write data and the first data structure template as operands. In some embodiments, the size of the first write data is smaller than the size of the first data structure and smaller than the size of the first data structure template.

[0088] In some embodiments, the first data structure update includes a first segment and a second segment, the first segment corresponding to a static portion of the first data structure update, and the second segment corresponding to a dynamic portion of the first data structure update.

[0089] In some embodiments, the method includes obtaining a second data structure template; receiving second write data of a second write operation performed by a second data source; performing a second merge operation involving the second write data and the second data structure template to obtain a second data structure update; and writing the second data structure update to the memory.

[0090] In some embodiments, the first data structure template is received from one or more processor cores of a processing unit.

[0091] In some embodiments, the method includes storing the first data structure template in a template control register, wherein the first merge operation is performed based on contents of the template control register.

[0092] An embodiment of the present disclosure includes a memory controller, which includes a template control register, and the memory controller is configured to receive a data structure template from a processor core; store the data structure template in the template control register; receive first write data of a first write operation from a data source; perform a first merge operation, the first merge operation expands a first size of the first write data to a second size of the data structure template; and write a first result of the first merge operation to a memory, thereby improving the efficiency of updating a data structure associated with the supply of a data payload of data.

[0093] In some embodiments, the memory controller is configured to receive the first data structure template from a processor core of the processing unit. In some embodiments, the memory controller is configured to receive the first data structure in a message from a peripheral device or via an interconnect system for connecting the peripheral device to the computer system. In some embodiments, the size of the result matches the second size.

[0094] In some embodiments, the memory controller is configured to receive second write data of a second write operation from a data source, the second write data having a first size; perform a second merge operation, the second merge operation expands the first size of the second write data to a second size of the data structure template; and write a second result of the second merge operation to the memory. In some embodiments, the memory controller is configured to perform the first merge operation and the second merge operation concurrently. In some embodiments, the memory controller is configured to receive the second data structure template from a processor core of a processing unit. In some embodiments, the memory controller is configured to receive the second data structure in a message from a peripheral device or via an interconnect system for connecting a peripheral device to a computer system.

[0095] In some embodiments, the first merge operation includes a logic operation using at least the first write data and the data structure template as operands. In some embodiments, the template control register includes a first portion for storing the data structure template and includes a second portion indicating a format of the data structure template.

[0096] The above description illustrates various embodiments of the present disclosure and examples of how to implement various aspects of these embodiments. The above examples and embodiments should not be regarded as the only embodiments, but are presented to illustrate the flexibility and advantages of the present disclosure as defined by the appended claims. For example, although certain embodiments have been described for specific process flows and steps, it should be clear to those skilled in the art that the scope of the present disclosure is not strictly limited to the described processes and steps. Steps described as sequential may be performed in parallel, the order of steps may vary, and steps may be modified, combined, added, or omitted. As another example, although certain embodiments have been described using a specific combination of hardware and software, it should be recognized that other combinations between hardware and software are also possible, and specific operations described as implemented in software may also be implemented in hardware, and vice versa.

[0097] Accordingly, the specification and drawings should be regarded in an illustrative rather than a restrictive sense. Other arrangements, embodiments, implementations and equivalents will be apparent to those skilled in the art and may be employed without departing from the spirit and scope of the present disclosure as set forth in the appended claims.

Claims

1. A computer system comprising: Memory; as well as a first data source communicatively coupled to the memory and configured to supply a first data payload to the memory, the computer system being configured to: receiving, in conjunction with supplying the first data payload to the memory, a first data structure template; receiving first write data of a first write operation from a first data source; performing a first merge operation involving the first write data and the first data structure template to obtain a first data structure update; as well as The first data structure update is written to the memory, thereby improving the efficiency of updating the first data structure associated with the first data payload. 2 . The computer system of claim 1 , wherein the first merge operation comprises a logical operation using at least the first write data and the first data structure template as operands. 3 . The computer system of claim 1 , wherein a size of the first write data is different from a size of the first data structure.

4. The computer system of claim 1, wherein the first data structure update comprises a first segment and a second segment, the first segment corresponding to a static portion of the first data structure update, and the second segment corresponding to a dynamic portion of the first data structure update.

5. The computer system according to claim 1, wherein the computer system is configured to: Obtain a second data structure template; receiving second write data of a second write operation performed by the first data source in conjunction with supply of the second data payload to the memory; performing a second merge operation involving the second write data and the second data structure template to obtain a second data structure update; as well as The second data structure update is written to the memory, wherein the first data structure template and the second data structure template are associated with the first data source.

6. The computer system of claim 1, further comprising: a second data source communicatively coupled to the memory and configured to supply a second data payload to the memory, wherein the computer system is configured to: Obtain a second data structure template; receiving second write data of a second write operation performed by the second data source in conjunction with supply of the second data payload to the memory; performing a second merge operation involving the second write data and the second data structure template to obtain a second data structure update; as well as The second data structure is updated and written into the memory.

7. The computer system according to claim 1, wherein the computer system is configured to: The first data structure template is stored in a template control register, wherein the first merge operation is performed based on contents of the template control register.

8. A method comprising: receiving a first data structure template; receiving first write data for a first write operation from a first data source, the first write operation being initiated in conjunction with the provision of a first data payload to a memory communicatively coupled to the processing unit; performing a first merge operation involving the first write data and the first data structure template to obtain a first data structure update; as well as The first data structure update is written to the memory, thereby improving the efficiency of updating the first data structure associated with the first data payload. 9 . The method of claim 8 , wherein the first merge operation comprises performing a logical operation using at least the first write data and the first data structure template as operands. 10 . The method of claim 8 , wherein a size of the first write data is smaller than a size of the first data structure and smaller than a size of the first data structure template.

11. The method of claim 8, wherein the first data structure update comprises a first segment and a second segment, the first segment corresponding to a static portion of the first data structure update, and the second segment corresponding to a dynamic portion of the first data structure update.

12. The method according to claim 8, comprising: Obtain a second data structure template; receiving second write data of a second write operation performed by a second data source; performing a second merge operation involving the second write data and the second data structure template to obtain a second data structure update; as well as The second data structure is updated and written into the memory.

13. The method of claim 8, wherein the first data structure template is received from one or more processor cores of a processing unit.

14. The method according to claim 8, comprising: The first data structure template is stored in a template control register, wherein the first merge operation is performed based on contents of the template control register.

15. A memory controller comprising: Template control registers, the memory controller is configured as: Receive data structure template; storing the data structure template in the template control register; receiving first write data of a first write operation from a data source; performing a first merge operation, the first merge operation expanding a first size of the first written data to a second size of the data structure template; as well as A first result of the first merge operation is written to a memory, thereby improving the efficiency of updating a data structure associated with the provision of data payloads.