# US 10,957,381 B1 · Metadata grouping for un-map techniques

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

- Number: US 10,957,381 B1
- Document ID: US10957381B1
- Status: Granted
- Kind: B1
- Application number: 16/553,358
- Filed: 2019-08-28
- Published: 2021-03-04
- Granted: 2021-03-23
- Earliest claimed: 2019-08-28
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: David Aaron Palmer
- Web page: https://patentgrep.com/patent/US10957381B1

## CPC

- G11C 11/409: Read-write [R-W] circuits
- G06F 3/061: {Improving I/O performance}
- G06F 3/0614: {Improving the reliability of storage systems}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- 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 13/1668: {Details of memory controller}
- G11C 29/028: {with adaption or trimming of parameters}
- G11C 29/44: Indication or identification of errors, e.g. for repair
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 2212/1024: Latency reduction
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7202: Allocation control and policies
- G06F 2212/7204: Capacity control, e.g. partitioning, end-of-life degradation
- G06F 2212/7205: Cleaning, compaction, garbage collection, erase control
- G06F 2212/7208: Multiple device management, e.g. distributing data over multiple flash devices
- G11C 16/0483: {comprising cells having several storage transistors connected in series}
- G11C 16/08: Address circuits; Decoders; Word-line control circuits
- G11C 16/10: Programming or data input circuits
- G11C 2029/0409: {Online test}
- G11C 2029/0411: {Online error correction}
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Devices and techniques are disclosed herein to address high latency associated with large-scale un-map or trim commands associated with flash memory. In an example, a method can include receiving a trim command for a partition of a storage system, identifying a record of a partition table of the storage system corresponding to the partition, updating a partition count of the record with a count value of a partition counter of the storage system, and incrementing the partition counter.

## Claims

### Claim 1

A method comprising:
receiving a trim command for a partition of a flash storage system;
identifying a record of a partition table of the flash storage system corresponding to the partition;
updating a partition count of the record with a count value of a partition counter of the flash storage system; and
incrementing the partition counter.

### Claim 2 (depends on 1)

The method of claim 1, wherein identifying the record includes retrieving the record from a single-level-cell (SLC) memory of the flash storage system.

### Claim 3 (depends on 2)

The method of claim 2, wherein updating a partition count of the record with a count value of a partition counter of the flash storage system includes writing the partition table to the SLC memory after incrementing the partition counter; and
wherein incrementing the partition counter includes storing a value of the partition counter in the SLC memory.

### Claim 4 (depends on 1)

The method of claim 1, including:
receiving a write command at a controller of the flash storage system, the write command including a logical block address (LBA) and write data;
identifying a physical address (PA) corresponding to the LBA using at east a portion of a logical-to-physical (L2P) table and the LBA;
identifying a partition associated with the PA and a partition count associated with the partition using the partition table;
generating metadata including the partition count;
storing the metadata; and
writing the write data at the PA of the flash storage system.

### Claim 5 (depends on 4)

The method of claim 4, wherein storing the metadata and writing the write data includes storing the metadata with the write data.

### Claim 6 (depends on 4)

The claim 4, wherein storing the metadata include storing the r in the L2P table.

### Claim 7 (depends on 1)

The method of claim 1, including:
receiving a read command at a controller of the flash storage system, the read command including a logical block address (LISA);
identifying a physical address (PA) corresponding to the LISA using at least a portion of a logical-to-physical (L2P) table and the LBA;
reading data from the flash storage system using the PA;
identifying a target partition count associated with the data;
identifying a partition count associated with the partition using the partition table;
comparing the partition count with the target partition count;
when the partition count does not match the target partition count, setting read data to a default value indicative of invalid data; and
providing the read data in response to the read command.

### Claim 8 (depends on 7)

The method of claim 7, including, when the partition count matches the target partition count, providing the read data in response to the read command.

### Claim 9 (depends on 1)

The method of claim 1, including conducting garbage collection of the partition during idle times of the flash storage system after incrementing the partition counter.

### Claim 10

A storage system comprising:
flash memory; and
a controller configured to:
receive a trim command for a partition of a flash storage system identify a record of a partition table of the flash storage system corresponding to the partition;
update a partition count of the record with a count value of a partition counter of the flash storage system; and
increment the partition counter.

### Claim 11 (depends on 10)

The storage system of claim 10, wherein the controller, when identifying the record of the partition table, is configured to retrieve the record from single-level-cell (SLC) memory of the flash storage system.

### Claim 12 (depends on 11)

The storage system of claim 11, wherein the controller is configured to write the record to the SLC memory after incrementing the partition counter.

### Claim 13 (depends on 10)

The storage system of claim 10, wherein the controller is configured to:
receive a write command, the write command including a logical block address (LBA) and write data;
identify a physical address (PA) corresponding to the LBA using at least a portion of a logical-to-physical (L2P) table and the LBA;
identify a partition associated with the PA;
identify a partition count associated with the partition using, the partition table;
generate metadata including the partition count;
store the metadata; and
write the write data to the flash memory indexed by the PA.

### Claim 14 (depends on 13)

The storage system of claim 13, wherein the controller is configured to store the metadata in the L2P table.

### Claim 15 (depends on 13)

The storage system of claim 13, wherein the controller is configured to store the metadata to the flash memory indexed by the PA with the write data.

### Claim 16 (depends on 10)

The storage system of claim 10, wherein the controller is configured to:
receive a read command, the read command including a logical block address (LBA);
identify a physical address (PA) corresponding to the LBA using at least a portion of a logical-to-physical (L2P) table of the flash storage system and the LBA;
identify metadata including a target partition count associated with the PA;
identify a partition associated with the PA using the metadata;
identify a partition count associated with the partition using the partition table;
compare the partition count with the target partition count;
when the partition count does not match the target partition count, set read data to a default value indicative of invalid data; and
provide the read data in response to the read command.

### Claim 17 (depends on 16)

The storage system of claim 16, wherein the controller is configured to sense the read data from the flash memory indexed by the PA to identify the metadata.

### Claim 18 (depends on 16)

The storage system of claim 16, wherein, when the partition count matches the target partition count, the controller is configured to provide the read data in response to the read command.

### Claim 19 (depends on 10)

The storage system of claim 10, wherein the controller is configured to conduct garbage collection of the partition during idle times of the flash storage system after incrementing the partition counter.

### Claim 20

A machine-readable medium including instructions for un-mapping logical units of flash memory, the instructions, when executed by processing circuitry, cause the processing circuitry to perform operations comprising:
receiving a trim command for a LBA region of a flash storage system;
identifying a record of a LBA region table of the flash storage system corresponding to the LBA region;
updating a LBA region count of the record with a count value of a LBA region cow of the flash storage system; and
incrementing the LBA region counter.

### Claim 21 (depends on 20)

The machine-readable medium of claim 20, wherein, when identifying the record of the LBA region table, the operations include retrieving the record from single-level-cell (SLC) memory of the flash storage system.

### Claim 22 (depends on 20)

The machine-readable medium of claim 20, wherein the instructions include writing the record to the SLC memory after incrementing the LBA region counter.

### Claim 23 (depends on 20)

The machine-readable medium of claim 20, wherein the instructions further comprise:
receiving a write command at a controller of the flash storage system, the write command including a logical block address (LBA) and write data;
identifying a physical address (PA) corresponding to the LBA using at least a portion of a logical-to-physical (L2P) table and the LBA; and
identifying a LBA region associated with the PA and a LBA region count associated with the LBA region using the LBA region table.

### Claim 24 (depends on 20)

The machine-readable medium of claim 20, wherein the instructions further comprise:
receiving a read command at a controller of the flash storage system, the read command including a logical block address (LBA);
identifying a physical address (PA) corresponding to the LBA using at least a portion of a logical-to-physical (L2P) table and the LBA;
reading data from the flash storage system using the PA;
identifying a target LBA region count associated with the data;
identifying a LBA region count associated with the LBA region using the LBA region table;
comparing the LBA region count with the target LBA region count;
when the LBA region count does not match the target LBA region count, setting read data to a default value indicative of invalid data; and
providing the read data in response to the read command.

### Claim 25 (depends on 24)

The machine-readable medium of claim 24, wherein the operations further comprise:
when the LBA region count matches the target LBA region count, sensing read data from e PA; and
providing the read data in response to the read command.

### Claim 26 (depends on 20)

The machine-readable medium of claim 20, wherein the operations further comprise conducting garbage collection of the LBA region during idle times of the flash storage system after incrementing the LBA region counter.

### Claim 27 (depends on 20)

The machine-readable medium of claim 20, wherein the instructions do not operate to decrement the LB A region counter.
