# US 2022/0283937 A1 · Flush method for mapping table of ssd

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

- Number: US 2022/0283937 A1
- Document ID: US20220283937A1
- Status: Published application
- Kind: A1
- Application number: 17/825,985
- Filed: 2022-05-26
- Published: 2022-09-08
- Earliest claimed: 2020-05-22
- Assignees: Yangtze Memory Technologies Co., Ltd.
- Applicants: Yangtze Memory Technologies Co., Ltd.
- Inventors: Lei Zhang; Keke Ding; Li Wei Wang
- Web page: https://patentgrep.com/patent/US20220283937A1

## CPC

- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 11/3037: {where the computing system component is a memory, e.g. virtual memory, cache (accessing, addressing or allocating within memory systems or architectures G06F12/00; checking stores for correct operation G11C29/00)}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/0868: Data transfer between cache memory and other subsystems, e.g. storage devices or host systems
- G06F 2212/214: Solid state disk
- G06F 2212/313: In storage device
- G06F 2212/466: Metadata, control data
- 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

A method of operating a Solid-State Drive (SSD) includes determining optimized thresholds of each corresponding segments according to their frequency of use, and executing a flush operation to write the one of the corresponding segments into a memory device according to the optimized thresholds of the corresponding segments

## Claims

### Claim 1

A method of operating a Solid-State Drive (SSD), comprising:
determining first thresholds of each corresponding segments of a mapping table according to frequency of use of the segments, wherein the mapping table comprises Logical Block Addresses (LBAs), the LBAs are divided into multiple corresponding segments; and
executing a flush operation to write the one of the corresponding segments of the mapping table into a memory device according to the first thresholds of the corresponding segments of the mapping table.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining the first thresholds of each corresponding segments of the mapping table according to frequency of use of the segments comprises:
determining the first thresholds by a count value of the corresponding segment of the mapping table, wherein the count value in response to the number of the corresponding LBAs being written into the mapping table.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
recording each of the count values of the corresponding segment of the mapping table.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
recording a number of total written LBAs.

### Claim 5 (depends on 4)

The method of claim 4, wherein each first threshold of corresponding segment of the mapping table is determined by an equation of:
O
=
B
(
1
-
C
T
)
=
B
×
T
(
T
-
C
)
where O is defined as one of the first thresholds, B is defined as a base threshold corresponding to the segments of the mapping table, C is defined as one of the count values of the corresponding segments of the mapping table, and T is defined as the number of the total written LBAs.

### Claim 6 (depends on 4)

The method of claim 4, further comprising: generating a recording table configured to record each of count values of the corresponding segments of the mapping table and the number of total written LBAs.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
in response to the number of total written LBAs reaches a predetermined threshold count, cleaning the recording table by resetting the count values, the number of total written LBAs, and the first thresholds to zero.

### Claim 8 (depends on 6)

The method of claim 6, further comprising:
acquiring the recording table from the memory device after the SSD is powered on.

### Claim 9 (depends on 1)

The method of claim 1, wherein executing the flush operation to write the one of the corresponding segments of the mapping table into the memory device according to the first thresholds of the corresponding segments of the mapping table comprises:
executing the flush operation to write the one of the corresponding segments of the mapping table into the memory device when a count value of the corresponding segments of the mapping table is greater than the first thresholds of the corresponding segments of the mapping table.

### Claim 10

A solid-state drive (SSD) comprising:
a memory device comprising a non-volatile memory configured to store a mapping table, wherein the mapping table comprises Logical Block Addresses (LBAs), the LBAs are divided into multiple corresponding segments; and
a memory controller configured to execute an instruction to perform a flush process, wherein the flush process comprises:
determining first thresholds of each of the corresponding segments of the mapping table according to frequency of use the segments; and
executing a flush operation to write the one of the corresponding segments of the mapping table into a memory device according to the first thresholds of the corresponding segments of the mapping table.

### Claim 11 (depends on 10)

The SSD of claim 10, wherein determining the first thresholds of each corresponding segments of the mapping table according to frequency of use of the segments comprises:
determining the first thresholds by a count value of the corresponding segment of the mapping table, wherein the count value in response to the number of the corresponding LBAs being written into the mapping table.

### Claim 12 (depends on 11)

The SSD of claim 11, wherein the flush process further comprises:
recording each of the count values of the corresponding segment of the mapping table.

### Claim 13 (depends on 12)

The SSD of claim 12, wherein the flush process further comprises:
recording a number of total written LBAs.

### Claim 14 (depends on 13)

The SSD of claim 13, wherein each first threshold of corresponding segment of the mapping table is determined by an equation of:
O
=
B
(
1
-
C
T
)
=
B
×
T
(
T
-
C
)
where O is defined as one of the first thresholds, B is defined as a base threshold corresponding to the segments of the mapping table, C is defined as one of the count values of the corresponding segments of the mapping table, and T is defined as the number of the total written LBAs.

### Claim 15 (depends on 13)

The SSD of claim 13, wherein the flush process further comprises:
generating a recording table configured to record each of count values of the corresponding segments of the mapping table and the number of total written LBAs.

### Claim 16 (depends on 15)

The SSD of claim 15, wherein the flush process further comprises:
in response to the number of total written LBAs reaches a predetermined threshold count, cleaning the recording table by resetting the count values, the number of total written LBAs, and the first thresholds to zero.

### Claim 17 (depends on 15)

The SSD of claim 15, wherein the flush process further comprises:
acquiring the recording table from the memory device after the SSD is powered on.

### Claim 18 (depends on 10)

The SSD of claim 10, wherein executing the flush operation to write the one of the corresponding segments of the mapping table into the memory device according to the first thresholds of the corresponding segments of the mapping table further comprises:
executing the flush operation to write the one of the corresponding segments of the mapping table into the memory device when a count value of the corresponding segments of the mapping table is greater than the first thresholds of the corresponding segments of the mapping table.

### Claim 19

A system comprising:
a host comprising a host memory and a host processor;
a memory device comprising a non-volatile memory configured to store a mapping table; and
a memory controller comprising a control circuit configured to execute an instruction from the host to perform a flush process, wherein the flush process comprises:
determining first thresholds of each corresponding segments of the mapping table according to frequency of use of the segments, wherein the mapping table comprises Logical Block Addresses (LBAs), wherein the LBAs are divided into multiple corresponding segments; and
executing a flush operation to write the one of the corresponding segments of the mapping table into a memory device according to the first thresholds of the corresponding segments of the mapping table.

### Claim 20 (depends on 19)

The system of claim 19, wherein determining the first thresholds of each corresponding segments of the mapping table according to frequency of use of the segments comprises:
determining the first thresholds by a count value of the corresponding segment of the mapping table, wherein the count value in response to the number of the corresponding LBAs being written into the mapping table.
