# US 2021/0200647 A1 · Storage device and method of operating the same

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

- Number: US 2021/0200647 A1
- Document ID: US20210200647A1
- Status: Published application
- Kind: A1
- Application number: 16/898,056
- Filed: 2020-06-10
- Published: 2021-07-01
- Earliest claimed: 2019-12-30
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Hyeong Jae CHOI
- Web page: https://patentgrep.com/patent/US20210200647A1

## CPC

- G06F 11/1469: {Backup restoration techniques}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0644: {Management of space entities, e.g. partitions, extents, pools}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 11/1451: {by selection of backup contents}
- G06F 11/1461: {Backup scheduling policy}
- G06F 11/2056: {by mirroring}
- G06F 11/2087: {with a common controller}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- 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 technology relates to an electronic device. A memory device having improved backup performance according to the present technology includes a memory device including a plurality of logical storage areas, and a memory controller. The memory controller controls the memory device to perform a memory operation on an original storage area of the plurality of logical storage areas according to a request of a host, and to perform a mirroring operation of copying the memory operation which was performed on the original storage area in a backup storage area of the plurality of logical storage areas based on whether the memory device is in an idle state.

## Claims

### Claim 1

A storage device comprising:
a memory device including a plurality of logical storage areas; and
a memory controller configured to control the memory device to perform a memory operation on an original storage area of the plurality of logical storage areas according to a request of a host, and to perform a mirroring operation of copying the memory operation which was performed on the original storage area in a backup storage area of the plurality of logical storage areas based on whether the memory device is in an idle state.

### Claim 2 (depends on 1)

The storage device of claim 1, wherein the memory controller sets the original storage area and the backup storage area, in response to a logical area setting command received from the host.

### Claim 3 (depends on 1)

The storage device of claim 1, wherein the memory controller comprises:
a map manager configured to store an original mapping table corresponding to the original storage area and a backup mapping table corresponding to the backup storage area, and generate map update information in response to the original mapping table being updated; and
a mirroring controller configured to determine whether the memory operation is performed on the original storage area based on the map update information, and control the memory device to perform the mirroring operation based on whether the memory device is in the idle state.

### Claim 4 (depends on 3)

The storage device of claim 3, wherein the mirroring controller comprises:
an idle sensor configured to sense whether the memory device is in the idle state to generate idle information;
a mirroring processor configured to generate at least one mirroring command for the mirroring operation based on the map update information; and
a mirroring queue configured to store the at least one mirroring command.

### Claim 5 (depends on 4)

The storage device of claim 4, wherein the mirroring processor controls the mirroring queue to provide the at least one mirroring command to the memory device based on the idle information.

### Claim 6 (depends on 3)

The storage device of claim 3, wherein the mirroring controller controls the memory device to perform the mirroring operation on a target area of the backup storage area, the target area corresponding to a source area on which the memory operation is performed in the original storage area.

### Claim 7 (depends on 6)

The storage device of claim 6, wherein the map manager updates the original mapping table according to the memory operation, and updates the backup mapping table according to the updated original mapping table or the mirroring operation.

### Claim 8 (depends on 7)

The storage device of claim 7, wherein after the memory operation, the map manager maps a source logical address provided by the host to a source physical address indicating the source area, and maps a target logical address corresponding to the source logical address to the source physical address.

### Claim 9 (depends on 8)

The storage device of claim 8, wherein after the mirroring operation, the map manager maps the target logical address to a target physical address indicating the target area.

### Claim 10 (depends on 6)

The storage device of claim 6, wherein the memory operation is a program operation, and the mirroring operation includes an operation of programming the same data as data stored in the source area on which the program operation is performed, to the target area.

### Claim 11 (depends on 6)

The storage device of claim 6, wherein the memory operation is an erase operation, and the mirroring operation includes an operation of erasing the target area corresponding to the source area on which the erase operation is performed.

### Claim 12 (depends on 1)

The storage device of claim 1, wherein the memory controller includes an operation controller configured to control the memory device to perform the memory operation in response to the request of the host,
wherein the operation controller comprises:
a command queue configured to store at least one operation command for the memory operation; and
an operation processor configured to generate the at least one operation command in response to the request of the host, and control the command queue to provide the at least one operation command to the memory device.

### Claim 13

A method of operating a storage device including a mirroring queue, an original storage area, and a backup storage area, the method comprising:
queuing, in the mirroring queue, at least one mirroring command for a mirroring operation of copying a memory operation which was performed on the original storage area in the backup storage area; and
performing the mirroring operation according to the queued mirroring command based on whether the storage device is in an idle state.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
setting the original storage area and the backup storage area used for mirroring the original storage area, in response to a logical area setting command received from a host.

### Claim 15 (depends on 13)

The method of claim 13, further comprising:
performing, before the queuing of the at least one mirroring command, the memory operation on the original storage area in response to a request of a host,
wherein the memory operation is a program operation or an erase operation.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
updating, before the queuing of the at least one mirroring command, an original mapping table corresponding to the original storage area and a backup mapping table corresponding to the backup storage area according to the memory operation.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
updating, after the performing of the mirroring operation, the backup mapping table.

### Claim 18 (depends on 16)

The method of claim 16, wherein the queuing of the at least one mirroring command comprises:
determining whether the memory operation is performed in response to the original mapping table being updated; and
queuing the at least one mirroring command in the mirroring queue in response to the memory operation being performed.

### Claim 19 (depends on 15)

The method of claim 15, wherein the performing of the mirroring operation comprises:
determining whether the storage device is in the idle state; and
performing the mirroring operation according to the queued command in response to the storage device being in the idle state.

### Claim 20

A method of operating a storage device including a memory controller and a memory device, the method comprising:
performing a memory operation on an original storage area included in the memory device;
updating an original mapping table corresponding to the original storage area and a backup mapping table corresponding to a backup storage area included in the memory device;
queueing, in a mirroring queue included in the memory controller, a mirroring command for a mirroring operation when the memory operation is determined to be performed;
performing the mirroring operation of copying the memory operation which was performed on the original storage area, in the backup storage area when the storage device is determined to be in an idle state; and
updating the backup mapping table to map a logical address of a target storage area included in the backup storage area to a physical address of the target storage area on which the mirroring operation is performed.
