KR-20260062470-A - ELECTRONIC DEVICE PROVIDING DATA BACK-UP OPERATION, METHOD OF OPERATING THE SAME, AND METHOD OF OPERTING ELECTRONIC SYSTEM HAVING THE SAME
Abstract
According to one embodiment of the present disclosure, an electronic device comprises a device controller, a volatile memory device, a non-volatile memory device, and a recovery device. A method of operating the electronic device comprises the steps of: backing up a copy of user data stored in the volatile memory device to the non-volatile memory device based on health information of the volatile memory device by the recovery device; providing a read request for at least a portion of user data to the volatile memory device by the device controller; performing an error verification operation based on the read request by the volatile memory device; storing a first metadata indicating that an uncorrectable error has occurred based on the result of the error verification operation by the volatile memory device; restoring user data to a copy data based on the result of monitoring the first metadata of the volatile memory device by the recovery device; and providing at least a portion of user data to the device controller by the volatile memory device.
Inventors
- 이상호
- 김영설
- 이경덕
Assignees
- 삼성전자주식회사
Dates
- Publication Date
- 20260507
- Application Date
- 20241029
Claims (10)
- A method of operating an electronic device comprising a device controller, a volatile memory device, a non-volatile memory device, and a recovery device, A step of backing up a copy of user data stored in the volatile memory device to the non-volatile memory device based on health information of the volatile memory device by the recovery device; A step of providing a request to read at least a portion of the user data to the volatile memory device by the above device controller; A step of performing an error verification operation based on the read request by the above volatile memory device; A step of storing, by the above-described volatile memory device, first metadata indicating that an uncorrectable error has occurred based on the result of the error verification operation; A step of restoring the user data to the copy data based on the result of monitoring the first metadata of the volatile memory device by the recovery device; and A method comprising the step of providing at least a portion of the user data to the device controller by the above volatile memory device.
- In Article 1, The step of backing up the copy data to the non-volatile memory device based on the health information by the recovery device is: A step of loading the health information stored in the non-volatile memory device by the recovery device; A step of determining, by the recovery device, that a first region among a plurality of regions of the volatile memory device in which user data is stored is in a first state based on the health information, wherein the first state indicates a state requiring a backup operation; and A method comprising the step of backing up the copy data to the non-volatile memory device based on the health information by the recovery device.
- In Article 1, The step of backing up the copy data to the volatile memory device based on the health information by the recovery device is: A step of providing a backup request for the user data to the volatile memory device based on the health information by the recovery device; A step of generating a copy of the user data by the above volatile memory device; The step of providing the copy data to the non-volatile memory device by the volatile memory device; and A method comprising the step of storing the copy data in a first storage space within the non-volatile memory device by the non-volatile memory device.
- In Paragraph 3, The above volatile memory device further includes a backup table and a mapping table, and A method comprising the step of storing the copy data by the above-described non-volatile memory device: The step of providing the address of the first storage space to the recovery device by the above-mentioned non-volatile memory device, A step of updating the backup table to have the copy data backed up by the recovery device, and A method further comprising the step of updating the mapping table based on the address by the recovery device that the copy data stored in the first storage space is stored therein.
- In Article 1, The above volatile memory device further includes a backup table and a mapping table, and, The step of restoring the user data to the copy data based on the result of monitoring the first metadata by the recovery device is: A step of determining whether the copy data has been backed up based on the backup table by the recovery device; A step of determining, by the recovery device, which storage space of the non-volatile memory device the copy data is stored in based on the mapping table; and A method comprising the step of restoring the user data to the copy data by the recovery device.
- In Article 1, The step of performing the error verification operation based on the read request by the above volatile memory device is: A step of storing, by the above-described volatile memory device, second metadata indicating that a correctable error has occurred based on the result of the error verification operation; A step of performing an error correction operation of the correctable error by the above-described volatile memory device; and A method further comprising the step of providing at least a portion of the user data to the device controller by the above volatile memory device.
- In Article 6, A method comprising the step of storing the second metadata indicating that the correctable error has occurred based on the result of the error verification operation by the volatile memory device, and further including the step of updating the health information based on the second metadata by the recovery device.
- In Article 6, The step of storing second metadata indicating that the correctable error has occurred based on the result of the error verification operation by the above-described volatile memory device is: A step of determining, by the recovery device, that a first region among a plurality of regions of the volatile memory device in which user data is stored is in a second state based on the second metadata and the health information, wherein the second state indicates a state in which the reliability of the stored data is less than a threshold reliability; and A method further comprising the step of providing an event signal to the device controller based on the determination by the recovery device that the first region is the second state.
- In Article 1, A method in which the above health information includes error information or temperature information of the above volatile memory device.
- In an electronic device comprising a device controller, a volatile memory device, a non-volatile memory device, and a recovery device, A recovery device that backs up a copy of user data stored in the volatile memory device to the non-volatile memory device based on health information of the volatile memory device; A device controller that provides a read request for at least a portion of the user data to the volatile memory device; A volatile memory device that performs an error verification operation based on the above read request and stores metadata indicating that an uncorrectable error has occurred based on the result of the above error verification operation; and A non-volatile memory device for storing the above-mentioned copy data, comprising: The recovery device restores the user data to the copy data based on the result of monitoring the metadata of the volatile memory device, and The above volatile memory device is an electronic device that provides the above at least a portion of the user data to the device controller.
Description
ELECTRONIC DEVICE PROVIDING DATA BACK-UP OPERATION, METHOD OF OPERATING THE SAME, AND METHOD OF OPERTING ELECTRONIC SYSTEM HAVING THE SAME The present disclosure relates to an electronic device, and more specifically, to an electronic device that provides a data backup operation, a method of operating the same, and a method of operating an electronic system including the same. Memory devices store data upon write requests and output stored data upon read requests. For example, memory devices are classified into volatile memory devices, such as DRAM (Dynamic Random Access Memory) and SRAM (Static RAM), where stored data is lost when the power supply is cut off, and non-volatile memory devices, such as flash memory, PRAM (Phase-change RAM), MRAM (Magnetic RAM), and RRAM (Resistive RAM), which retain stored data even when the power supply is cut off. Non-volatile memory devices can be used as storage devices for storing large amounts of data. Volatile memory devices can support data read and write operations. Volatile memory devices can store data and provide the stored data to the host device in response to a read command from the host device. Errors may occur in the data stored in the volatile memory device. If errors exist in the data provided from the volatile memory device to the host device, critical system problems may occur. Therefore, the integrity of the data provided from the volatile memory device to the host device may be required. FIG. 1 is a block diagram of an electronic system according to an embodiment of the present disclosure. FIG. 2 is a block diagram of an electronic device according to an embodiment of the present disclosure. FIG. 3 is a flowchart illustrating a method of operation of an electronic device according to embodiments of the present disclosure. FIG. 4 is a flowchart illustrating a method of operation of an electronic device according to some embodiments of the present disclosure. FIG. 5 is a block diagram illustrating the backup and restore operations of an electronic device according to some embodiments of the present disclosure. FIG. 6 is a drawing illustrating a method of operation of a recovery device according to some embodiments of the present disclosure. FIG. 7 is a drawing illustrating an electronic device according to some embodiments of the present disclosure. FIG. 8 is a drawing illustrating an electronic device according to some embodiments of the present disclosure. FIG. 9 is a flowchart illustrating a method of operation of a recovery device according to some embodiments of the present disclosure. FIG. 10 is a flowchart illustrating a method of operation of an electronic device according to some embodiments of the present disclosure. In the following, embodiments of the present disclosure will be described clearly and in detail so that a person skilled in the art can easily practice the embodiments of the present disclosure. FIG. 1 is a block diagram of an electronic system according to an embodiment of the present disclosure. Referring to FIG. 1, the electronic system (1000) may include a host device (1100) and an electronic device (1200). In some embodiments, the electronic system (1000) may be a computing system configured to process or store various information. For example, the electronic system (1000) may be included in user devices such as a personal computer, a laptop computer, a server, a media player, a digital camera, etc., or in automotive devices such as navigation, a black box, an automotive electronic device, etc. Alternatively, the electronic system (1000) may be a mobile system such as a mobile phone, a smartphone, a tablet personal computer, a wearable device, a healthcare device, or an Internet of Things (IoT) device. The host device (1100) can control the overall operation of the electronic system (1000). In some embodiments, the host device (1100) may be one of various processors such as a CPU (central processing unit), GPU (Graphics Processing Unit), NPU (Neural Processing Unit), DPU (Data Processing Unit), etc. In some embodiments, the host device (1100) may include a single-core processor or a multi-core processor. The host device (1100) can store data in the electronic device (1200) or read stored data. The host device (1100) can provide a write command to the electronic device (1200) to store data in the electronic device (1200), or provide a read command to the electronic device (1200) to read data stored in the electronic device (1200). The electronic device (1200) may be used as the main memory or system memory of the electronic system (1000). The electronic device (1200) may include a device controller (1210), a volatile memory device (1220), a non-volatile memory device (1230), and a recovery device (1240). The device controller (1210), volatile memory device (1220), non-volatile memory device (1230), and recovery device (1240) may be configured to share the same interface with each other. For example, the device controller (1210),