# US 2022/0035524 A1 · Data management across a persistent memory tier and a file system tier

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

- Number: US 2022/0035524 A1
- Document ID: US20220035524A1
- Status: Published application
- Kind: A1
- Application number: 16/942,398
- Filed: 2020-07-29
- Published: 2022-02-03
- Earliest claimed: 2020-07-29
- Assignees: NetApp, Inc.
- Applicants: NetApp Inc.
- Inventors: Ananthan Subramanian; Matthew Fontaine Curtis-Maury; Ram Kesavan; Vinay Devadas
- Web page: https://patentgrep.com/patent/US20220035524A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0631: {by allocating resources to storage systems}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0665: {at area level, e.g. provisioning of virtual or logical volumes}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/4498: {Finite state machines}
- G06F 11/076: {by exceeding a count or rate limit, e.g. word- or bit count limit}
- G06F 11/0772: {Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are provided for data management across a persistent memory tier and a file system tier. A block within a persistent memory tier of a node is determined to have up-to-date data compared to a corresponding block within a file system tier of the node. The corresponding block may be marked as a dirty block within the file system tier. Location information of a location of the block within the persistent memory tier is encoded into a container associated with the corresponding block. In response to receiving a read operation, the location information is obtained from the container. The up-to-date data is retrieved from the block within the persistent memory tier using the location information for processing the read operation.

## Claims

### Claim 1

A method comprising:
determining that a block within a persistent memory tier of a node has up-to-date data compared to a corresponding block within a file system tier of the node;
marking the corresponding block as a dirty bock within the file system tier;
encoding location information of a location of the block within the persistent memory tier into a container associated with the corresponding block; and
in response to receiving a read operation directed to the corresponding block:
obtaining the location information from the container; and
retrieving the up-to-date data from block within the persistent memory tier using the location information for processing the read operation.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
storing a flag within the file system tier to indicate that the up-to-date data of the corresponding block is stored within the block of the persistent memory tier.

### Claim 3 (depends on 1)

The method of claim 1, comprising:
during a consistency point operation to store dirty data of the file system tier to storage, allocating a virtual volume block number for the corresponding block based upon a flag indicating that the up-to-date data of the corresponding block is stored within the block of the persistent memory tier.

### Claim 4 (depends on 1)

The method of claim 1, comprising:
during a consistency point operation to store dirty data of the file system tier to storage, refraining from allocating a physical block number for the corresponding block based upon a flag indicating that the up-to-date data of the corresponding block is stored within the block of the persistent memory tier.

### Claim 5 (depends on 1)

The method of claim 1, comprising:
storing a physical block number allocation within a user indirect associated with the corresponding block.

### Claim 6 (depends on 1)

The method of claim 1, comprising:
in response to identifying a threshold number of blocks, within the persistent memory tier, comprising more up-to-date data than corresponding blocks within the file system tier, generating a batch of messages to transmit from the persistent memory tier to the file system tier for notifying the file system tier of the blocks, within the persistent memory tier, comprising the more up-to-date data.

### Claim 7 (depends on 1)

The method of claim 1, comprising:
maintaining a state machine for the block to track one or more states of the block, wherein the state machine specifies a current state of the block as being a dirty state based upon the block comprising the up-to-date data that is different than the corresponding block within the file system tier.

### Claim 8 (depends on 1)

The method of claim 1, comprising:
implementing a cross-tier data management operation that targets data stored across the file system tier and the persistent memory tier, wherein the cross-tier data management operation implements the read operation directed to the corresponding block within the file system tier and resulting in retrieving the up-to-date data from the block within the persistent memory tier.

### Claim 9

A non-transitory machine readable medium comprising instructions for performing a method, which when executed by a machine, causes the machine to:
replay messages within a log to a file system tier of a node in response to the node recovering from a failure, wherein a message within the log indicates that a block within a persistent memory tier of the node has up-to-date data compared to a corresponding block within the file system tier of the node;
in response to the messages being replayed, implement an asynchronous operation to walk a persistent memory file system of the persistent memory tier to identify a set of blocks within the persistent memory tier comprising more up-to-date data compared to corresponding blocks within the file system tier; and
send a new set of messages to the file system tier to trigger the file system tier to encode locations of the set of blocks into containers associated with corresponding blocks within the file system tier and mark the corresponding blocks as dirty blocks within the file system tier.

### Claim 10 (depends on 9)

The non-transitory machine readable medium of claim 9, wherein the set of blocks correspond to a set of messages provided to the file system tier but not successfully completed and logged within the log before the failure.

### Claim 11 (depends on 9)

The non-transitory machine readable medium of claim 9, wherein the asynchronous operation is executed by the persistent memory tier in parallel with the node processing incoming I/O operations.

### Claim 12 (depends on 9)

The non-transitory machine readable medium of claim 9, wherein the persistent memory tier transmits the message to the file system tier to trigger the file system tier to mark the corresponding block as a dirty block.

### Claim 13 (depends on 9)

The non-transitory machine readable medium of claim 9, wherein the persistent memory tier transmits the message to the file system tier to trigger the file system tier to encode location information of a location of the block within the persistent memory tier into a container associated with the corresponding block.

### Claim 14 (depends on 9)

The non-transitory machine readable medium of claim 9, wherein the file system tier logs the message into the log in response to the file system tier marking the corresponding block as a dirty block and encoding location information of a location of the block within the persistent memory tier into a container associated with the corresponding block.

### Claim 15 (depends on 9)

The non-transitory machine readable medium of claim 9, wherein the asynchronous operation evaluates state machines of blocks within the persistent memory tier to identify the set of blocks as having a dirty state.

### Claim 16

A computing device comprising:
a memory comprising machine executable code for performing a method; and
a processor coupled to the memory, the processor configured to execute the machine executable code to cause the processor to:
determine that a failure of a node affected a log within which messages are logged by a file system tier of the node, wherein a message within the log indicates that a block within a persistent memory tier of the node has up-to-date data compared to a corresponding block within the file system tier of the node;
implement an asynchronous operation to walk a persistent memory file system of the persistent memory tier to identify a set of blocks within the persistent memory tier comprising more up-to-date data compared to corresponding blocks within the file system tier; and
send a set of messages to the file system tier to trigger the file system tier to encode location information of locations of the set of blocks into containers associated with corresponding blocks within the file system tier and mark the corresponding blocks as dirty blocks within the file system tier.

### Claim 17 (depends on 16)

The computing device of claim 16, wherein the set of messages comprises a first message for the block.

### Claim 18 (depends on 16)

The computing device of claim 16, wherein the set of blocks correspond to blocks not included within snapshots of a persistent memory file system of the persistent memory tier.

### Claim 19 (depends on 16)

The computing device of claim 16, wherein the file system tier logs the message into the log in response to the file system tier marking the corresponding block as a dirty block and encoding location information of a location of the block within the persistent memory tier into a container associated with the corresponding block.

### Claim 20 (depends on 16)

The computing device of claim 16, wherein the asynchronous operation evaluates state machines of blocks within the persistent memory tier to identify the set of blocks as having a dirty state.
