# US 11,119,933 B2 · Dynamic L2P cache

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

- Number: US 11,119,933 B2
- Document ID: US11119933B2
- Status: Granted
- Kind: B2
- Application number: 16/534,710
- Filed: 2019-08-07
- Published: 2019-11-28
- Granted: 2021-09-14
- Earliest claimed: 2017-10-30
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Sebastien Andre Jean
- Web page: https://patentgrep.com/patent/US11119933B2

## CPC

- G06F 12/0871: Allocation or management of cache space
- G06F 9/5016: {the resource being the memory}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 2212/1021: Hit rate improvement
- G06F 2212/222: Non-volatile memory
- G06F 2212/502: using adaptive policy
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Disclosed in some examples are methods, systems, and machine readable mediums that dynamically adjust the size of an L2P cache in a memory device in response to observed operational conditions. The L2P cache may borrow memory space from a donor memory location, such as a read or write buffer. For example, if the system notices a high amount of read requests, the system may increase the size of the L2P cache at the expense of the write buffer (which may be decreased). Likewise, if the system notices a high amount of write requests, the system may increase the size of the L2P cache at the expense of the read buffer (which may be decreased).

## Claims

### Claim 1

A NAND memory device comprising:
a controller;
a volatile memory, storing instructions that, when executed by the controller, cause the controller to perform operations comprising:
determining a command queue depth of a command queue of the NAND memory device;
determining whether an amount of volatile memory allocated to a Logical to Physical (L2P) cache should be increased based upon the command queue depth of the command queue exceeding a threshold number of commands in the command queue;
responsive to determining that the amount of volatile memory allocated to the L2P cache should be increased, reallocating a region of volatile memory allocated to a donor memory location to the L2P cache, wherein the donor memory location is volatile memory assigned to a read buffer, a write buffer, or both the read and the write buffer; and
storing additional L2P entries in the L2P cache at least partially in the region of volatile memory previously allocated to the donor memory location.

### Claim 2 (depends on 1)

The NAND memory device of claim 1, wherein the operations of determining whether the amount of volatile memory allocated to the L2P cache should be increased comprises determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon the command queue depth of the command queue and a ratio of command types in the command queue.

### Claim 3 (depends on 1)

The NAND memory device of claim 1, wherein the operations of determining whether the amount of volatile memory allocated to the L2P cache should be increased comprises determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon the command queue depth of the command queue and an L2P cache miss percentage.

### Claim 4 (depends on 1)

The NAND memory device of claim 1, wherein the operations of determining whether the amount of volatile memory allocated to the L2P cache should be increased comprises determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon the command queue depth of the command queue and an L2P cache hit percentage.

### Claim 5 (depends on 1)

The NAND memory device of claim 1, wherein the operations of determining whether the amount of volatile memory allocated to the L2P cache should be increased comprises determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon inputting the command queue depth into a rule stored on the NAND memory device.

### Claim 6 (depends on 5)

The NAND memory device of claim 5, wherein the rule is static.

### Claim 7 (depends on 5)

The NAND memory device of claim 5, wherein the operations further comprise:
receiving an updated rule from a host device, the updated rule different than the rule; and
replacing the rule with the updated rule.

### Claim 8 (depends on 1)

The NAND memory device of claim 1, wherein the operations of determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon the command queue depth of the command queue comprises comparing the command queue depth to a threshold depth and wherein the operations further comprise:
subsequent to storing the additional L2P entries:
determining whether the command queue depth of the command queue no longer exceeds the threshold depth; and
responsive to determining that the command queue depth no longer exceeds the threshold depth, decreasing a size of the L2P cache by reallocating at least a portion of the region of volatile memory back to the donor memory location.

### Claim 9 (depends on 1)

The NAND memory device of claim 1, wherein the operations of determining whether the amount of volatile memory allocated to the Logical to Physical (L2P) cache should be increased based upon the command queue depth of the command queue comprises:
determining that a command queue depth corresponding to read requests transgresses a threshold; and
wherein the donor memory location is a write buffer.

### Claim 10 (depends on 1)

The NAND memory device of claim 1, wherein the operations of determining whether the amount of volatile memory allocated to the Logical to Physical (L2P) cache should be increased based upon the command queue depth of the command queue comprises:
determining that a command queue depth corresponding to write requests transgresses a threshold; and
wherein the donor memory location is a read buffer.

### Claim 11 (depends on 1)

The NAND memory device of claim 1, wherein the operations of reallocating the amount of volatile memory allocated to the donor memory location to the L2P cache comprises:
reallocating a first portion of the region of volatile memory allocated to the donor memory location at a first time; and
reallocating a second portion of the region of volatile memory allocated to the donor memory location at a second time later than the first time.

### Claim 12

A method performed on a NAND memory device, the method comprising:
determining a command queue depth of a command queue of the NAND memory device;
determining whether an amount of volatile memory of the NAND memory device allocated to a Logical to Physical (L2P) cache should be increased based upon the command queue depth of the command queue exceeding a threshold number of commands in the command queue;
responsive to determining that the amount of volatile memory allocated to the L2P cache should be increased, reallocating a region of volatile memory allocated to a donor memory location to the L2P cache, wherein the donor memory location is volatile memory assigned to a read buffer, a write buffer, or both the read and the write buffer; and
storing additional L2P entries in the L2P cache at least partially in the region of volatile memory previously allocated to the donor memory location.

### Claim 13 (depends on 12)

The method of claim 12, wherein determining whether the amount of volatile memory allocated to the L2P cache should be increased comprises determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon the command queue depth of the command queue and a ratio of command types in the command queue.

### Claim 14 (depends on 12)

The method of claim 12, wherein determining whether the amount of volatile memory allocated to the L2P cache should be increased comprises determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon the command queue depth of the command queue and an L2P cache miss percentage.

### Claim 15 (depends on 12)

The method of claim 12, wherein determining whether the amount of volatile memory allocated to the L2P cache should be increased comprises determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon the command queue depth of the command queue and an L2P cache hit percentage.

### Claim 16 (depends on 12)

The method of claim 12, wherein determining whether the amount of volatile memory allocated to the L2P cache should be increased comprises determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon inputting the command queue depth into a rule stored on the NAND memory device.

### Claim 17 (depends on 16)

The method of claim 16, wherein the rule is static.

### Claim 18 (depends on 16)

The method of claim 16, wherein the method further comprises:
receiving an updated rule from a host device, the updated rule different than the rule; and
replacing the rule with the updated rule.

### Claim 19 (depends on 12)

The method of claim 12, wherein determining whether the amount of volatile memory allocated to the L2P cache should be increased based upon the command queue depth of the command queue comprises comparing the command queue depth to a threshold depth and wherein the method further comprises:
subsequent to storing the additional L2P entries:
determining whether the command queue depth of the command queue no longer exceeds the threshold depth; and
responsive to determining that the command queue depth no longer exceeds the threshold depth, decreasing a size of the L2P cache by reallocating at least a portion of the region of volatile memory back to the donor memory location.

### Claim 20 (depends on 12)

The method of claim 12, wherein determining whether the amount of volatile memory allocated to the Logical to Physical (L2P) cache should be increased based upon the command queue depth of the command queue comprises:
determining that a command queue depth corresponding to read requests transgresses a threshold; and
wherein the donor memory location is a write buffer.
