# US 2017/0255559 A1 · Control of persistent memory via a computer bus

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

- Number: US 2017/0255559 A1
- Document ID: US20170255559A1
- Status: Published application
- Kind: A1
- Application number: 15/058,262
- Filed: 2016-03-02
- Published: 2017-09-07
- Earliest claimed: 2016-03-02
- Assignees: Mellanox Technologies, Ltd.
- Applicants: Mellanox Technologies Ltd.
- Inventors: Idan Burstein; Diego Crupnicoff; Shlomo Raikin; Michael Kagan
- Web page: https://patentgrep.com/patent/US20170255559A1

## CPC

- G06F 12/0833: {in combination with broadcast means (e.g. for invalidation or updating)}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 13/4282: {on a serial bus, e.g. I2C bus, SPI bus (on daisy chain buses G06F13/4247)}
- G06F 15/17331: {Distributed shared memory [DSM], e.g. remote direct memory access [RDMA]}
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 2212/1024: Latency reduction
- G06F 2212/154: Networked environment
- G06F 2212/621: Coherency control relating to peripheral accessing, e.g. from DMA or I/O device
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory device includes a target memory, having a memory address space, and a volatile buffer memory, which is coupled to receive data written over a bus to the memory device for storage in specified addresses within the memory address space. A memory controller is configured to receive, via the bus, a flush instruction and, in response to the flush instruction, to immediately flush the data held in the buffer memory with specified addresses within the memory address space to the target memory.

## Claims

### Claim 1

A memory device, comprising:
a target memory, having a memory address space;
a volatile buffer memory, which is coupled to receive data written over a bus to the memory device for storage in specified addresses within the memory address space; and
a memory controller, which is configured to receive, via the bus, a flush instruction and, in response to the flush instruction, to immediately flush the data held in the buffer memory with specified addresses within the memory address space to the target memory.

### Claim 2 (depends on 1)

The device according to claim 1, wherein the target memory comprises a persistent memory.

### Claim 3 (depends on 1)

The device according to claim 1, wherein the flush instruction causes the memory controller to flush to the target memory all of the data conveyed over the bus to the target memory in write commands posted previously to the flush instruction.

### Claim 4 (depends on 1)

The device according to claim 1, wherein the flush instruction identifies a range that is to be flushed within the memory address space, and causes the memory controller to immediately flush the data held in the buffer memory with specified addresses within the identified range to the target memory.

### Claim 5 (depends on 4)

The device according to claim 4, wherein the memory controller is configured to flush, in response to the flush instruction, the data only within the identified range, while leaving further data with specified addresses outside the identified range in the buffer memory without immediate flushing to the target memory.

### Claim 6 (depends on 1)

The device according to claim 1, wherein the memory controller is configured, after flushing the data to the target memory, to send a completion message over the bus to a sender of the flush instruction.

### Claim 7 (depends on 1)

The device according to claim 1, wherein the bus over which the data and flush instruction are written is a peripheral component bus of a computer, having a bus address space in which a range to be flushed is identified in terms of memory pages, and wherein the memory controller is configured to translate the identified range of memory pages from the bus address space to memory blocks for flushing within the memory address space.

### Claim 8 (depends on 1)

The device according to claim 1, wherein the memory controller is configured to identify multiple regions within the memory address space and to associate respective flush attributes with the regions, wherein the flush instruction causes the memory controller to flush the data held in the buffer memory with specified addresses within any given region in accordance with the respective flush attributes.

### Claim 9 (depends on 8)

The device according to claim 8, wherein the respective flush attributes indicate whether the given region corresponds to a range in the target memory that comprises persistent memory.

### Claim 10 (depends on 1)

Computing apparatus, comprising:
the memory device according to claims 1; and
a network interface controller (NIC), which is coupled to receive from a peer node, via a network, a remote direct memory access (RDMA) write packet containing the data to be written to the memory device and specifying the addresses to which the data are to be written, and to receive an RDMA flush packet, and which is configured, in response to the RDMA write and flush packets, to convey the data and the flush instruction over the bus to the memory device.

### Claim 11 (depends on 10)

The apparatus according to claim 10, wherein the data and the flush instruction are conveyed from the NIC to the memory device, and the data are flushed by the memory controller from the buffer memory to the target memory without generating an interrupt to a central processing unit (CPU) that is coupled to the bus in the apparatus.

### Claim 12 (depends on 10)

The apparatus according to claim 10, wherein the NIC is configured to receive the RDMA write and flush packets from the peer node over a transport service instance established between the NIC and the peer node, wherein a memory region in the memory device is associated with the transport service instance, wherein the write packet causes the NIC to write the data to the associated memory region, and wherein the flush packet causes the NIC to issue the flush instruction with respect to the associated memory region.

### Claim 13 (depends on 12)

The apparatus according to claim 12, wherein the NIC is configured to associate respective flush attributes with the memory region, and wherein the flush instruction causes the memory controller to flush the data written by the NIC to specified addresses within the memory region in accordance with the associated flush attributes.

### Claim 14 (depends on 10)

The apparatus according to claim 10, and comprising a peer NIC deployed at the peer node, wherein the peer NIC is configured to transmit the RDMA write and flush packets over the network in response to RDMA write and flush work requests submitted to the peer NIC by a process running on the peer node.

### Claim 15

A memory device, comprising:
a target memory, having a memory address space;
a volatile buffer memory, which is coupled to receive data written over a bus in transaction packets to the memory device for storage in specified addresses within the memory address space, each transaction packet comprising a transaction descriptor, which comprises a flush flag; and
a memory controller, which is configured to receive, via the bus, a flush instruction and, in response to the flush instruction, to immediately flush to the target memory the data held in the buffer memory for which the flush flag was set in the transaction packets that conveyed the data to the memory device.

### Claim 16 (depends on 15)

The device according to claim 15, wherein the target memory comprises a persistent memory.

### Claim 17 (depends on 15)

The device according to claim 15, wherein the memory controller is configured to flush, in response to the flush instruction, only the data for which the flush flag was set, while leaving further data that arrived in transaction packets in which the flush flag was not set in the buffer memory without immediate flushing to the target memory.

### Claim 18 (depends on 15)

The device according to claim 15, wherein the memory controller is configured, after flushing the data to the target memory, to send a completion message over the bus to a sender of the flush instruction.

### Claim 19 (depends on 15)

The device according to claim 15, wherein the transaction descriptor comprises a “No Snoop” attribute field, which comprises the flush flag.

### Claim 20 (depends on 15)

Computing apparatus, comprising:
the memory device according to claim 15; and
a network interface controller (NIC), which is coupled to receive, via a network, a remote direct memory access (RDMA) write packet containing the data to be written to the memory device, specifying the addresses to which the data are to be written, and indicating that the data are to be flushed to the target memory, and to receive an RDMA flush packet following the RDMA write packet, and which is configured, in response to the RDMA write packet, to convey the data over the bus to the memory device in a transaction packet in which the flush flag is set, and to convey the flush instruction to the memory device in response to the RDMA flush packet.

### Claim 21 (depends on 20)

The apparatus according to claim 20, wherein the data and the flush instruction are conveyed from the NIC to the memory device, and the data are flushed by the memory controller from the buffer memory to the persistent memory without generating an interrupt to a central processing unit (CPU) that is coupled to the bus in the apparatus.

### Claim 22 (depends on 20)

The apparatus according to claim 20, wherein the NIC is configured to receive the RDMA write and flush packets from the peer node over a transport service instance established between the NIC and the peer node, wherein a memory region in the memory device is associated with the transport service instance, wherein the write packet causes the NIC to write the data to the associated memory region, and wherein the flush packet causes the NIC to issue the flush instruction with respect to the associated memory region.

### Claim 23 (depends on 22)

The apparatus according to claim 22, wherein the NIC is configured to associate respective flush attributes with the memory region, and wherein the flush instruction causes the memory controller to flush the data written by the NIC to specified addresses within the memory region in accordance with the associated flush attributes.

### Claim 24 (depends on 20)

The apparatus according to claim 20, and comprising a peer NIC deployed at the peer node, wherein the peer NIC is configured to transmit the RDMA write and flush packets over the network in response to RDMA write and flush work requests submitted to the peer NIC by a process running on the peer node.

### Claim 25

A method for data storage in a memory device that includes a target memory and a volatile buffer memory, the method comprising:
receiving in the volatile buffer memory data written over a bus to the memory device for storage in specified addresses within a memory address space of the memory device;
receiving, via the bus, a flush instruction; and
in response to the flush instruction, immediately flushing the data held in the buffer memory with specified addresses within the memory address space to the target memory.

### Claim 26 (depends on 25)

The method according to claim 25, wherein the target memory comprises a persistent memory.

### Claim 27 (depends on 25)

The method according to claim 25, wherein flushing the data comprises immediately flushing to the target memory all of the data conveyed over the bus to the target memory in write commands posted previously to the flush instruction.

### Claim 28 (depends on 25)

The method according to claim 25, wherein the flush instruction identifies a range that is to be flushed within the memory address space, and wherein flushing the data comprises immediately flushing the data held in the buffer memory with specified addresses within the identified range to the target memory.

### Claim 29 (depends on 28)

The method according to claim 28, wherein flushing the data comprises flushing, in response to the flush instruction, the data only within the identified range, while leaving further data with specified addresses outside the identified range in the buffer memory without immediate flushing to the target memory.

### Claim 30 (depends on 25)

The method according to claim 25, and comprising, after flushing the data to the target memory, sending a completion message over the bus to a sender of the flush instruction.

### Claim 31 (depends on 25)

The method according to claim 25, wherein the bus over which the data and flush instruction are written is a peripheral component bus of a computer, having a bus address space in which a range to be flushed is identified in terms of memory pages, and wherein flushing the data comprises translating the identified range of memory pages from the bus address space to memory blocks for flushing within the memory address space.

### Claim 32 (depends on 25)

The method according to claim 25, and comprising associating respective flush attributes with multiple regions within the memory address space, wherein flushing the data comprises applying the flush instruction to the data held in the buffer memory with specified addresses within any given region in accordance with the respective flush attributes.

### Claim 33 (depends on 32)

The method according to claim 32, wherein the respective flush attributes indicate whether the given region corresponds to a range in the target memory that comprises persistent memory.

### Claim 34 (depends on 25)

The method according to claim 25, wherein receiving the data comprises receiving in a network interface controller (NIC) coupled to the bus, from a peer node via a network, a remote direct memory access (RDMA) write packet containing the data to be written to the memory device and specifying the addresses to which the data are to be written, and conveying the data over the bus from the NIC to the memory device, and
wherein receiving the flush instruction comprises receiving in the NIC over the network an RDMA flush packet, and in response to the RDMA flush packet, conveying the flush instruction from the NIC over the bus to the memory device.

### Claim 35 (depends on 34)

The method according to claim 34, wherein the data and the flush instruction are conveyed from the NIC to the memory device, and the data are flushed from the buffer memory to the target memory without generating an interrupt to a central processing unit (CPU) that is coupled to the bus.

### Claim 36 (depends on 34)

The method according to claim 34, wherein the RDMA write and flush packets are received from the peer node over a transport service instance established between the NIC and the peer node, wherein a memory region in the memory device is associated with the transport service instance, wherein the write packet causes the NIC to write the data to the associated memory region, and wherein the flush packet causes the NIC to issue the flush instruction with respect to the associated memory region.

### Claim 37 (depends on 36)

The method according to claim 36, and comprising associating respective flush attributes with the memory region, wherein flushing the data comprises immediately flushing the data written by the NIC to specified addresses within the memory region in accordance with the associated flush attributes.

### Claim 38 (depends on 34)

The method according to claim 34, and comprising transmitting the RDMA write and flush packets over the network in response to RDMA write and flush work requests submitted to a peer NIC at the peer node by a process running on the peer node.

### Claim 39

A method for data storage in a memory device that includes a target memory and a volatile buffer memory, the method comprising:
receiving in the volatile buffer memory data written over a bus in transaction packets to the memory device for storage in specified addresses within a memory address space of the memory device, each transaction packet comprising a transaction descriptor, which comprises a flush flag; and
receiving, via the bus, a flush instruction; and
in response to the flush instruction, immediately flushing to the target memory the data held in the buffer memory for which the flush flag was set in the transaction packets that conveyed the data to the memory device.

### Claim 40 (depends on 39)

The method according to claim 39, wherein the target memory comprises a persistent memory.

### Claim 41 (depends on 39)

The method according to claim 39, wherein flushing the data comprises flushing, in response to the flush instruction, only the data for which the flush flag was set, while leaving further data that arrived in transaction packets in which the flush flag was not set in the buffer memory without immediate flushing to the target memory.

### Claim 42 (depends on 39)

The method according to claim 39, and comprising, after flushing the data to the target memory, sending a completion message over the bus to a sender of the flush instruction.

### Claim 43 (depends on 39)

The method according to claim 39, wherein the transaction descriptor comprises a “No Snoop” attribute field, which comprises the flush flag.

### Claim 44 (depends on 39)

The method according to claim 39, wherein receiving the data comprises receiving in a network interface controller (NIC) coupled to the bus, from a peer node via a network, a remote direct memory access (RDMA) write packet containing the data to be written to the memory device and specifying the addresses to which the data are to be written and indicating that the data are to be flushed to the target memory, and conveying the data over the bus from the NIC to the memory device in a transaction packet in which the flush flag is set, and
wherein receiving the flush instruction comprises receiving in the NIC over the network an RDMA flush packet following the RDMA write packet, and in response to the RDMA flush packet, conveying the flush instruction from the NIC over the bus to the memory device.

### Claim 45 (depends on 44)

The method according to claim 44, wherein the data and the flush instruction are conveyed from the NIC to the memory device, and the data are flushed from the buffer memory to the persistent memory without generating an interrupt to a central processing unit (CPU) that is coupled to the bus.

### Claim 46 (depends on 44)

The method according to claim 44, wherein the RDMA write and flush packets are received from the peer node over a transport service instance established between the NIC and the peer node, wherein a memory region in the memory device is associated with the transport service instance, wherein the write packet causes the NIC to write the data to the associated memory region, and wherein the flush packet causes the NIC to issue the flush instruction with respect to the associated memory region.

### Claim 47 (depends on 46)

The method according to claim 46, and comprising associating respective flush attributes with the memory region, wherein flushing the data comprises immediately flushing the data written by the NIC to specified addresses within the memory region in accordance with the associated flush attributes.

### Claim 48 (depends on 44)

The method according to claim 44, and comprising transmitting the RDMA write and flush packets over the network in response to RDMA write and flush work requests submitted to a peer NIC at the peer node by a process running on the peer node.
