CROSS-REFERENCE TO RELATED APPLICATION

The present application claims priority under 35 U.S.C. § 119(a) to Korean patent application number 10-2019-0178579, filed on Dec. 30, 2019, which is incorporated herein by reference in its entirety.

BACKGROUND

Field of Invention

The present disclosure relates to an electronic device, and more particularly, to a storage device and a method of operating the same.

Description of Related Art

A storage device is a device that stores data under control of a host device such as a computer or a smartphone. A storage device may include a memory device in which data is stored and a memory controller for controlling the memory device. The memory device is divided into a volatile memory device and a non-volatile memory device.

The volatile memory device is a device that stores data only when power is supplied and loses the stored data when the power supply is cut off. The volatile memory device includes a static random access memory (SRAM), a dynamic random access memory (DRAM), and the like.

The non-volatile memory device is a device that does not lose data even though power is cut off. The non-volatile memory devices include a read only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable and programmable ROM (EEPROM), a flash memory, and the like.

SUMMARY

An embodiment of the present disclosure provides a storage device having improved backup performance, and a method of operating the same.

A storage device according to an embodiment of the present disclosure 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.

A method of operating a storage device including a mirroring queue, an original storage area, and a backup storage area includes 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.

According to the present technology, the storage device having improved backup performance, and a method of operating the same are provided.

