# US 2021/0081329 A1 · Memory system

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

- Number: US 2021/0081329 A1
- Document ID: US20210081329A1
- Status: Published application
- Kind: A1
- Application number: 16/806,234
- Filed: 2020-03-02
- Published: 2021-03-18
- Earliest claimed: 2019-09-13
- Assignees: Kioxia Corporation
- Applicants: Kioxia Corporation
- Inventors: Tomonori YOKOYAMA; Mitsunori TADOKORO; Satoshi KABURAKI
- Web page: https://patentgrep.com/patent/US20210081329A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/1045: associated with a data cache
- G06F 12/0871: Allocation or management of cache space
- G06F 12/1081: for peripheral access to main memory, e.g. direct memory access [DMA]
- G06F 12/0848: {Partitioned cache, e.g. separate instruction and operand caches}
- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 2212/1016: Performance improvement
- G06F 2212/214: Solid state disk
- G06F 2212/282: Partitioned cache
- G06F 2212/312: In storage controller
- G06F 2212/401: Compressed data
- G06F 2212/466: Metadata, control data
- G06F 2212/502: using adaptive policy
- G06F 2212/601: Reconfiguration of cache memory
- G06F 2212/681: Multi-level TLB, e.g. microTLB and main TLB
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory system is connectable to the host. The memory system includes a nonvolatile first memory, a second memory in which a plurality of pieces of first information each correlating a logical address indicating a location in a logical address space of the memory system with a physical address indicating a location in the first memory are stored, a volatile third memory including a first cache and a second cache, a compressor configured to perform compression on the plurality of pieces of first information, and a memory controller. The memory controller stores the first information not compressed by the compressor in the first cache, stores the first information compressed by the compressor in the second cache, and controls a ratio between a first capacity, which is a capacity of the first cache, and a second capacity, which is a capacity of the second cache.

## Claims

### Claim 1

A memory system connectable to a host, comprising:
a nonvolatile first memory;
a second memory in which a plurality of pieces of first information each correlating a logical address indicating a location in a logical address space of the memory system with a physical address indicating a location in the first memory are stored;
a volatile third memory including a first cache and a second cache;
a compressor configured to perform compression on the plurality of pieces of first information; and
a memory controller configured to store the first information not compressed by the compressor in the first cache, store the first information compressed by the compressor in the second cache, and control a ratio between a first capacity, which is a capacity of the first cache, and a second capacity, which is a capacity of the second cache.

### Claim 2 (depends on 1)

The memory system according to claim 1, wherein the memory controller is configured to
determine a frequency of sequential writes based on a plurality of write commands from the host, and
adjust the ratio according to the frequency of sequential writes.

### Claim 3 (depends on 2)

The memory system according to claim 2,
wherein the memory controller increases a percentage of the first capacity when the frequency is smaller than or equal to a first value, and increases a percentage of the second capacity when the frequency is greater than or equal to a second value, and
wherein the first value is less than the second value.

### Claim 4 (depends on 1)

The memory system according to claim 1, wherein the memory controller is configured to:
determine a first cache hit rate, which is a cache hit rate of the first cache, and a second cache hit rate, which is a cache hit rate of the second cache, and
adjust the ratio according to the first cache hit rate or the second cache hit rate.

### Claim 5 (depends on 4)

The memory system according to claim 4,
wherein the memory controller increases a percentage of the first capacity according to an increase in the first cache hit rate, and increases a percentage of the second capacity according to an increase in the second cache hit rate when the first cache hit rate does not increase.

### Claim 6 (depends on 1)

The memory system according to claim 1, wherein the memory controller is configured to:
determine a success rate of compressing the first information to a predetermined size or less, and
adjust the ratio according to the success rate.

### Claim 7 (depends on 6)

The memory system according to claim 6,
wherein the memory controller increases a percentage of the second capacity according to an increase in the success rate and increases a percentage of the first capacity according to a decrease in the success rate.

### Claim 8 (depends on 1)

The memory system according to claim 1,
wherein when the first information is extracted from the first cache, the memory controller compresses the first information extracted from the first cache using the compressor and stores the compressed first information in the second cache.

### Claim 9 (depends on 1)

The memory system according to claim 1,
wherein the memory controller performs a first search for a first logical address in the first cache, and then a second search for the first logical address in the second cache when the first search fails.

### Claim 10 (depends on 9)

The memory system according to claim 9, further comprising:
an expander,
wherein when the second search succeeds, the memory controller retrieves the compressed first information from the second cache, restores the retrieved compressed first information using the expander, and performs an operation using the restored first information.

### Claim 11

A method of dynamically sizing first and second caches for storing address conversion information, wherein the first cache stores the address conversion information in non-compressed form and the second cache stores the address conversion information in compressed form, said method comprising:
determining characteristics relating to the first cache and the second cache; and
controlling a ratio between a first capacity, which is a capacity of the first cache, and a second capacity, which is a capacity of the second cache.

### Claim 12 (depends on 11)

The method according to claim 11, further comprising:
determining, as the characteristics relating to the first cache and the second cache, a frequency of sequential writes based on a plurality of write commands from the host; and
adjusting the ratio according to the frequency of sequential writes.

### Claim 13 (depends on 12)

The method according to claim 12, further comprising:
increasing a percentage of the first capacity when the frequency is smaller than or equal to a first value, and increasing a percentage of the second capacity when the frequency is greater than or equal to a second value,
wherein the first value is less than the second value.

### Claim 14 (depends on 11)

The method according to claim 11, further comprising:
determining, as the characteristics relating to the first cache and the second cache, a first cache hit rate, which is a cache hit rate of the first cache, and a second cache hit rate, which is a cache hit rate of the second cache; and
adjusting the ratio according to the first cache hit rate or the second cache hit rate.

### Claim 15 (depends on 14)

The method according to claim 14, further comprising:
increasing a percentage of the first capacity according to an increase in the first cache hit rate, and increasing a percentage of the second capacity according to an increase in the second cache hit rate when the first cache hit rate does not increase.

### Claim 16 (depends on 11)

The method according to claim 11, further comprising:
determining, as the characteristics relating to the first cache and the second cache, a success rate of compressing the first information to a predetermined size or less; and
adjusting the ratio according to the success rate.

### Claim 17 (depends on 16)

The method according to claim 16, further comprising:
increasing a percentage of the second capacity according to an increase in the success rate and increasing a percentage of the first capacity according to a decrease in the success rate.

### Claim 18 (depends on 11)

The method according to claim 11, further comprising:
when the first information is extracted from the first cache, compressing the first information extracted from the first cache and storing the compressed first information in the second cache.

### Claim 19 (depends on 11)

The method according to claim 11, further comprising:
performing a first search for a first logical address in the first cache, and then a second search for the first logical address in the second cache when the first search fails.

### Claim 20 (depends on 19)

The method according to claim 19, further comprising:
when the second search succeeds, retrieving the compressed first information from the second cache, restoring the retrieved compressed first information, and performing an operation using the restored first information.
