# US 2019/0377681 A1 · Methods and apparatus for workload based dynamic cache control in ssd

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

- Number: US 2019/0377681 A1
- Document ID: US20190377681A1
- Status: Published application
- Kind: A1
- Application number: 16/159,057
- Filed: 2018-10-12
- Published: 2019-12-12
- Earliest claimed: 2018-06-11
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Avichay Haim Hodes; Oren Cohen; Judah Gamliel Hahn
- Web page: https://patentgrep.com/patent/US20190377681A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0871: Allocation or management of cache space
- G06F 12/0848: {Partitioned cache, e.g. separate instruction and operand caches}
- G06F 2212/1016: Performance improvement
- G06F 2212/1036: Life time enhancement
- G06F 2212/222: Non-volatile memory
- G06F 2212/282: Partitioned cache
- G06F 2212/502: using adaptive policy
- G06F 2212/601: Reconfiguration of cache memory
- G06F 2212/604: Details relating to cache allocation
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7203: Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
- G06F 2212/7204: Capacity control, e.g. partitioning, end-of-life degradation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Aspects of the present disclosure provide various apparatus, devices, systems and methods for dynamically configuring a cache partition in a solid state drive (SSD). The SSD may include non-volatile memory (NVM) that can be configured to store a different number of bits per cell. The NVM is partitioned into a cache partition and a storage partition, and the respective sizes of the partitions is dynamically changed based on a locality of data (LOD) of the access pattern of the NVM.

## Claims

### Claim 1

A solid state device (SSD) comprising:
a non-volatile memory (NVM), and
a controller operatively coupled to the NVM;
wherein the controller is configured to:
determine an access pattern of the NVM by a host;
dynamically configure data storage cells of the NVM into a cache partition and a storage partition based on a locality of data (LOD) of the access pattern; and
adjust a size of the cache partition in response to a change of the LOD,
wherein the data storage cells of the cache partition are configured to provide greater endurance than the data storage cells of the storage partition.

### Claim 2 (depends on 1)

The SSD of claim 1,
wherein the data storage cells of the storage partition comprise quad-level cell (QLC) type cells, and
wherein the data storage cells of the cache partition comprise at least one of single-level cell (SLC) type cells or multi-level cell (MLC) type cells.

### Claim 3 (depends on 1)

The SSD of claim 1, wherein the controller is further configured to:
determine a hit and miss (H/M) rate of a logical block address (LBA) range accessed by the host during a predetermined time period; and
determine the LOD as the LBA when the H/M rate meets a target rate.

### Claim 4 (depends on 1)

The SSD of claim 1, wherein the controller is further configured to:
to adjust the size of the cache partition in response to a change in size of the LOD.

### Claim 5 (depends on 4)

The SSD of claim 4, wherein the controller is further configured to:
adjust the size of the cache partition to be no less than the size of the LOD.

### Claim 6 (depends on 1)

The SSD of claim 1, wherein the data storage cells of the storage partition are configured to store a greater number of bits per cell than the data storage cells of the cache partition.

### Claim 7

A method of operating a non-volatile memory (NVM) controller configured to communicate with an NVM, comprising:
receiving commands from a host for accessing the NVM;
determining an access pattern of the NVM by the host; and
dynamically configuring data storage cells of the NVM into a cache partition and a storage partition based on a locality of data (LOD) of the access pattern, wherein the data storage cells of the cache partition are configured to provide higher performance than the data storage cells of the storage partition.

### Claim 8 (depends on 7)

The method of claim 7, wherein the data storage cells of the cache partition are configured to provide greater endurance than the data storage cells of the storage partition.

### Claim 9 (depends on 7)

The method of claim 7, wherein data storage cells of the storage partition are configured to store a greater number of bits per cell than the data storage cells of the cache partition.

### Claim 10 (depends on 7)

The method of claim 7, wherein determining the access pattern comprises:
determining the LOD corresponding to a logical block address (LBA) range accessed by the host during a predetermined time period.

### Claim 11 (depends on 10)

The method of claim 10, wherein determining the LOD comprises:
determining a hit and miss (H/M) rate of the LBA range; and
determining the LOD based on the H/M rate.

### Claim 12 (depends on 11)

The method of claim 11, wherein dynamically configuring the data storage cells comprises:
adjusting a size of the cache partition in response to a change in size of the LOD.

### Claim 13 (depends on 12)

The method of claim 12, wherein adjusting the size of the cache partition comprises:
adjusting the size of the cache partition to be no less than the size of the LOD.

### Claim 14 (depends on 13)

The method of claim 13, wherein adjusting the size of the cache partition further comprises:
limiting the size of the cache partition such that a provisioned capacity of the NVM is available to the host regardless of the size of the cache partition.

### Claim 15

A non-volatile memory (NVM) comprising:
means for receiving commands from a host for performing data operations with the NVM;
means for determining an access pattern of the NVM by the host; and
means for dynamically configuring data storage cells of the NVM into a cache partition and a storage partition based a locality of data (LOD) of the access pattern, wherein data storage cells of the storage partition are configured to use more threshold voltages per cell for storing data than the data storage cells of the cache partition.

### Claim 16 (depends on 15)

The NVM of claim 15, wherein data storage cells of the storage partition are configured to store a greater number of bits per cell than the data storage cells of the cache partition.

### Claim 17 (depends on 15)

The NVM of claim 15, further comprising:
means for determining the LOD corresponding to a logical block address (LBA) range accessed by the host during a predetermined time period.

### Claim 18 (depends on 17)

The NVM of claim 17, further comprising:
means for adjusting the cache partition to be no smaller than the LOD in size such that the cache partition accommodates a higher percentage of the data operations relative to the storage partition.

### Claim 19 (depends on 18)

The NVM of claim 18, further comprising:
means for limiting the size of the cache partition such that a provisioned capacity of the NVM is available to the host regardless of the size of the cache partition.

### Claim 20 (depends on 18)

The NVM of claim 18, wherein the means for adjusting the cache partition is further configured to:
increase the size of the cache partition in response to a size increase of the LOD; and
decrease the size of the cache partition in response to a size decrease of the LOD.
