KR-20260062691-A - DATA STORAGE DEVICE, DATA STORAGE SYSTEM AND DATA BACKUP METHOD USING THE SAME
Abstract
A data storage device, a data storage system, and a data backup method using the same are disclosed. More specifically, the data storage device may include a first type memory, a second type memory comprising a plurality of sectors which are units for allocating data, and a processor that backs up data written in at least one idle sector among the plurality of sectors to the first type memory.
Inventors
- 이상호
- 김영설
- 이경덕
Assignees
- 삼성전자주식회사
Dates
- Publication Date
- 20260507
- Application Date
- 20241029
Claims (20)
- In a data storage device, Type 1 memory; A second type memory comprising a plurality of sectors, which are units for allocating data; and A data storage device comprising a processor that backs up data written in at least one idle sector among the plurality of sectors to the first type memory.
- In paragraph 1, The above processor is, A data storage device that backs up data written to at least one idle sector to the first type memory based on one or more of the idle count and status values of each of the plurality of sectors.
- In paragraph 2, The above state value is, A data storage device determined based on at least one of the above idle count and whether data is written.
- In paragraph 3, The idle count of each of the above plurality of sectors is, A data storage device in which the unit count increases with every counter cycle.
- In paragraph 3, The above state value is, It includes a first state value corresponding to a state where data is not written to the sector, a second state value corresponding to a state where data is written to the sector, and a third state value corresponding to a state where the data of the sector is backed up to the first type memory, and The state value of the active sector having the above second state value is, A data storage device that is set to the third state value in response to the data of the active sector being backed up to the first type memory.
- In paragraph 5, A data storage device in which the idle count of the target sector is initialized in response to data being written to the target sector having the second state value.
- In paragraph 5, The above idle sector is, A data storage device having a second state value, wherein the idle count is greater than or equal to a threshold value among the sectors having the second state value.
- In paragraph 3, The above processor is, A data storage device that backs up data stored in the idle sector to the first type memory in response to the identification of the idle sector based on one or more of the idle count and the status value.
- In paragraph 5, The above processor is, A data storage device that backs up data written to a sector having the second state value among the plurality of sectors to the first type memory when a total backup event is confirmed.
- In Paragraph 9, The above full backup event is, A data storage device comprising at least one of an NVMe shutdown notification event, a CXL global persistent flush (GPF) event, and a power shutdown event.
- In paragraph 2, The above processor is, Data written to at least one idle sector is backed up sequentially to a plurality of logical addresses of the first type memory, and When a recovery event occurs in the data storage device, the data stored at the plurality of logical addresses is read out in reverse order, and the sector among the plurality of sectors corresponding to the read-out data is recovered, A data storage device in which the state value of the above-mentioned recovered sector is set to a second state value.
- In paragraph 1, The above-mentioned first type memory is a non-volatile memory, and The above second type memory is a data storage device that is a volatile memory.
- In a data backup method using a data storage device, A step of checking one or more of the idle count and status values of each of the multiple sectors stored in the counter module; A step of identifying at least one idle sector among the plurality of sectors; and The method includes the step of backing up data written to at least one idle sector to a first type memory, wherein The above plurality of sectors are, A data backup method, which is a unit in which data is allocated to Type 2 memory.
- In Paragraph 13, The above state value is, A data backup method comprising a first state value corresponding to a state in which data is not written to a sector, a second state value corresponding to a state in which data is written to a sector, and a third state value corresponding to a state in which the data of the sector is backed up to the first type memory.
- In Paragraph 14, The state value of the active sector having the above second state value is, A data backup method in which the data of the active sector is backed up to the first type memory and set to the third state value.
- In Paragraph 14, A data backup method in which the idle count of the target sector is initialized in response to data being written to the target sector having the second state value.
- In Paragraph 14, The above identification step is, A step of checking the idle count of a target sector having the second state value among the plurality of sectors; and A data backup method comprising the step of identifying the target sector as the idle sector when the above-mentioned idle count is greater than or equal to a threshold value.
- In Paragraph 14, The above backup step is, A data backup method comprising the step of backing up data written in a sector having a second state value among the plurality of sectors to the first type memory when a total backup event is confirmed.
- In Paragraph 13, The data written to at least one idle sector is, It is sequentially backed up to a plurality of logical addresses of the first type memory, and The above method is, When a recovery event occurs in the data storage device, a step of reading data stored in the plurality of logical addresses in reverse order; and The method includes the step of recovering a sector corresponding to the read data among the plurality of sectors, wherein A data backup method in which the state value of the recovered sector is set to a second state value.
- In data storage systems, Type 1 memory; A second type memory comprising a plurality of sectors, which are units for allocating data; A host that transmits commands regarding one or more of a data write operation, a data read operation, a full backup operation, and a data recovery operation for the above-mentioned second-type memory; and A backup control unit that backs up data written to at least some of the plurality of sectors to the first type memory based on one or more of the idle count and status values of each of the plurality of sectors, The above state value is, A data storage system determined based on commands regarding one or more of the above data writing operation and the above total backup operation.
Description
Data storage device, data storage system and data backup method using the same The present disclosure relates to a data storage device, a data storage system, and a data backup method using the same. Non-volatile memory (NVM) is a type of memory in which the contents of written data remain even when the power is turned off, allowing for rapid restoration to the most recent state even in the event of sudden power shutdowns. It is used for storing files or processing tasks. In particular, non-volatile memory can be used as persistent secondary storage and can be used to back up data within intermediate storage devices such as volatile memory (e.g., DRAM (dynamic random access memory)). Meanwhile, when the device's power is turned off and data within the intermediate storage device is backed up to the permanent secondary storage device, the backup time increases in proportion to the amount of data in the intermediate storage device. FIG. 1 is a diagram showing an environment for implementing a data backup method according to embodiments of the present disclosure. FIGS. 2 and FIGS. 3 are block diagrams of a data storage device according to embodiments of the present disclosure. FIG. 4 is a diagram of the state values of a sector according to embodiments of the present disclosure. FIG. 5 is a flowchart of a data backup method according to embodiments of the present disclosure. FIGS. 6a to 6g are drawings for explaining the operation performed by a data storage device according to embodiments of the present disclosure. FIG. 7 is a diagram illustrating the operation performed by a data storage system according to embodiments of the present invention. FIG. 8 is a drawing for explaining the operation performed by a data storage device according to embodiments of the present disclosure. FIGS. 9a to 9c are drawings for explaining the operation performed by a data storage device according to embodiments of the present disclosure. FIG. 10 is a drawing for explaining the operation performed by a data storage system according to embodiments of the present disclosure. FIG. 11 is a block diagram of a backup control unit according to embodiments of the present disclosure. The terms used in the embodiments have been selected to be as widely used as possible, taking into account their functions in the present disclosure; however, these may vary depending on the intent of those skilled in the art, case law, the emergence of new technologies, etc. Additionally, in specific cases, terms have been arbitrarily selected by the applicant, and in such cases, their meanings will be described in detail in the relevant explanatory section. Therefore, terms used in the present disclosure should be defined not merely by their names, but based on their meanings and the overall content of the present disclosure. When a part of a specification is described as "comprising" a certain component, this means that, unless specifically stated otherwise, it does not exclude other components but may include additional components. Furthermore, terms such as "...part" or "...module" as used in the specification refer to a unit that processes at least one function or operation, and this may be implemented in hardware or software, or as a combination of hardware and software. Embodiments of the present disclosure are described below with reference to the attached drawings so that those skilled in the art can easily implement them. However, the present disclosure may be embodied in various different forms and is not limited to the embodiments described herein. Embodiments of the present disclosure will be described in detail below with reference to the drawings. FIG. 1 is a diagram showing an environment for implementing a data backup method according to embodiments of the present disclosure. Referring to FIG. 1, an environment for implementing a data backup method according to embodiments may include a data storage device (hereinafter referred to as 'device') (1) and a host (2). An example of the implementation of the device (1) may be applied to a large-capacity storage device such as a hard disk drive, an SSD (solid state disk), or a flash memory. Additionally, the host (2) may be a physical or logical part of the device (1), or may be a device existing outside the device (11) (e.g., a computing device, etc.). According to one embodiment, the device (1) can perform an operation corresponding to a command (CMD) of the host (2) while performing data communication with the host (2). According to one embodiment, the host (2) can transmit a command (CMD) regarding one or more of a data write operation, a data read operation, a full backup operation, and a data recovery operation to the device (1). That is, the device (1) can receive a command (CMD) regarding one or more of a data write operation, a data read operation, a full backup operation, and a data recovery operation from the host (2). For example, when the device (1) receives a command (CMD) regarding