Method and system for accessing host memory through non-volatile memory over a fabric bridged with direct target access
Directly accessing NVMe devices on the network structure through hardware components solves the processor burden and delay problems caused by protocol conversion between NVMeOF and NVMe devices in the existing technology, and achieves efficient memory access.
Patent Information
- Application Number
- CN202210166490.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2016-04-04
- Filing Date
- 2017-04-04
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2037-04-04
AI Technical Summary
In the existing technology, when accessing non-volatile memory through software-level methods, there are problems such as heavy processor burden and high read/write latency, especially during the access request and protocol conversion process between NVMe devices and NVMeOF protocols. .
Using hardware-based components to communicate directly on the network structure through the RDMA interface and NVMeOF interface, using network interface cards (NICs) and PCIe ports to communicate directly with NVMe devices or subsystems, reducing the processing resources of protocol conversion, and achieving memory access Direct transmission of commands and data.
Significantly reduces the utilization of processing resources, reduces read/write latency, avoids the overhead of software instruction processing and buffer loading time, and improves the efficiency of memory access.
Smart Images

Figure CN114579488B_ABST
Abstract
Description
[0001] This application is a divisional application of an invention patent application with an application date of April 4, 2017, application number 201780022196.6, and invention name "Method and system for accessing host memory via a non-volatile memory bridge through a structure using direct target access".
[0002] CROSS-REFERENCE TO RELATED APPLICATIONS
[0003] This disclosure claims the benefit of 35 U.S.C. §119(e) of U.S. Provisional Patent Application Nos. 62 / 317,902 and 62 / 317,896, both filed on April 4, 2016, each of which is hereby incorporated by reference in its entirety. Technical Field
[0004] The present disclosure relates to remotely accessing storage media through a storage network fabric, and in particular, to accessing non-volatile memory through a non-volatile memory bridge through the fabric via a hardware interface. Background Art
[0005] The background description provided herein is for the purpose of generally presenting the context of the present disclosure. The work of the inventors (to the extent that the work is described in this background section) and various aspects of this specification that were not prior art at the time of filing are neither explicitly nor implicitly admitted to be prior art against the present disclosure.
[0006] In a computing system, to access a solid-state drive (SSD), a host processor typically communicates with an SSD controller via a non-volatile memory host controller interface, which is typically adapted for use with a peripheral component interconnect express (PCIe) bus. The non-volatile memory host controller interface employs the non-volatile memory express (NVMe) protocol, which defines communications between a host processor and a target device for accessing a non-volatile memory (NVM) subsystem. Conventionally, a host processor is directly connected to an NVM subsystem (e.g., a storage device) via a PCIe bus. Summary of the invention
[0007] Embodiments described herein provide a method for accessing a host memory via a non-volatile memory bridge through a structure using direct target access. A first memory access command encapsulated in a first network packet is received at a memory interface unit from a remote direct memory access (RDMA) interface via a network structure. The first memory access command complies with a first non-volatile memory interface protocol, and the first network packet complies with a second non-volatile memory interface protocol. The first network packet is disassembled to obtain the first memory access command. The first memory access command is stored in a work queue using an address bit of the work queue as a preset index of the first memory access command. The first memory access command is sent from the work queue based on the preset index to activate a first target storage device.
[0008] In some implementations, in response to sending the first memory access command, memory transaction data conforming to a first non-volatile memory interface protocol is received at the memory interface unit and from the first target storage device. The memory interface unit is configured to encapsulate the memory transaction data in a second network packet conforming to a second non-volatile memory interface protocol and send the second network packet to the RDMA interface via the network fabric.
[0009] In some implementations, the memory transaction data is communicated from the first target storage device to the RDMA interface through the memory interface unit in a size substantially similar to a size of the second network packet without buffering the transaction data.
[0010] In some implementations, the second network packet is sent to the RDMA interface as a notification that the memory transaction is initiated at the first storage device. The RDMA interface is activated to service the memory transaction.
[0011] In some implementations, the RDMA interface is activated by storing the memory transaction data in a response queue assigned to the RDMA interface, and wherein the work queue is assigned to the first storage device.
[0012] In some implementations, when the first memory access command indicates a read operation, memory data conforming to a first non-volatile memory interface protocol is received at the memory interface unit and from the first target storage device. The memory interface unit is configured to encapsulate the memory data in a second network packet conforming to a second non-volatile memory interface protocol and send the second network packet to the RDMA interface via the network fabric.
[0013] In some implementations, when the first memory access command packet includes a write command, data encapsulated in a second network packet conforming to a second non-volatile memory interface protocol is received at the memory interface unit and from the RDMA interface. The memory interface unit is configured to disassemble the second network packet to obtain data conforming to the first non-volatile memory interface protocol, and send the data in a size of the second network packet to the first target storage device.
[0014] In some implementations, a work queue storing the first memory access commands and an RDMA response queue storing the memory transactions are maintained. The work queue is paired with the RDMA response queue.
[0015] In some implementations, a second target memory device operable under a second memory access protocol is connected to the memory interface unit.
[0016] In some implementations, the memory interface unit is configured to receive a second memory access command encapsulated in a second network packet from the RDMA interface and via the network structure. The second memory access command complies with the first non-volatile memory interface protocol, and the second network packet complies with the second non-volatile memory interface protocol. The second network packet is disassembled to obtain the second memory access command. The second memory access command is stored in the second work queue using the address bits of the second work queue as a preset index of the second memory access command. The second memory access command is sent from the second work queue based on the preset index to activate the second target storage device. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Other features of the present disclosure, its nature and various advantages will become apparent from the following detailed description considered in conjunction with the accompanying drawings, in which like reference numerals refer to like parts throughout, and in which:
[0018] Figure 1 is a block diagram illustrating an example architecture of a non-volatile memory over fabric (NVMeOF) system employing a non-volatile memory over fabric (NVMeOF) network interface card (NIC) as an interface with an NVMe storage device according to some embodiments described herein;
[0019] Figure 2 is a block diagram illustrating an example architecture of an aggregated NVMeOF system 200 employing an NVMeOF NIC as an aggregate interface with multiple NVMe storage devices according to some embodiments described herein;
[0020] Figure 3 is a diagram illustrating some embodiments described herein. Figure 1 to Figure 2A block diagram of an example architectural configuration of an NVMeOF system as described in;
[0021] Figure 4 is a diagram illustrating some embodiments described herein. Figures 1 to 3 The NVMeOF system described in the specification uses a block diagram of an example circuit structure of an NV unit interfaced between a network structure and an NVMe storage device;
[0022] Figure 5 to Figure 6 is a diagram illustrating some embodiments described herein. Figures 1 to 4 A flowchart of an example read process performed by the NVMeOF system described in;
[0023] Figures 7 and 8 is a diagram illustrating some embodiments described herein. Figures 1 to 4 A flowchart of an example write process performed by the NVMeOF system described in;
[0024] Fig. 9 is a diagram illustrating some embodiments described herein. Figure 4 A logical flow diagram of example operations performed by the NV unit described in the figure to convert data and control commands between a network fabric and an NVMe storage device.
[0025] Specific implementation
[0026] The present disclosure describes methods and systems for remotely accessing non-volatile memory by a host via a hardware interface through a fabric's non-volatile memory.
[0027] Non-Volatile Memory over Fabric (NVMeOF) is a protocol for communicating between a host processor and an NVM subsystem over a shared network fabric. The NVMeOF architecture includes a network side (e.g., a memory access request initiator side) interface, such as a remote direct memory access (RDMA) interface that interacts with a host processor, and an NVMeOF interface (e.g., a target storage side) that interacts with NVMe devices and / or subsystems. In an embodiment, the RDMA interface and the NVMeOF interface are connected and configured to communicate via a network fabric (e.g., Ethernet, etc.). In this way, the host processor is configured to access a large number of NVMe devices and / or subsystems that are away from the host processor.
[0028] Existing solutions for implementing the NVMeOF interface include enabling a processor that executes software instructions to handle access requests and protocol conversions between NVMe and NVMeOF, such as read or write requests from a host processor, etc., to access memory units in NVMe devices or subsystems. This software-based approach places a very heavy burden on the processor, and also increases read / write latency due to the overhead time of the processor issuing and loading memory access requests that comply with the NVMeOF protocol. In addition, software-based methods typically employ a store and forward approach, for example, all memory access commands for memory read or write transactions and memory data to be read or written are received and stored in a buffer, and then the memory commands and data are converted to a suitable protocol before the NVMe data is written to the target storage device or the NVMeOF data is read by the host processor. The time required for the memory commands and data to be loaded into the buffer and converted at the buffer also increases the latency of the corresponding read or write operations.
[0029] The embodiments described herein provide a hardware-based component that is configured to read / write data directly to a memory unit in an NVMe device or subsystem, and communicate directly with an RDMA interface (e.g., a host initiator of a memory access request) coupled to a host processor via a shared network structure. Specifically, the hardware-based component includes a network interface card (NIC) that interfaces with a network and one or more PCIe ports that are each paired with an NVMe device, so that the hardware configuration of the component allows a data path to pass through the component between the NVMe device or subsystem and a remote host processor.
[0030] In this way, protocol conversion from NVMeOF to NVMe or NVMe to NVMeOF is therefore processed at the hardware level using significantly reduced processing resources compared to systems operating at the software level. The hardware-based component is configured to receive an NVMeOF command packet (capsule), which contains one or more NVMe memory read or write commands (or other memory access commands) encapsulated in a network packet that complies with NVMeOF, and optionally contains command data from a network structure, based on which the hardware-based component is configured to prepare an input / output queue for a job to be executed on a target NVMe device. On the other hand, the hardware-based component is configured to receive an NVMe target memory transaction (e.g., a memory operation session for a write or read operation at a target storage device) from an NVMe device or subsystem, and to service the target memory transaction by activating corresponding read and write functions with a remote host via an RDMA interface (e.g., an RDMA transport layer). Therefore, when NVMeOF command packets are received from the network structure, each NVMeOF command packet is disassembled by a hardware-based component to recover the NVMe data contained therein; and when NVMe memory transactions are received from the target NVMe device, each NVMe memory transaction is encapsulated by a hardware-based component to comply with NVMeOF. Memory commands or data are delivered from the network structure to the target NVMe device packet by packet with the size of the command packet (e.g., similar to the size of the network packet), or vice versa. In this way, the NVMe device or subsystem is configured to directly serve the input / output queue of the host processor and implement the memory transaction at the target memory unit, because the memory access commands and memory data are transmitted between the NVMe device or subsystem and the network structure (and the host processor resides therein) on a packet-by-packet basis, rather than loading all memory access commands and memory data into a buffer before the memory transaction is implemented on the target memory unit through the conventional store-and-forward software-based method described above. In this way, the NVMeOF interface is operated via hardware-based components without placing a heavy burden on the central processor (e.g., storage aggregator processor, etc.), and the latency of memory access is improved without the overhead processor issue time for issuing software instructions in conventional store and forward methods and the buffer load time for loading all memory access commands and data required for memory transactions.
[0031] Figure 1is a block diagram illustrating an example architecture of an NVMeOF system that employs an NVMeOF NIC as an interface with an NVMe storage device according to some embodiments described herein. The host processors 105a-n (collectively referred to herein as 105) of one or more computing systems are each paired with an RDMA NIC 108a-n (collectively referred to herein as 108), and the RDMA NIC 108 is configured to send a memory access request to one or more NVMe target devices or subsystems 115a-n (collectively referred to herein as 115), for example, in an NVMeOF command packet. As described above, the memory access request is encapsulated in a network packet that complies with NVMeOF and is sent over a network structure 110 (e.g., 25G Ethernet). Each NVMe target device 115 is equipped with an NVMeOF NIC 120a-n (collectively referred to herein as 120), and the NVMeOF NIC 120 is configured to interface between network structures 110. For example, the NVMeOF NIC 120 is configured to unpack the NVMeOF command packets received from the network fabric into NVMe commands compatible with the NVMe target device 115. Or the NVMeOF NIC 120 is configured to receive NVMe memory transactions from the NVMe target device 115 and encapsulate the NVMe memory transaction data into NVMeOF-compliant packets.
[0032] NVMeOF NIC 120 is configured to communicate with flash controllers 130a-n (collectively referred to herein as 130) via PCIe buses 125a-n with NVMe extensions (collectively referred to herein as 125). Each flash controller 130 is configured to control and implement read or write operations using flash memory 150a-n (collectively referred to herein as 150).
[0033] Figure 22 is a block diagram illustrating an example architecture of an aggregated NVMeOF system 200 employing an NVMeOF NIC as an aggregate interface with multiple NVMe storage devices according to some embodiments described herein. Instead of having an NVMeOF NIC 120 equipped for each NVMe target device 115, an aggregated NVMeOF NIC 120 is used together with an aggregator 121 having multiple PCIe ports, each of which is paired with an NVMe target device 115. Thus, the centralized NVMeOF NIC 120 is configured to interface with the NVMe target device 115 through the PCIe port at the aggregator 121. In this way, hardware configuration and upgrades are simplified without additional hardware changes to any existing NVMe target device 115. Therefore, the system architecture 200 provides a scalable storage architecture because new NVMe target devices can be added to the system as long as the PCIe port is paired with the new NVMe target device at the aggregator 121. Therefore, the system can scale linearly by adding or removing target devices, increasing or decreasing ports, without being limited by the ability of the aggregator 121 to serve more target storage devices and higher bandwidth. In addition, with the aggregator 121, all target devices 115 are presented to the host as a single Internet Protocol (IP) address.
[0034] Figure 3 is a diagram illustrating some embodiments described herein. Figure 1 to Figure 2 A block diagram of an example circuit configuration of the NVMeOF system described in . The advanced peripheral bus (APB) 217 or the AXI interconnect bus is configured to connect the non-volatile unit (NVU) 210, the main memory 215, the PCIe core 221, the multimedia card interface core (MCI-C) 222, the AXI interconnect bus 205, the Ethernet structure 110, the RDMA interface 108, and the media access control (MAC) unit 213 together via various configuration ports.
[0035] RDMA interface 108 (e.g., similar to Figure 1 to Figure 2 The RDMA NIC 108 in the example embodiment is configured to receive memory access requests from the MAC 213, which in turn is configured to receive memory access requests from the host processor (e.g., Figure 1 In one embodiment, the MAC 213 is further configured to receive multimedia data via a Serial Gigabit Media Independent Interface (SGMII) 212 from an upper layer and send the multimedia data to the Ethernet 110.
[0036] The RDMA interface 108 is configured to send NVMeOF command packets to the NVU 210 via the AXI interconnect bus 205 to communicate with the NVMe target device (e.g., Figure 1 In response to the memory access request related to 105), NVU 210 can parse the NVMeOF command packet into multiple read or write tasks, and store the read or write tasks in the I / O queue at the memory 215. The I / O queue is designated for a specific NVMe target device.
[0037] The NVU is also configured to provide or receive data from a memory monitoring system (MSS) 216 (e.g., similar to Figure 1 NVU 210 is also configured to transfer data to or from NVMe target memory via a PCIe connection, for example, to physical layer bus 125 through PCIe core 221, or to MCI bus 225 through MCI port 222. PCIe core 221 or MCI port 222 is configured to pair with a specified NVMe target device or subsystem.
[0038] Figure 4 is a diagram illustrating some embodiments described herein. Figures 1 to 3 The NVMeOF system described in the specification is a block diagram of an example circuit structure of a non-volatile interface unit (e.g., NVU 210) for interfacing between a network fabric and an NVMe storage device. NVU 210 includes AXI ports, such as but not limited to RDMA AXI 247a-b, memory AXI 246 and storage device AXI 257, CPU AXI 254, etc., which are configured to communicate via an AXI interconnect bus ( Figure 3 217) are connected to RDMA ( Figure 3 108 in), memory ( Figure 3 215), a storage device (eg, via Figure 3 PCIe 125 in), CPU (if needed).
[0039] NVU 210 includes an RDM database 250 that stores RDMA interfaces (e.g., Figure 3 NVU 210 further includes an RDM write unit 253, which is configured to receive an RDMA signal from an RDMA interface (e.g., Figure 3 108) receives and processes write commands, and an RDM read unit 252, which is configured to receive and process write commands from an RDMA interface (e.g., Figure 3108) receives and processes the read command. NVU 210 further includes a storage device write unit 255, which is configured to pass write commands and data to be written to the target storage device, and a storage device read unit 256, which is configured to pass read commands and data to be read from the target storage device. Further details of the implementation of the NVMeOF read or write command packet are respectively combined with Figure 5 to Figure 6 and Figures 7 and 8 Let's discuss.
[0040] In an embodiment, NVU 210 is configured to maintain multiple queues (e.g., up to 256 NVMe queues in total) to store multiple memory access commands (read or write), for example, Figure 3 In some implementations, data is stored in the host memory in the form of scatter gather lists (SGLs), and in-package data is supported.
[0041] The queue controller 251 in the NVU 210 is configured to control and manage queue entries, such as submission queue entries (SQEs) storing read or write commands to be implemented, completion queue entries (CQEs) storing completed read or write commands, response queue (RSQ) entries storing responses from NVMe target devices in response to write or read commands, etc. Therefore, the NVU 210 is configured to activate the NVMe target storage device by queuing the SQE, and activate RDMA by queuing the RSQ. The SQE is stored in the work queue assigned to the NVMe target device using the address bit of the work queue as a preset index for the corresponding SQE, because the queue controller 251 does not use a software-based method to generate an index value and assign the index value to the SQE. Therefore, when the work queue is accessed, each SQE is sent to the corresponding NVMe target device assigned to the work queue based on the order defined by the preset index. The size of each SQE is substantially similar to a network packet, and therefore the NVMe memory command stored as an SQE passes through the work queue on a packet-by-packet basis. Additionally, an index (e.g., address bits) of each SQE is used to associate responses from target storage devices, memory transactions, etc. with the original read or write command packet received from the RDMA interface 108. In this way, the RDMA interface (e.g., the original initiator of the memory access command), the SQE, the response from the NVMe target device, and the corresponding memory transaction are all related by index.
[0042] At the NVU 210, whenever an NVMeOF command packet is received from the RDMA interface 108, packet analysis (e.g., parsing, modification, storage, etc.) is performed by the NVU hardware, and the command packet is forwarded to the target storage device (e.g., SSD) by the NVU hardware. For example, in some implementations, the input command packet is configured to be modified by replacing the most significant bit (MSB) of the buffer address of the corresponding SQE in order to associate the memory transaction from the target storage device with the original command packet. Thus, the memory transaction is assigned to the appropriate RDMA that sent the initial command packet. When the command packet is scheduled for service, a doorbell interrupt (e.g., an interrupt message configuring a doorbell variable associated with the corresponding SQE queue in which the command packet is stored as being accessed) will be sent by the NVU to the SSD controller. Further details of the implementation of the command packet are incorporated into Figures 5 to 9 Any RDMA queue (e.g., a queue that stores NVMeOF memory access command packets from RDMA) is paired with an NVMe queue (e.g., a queue that stores NVMe memory transactions to a target storage device, which is consistent with the NVMeOF specification). In this way, the NVU 210 is configured to unpack the NVMeOF command packets into NVMe commands suitable for use by the NVMe target storage device.
[0043] In some implementations, from the PCIe bus ( Figure 3 125) The received memory transaction is configured to be propagated as an AXI transaction by NVU 210 and serviced by NVU 210, which in turn activates RDMA to service the memory transaction by initiating a read or write operation.
[0044] Figure 5 to Figure 6 is a diagram illustrating some embodiments described herein. Figures 1 to 4 Flowchart of an example implementation of an NVMe read command executed by the NVMeOF system described in . Figure 6 Starting at 301 in, in one embodiment, the RDMA interface 108 is configured to generate and send a memory access command packet compliant with NVMeOF to the NVU 210, the memory access command packet including one or more NVMe read commands, for example, see also Figure 5 At 302, NVU 210 is configured to unpack the NVMe OF read command packet to obtain and store one or more NVMe read commands in the SQE (see, for example, also Figure 5 2.2 in FIG. 2 ) and / or in SGL in memory 215 (see also, for example, Figure 5At 303, the NVU 210 is configured to write a doorbell (eg, a message for initiating access to an SQE or SGL queue) to a target storage device SSD (eg, see also Figure 5 At 304, the target SSD is configured to read the SQE and SGL in the memory 215 (see also, for example, Figure 5 At 305, the target SSD is configured to pass the requested read data to the NVU 210 (see, for example, Figure 5 At 306, NVU 210 is configured to encapsulate the read data into NVMeOF packets and store in memory 215 (see also, for example, Figure 5 4.2 in the example), and writes the control command associated with the read data as a write queue entry (WQE) in the submission queue (see also, for example, Figure 5 Arrow 5.1).
[0045] At 307, the NVU 210 is configured to encapsulate the read notification in an NVMeOF packet and send it to the RDMA interface 108 (see also, for example, Figure 5 At 308, the RDMA interface 108 is configured to receive read data encapsulated in NVMeOF packets from the memory 215 (see also, for example, Figure 5 5.3 and 5.4 in FIG. 5 ), and sends the read data to the host processor (see also FIG. 5 , for example). Figure 5 At 309, the RDMA interface 108 is configured to receive a read response from the host processor (see also, for example, Figure 5 At 310, the RDMA interface 108 is configured to write to the completion queue in the NVU 210 that the read operation is completed (see also, for example, Figure 5 Arrow 5.7).
[0046] At 311, NVU 210 is configured to receive a read transaction from an SSD via PCIe 125. At 312, NVU 210 is configured to send a read completion status to a target SSD. At 313, the target SSD is configured to write the read transaction to the CQE of NVU 210 (see also, for example, Figure 5 At 314, NVU 210 is configured to send the response packet to memory 215 (see also, for example, Figure 5 6.2 in the figure), which in turn stores the response packet in RSQ (see also, for example, Figure 5At 315, the NVU 210 is configured to send a read notification to the RDMA interface 108 (see also, for example, Figure 5 At 316, the RDMA interface 108 is configured to read the read buffer and WQE in the memory 215 (see also, for example, Figure 5 At 317, the RDMA interface 108 sends the response packet to the host processor (see, for example, Figure 5 At 318, the RDMA interface 108 receives an acknowledgement from the host processor (see also, for example, Figure 5 At 319, the RDMA interface 108 is configured to write to the completion queue in the NW 210 that the NVMe read command is completed.
[0047] like Figure 5 As shown, when the NVMeOF read command packet is received, each NVMeOF read command packet (e.g., 2.1) is unpacked to obtain the NVMe command at NW 210, and the NVMe command is saved as an SQE (e.g., 2.2) based on the address bit of the SQE queue. In this way, the NVMe command is indexed internally by the address bit, and then implemented to the target SSD one by one via PCIe 125 based on the order defined by the index. The index is then sent to the target SSD together with the NVMe read command. In response to each NVMeOF read command, the data read from the target SSD via PCIe 125 is received at NVU 210, and then encapsulated as an NVMeOF packet with the granularity of the size of the NVMeOF packet through data paths 4.1 and 4.2. Since the index is also returned to NW 210 together with the read data, the index is used to identify the RDMA interface, such as the initiator of the read command, and thus the RDMA interface is paired with the NVMeOF packet. Thus, read data is passed from the target SSD to the network fabric via NW 210 approximately packet by packet with little or no buffering, rather than loading the read data into a buffer until all read data is fully loaded before the read data can begin to be passed to the network fabric as in conventional store and forward software-based approaches.
[0048] Figures 7 and 8 is a diagram illustrating some embodiments described herein. Figures 1 to 4 Flowchart of an example implementation of an NVMe write command executed by the NVMeOF system described in . Figure 8Starting at 401 in the RDMA interface 108, the RDMA interface 108 is configured to generate and send a memory access command packet compliant with NVMeOF to the NVU 210, the memory access command packet including one or more NVMe write commands, for example, see also Figure 7 At 402, NW 210 is configured to unpack the NVMeOF command packet to obtain one or more NVMe write commands and save them in SQE (see, for example, Figure 7 2.2 in FIG. 2 ) and / or stored in the SGL of the memory 215 (see also, for example, Figure 7 At 403, the NVU 210 is configured to write a doorbell (eg, a message for initiating access to an SQE or SGL queue) to a target storage device SSD (eg, see also Figure 7 At 404, the target SSD is configured to read the SQE and SGL in the memory 215 (see also, for example, Figure 7 At 405, the target SSD is configured to read the data to be written from the target SSD via the NVU 210 (see, for example, Figure 7 At 406, NVU 210 is configured to write to RSQ in memory 215 (see also, for example, Figure 7 Arrow 4.2).
[0049] At 407, the NVU 210 is configured to encapsulate the write notification into an NVMeOF packet and send the NVMeOF packet to the RDMA interface 108 (see also, for example, Figure 7 4.3 in the figure). For example, the NVMeOF packet includes a response entry from the NVMe target device and a data block representing the write data. At 408, the RDMA interface 108 is configured to read the input data from the WQE in the memory 215 (see also, for example, Figure 7 4) and sends the write data to the host processor (see also, for example, Figure 7 At 409, the RDMA interface 108 is configured to receive a write acknowledgement at the RDMA packet level from the host processor regarding the RDMA transfer (see also, for example, Figure 7 At 410, the completion queue entry for the completed write operation is written to the NVU 210 (see also, for example, Figure 7 Arrow 4.7).
[0050] At 411, the target SSD is configured to write write transactions to the CQE using the NVU 210 (see, e.g., Figure 7 At 412, NVU 210 is configured to generate an NVMeOF response packet and send it to memory 215 (see, for example, Figure 7 5.2 in ), which in turn stores the response packet in the WQE (see, for example, Figure 7 At 413, the NVU 210 is configured to send the NVMeOF response packet as a write notification to the RDMA interface 108 (see, for example, Figure 7 At 414, the RDMA interface 108 is configured to read write transactions from the memory 215 (see, for example, Figure 7 5.5 and 5.6 in FIG. 5 ), and transmits the response to the host processor (see, for example, Figure 7 At 415, the RDMA interface 108 receives an acknowledgement from the host processor (e.g., see Figure 7 At 416, the RDMA interface 108 is configured to write to the completion queue in the NVU 210 that the NVMe write command has been completed (e.g., see Figure 7 5.9 in the above).
[0051] like Figure 7 As shown, when the NVMeOF read command packet is received, each NVMeOF write command packet (e.g., 2.1) is disassembled to obtain the NVMe write command at the NVU 210, for example, by reading the command identifier and any other segment descriptors of the packet to separate the SQE and the attached memory data (if any) in the command packet. The NVMe write command is then saved as an SQE in the work queue based on the address bits of the SQE work queue (e.g., 2.2), and the address bits are used to internally index the corresponding SQE entry. The NVMe write commands stored as SQEs that are internally indexed by the address bits are then transmitted out of the work queue one by one via PCIe 125 based on the order defined by the index, and are implemented on the target SSD. In response to each NVMeOF write command, data to be written to the target SSD via PCIe 125 is received at NVU 210 as an NVMeOF packet, and then each NVMeOF packet is unpacked to obtain NVMe data through data paths 4.8 and 4.1 at a granularity of the size of the NVMeOF write command packet (e.g., packet size). Therefore, with little or no buffering, write data is delivered to the target SSD from the network fabric roughly packet by packet through NW 210, rather than loading the write data into a write buffer until all the write data is fully loaded before the write data can begin to be delivered to the target SSD as in a conventional store-and-forward software-based approach.
[0052] Fig. 9 is a diagram illustrating some embodiments described herein. Figure 4 1 is a logic flow diagram of example operations performed by the NV unit described in 1 for translating data and control commands between a network fabric and an NVMe storage device. At 901, a memory access command (e.g., an NVMe write or read command) encapsulated in a network packet (e.g., an NVMeOF command packet, etc.) is sent from an RDMA interface (e.g., Figure 1 108) via a network structure (e.g., Figure 1 At 902, the network packet is disassembled to obtain the memory access command. At 903, the memory access command is stored in the work queue, for example, as an SQE in the I / O queue (see, for example, also Figure 5 2.2 in ). At 904, a memory access command is sent from the work queue based on a preset index to activate the target storage device.
[0053] Combination Figures 1 to 9 The various embodiments discussed are performed by various electronic components of one or more electronic circuits, such as, but not limited to, integrated circuits, etc. The various components discussed throughout this disclosure (such as, but not limited to, NVoF NIC 120, RDMA NIC 108, NVU 210, FEC encoder 102, memory 215, MSS 216, etc.) are configured to include a set of electronic circuit components and operate communicatively on one or more electronic circuits. Each electronic circuit is configured to include, but not limited to, any of logic gates, memory cells, amplifiers, filters, etc. The various embodiments and components disclosed herein are configured to be operated and / or implemented at least in part by processor-executable instructions stored on one or more transitory or non-transitory processor-readable media.
[0054] Although various embodiments of the present disclosure have been shown and described herein, these embodiments are provided as examples only. Many variations, changes and replacements related to the embodiments described herein are applicable without departing from the present disclosure. It should be noted that the alternatives to the embodiments of the present disclosure described herein can be adopted when practicing the present disclosure. The following claims are intended to define the scope of the present disclosure, and methods and structures within the scope of these claims and their equivalents are thus covered.
[0055] While operations are depicted in the drawings in a particular order, this should not be construed as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results.
[0056] The technical subject matter of this specification has been described in terms of certain aspects, but other aspects may be implemented and are within the scope of the appended claims. For example, the actions recited in the claims may be performed in a different order and still achieve the desired result. As an example, Fig. 9 The processes depicted in the drawings do not necessarily require the particular order shown or sequential order to achieve the desired results. In certain implementations, multitasking and parallel processing may be advantageous. Other variations are within the scope of the appended claims.
Claims
1. A method for accessing host memory through non-volatile memory over a fabric bridged with direct target access, the method comprising: receiving, at a memory controller of a target storage device over a network connection, a first network packet conforming to a first non-volatile memory interface protocol; retrieving, by the memory controller, from the first network packet, a first memory access command conforming to a second non-volatile memory interface protocol, the first memory access command being encapsulated in the first network packet at a remote direct memory access (RDMA) interface, wherein the second non-volatile memory interface protocol is different from the first non-volatile memory interface protocol, and wherein the first memory access command is encapsulated in the first network packet without modifying the first memory access command conforming to the second non-volatile memory interface protocol; storing, at the memory controller, the first memory access command conforming to the second non-volatile memory interface protocol without modification in a work queue; as well as The first memory access commands conforming to the second non-volatile memory interface protocol are executed unmodified by the memory controller according to a storage order at the work queue.
2. The method according to claim 1, further comprising: generating, at the target storage device, memory transaction data conforming to the second non-volatile memory interface protocol; encapsulating, by the memory controller, the memory transaction data in a second network packet conforming to the first non-volatile memory interface protocol; as well as The second network packet is sent to the RDMA interface over the network connection.
3. The method according to claim 2, further comprising: identifying, at the memory controller, a device from which the first network packet was received; as well as The second network packet is addressed to the identified device.
4. The method according to claim 2, further comprising: The memory transaction data is communicated to the memory controller in a size substantially similar to a size of the second network packet without buffering the transaction data.
5. The method according to claim 2, further comprising: sending the second network packet to the RDMA interface as a notification that a memory transaction is initiated at the target storage device, The RDMA interface is activated to service the memory transaction.
6. The method according to claim 5, wherein the RDMA interface is activated by: The memory transaction data is stored in a response queue assigned to the RDMA interface, and wherein the work queue is assigned to the target storage device.
7. The method of claim 1 , wherein the first memory access command indicates a read operation, the method further comprising: receiving, at the memory controller, memory data conforming to the second non-volatile memory interface protocol; encapsulating, by the memory controller, the memory data in a second network packet conforming to the first non-volatile memory interface protocol; as well as The second network packet is sent to the RDMA interface over the network connection.
8. The method according to claim 7, further comprising: identifying, at the memory controller, a device from which the first network packet was received; as well as The second network packet is addressed to the identified device.
9. The method of claim 1 , wherein the first memory access command indicates a write command, the method further comprising: receiving, at the memory controller, data encapsulated in a second network packet conforming to the first non-volatile memory interface protocol; retrieving, by the memory controller, the encapsulated data conforming to the second non-volatile memory interface protocol from the second network packet; as well as The data is transferred to a non-volatile memory in a size of the second network packet.
10. The method according to claim 1, further comprising: The work queue storing the first memory access command and an RDMA response queue storing memory transactions are maintained, wherein the work queue is paired with the RDMA response queue.
11. A system for accessing host memory through non-volatile memory over a fabric bridged with direct target access, the system comprising: Non-volatile memory; as well as A memory controller, the memory controller being configured to: receiving, via the network connection, a first network packet conforming to a first non-volatile memory interface protocol; Retrieving a first memory access command conforming to a second non-volatile memory interface protocol from the first network packet, the first memory access command being encapsulated at a remote direct memory access (RDMA) interface in the first network packet, wherein the second non-volatile memory interface protocol is different from the first non-volatile memory interface protocol, and wherein the first memory access command is encapsulated in the first network packet without modifying the first memory access command conforming to the second non-volatile memory interface protocol; storing, at the memory controller, the first memory access command conforming to the second non-volatile memory interface protocol without modification in a work queue; as well as The first memory access commands conforming to the second non-volatile memory interface protocol are executed unmodified by the memory controller in a storage order at the work queue.
12. The system of claim 11, wherein the memory controller is further configured to: generating memory transaction data in accordance with the second non-volatile memory interface protocol; encapsulating the memory transaction data in a second network packet conforming to the first non-volatile memory interface protocol; and The second network packet is sent to the RDMA interface over the network connection.
13. The system of claim 12, wherein the memory controller is further configured to: identifying, at the memory controller, a device from which the first network packet was received; and The second network packet is addressed to the identified device.
14. The system of claim 12, wherein a size of the memory transaction data is substantially similar to a size of the second network packet without buffering the transaction data.
15. The system of claim 12, wherein the memory controller is further configured to: sending the second network packet to the RDMA interface as a notification that a memory transaction is initiated at the target storage device, The RDMA interface is activated to service the memory transaction.
16. The system of claim 15, wherein the RDMA interface is activated by: The memory transaction data is stored in a response queue assigned to the RDMA interface, and wherein the work queue is assigned to the target storage device.
17. The system of claim 11, wherein the first memory access command indicates a read operation, and wherein the memory controller is further configured to: receiving memory data conforming to the second non-volatile memory interface protocol from the non-volatile memory; encapsulating the memory data in a second network packet conforming to the first non-volatile memory interface protocol; as well as The second network packet is sent to the RDMA interface over the network connection.
18. The system of claim 17, wherein the memory controller is further configured to: identifying a device from which the first network packet was received; and The second network packet is addressed to the identified device.
19. The system of claim 11, wherein the first memory access command indicates a write command, and wherein the memory controller is further configured to: receiving data encapsulated in a second network packet conforming to the first non-volatile memory interface protocol; retrieving the encapsulated data conforming to the second non-volatile memory interface protocol from the second network packet; as well as The data is transferred to the non-volatile memory in a size of the second network packet.
20. The system of claim 11, wherein the memory controller is further configured to: The work queue storing the first memory access command and an RDMA response queue storing memory transactions are maintained, wherein the work queue is paired with the RDMA response queue.
Citation Information
Patent Citations
Method and device for reading and writing data under RDMA and network system
CN103929415A
Techniques for command validation for access to a storage device by a remote client
CN104246742A
Techniques for Remote Client Access to a Storage Medium Coupled with a Server
US20130198312A1
Storage system and server
US20150261434A1
NVM express controller for remote access of memory and I / O over ethernet-type networks
US20160085718A1
