# US 2017/0285948 A1 · Method and system for managing data in non-volatile memory

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

- Number: US 2017/0285948 A1
- Document ID: US20170285948A1
- Status: Published application
- Kind: A1
- Application number: 15/087,104
- Filed: 2016-03-31
- Published: 2017-10-05
- Earliest claimed: 2016-03-31
- Assignees: SanDisk Technologies LLC
- Applicants: SanDisk Technologies Inc.
- Inventors: Nicholas James Thomas; Joseph Meza
- Web page: https://patentgrep.com/patent/US20170285948A1

## CPC

- G06F 3/064: {Management of blocks}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0616: {in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- 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 2212/1044: Space efficiency improvement
- G06F 2212/7211: Wear leveling
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and systems for managing data storage in a non-volatile memory system are disclosed. The method may include receiving data, determining a data classification for the received data from a predetermined plurality of data classifications, writing the received data to an open block having only data of a same data classification as the determined data classification and, upon completely programming the open block, associating an epoch indicator where the epoch indicator defines a time period within which the block was created. When a block reclaim trigger is detected, only data within a same data classification and epoch may be reclaimed. An incrementing epoch indicator identifies a predetermined time granularity and is assigned to data such that earlier data and newer data are distinguishable. A system to implement the method may include a non-volatile memory and a controller configured to track and apply epoch and data-type classification information for data.

## Claims

### Claim 1

A method for managing data storage in a non-volatile memory system, the method comprising:
receiving data at a controller of the non-volatile memory system;
determining a data classification for the received data from a predetermined plurality of data classifications to assign the received data;
writing the received data to an open data block having only data of a same data classification as the determined data classification;
upon completely programming the open data block, associating an epoch indicator with the open data block and closing the open data block to form a closed block, the epoch indicator defining a time period within which the closed block and a plurality of additional closed blocks were created.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
in response to detecting a block reclaim trigger in the non-volatile memory system:
selecting at least one closed block from a pool of closed blocks each having a data classification and an epoch indicator;
moving valid data from the selected closed block to an open relocation block exclusively associated with a same data classification and a same epoch indicator as the selected closed block.

### Claim 3 (depends on 2)

The method of claim 2, wherein selecting the at least one closed block comprises selecting the at least one closed block having a least amount of valid data.

### Claim 4 (depends on 2)

The method of claim 2, wherein selecting the at least one closed block comprises selecting the closed block from closed blocks associated with an earliest of a plurality of epochs.

### Claim 5 (depends on 1)

The method of claim 1, wherein each of the predetermined plurality of data classifications comprises a different likelihood of the received data being overwritten.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the data classification for the received data comprises receiving a data use frequency indicator from the host and associating one of the predetermined plurality of data classifications to the received data based on the data use frequency classification.

### Claim 7 (depends on 5)

The method of claim 5, wherein determining the data classification for the received data comprises identifying a data type suffix of the received data and associating the received data with the data classification predetermined as corresponding to the identified data type suffix.

### Claim 8

A method for managing data storage in a non-volatile memory system, the method comprising:
receiving data at a controller of the non-volatile memory system;
determining a data classification for the received data from a predetermined plurality of data classifications to assign the received data;
writing the received data to an open data block having only data of a same data classification as the determined data classification;
upon completely programming the open data block, associating an epoch indicator with the open data block to create a closed block, the epoch indicator defining a time period within which the closed block and a plurality of additional closed blocks were created; and
determining if the time period has expired and, if the time period has expired, changing the epoch indicator; and
associating subsequent closed blocks with the changed epoch indicator until a next time period expires.

### Claim 9 (depends on 8)

The method of claim 8, wherein each time period comprises a predetermined elapsed time.

### Claim 10 (depends on 9)

The method of claim 9, wherein each time period comprises an identical amount of elapsed time.

### Claim 11 (depends on 8)

The method of claim 8, wherein each time period is defined by an amount of data being received such that a time period expires only upon receiving a predetermined amount of data independent of any predetermined elapsed time.

### Claim 12 (depends on 8)

The method of claim 8, wherein the epoch indicator comprises a counter and changing the epoch identifier comprises incrementing the counter.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
in response to detecting a block reclaim trigger in the non-volatile memory system, the controller:
selecting a closed block from a pool of closed blocks having a same data classification and a same epoch indicator; and
moving valid data from the selected closed block to an open relocation block exclusively associated with the same data classification and the same epoch indicator.

### Claim 14

A non-volatile memory system comprising:
a non-volatile memory having a plurality of memory blocks, wherein all blocks containing valid data are exclusively associated with a respective one of a plurality of data types and one of a plurality of epoch indicators, each epoch indicator defining a different time period within which data in an associated plurality of blocks was received from a host; and
a controller in communication with the non-volatile memory, the controller configured to:
detect a block reclaim trigger;
in response to detecting the block reclaim trigger, select a previously programmed block as a source block; and
relocate valid data from the selected source block only to a relocation block exclusively associated with a same data type and a same epoch indicator as associated with the selected source block.

### Claim 15

A non-volatile memory system comprising:
a non-volatile memory having a plurality of memory blocks; and
a controller in communication with the non-volatile memory, the controller configured to:
receive data from a host;
determine a data classification for the received data from a predetermined plurality of data classifications to assign the received data;
write the received data to an open data block having only data of a same data classification as the determined data classification;
upon completely programming the open data block, store an association of an epoch indicator with the open data block in a data structure in the non-volatile memory system to create a closed block, the epoch indicator defining a time period within which the closed block and a plurality of additional closed blocks are created; and
upon detecting a block reclaim trigger:
select a previously programmed block as a source block; and
relocate valid data from the selected source block only to a relocation block exclusively associated with a same data type and a same epoch indicator as associated with the selected source block.

### Claim 16 (depends on 15)

The non-volatile memory system of claim 15, wherein the controller is further configured to:
determine if the time period has expired and, if the time period has expired, change the epoch indicator; and
associate subsequently closed blocks with the changed epoch indicator until a next time period expires.

### Claim 17 (depends on 15)

The non-volatile memory system of claim 15, wherein each time period comprises a predetermined elapsed time.

### Claim 18 (depends on 17)

The non-volatile memory system of claim 17, wherein each time period comprises an identical amount of elapsed time.

### Claim 19 (depends on 15)

The non-volatile memory system of claim 15, wherein each time period is defined by an amount of data being received such that a time period expires only upon receiving a predetermined amount of data independent of any predetermined elapsed time.

### Claim 20 (depends on 16)

The non-volatile memory system of claim 16, wherein the epoch indicator comprises a counter and changing the epoch identifier comprises incrementing the counter.
