# US 2022/0035566 A1 · Pre-suspend before program in a non-volatile memory (nvm)

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

- Number: US 2022/0035566 A1
- Document ID: US20220035566A1
- Status: Published application
- Kind: A1
- Application number: 17/381,342
- Filed: 2021-07-21
- Published: 2022-02-03
- Earliest claimed: 2020-07-29
- Assignees: Seagate Technology LLC
- Applicants: Seagate Technology LLC
- Inventors: Jonathan M. Henze; Ryan J. Goss
- Web page: https://patentgrep.com/patent/US20220035566A1

## CPC

- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0676: {Magnetic disk device}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Method and apparatus for managing data in a storage device, such as a solid-state drive (SSD). An apparatus includes a main non-volatile memory (NVM) such as a NAND flash memory. A host command queue lists pending data transfer commands to transfer data between the NVM and a host. For each write command received by the NVM to store write data to an associated target location, a controller examines the host command queue. Based on this review, the controller may direct the NVM to read data adjacent the associated target location to which data are to be written by the write command and to transfer the read data to a read cache. The read data may use some or all of the same resources used to store the write data to the NVM. The read data may be subsequently transferred from the read cache to the host.

## Claims

### Claim 1

An apparatus, comprising:
a main non-volatile memory (NVM);
a host command queue that lists pending data transfer commands to transfer data between the NVM and a host; and
a controller circuit configured to, for each selected write command received by the NVM for execution to store write data to an associated target location, examine the host command queue and direct the NVM to read data adjacent the associated target location to which the write data are to be written by the selected write command and to transfer the read data to a read cache.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the controller identifies at least one pending host read command in the host command queue and selects a range of data to be retrieved from the NVM based on a logical address associated with the pending host read command.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the controller further identifies a range of data to be retrieved from the NVM in conjunction with the execution of the write command based on one or more background read operations generated by the controller.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the controller circuit further directs a transfer of the read data from the read cache to the host.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the NVM comprises at least a selected one of a flash memory or a rotatable magnetic recording disc.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the controller comprises a resource manager that identifies a selected set of resources necessary to execute the write command, wherein the controller identifies at least one pending read command from the host command queue that requires the selected set of resources in order to be executed, and wherein the read data adjacent the associated target location includes a set of read data identified by the at least one pending read command from the host command queue.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein a plurality of read commands are issued by the controller to a flash memory electronics (FME) module associated with a flash memory of the NVM for execution prior to the execution of the write command.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the retrieved read data are observed for satisfaction of subsequent cache hits and the controller adjusts an amount of read data retrieved from the NVM in conjunction with future write commands based on the rate at which the retrieved read data are used to satisfy said subsequent cache hits.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein data are written to the NVM in garbage collection units (GCUs) and the read data obtained prior to the execution of the selected write command are in a selected GCU to which the write data are to be written.

### Claim 10 (depends on 1)

The apparatus of claim 1, characterized as a solid-state drive (SSD).

### Claim 11

A solid-state drive (SSD), comprising:
a flash memory;
a host command queue configured to accumulate pending data transfer commands to transfer data between the flash memory and a host device, the data transfer commands comprising write commands and read commands; and
a controller circuit configured to, for each write command forwarded from the host command queue to the flash memory for execution, examine the host command queue and direct the flash memory to read data adjacent a target location to which data are to be written by the write command and to transfer the read data to a read cache for subsequent transfer to the host device.

### Claim 12 (depends on 11)

The SSD of claim 11, wherein the controller circuit identifies at least one pending host read command in the host command queue and selects a range of data to be retrieved from the flash memory based on a logical address associated with the pending host read command.

### Claim 13 (depends on 11)

The SSD of claim 11, wherein the controller circuit further identifies a range of data to be retrieved from the flash memory in conjunction with the execution of the write command based on one or more background read operations generated by the controller circuit.

### Claim 14 (depends on 11)

The SSD of claim 11, wherein the controller circuit comprises a resource manager that identifies a selected set of resources necessary to execute the write command, and wherein the controller circuit identifies at least one pending read command from the host command queue that requires the selected set of resources in order to be executed.

### Claim 15 (depends on 11)

The SSD of claim 11, wherein a plurality of read commands are issued by the controller circuit to a flash memory electronics (FME) module associated with the flash memory for execution prior to the execution of the write command.

### Claim 16

A method, comprising:
accumulating, in a host command queue, pending data transfer commands to transfer data between a non-volatile memory (NVM) and a host device, the data transfer commands comprising write commands and read commands;
forwarding a selected write command from the host command queue to the NVM; and
examining the host command queue responsive to the forwarding of the selected write command and directing the NVM to retrieve data adjacent a target location to which write data are to be written by execution of the selected write command.

### Claim 17 (depends on 16)

The method of claim 16, further comprising storing, in a write cache, the write data to be written by the execution of the selected write command to the NVM.

### Claim 18 (depends on 16)

The method of claim 16, wherein data are written to the NVM in garbage collection units (GCUs) and the read data obtained prior to the execution of the selected write command are in a selected GCU to which the write data are to be written.

### Claim 19 (depends on 16)

The method of claim 16, further comprising identifying at least one pending host read command in the host command queue and selecting a range of data to be retrieved from the NVM based on a logical address associated with the pending host read command and a logical address associated with the selected write command.

### Claim 20 (depends on 1)

The apparatus of claim 1, wherein the NVM comprises at least a selected one of a flash memory or a rotatable magnetic recording disc.
