# US 2021/0064542 A1 · Memory controller, storage device including memory controller, and operating method of memory controller

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

- Number: US 2021/0064542 A1
- Document ID: US20210064542A1
- Status: Published application
- Kind: A1
- Application number: 16/851,001
- Filed: 2020-04-16
- Published: 2021-03-04
- Earliest claimed: 2019-08-28
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Eun Soo JANG
- Web page: https://patentgrep.com/patent/US20210064542A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 12/12: Replacement control
- G06F 3/061: {Improving I/O performance}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 2212/1041: Resource optimization
- G06F 2212/7202: Allocation control and policies
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory controller for controlling a plurality of memory chips of a non-volatile memory includes a first core configured to identify a size of a remaining space of a page to be written in a memory chip on which a write operation is to be performed among the plurality of memory chips and fetch a first write command from a first submission queue among a plurality of submission queues included in a host, the first write command being related to data having a size corresponding to that of the remaining space of the page to be written, and a second core configured to control the non-volatile memory to store data related to the fetched first write command in the remaining space of the page to be written.

## Claims

### Claim 1

A memory controller for controlling a plurality of memory chips of a non-volatile memory, the memory controller comprising:
a first core configured to identify a size of a remaining space of a page to be written in a memory chip on which a write operation is to be performed among the plurality of memory chips and fetch a first write command from a first submission queue among a plurality of submission queues included in a host, the first write command being related to data having a size corresponding to that of the remaining space of the page to be written; and
a second core configured to control the non-volatile memory to store data related to the fetched first write command in the remaining space of the page to be written.

### Claim 2 (depends on 1)

The memory controller according to claim 1, wherein the memory controller comprises a memory storing submission queue information that includes information on each of the plurality of submission queues.

### Claim 3 (depends on 2)

The memory controller according to claim 2, wherein the submission queue information comprises a depth, a base address, an identification (ID), a type of a queued command of each of the plurality of submission queues, and a size of data related to the queued command.

### Claim 4 (depends on 2)

The memory controller according to claim 2, wherein the memory further stores non-volatile memory state information comprising the size of the remaining space of the page to be written.

### Claim 5 (depends on 1)

The memory controller according to claim 1, wherein the first core of the memory controller is further configured to access the first submission queue to determine whether the first write command is present in the first submission queue.

### Claim 6 (depends on 5)

The memory controller according to claim 5, wherein the first core of the memory controller is further configured to determine whether the size of the remaining space of the page to be written exceeds a minimum data size when the first write command is not present in the first submission queue.

### Claim 7 (depends on 6)

The memory controller according to claim 6, wherein the first core of the memory controller is further configured to wait for a given time period without fetching a write command from other submission queues than the first submission queue, when the size of the remaining space of the page to be written is the minimum data size or less.

### Claim 8 (depends on 7)

The memory controller according to claim 7, wherein the second core of the memory controller is further configured to control the non-volatile memory to store dummy data in the remaining space of the page to be written when the first write command is not present in the first submission queue during the given time period.

### Claim 9 (depends on 6)

The memory controller according to claim 6, wherein the first core of the memory controller is further configured to fetch one or more second write commands from one or more second submission queues other than the first submission queue when the size of the remaining space of the page to be written exceeds the minimum data size; and
wherein the second core of the memory controller is further configured to control the non-volatile memory to store data related to the second write commands in the remaining space of the page to be written.

### Claim 10

A storage apparatus, comprising:
a non-volatile memory comprising a plurality of memory chips;
a memory configured to store submission queue information comprising information on each of a plurality of submission queues that are included in a host and store non-volatile memory state information comprising a size of a remaining space of a page to be written in a memory chip on which a write operation is to be performed among the plurality of memory chips; and
a memory controller configured to identify the size of the remaining space of the page to be written based on the non-volatile memory state information, access a first submission queue among the plurality of submission queues based on the submission queue information to determine whether a first write command is present in the first submission queue, the first write command being related to data having a size corresponding to that of the remaining space of the page to be written, and fetch the first write command from the first submission queue.

### Claim 11 (depends on 10)

The storage apparatus according to claim 10, wherein the memory controller is further configured to determine whether the size of the remaining space of the page to be written exceeds a minimum data size when the first write command is not present in the first submission queue.

### Claim 12 (depends on 11)

The storage apparatus according to claim 11, wherein the memory controller is further configured to wait for a given time period without fetching a write command from other submission queues than the first submission queue, when the size of the remaining space of the page to be written is the minimum data size or less.

### Claim 13 (depends on 12)

The storage apparatus according to claim 12, wherein the memory controller is further configured to control the non-volatile memory to store dummy data in the remaining space of the page to be written when the first write command is not present in the first submission queue during the given time period.

### Claim 14 (depends on 11)

The storage apparatus according to claim 11, wherein the memory controller is further configured to fetch one or more second write commands from one or more second submission queues other than the first submission queue when the size of the remaining space of the page to be written exceeds the minimum data size.

### Claim 15

An operating method of a memory controller that controls a non-volatile memory, the operating method comprising:
identifying a size of a remaining space of a page to be written in a memory chip on which a write operation is to be performed;
accessing a first submission queue among a plurality of submission queues that are included in a host and fetching a first write command from the first submission queue, the first write command being related to data having a size corresponding to that of the remaining space of the page to be written; and
controlling the non-volatile memory to store the data in the remaining space of the page to be written in response to the first write command.

### Claim 16 (depends on 15)

The operating method according to claim 15, wherein the fetching of the first write command from the first submission queue comprises determining whether the first write command is present in the first submission queue.

### Claim 17 (depends on 16)

The operating method according to claim 16, further comprising determining whether the size of the remaining space of the page to be written exceeds a minimum data size when the first write command is not present in the first submission queue.

### Claim 18 (depends on 17)

The operating method according to claim 17, further comprising waiting for a given time period without fetching a write command from other submission queues than the first submission queue when the size of the remaining space of the page to be written is the minimum data size or less.

### Claim 19 (depends on 18)

The operating method according to claim 18, further comprising controlling the non-volatile memory to store dummy data in the remaining space of the page to be written if the first write command is not present in the first submission queue during the given time period.

### Claim 20 (depends on 17)

The operating method according to claim 17, further comprising:
fetching one or more second write commands from one or more second submission queues other than the first submission queue when the size of the remaining space of the page to be written exceeds the minimum data size; and
controlling the non-volatile memory to store data in the remaining space of the page to be written in response to the second write commands.
