Operation execution on memory servers
Abstract
In some examples, a system includes a plurality of memory servers managing access of data in a memory. A computer node includes a plurality of buffers associated with the memory servers. A processor executes a plurality of functions accessible by the computer node to access the data of the memory servers, the plurality of functions including associating, with the plurality of buffers, information specifying a type of an operation to be performed on the data using the plurality of buffers, queueing the operation in the plurality of buffers, initiating an execution of the operation, based on the type specified by the information, at the memory servers associated with the plurality of buffers, and providing results of the operation from the memory servers to the computer node.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A system comprising: a plurality of memory servers managing access of data in a memory; a computer node; a plurality of buffers in the computer node, wherein the plurality of buffers are associated with the memory servers; and a processor in the computer node configured to execute a plurality of offload-related functions based on a request from a processing element in the computer node, the offload-related functions executed to offload computations from the computer node to the memory servers, the plurality of offload-related functions comprising: associating, with the plurality of buffers, information specifying a type of an operation offloaded from the computer node to the memory servers, queueing operation elements of the operation in the plurality of buffers, wherein an operation element of the operation elements comprises a data value and a memory address of a memory server at which the operation offloaded to the memory server is applied on the data value, initiating an execution of the operation, based on the type specified by the information, at the memory servers associated with the plurality of buffers, the initiating comprising sending the operation elements from the plurality of buffers to the memory servers, and providing results of the operation from the memory servers to the computer node.
- Claim 2Depends on #1
The system of claim 1, wherein the plurality of offload-related functions are accessible by the computer node using a programming interface.
- Claim 3Depends on #2
The system of claim 2, wherein the plurality of offload-related functions comprise a queuing function that queues the operation elements of the operation in the plurality of buffers in response to a call of the programming interface by the computer node, wherein the queueing function comprises an opcode representing the type of the operation, a descriptor representing a memory address space in which the operation is to be applied, and a set of the operation elements.
- Claim 4Depends on #2
The system of claim 2, wherein the plurality of offload-related functions comprise a send function that sends the queued operation elements of the operation from the plurality of buffers to the memory servers in response to a call of the programming interface by the computer node.
- Claim 5Depends on #1
The system of claim 1, wherein the processor is configured to queue operation elements of a further operation of a given type in the plurality of buffers based on a pattern of activities in the computer node indicating that a quantity of requests relating to operations of the given type exceeds a quantity threshold, or an amount of data to be processed for the requests relating to the operations of the given type exceeds a size threshold.
- Claim 6Depends on #1
The system of claim 1, wherein the processor is configured to queue operation elements of a further operation of a given type in the plurality of buffers based on a performance hint in the computer node, the performance hint indicating a performance goal when performing the operation of the given type.
- Claim 7Depends on #3
The system of claim 3, wherein the associating of the information specifying the type of the operation comprises saving information of the opcode and memory addresses of the plurality of buffers into a buffer descriptor in a local memory of the computer node.
- Claim 8Depends on #7
The system of claim 7, wherein the processor sends a collection of operation elements of the operation from a buffer of the plurality of buffers to a first memory server by: retrieving the buffer descriptor associated with the buffer; and adding the information of the opcode from the buffer descriptor and the collection of operation elements to a queue in the first memory server.
- Claim 9Depends on #1
The system of claim 1, wherein the computer node is a first computer node, the system further comprising: a second computer node including a plurality of buffers associated with the memory servers, wherein a processor of the second computer node is configured to execute a plurality of second computer node offload-related functions comprising: queuing operation elements of a second operation in the plurality of buffers in the second computer node, and initiating an execution of the second operation at the memory servers by sending the queued operation elements of the second operation from the plurality of buffers in the second computer node to the memory servers.
- Claim 10Depends on #1
The system of claim 1, wherein the sending of the operation elements from the plurality of buffers to the memory servers comprises writing a collection of operation elements of the operation to a queue of a first memory server of the memory servers, and wherein the processor is configured to: detect a completion of the writing of the collection of operation elements to the queue of the first memory server; and return a wait object to the processing element in response to detecting the completion.
- Claim 11Depends on #10
The system of claim 10, wherein the processor is configured to: determine a status of the wait object corresponding to a status of a memory-side operation performed at the first memory server based on the collection of operation elements; and obtain, based on a completion of the memory-side operation, a result of the memory-side operation from a completion queue of the first memory server.
- Claim 12Depends on #1
The system of claim 1, wherein the processor is configured to: for a first operation element of the operation elements, identify a memory server of the memory servers for a memory address contained in the first operation element; identify a first buffer for the identified memory server; and append the first operation element to the first buffer.
- Claim 13Depends on #12
The system of claim 12, wherein the identifying of the first buffer for the identified memory server is based on mapping information correlating buffers to corresponding memory servers.
- Claim 14Independent Claim
A method comprising: storing, by a computer node, data in a memory coupled to memory servers managing access of the data in the memory; providing, by the computer node, a plurality of buffers associated with the memory servers in the computer node; providing, at the computer node, offload-related functions executed to offload computations from the computer node to the memory servers, the offload-related functions comprising an initialization function and a send function; calling, by the computer node, the initialization function that requests an offload of an operation to the memory servers; based on the call of the initialization function by the computer node, queuing, by a processor, operation elements of the operation in the plurality of buffers, wherein an operation element of the operation elements comprises a data value and a memory address of a memory server at which the operation offloaded to the memory server is applied on the data value; based on calling the send function, sending, by the processor, the operation elements of the operation queued in the plurality of buffers to the memory servers for execution at the memory servers; and providing, by the processor, results of the operation from the memory servers to the computer node.
- Claim 15Depends on #14
The method of claim 14, wherein the initialization function comprises an opcode representing a type of the operation, a descriptor representing a memory address space in which the operation is to be applied, and a set of the operation elements.
- Claim 16Depends on #15
The method of claim 15, further comprising: saving information of the opcode and memory addresses of the plurality of buffers into a buffer descriptor in a local memory of the computer node.
- Claim 17Depends on #16
The method of claim 16, comprising: sending, from the processor, a collection of operation elements of the operation from a buffer of the plurality of buffers to a first memory server by: retrieving the buffer descriptor associated with the buffer; and adding the information of the opcode from the buffer descriptor and the collection of operation elements to a queue in the first memory server.
- Claim 18Depends on #14
The method of claim 14, wherein the sending of the operation elements of the operation to the memory servers comprises writing a collection of operation elements from a buffer of the plurality of buffers to a queue of a first memory server of the memory servers, the method comprising: detecting, by the processor, a completion of the writing of the collection of operation elements to the queue of the first memory server; and returning, by the processor, a wait object to a processing element of the computer node in response to detecting the completion.
- Claim 19Independent Claim
A non-transitory machine-readable storage medium comprising instructions that upon execution cause a computer node to: provide a plurality of buffers in the computer node, wherein the plurality of buffers are associated with memory servers of a network-attached memory; execute a plurality of offload-related functions accessible by a processing element in the computer node to offload computations from the computer node to the memory servers, the plurality of offload-related functions comprising: associating, with the plurality of buffers, information specifying a type of an operation offloaded from the computer node to the memory servers, queueing operation elements of the operation in the plurality of buffers, wherein an operation element of the operation elements comprises a data value and a memory address of a memory server at which the operation offloaded to the memory server is applied on the data value, initiating an execution of the operation, based on the type specified by the information, at the memory servers associated with the plurality of buffers, the initiating comprising sending the operation elements from the plurality of buffers to the memory servers, and providing results of the operation from the memory servers to the computer node.
- Claim 20Depends on #19
The non-transitory machine-readable storage medium of claim 19, wherein the plurality of offload-related functions comprise functions of a programming interface.
Technical Overview & Description
BRIEF DESCRIPTION OF THE DRAWINGS Some implementations of the present disclosure are described with respect to the following figures. FIG. 1 is a block diagram of an arrangement that includes a cluster of computer nodes coupled to a fabric attached memory, according to some examples. FIG. 2 is a block diagram of requests, buffers storing operation elements specified by the requests, and queues in memory servers, according to some examples. FIG. 3 is a flow diagram of a flow for queuing an operation in buffers of a computer node, according to some examples. FIG. 4 is a flow diagram of a flow for sending an operation queued in buffers of a computer node to memory servers for execution, according to some examples. FIG. 5 is a block diagram of a system according to some examples. FIG. 6 is a flow diagram of a flow to offload an operation to memory servers, according to some examples. FIG. 7 is a block diagram of a storage medium storing machine-readable instructions according to some examples. Throughout the drawings, identical reference numbers designate similar, but not necessarily identical, elements. The figures are not necessarily to scale, and the size of some parts may be exaggerated to more clearly illustrate the example shown. Moreover, the drawings provide examples and/or implementations consistent with the description; however, the description is not limited to the examples and/or implementations provided in the drawings. DETAILED DESCRIPTION Computations can be offloaded from a computer node over a network to processors of memory servers that are part of a network-attached memory. Such offloading of computations may be associated with various issues. In some approaches, specific hardware can be added to the memory servers and/or the computer node to enable the offloading of computations to the memory servers. However, adding such specific hardware can add cost and complexity to the memory servers or the computer node. In other approaches, an application prog
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (17)
Non-Patent Literature (10)
- Bienz et al., Node aware sparse matrix-vector multiplication, Jul. 13, 2018 (30 pages).
- Carter et al., Impulse: Building a Smarter Memory Controller, Nov. 2019 (23 pages).
- CXL Compute Express Link: The Breakthrough CPU-to-Device Interconnect CXL, 2022 (2 pages).
- De Sensi et al., An In-Depth Analysis of the Slingshot Interconnect, Aug. 20, 2020 (13 pages).
- Draper et al., The Architecture of the DIVA Processing In Memory Chip, Jun. 2002 (12 pages).
- Ghose et al., Enabling the Adoption of Processing-in-Memory: Challenges, Mechanisms, Future Research Directions, Feb. 2018 (45 pages).
- Ghose et al., Processing-in-memory: A workload-driven perspective, Nov./Dec. 2019 (19 pages).
- Hn et al., A Scalable Processing-in-Memory Accelerator for Parallel Graph Processing, Jun. 2015 (13 pages).
- Keeton et al., The OpenFAM API: a programming model for disaggregated persistent memory, 2018 (26 pages).
- NVIDIA, NVIDIA Scalable Hierarchical Aggregation and Reduction Protocol (SHARP), May 2021 (30 pages).