# US 2021/0342071 A1 · Input/output processing in a distributed storage node with rdma

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0342071 A1
- Document ID: US20210342071A1
- Status: Published application
- Kind: A1
- Application number: 17/305,752
- Filed: 2021-07-14
- Published: 2021-11-04
- Earliest claimed: 2019-01-30
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Peter Puhov; Robert Foley
- Web page: https://patentgrep.com/patent/US20210342071A1

## CPC

- G06F 3/0613: {in relation to throughput}
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/064: {Management of blocks}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A computer-implemented method for remote direct memory access (RDMA) by a distributed storage node includes receiving a request for an input/output (I/O) process associated with data. In response to the request, a memory segment shared between the operating system and a user process is allocated using an operating system driver of the node. The user process includes an I/O stack for processing the request. The shared memory segment includes a context memory portion storing context information associated with the I/O stack, a header memory portion storing header information for the I/O process, and a data memory portion for storing the data. The shared memory segment is registered for RDMA access with a target storage node. An RDMA transfer is performed between the shared memory segment and the target node to complete the I/O process. The shared memory segment is deallocated upon completion of the RDMA transfer.

## Claims

### Claim 1

A computer-implemented method for remote direct memory access (RDMA) by a distributed storage node, the method comprising:
receiving a request for an input/output (I/O) process associated with data;
in response to the request, allocating using an operating system driver of the distributed storage node, a memory segment shared between the operating system and a user process running on the distributed storage node, wherein:
the user process includes an I/O stack for processing the request;
the shared memory segment includes a context memory portion storing context information associated with the I/O stack, a header memory portion storing header information for the I/O process, and a data memory portion for storing the data; and
the shared memory segment is registered for RDMA access with a target storage node;
performing an RDMA transfer between the shared memory segment of the distributed storage node and the target storage node to complete the I/O process; and
deallocating the shared memory segment in response to receiving a status indicator of completion of the RDMA transfer.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the context information is associated with one or more of the following: a data caching operation, a data replication operation, and an RDMA transfer operation performed by the I/O stack to complete the I/O process.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the context information comprises context information of the operating system driver, including:
callback context information indicating the user process or a function to be executed by the distributed storage node upon completion of the I/O process; and
an I/O structure with active block I/O operations associated with the I/O process.

### Claim 4 (depends on 2)

The computer-implemented method of claim 2, wherein the context information comprises a scatter/gather (s/g) list of buffers used by the I/O stack.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the header information comprises one or more of the following:
a type of data processing operation associated with the I/O process;
a logical unit number (LUN) identifying an object within the target storage node for storing or retrieving the data;
a logical block address (LBA) identifying a memory offset for the RDMA transfer;
length information associated with a size of the data; and
a snap ID identifying a point in time or a time range for performing the RDMA transfer.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the I/O process comprises a READ operation received from a host device, and the method further comprises:
communicating using an RDMA module within the I/O stack, the header information to the target storage node, the header information identifying the LUN and the LBA associated with the data requested by the READ operation.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising:
receiving the data requested by the READ operation and the status indicator from the target storage node, the status indicator indicating a successful completion of the READ operation; and
forwarding the data requested by the READ operation and the status indicator to the host device.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the I/O process comprises a WRITE operation, and the method further comprises:
performing a direct memory access (DMA) operation by the operating system driver, to store the data in the data memory portion of the shared memory segment.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, further comprising:
performing using an RDMA module within the I/O stack, the RDMA transfer of the header information and the data from the shared memory segment to RDMA memory within the target storage node; and
receiving the status indicator from the target storage node, wherein the status indicator indicates a successful completion of the WRITE operation.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the operating system driver includes one or both of a Fiber Channel (FC) driver or an Internet Small Computer Systems Interface (iSCSI) Extension for RDMA (ISER) driver.

### Claim 11

A distributed storage node, comprising:
a memory that stores instructions; and
one or more processors in communication with the memory, wherein the one or more processors execute the instructions to:
receive a request for an input/output (I/O) process associated with data;
in response to the request, allocate using an operating system driver of the distributed storage node, a memory segment shared between the operating system and a user process running on the distributed storage node, wherein:
the user process includes an I/O stack for processing the request;
the shared memory segment includes a context memory portion storing context information associated with the I/O stack, a header memory portion storing header information for the I/O process, and a data memory portion for storing the data; and
the shared memory segment is registered for RDMA access with a target storage node;
perform an RDMA transfer between the shared memory segment of the distributed storage node and the target storage node to complete the I/O process; and
deallocate the shared memory segment in response to receiving a status indicator of completion of the RDMA transfer.

### Claim 12 (depends on 11)

The distributed storage node of claim 11, wherein the I/O process comprises a WRITE operation, and the one or more processors execute the instructions to:
perform a direct memory access (DMA) operation by the operating system driver, to store the data in the data memory portion of the shared memory segment.

### Claim 13 (depends on 12)

The distributed storage node of claim 12, wherein the one or more processors execute the instructions to:
perform using an RDMA module within the I/O stack, the RDMA transfer of the header information and the data from the shared memory segment to RDMA memory within the target storage node; and
receive the status indicator from the target storage node, wherein the status indicator indicates a successful completion of the WRITE operation.

### Claim 14 (depends on 11)

The distributed storage node of claim 11, wherein the header information comprises one or more of the following:
a type of data processing operation associated with the I/O process;
a logical unit number (LUN) identifying an object within the target storage node for storing or retrieving the data;
a logical block address (LBA) identifying a memory offset for the RDMA transfer;
length information associated with a size of the data; and
a snap ID identifying a point in time or a time range for performing the RDMA transfer.

### Claim 15 (depends on 14)

The distributed storage node of claim 14, wherein the I/O process comprises a READ operation received from a host device, and the one or more processors execute the instructions to:
communicate using an RDMA module within the I/O stack, the header information to the target storage node, the header information identifying the LUN and the LBA associated with the data requested by the READ operation.

### Claim 16 (depends on 15)

The distributed storage node of claim 15, wherein the one or more processors execute the instructions to:
receive the data requested by the READ operation and the status indicator from the target storage node, the status indicator indicating a successful completion of the READ operation; and
forward the data requested by the READ operation and the status indicator to the host device.

### Claim 17 (depends on 11)

The distributed storage node of claim 11, wherein the context information comprises context information of the operating system driver, including:
callback context information indicating the user process or a function to be executed by the distributed storage node upon completion of the I/O process; and
an I/O structure with active block I/O operations associated with the I/O process.

### Claim 18

A non-transitory computer-readable medium storing computer instructions for remote direct memory access (RDMA) by a distributed storage node, wherein the instructions when executed by one or more processors, cause the one or more processors to perform steps of:
receiving a request for an input/output (I/O) process associated with data;
in response to the request, allocating using an operating system driver of the distributed storage node, a memory segment shared between the operating system and a user process running on the distributed storage node, wherein:
the user process includes an I/O stack for processing the request;
the shared memory segment includes a context memory portion storing context information associated with the I/O stack, a header memory portion storing header information for the I/O process, and a data memory portion for storing the data; and
the shared memory segment is registered for RDMA access with a target storage node;
performing an RDMA transfer between the shared memory segment of the distributed storage node and the target storage node to complete the I/O process; and
deallocating the shared memory segment in response to receiving a status indicator of completion of the RDMA transfer.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the I/O process comprises a WRITE operation, and the instructions further cause the one or more processors to perform steps of:
performing a direct memory access (DMA) operation by the operating system driver, to store the data in the data memory portion of the shared memory segment;
performing using an RDMA module within the I/O stack, the RDMA transfer of the header information and the data from the shared memory segment to RDMA memory within the target storage node; and
receiving the status indicator from the target storage node, wherein the status indicator indicates a successful completion of the WRITE operation.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the I/O process comprises a READ operation received from a host device, and the instructions further cause the one or more processors to perform steps of:
communicating using the RDMA module within the I/O stack, the header information to the target storage node, the header information identifying a logical unit number (LUN) and a logical block address (LBA) associated with the data requested by the READ operation;
receiving the data requested by the READ operation and the status indicator from the target storage node, the status indicator indicating a successful completion of the READ operation; and
forwarding the data requested by the READ operation and the status indicator to the host device.
