# US 2021/0342266 A1 · System and method for tracking persistent flushes

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

- Number: US 2021/0342266 A1
- Document ID: US20210342266A1
- Status: Published application
- Kind: A1
- Application number: 16/863,977
- Filed: 2020-04-30
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Derek A. Sherlock; Gregg B. Lesartre
- Web page: https://patentgrep.com/patent/US20210342266A1

## CPC

- G06F 11/141: {for bus or memory accesses}
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 11/1474: in transactions (updating of structured data in databases G06F16/23)
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One embodiment can provide an apparatus. The apparatus can include a persistent flush (PF) cache and a PF-tracking logic coupled to the PF cache. The PF-tracking logic is to: in response to receiving, from a media controller, an acknowledgment to a write request, determine whether the PF cache includes an entry corresponding to the media controller; in response to the PF cache not including the entry corresponding to the media controller, allocate an entry in the PF cache for the media controller; in response to receiving a persistence checkpoint, identify a media controller from a plurality of media controllers based on entries stored in the PF cache; issue a persistent flush request to the identified media controller to persist write requests received by the identified media controller; and remove an entry corresponding to the identified media controller from the PF cache subsequent to issuing the persistent flush request.

## Claims

### Claim 1

An apparatus, comprising:
a persistent flush (PF) cache; and
a PF-tracking logic coupled to the PF cache, wherein the PF-tracking logic is to:
in response to receiving, from a media controller, an acknowledgment to a write request, determine whether the PF cache includes an entry corresponding to the media controller;
in response to the PF cache not including the entry corresponding to the media controller, allocate an entry in the PF cache for the media controller;
in response to receiving a persistence checkpoint, identify a media controller from a plurality of media controllers based on entries stored in the PF cache;
issue a persistent flush request to the identified media controller to persist write requests received by the identified media controller; and
remove an entry corresponding to the identified media controller from the PF cache subsequent to issuing the persistent flush request.

### Claim 2 (depends on 1)

The apparatus of claim 1, further comprising an outstanding-request tracker and an outstanding-request-tracking logic, wherein the outstanding-request-tracking logic is to:
remove an entry corresponding to the acknowledged write request from the outstanding-request tracker, in response to the PF-tracking logic finding a matching entry or allocating the entry in the PF cache for the media controller sending the acknowledgment.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the outstanding-request-tracking logic is to:
keep the entry corresponding to the acknowledged write request in the outstanding-request tracker, in response to the PF cache being full; and
modify a state of the acknowledged write request as being blocked.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the PF-tracking logic is to:
in response to determining that the outstanding-request tracker comprises a blocked write request, wait for the blocked write request to be cleared from the outstanding-request tracker before issuing new write requests.

### Claim 5 (depends on 2)

The apparatus of claim 2, wherein the outstanding-request tracker comprises at least one entry reserved for persistent flush requests.

### Claim 6 (depends on 1)

The apparatus of claim 1, further comprising a persistence-checkpoint (PC)-processing logic, a first-in, first-out (FIFO) buffer, and one or more counters;
wherein the PC-processing logic is to place received persistence checkpoints (PCs) in the FIFO and associate each entry in the FIFO with a counter.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the PC-processing logic is to:
increment the counter associated with an entry in the FIFO in response to issuing a persistent flush request triggered by the entry in the FIFO; and
decrement the counter associated with the entry in the FIFO in response to receiving a response to a persistent flush request triggered by the entry in the FIFO.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the PC-processing logic is to:
in response to determining that a counter associated with a head entry of the FIFO reaches zero, remove the head entry from the FIFO; and
send a response to a PF request corresponding to the head entry of the FIFO.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein the PF-tracking logic is to issue an autonomous persistent flush request to a media controller corresponding to an entry in the PF cache, without receiving a persistence checkpoint.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the PF-tracking logic is to:
determine whether an occupancy rate of the PF cache exceeds a predetermined threshold;
in response to determining that the occupancy rate of the PF cache does not exceed the predetermined threshold, pause for a predetermined duration before determining whether to issue a subsequent autonomous persistent flush request; and
in response to determining that the occupancy rate of the PF cache exceeds the predetermined threshold, issue a subsequent autonomous persistent flush request without pausing.

### Claim 11

A method, comprising:
maintaining a persistent flush (PF) cache;
in response to receiving, from a media controller, an acknowledgment to a write request, determining whether the PF cache includes an entry corresponding to the media controller;
in response to the PF cache not including the entry corresponding to the media controller, allocating an entry in the PF cache for the media controller;
in response to receiving a persistence checkpoint (PC), identifying a media controller from a plurality of media controllers based on entries stored in the PF cache;
issuing a persistent flush request to the identified media controller to persist write requests received by the identified media controller; and
removing an entry corresponding to the identified media controller from the PF cache subsequent to issuing the persistent flush request.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
maintaining an outstanding-request tracker storing outstanding write requests; and
removing an entry corresponding to the acknowledged write request from the outstanding-request tracker, in response to finding a matching entry or allocating the entry in the PF cache for the media controller sending the acknowledgment.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
keeping the entry corresponding to the acknowledged write request in the outstanding-request tracker, in response to the PF cache being full; and
modifying a state of the acknowledged write request as being blocked in the outstanding-request tracker.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
in response to determining that the outstanding-request tracker comprises a blocked write request, waiting for the blocked write request to be cleared from the write-request tracker before issuing new write requests.

### Claim 15 (depends on 12)

The method of claim 12, further comprising reserving at least one entry in the outstanding-request tracker for persistent flush requests.

### Claim 16 (depends on 11)

The method of claim 11, further comprising;
maintaining a first-in, first-out (FIFO) buffer for storing one or more persistence checkpoints (PCs); and
maintaining one or more counters, wherein each entry in the FIFO is associated with a counter.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
incrementing the counter associated with an entry in the FIFO, in response to issuing a persistent flush request triggered by the entry in the FIFO; and
decrementing the counter associated with the entry in the FIFO, in response to receiving a response to a persistent flush request triggered by the entry in the FIFO.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
in response to determining that a counter associated with a head entry of the FIFO reaches zero, removing the head entry from the FIFO; and
sending a response to a persistence checkpoint (PC) corresponding to the head entry of the FIFO.

### Claim 19 (depends on 11)

The method of claim 11, further comprising:
issuing an autonomous persistent flush request to a media controller corresponding to an entry in the PF cache, without receiving a persistence checkpoint.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
determining whether an occupancy rate of the PF cache exceeds a predetermined threshold; and
in response to determining that the occupancy rate of the PF cache does not exceed the predetermined threshold, pausing for a predetermined duration before determining whether to issue a subsequent autonomous persistent flush request; and
in response to determining that the occupancy rate of the PF cache exceeds the predetermined threshold, issuing a subsequent autonomous persistent flush request without pausing.
