# US 2021/0334009 A1 · Memory system, memory controller, and operation method of 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/0334009 A1
- Document ID: US20210334009A1
- Status: Published application
- Kind: A1
- Application number: 17/011,300
- Filed: 2020-09-03
- Published: 2021-10-28
- Earliest claimed: 2020-04-22
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: In JUNG
- Web page: https://patentgrep.com/patent/US20210334009A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/126: with special data handling, e.g. priority of data or instructions, handling errors or pinning
- G06F 12/0866: for peripheral storage systems, e.g. disk cache
- 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

The present disclosure includes a memory system, a memory controller, and an operation method thereof. The memory system may cache a subset of all map segments in a mapping table indicating mapping information between logical addresses and physical addresses in a map cache, may select map segments on which locking is to be set from the map segments cached in the map cache so as not to be evicted from the map cache based on information on all commands received from a host during a set period of time, and may set lock flags for the map segments on which locking is to be set. Accordingly, the memory system may reduce the overhead occurring in reloading previously evicted map segments in the process of updating a mapping table, and may optimize update performance for a mapping table within a limit that guarantees caching performance to a predetermined level or higher.

## Claims

### Claim 1

A memory system comprising:
a memory device; and
a memory controller coupled to the memory device and configured to: cache a subset of all map segments in a mapping table indicating mapping information between logical addresses and physical addresses in a map cache;
select map segments on which locking is to be set from the map segments cached in the map cache so as not to be evicted from the map cache based on information on all commands received from a host during a set period of time; and
set lock flags for the map segments on which locking is to be set.

### Claim 2 (depends on 1)

The memory system of claim 1, wherein the memory controller is configured to, when a ratio of write commands to all commands received from the host during the set period of time is greater than or equal to a threshold ratio, select the map segments on which locking is to be set from the map segments in the map cache.

### Claim 3 (depends on 1)

The memory system of claim 1, wherein the memory controller is configured to, when the ratio of write commands to all commands received from the host during the set period of time is less than a threshold ratio, select the map segments on which locking is to be set from the map segments in the map cache based on logical addresses referenced by read commands received from the host during the set period of time.

### Claim 4 (depends on 3)

The memory system of claim 3, wherein the memory controller is configured to, when consecutive logical addresses are sequentially referenced a threshold count or more by the read commands, or when logical addresses in the same map segment, among the map segments in the map cache, are referenced a threshold reference number of times or more by the read commands, select the map segments on which locking is to be set from the map segments in the map cache.

### Claim 5 (depends on 3)

The memory system of claim 3, wherein the memory controller is configured to, when a hit ratio of the map cache by the read commands is greater than or equal to a threshold hit ratio, select the map segments on which locking is to be set from the subset of map segments in the map cache.

### Claim 6 (depends on 1)

The memory system of claim 1, wherein the memory controller is configured to select up to N least recently used map segments from the map segments in the map cache as the map segments on which locking is to be set.

### Claim 7 (depends on 6)

The memory system of claim 6, wherein the value N is changed depending on a hit ratio and a reference hit ratio of the map cache.

### Claim 8 (depends on 7)

The memory system of claim 7, wherein the reference hit ratio is changed in proportion to the number of map segments on which locking is set, among the map segments in the map cache.

### Claim 9 (depends on 1)

The memory system of claim 1, wherein the memory controller is configured to reset the lock flags after updating the mapping table with the map segments on which locking is set, among the map segments in the map cache.

### Claim 10

A memory controller comprising:
a memory interface configured to communicate with a memory device;
a control circuit coupled to the memory device and configured to cache a subset of all map segments in a mapping table indicating mapping information between logical addresses and physical addresses in a map cache;
select map segments on which locking is to be set from the map segments cached in the map cache based on information on all commands received from a host during a set period of time; and
set lock flags for the map segments on which locking is to be set.

### Claim 11 (depends on 10)

The memory controller of claim 10, wherein the control circuit is configured to, when a ratio of write commands to all commands received from the host during the set period of time is greater than or equal to a threshold ratio, select the map segments on which locking is to be set from the subset of map segments in the map cache.

### Claim 12 (depends on 10)

The memory controller of claim 10, wherein the control circuit is configured to, when the ratio of write commands to all commands received from the host during the set period of time is less than a threshold ratio, select the map segments on which locking is to be set from the subset of map segments in the map cache based on logical addresses referenced by read commands received from the host during the set period of time.

### Claim 13 (depends on 12)

The memory controller of claim 12, wherein the control circuit is configured to, when consecutive logical addresses are sequentially referenced a threshold count or more by the read commands, or when logical addresses in the same map segment, among the map segments in the map cache, are referenced a threshold reference number of times or more by the read commands, select the map segments on which locking is to be set from the map segments in the map cache.

### Claim 14 (depends on 12)

The memory controller of claim 12, wherein the control circuit is configured to, when a hit ratio of the map cache by the read commands is greater than or equal to a threshold hit ratio, select the set map segments from the subset of map segments in the map cache.

### Claim 15 (depends on 10)

The memory controller of claim 10, wherein the control circuit is configured to select up to N least recently used map segments from the map segments in the map cache as the map segments on which locking is to be set.

### Claim 16

An operation method of a memory system, the method comprising:
caching a subset of map segments in a mapping table indicating mapping information between logical addresses and physical addresses in a map cache;
selecting map segments on which locking is to be set from the map segments cached in the map cache based on information on all commands received from a host during a set period of time; and
setting lock flags for the map segments on which locking is to be set.

### Claim 17 (depends on 16)

The method of claim 16, wherein the selecting map segments on which locking is to be set comprises, when a ratio of write commands to all commands is greater than or equal to a threshold ratio, selecting the map segment on which locking is to be set from the map segments in the map cache.

### Claim 18 (depends on 16)

The method of claim 16, wherein the selecting map segments on which locking is to be set comprises, when the ratio of write commands to all commands received from the host during the set period of time is less than a threshold ratio, selecting the map segments on which locking is to be set from the map segments in the map cache based on logical addresses referenced by read commands received from the host during the set period of time.

### Claim 19 (depends on 18)

The method of claim 18, wherein the selecting map segments on which locking is to be set comprises, when consecutive logical addresses are sequentially referenced a threshold count or more by the read commands, or when logical addresses in the same map segment, among the map segments in the map cache, are referenced a threshold reference number of times or more by the read commands, selecting the map segments on which locking is to be set from the map segments in the map cache.

### Claim 20 (depends on 18)

The method of claim 18, wherein the selecting map segments on which locking is to be set comprises, when a hit ratio of the map cache by the read commands is greater than or equal to a threshold hit ratio, selecting the map segments on which locking is to be set from the map segments in the map cache.
