# US 2021/0081316 A1 · Storage System and Method for Validation of Hints Prior to Garbage Collection

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

- Number: US 2021/0081316 A1
- Document ID: US20210081316A1
- Status: Published application
- Kind: A1
- Application number: 16/569,163
- Filed: 2019-09-12
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Ramanathan Muthiah; Judah Gamliel Hahn
- Web page: https://patentgrep.com/patent/US20210081316A1

## CPC

- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0253: {Garbage collection, i.e. reclamation of unreferenced memory}
- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0673: {Single storage device}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 13/1694: {Configuration of memory controller to different memory types}
- G06F 2212/1016: Performance improvement
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F 2212/7207: management of metadata or control data
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A storage system and method for validation of hints prior to garbage collection are provided. In one embodiment, a method is provided comprising receiving a command from a host to store data in a memory; storing, in the memory, the data and a hint that characterizes the data; determining whether the hint is still valid; and in response determining that the hint is still valid, using the hint in performing garbage collection. Other embodiments are provided.

## Claims

### Claim 1

A method for using a validated hint in performing garbage collection, the method comprising:
performing the following in a storage system comprising a memory:
receiving a command from a host to store data in the memory;
storing, in the memory, the data and a hint that characterizes the data;
determining whether the hint is still valid; and
in response to determining that the hint is still valid, using the hint in performing garbage collection.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
in response to determining that the hint is not still valid, replacing the hint with a new hint.

### Claim 3 (depends on 1)

The method of claim 1, wherein a read pattern of the data is used to determine whether the hint is still valid.

### Claim 4 (depends on 3)

The method of claim 3, wherein the read pattern comprises a log of read commands.

### Claim 5 (depends on 3)

The method of claim 3, wherein the read pattern is derived.

### Claim 6 (depends on 1)

The method of claim 1, wherein at least one garbage collection parameter is used to determine whether the hint is still valid.

### Claim 7 (depends on 6)

The method of claim 6, wherein the at least one garbage collection parameter comprises one or both of the following: data age and a validity count associated with the data.

### Claim 8 (depends on 1)

The method of claim 1, wherein the hint is received from the host.

### Claim 9 (depends on 1)

The method of claim 1, wherein the hint is derived by the storage system.

### Claim 10 (depends on 1)

The method of claim 1, wherein the hint is stored as metadata in a flash management unit.

### Claim 11 (depends on 1)

The method of claim 1, wherein the hint characterizes the data by indicating one or more of the following: whether or not the data will be updated frequently, a file type for the data, a sequence of logical block addresses associated with the data, whether the data is part of an existing file, whether the data replaces data of an existing file, and whether the data is a copy of a file already stored in the memory.

### Claim 12 (depends on 1)

The method of claim 1, wherein the determining is triggered by a determination to perform garbage collection.

### Claim 13 (depends on 1)

The method of claim 1, wherein the hint is used in performing garbage collection to determine whether to move the data to a single-level cell or a multi-level cell.

### Claim 14

A storage system comprising:
a memory; and
a controller configured to be in communication with the memory, wherein the controller is further configured to:
attempt to validate a stored hint that characterizes data stored in the memory; and
in response to the attempt to validate the stored hint being successful, use the stored hint to perform garbage collection.

### Claim 15 (depends on 14)

The storage system of claim 14, wherein the controller is further configured to:
in response to the attempt to validate the stored hint being unsuccessful, replace the hint with a new hint.

### Claim 16 (depends on 14)

The storage system of claim 14, wherein the controller is further configured to attempt to validate the stored hint using a read pattern of the data.

### Claim 17 (depends on 14)

The storage system of claim 14, wherein the controller is further configured to attempt to validate the stored hint using at least one garbage collection parameter.

### Claim 18 (depends on 14)

The storage system of claim 14, wherein the hint is received from a host.

### Claim 19 (depends on 14)

The storage system of claim 14, wherein the hint is derived by the controller.

### Claim 20 (depends on 14)

The storage system of claim 14, wherein the memory comprises a three-dimensional memory.

### Claim 21 (depends on 14)

The storage system of claim 14, wherein the storage system is configured to be integrated in a host.

### Claim 22 (depends on 14)

The storage system of claim 14, wherein the storage system is configured to be removably connected with a host.

### Claim 23

A storage system comprising:
a memory;
means for receiving a command from a host to store data in the memory;
means for storing, in the memory, the data and a hint that characterizes the data;
means for determining whether the hint is still valid; and
means for, in response determining that the hint is still valid, using the hint in performing garbage collection.
