# US 2018/0322051 A1 · Storage system and method for flush optimization

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

- Number: US 2018/0322051 A1
- Document ID: US20180322051A1
- Status: Published application
- Kind: A1
- Application number: 15/611,510
- Filed: 2017-06-01
- Published: 2018-11-08
- Earliest claimed: 2017-05-03
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Tal Heller; Hadas Oshinsky; Rotem Sela; Einav Zilberstein; Amir Shaharabany; Yigal Eli
- Web page: https://patentgrep.com/patent/US20180322051A1

## CPC

- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/0806: Multiuser, multiprocessor or multiprocessing cache systems
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 13/16: for access to memory bus (G06F13/28 takes precedence)
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 2212/1024: Latency reduction
- G06F 2212/214: Solid state disk
- G06F 2212/312: In storage controller
- G11C 7/20: Memory cell initialisation circuits, e.g. when powering up or down, memory clear, latent image memory
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A storage system and method are provided for flush optimization. In one embodiment, a storage system is provided comprising a cache, a non-volatile memory, and a controller. The controller is configured to: store, in the cache, data received from a host and to be written in the non-volatile memory; receive a command from the host to move the data stored in the cache into the non-volatile memory; without having executed the command, send a confirmation to the host that the command was executed; and execute the command after sending the continuation to the host.

## Claims

### Claim 1

A storage system comprising:
a cache;
a non-volatile memory; and
a controller in communication with the cache and the non-volatile memory, wherein the controller is configured to:
store, in the cache, data received from a host and to be written in the non-volatile memory;
receive a command from the host to move the data stored in the cache into the non-volatile memory;
without having executed the command, send a confirmation to the host that the command was executed; and
execute the command after sending the confirmation to the host.

### Claim 2 (depends on 1)

The storage system of claim 1, wherein the controller is configured to send the confirmation to the host only after receiving, from the host, an indication that the data in the cache is safe from loss due to power failure.

### Claim 3 (depends on 2)

The storage system of claim 2, wherein the indication indicates that the host's battery is un-removable and indicates the power charging level of the host's battery.

### Claim 4 (depends on 1)

The storage system of claim 1, wherein the controller is configured to execute the command after an expiration of a time delay.

### Claim 5 (depends on 4)

The storage system of claim 4 further comprising a capacitor configured to hold enough charge to power the storage system for more than the time delay.

### Claim 6 (depends on 4)

The storage system of claim 4, wherein a length of the time delay is set by the host.

### Claim 7 (depends on 1)

The storage system of claim 1, wherein the cache comprises storage class memory.

### Claim 8 (depends on 1)

The storage system of claim 1 further comprising a write command queue, and wherein the controller is further configured to:
prior to executing the command to move the data:
determine if there is a write command in the write command queue; and
in response to determining there is a write command in the write command queue, store, in the cache, data associated with the write command.

### Claim 9 (depends on 1)

The storage system of claim 1, wherein the non-volatile memory comprises a three-dimensional memory.

### Claim 10 (depends on 1)

The storage system of claim 1, wherein the storage system is embedded in the host.

### Claim 11 (depends on 1)

The storage system of claim 1, wherein the storage system is removably connected to the host.

### Claim 12

A method for executing a flush command, the method comprising:
performing the following in a storage system in communication with a host, wherein the storage system comprises a write cache:
receiving a command from the host to flush the write cache;
sending an acknowledgement to the host that the cache was flushed even though the write cache was not flushed; and
after a period of time after sending the acknowledgement, flushing the write cache, wherein the data flushed from the write cache after the period of time is different from the data that would have been flushed if the write cache was flushed prior to sending the acknowledgement.

### Claim 13 (depends on 12)

The method of claim 12 further comprising, before sending the acknowledgement, receiving an indication from the host that the data in the write cache will not be lost due to power failure.

### Claim 14 (depends on 13)

The method of claim 13, wherein the indication indicates that the host's battery is un-removable and indicates the power charging level of the host's battery.

### Claim 15 (depends on 12)

The method of claim 12 further comprising prior to flushing the write cache:
determining if there is a write command in a write command queue in the storage system; and
in response to determining there is a write command in the write command queue, storing, in the write cache, data associated with the write command.

### Claim 16 (depends on 12)

The method of claim 12, wherein the write cache is flushed into a non-volatile, three-dimensional memory of the storage system.

### Claim 17 (depends on 12)

The method of claim 12, wherein the storage system is embedded in the host.

### Claim 18 (depends on 12)

The method of claim 12, wherein the storage system is removably connected to the host.

### Claim 19

A storage system comprising:
a cache;
a non-volatile memory; and
means for sending a confirmation of execution of a flush command to a host even though the flush command was not executed, wherein the confirmation is sent after receiving, from the host, an assurance that there will not be a power loss from the host prior to the storage system later executing the flush command.

### Claim 20 (depends on 19)

The storage system of claim 19, wherein the assurance comprises an indication that indicates that the host's battery is un-removable and the power charging level of the host's battery.

### Claim 21 (depends on 19)

The storage system of claim 19, wherein the non-volatile memory comprises a three-dimensional memory.
