Storage device and control method thereof
By setting up easily and non -prone memory storage in the storage device, and using the spare power supply to complete the data backup when powering, the existing storage equipment is to prevent abnormal power consumption and the increase in land area increase. Realize the reliability of data and the speed of backup speed.
Patent Information
- Application Number
- CN202411896382.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-01-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When preventing abnormal power outages, existing storage devices need to use uninterruptible power supply (USP), resulting in increased power consumption and footprint, and long data backup time and poor user experience.
Design a storage device, including easy loss of memory, non -volatile memory, controller and backup power supply. When writing the data, the data is synchronized to write the data into a non -easy -to -miss memory, and when the power loss is detected, the power supply is shifted to ensure that the data that has not been backup has been written into non -volatile memory.
Effectively ensure the reliability of storing data, avoid data loss, and do not need to increase power consumption and occupy the area. It takes into account the speed of data backup after power loss, and reduces the hardware requirements for spare power supply, saving costs.
Smart Images

Figure CN119376643A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to a storage device and a control method thereof. Background Art
[0002] With the development of electronic technology, the application of various electronic products is becoming more and more extensive, and the data storage reliability of products significantly affects the user experience.
[0003] In order to reduce the impact of abnormal power failure on data reliability, the current method is to add an uninterruptible power supply (USP) to the entire system to avoid abnormal power failure as much as possible. However, USP will increase the power consumption and floor space of the computer room, and the data backup time is longer, which leads to poor user experience. Summary of the invention
[0004] In view of the above problems, the present invention is proposed to provide a storage device and a control method thereof that overcomes the above problems or at least partially solves the above problems.
[0005] In a first aspect, a storage device is provided, comprising: A volatile memory, a non-volatile memory, a controller and a backup power supply; the controller is connected to the volatile memory, and the controller is connected to the non-volatile memory; after receiving a request to write data to be written, the storage device writes the data to be written into the volatile memory, and writes the data to be written into the non-volatile memory for backup; The controller is connected to the backup power supply so that when it is detected that the storage device loses power, the controller switches the backup power supply to supply power to the storage device and controls the writing of the data in the volatile memory that has not yet been backed up into the non-volatile memory.
[0006] Optionally, the controller includes: a marking module connected to the volatile memory, for marking the status of the data to be written to the volatile memory to indicate that the data is not backed up when the data to be written to the volatile memory is written, and after determining that the data to be written to the non-volatile memory is written to the non-volatile memory, modifying the status mark of the data to be written in the volatile memory to indicate that the data is backed up.
[0007] Optionally, the controller includes: a first backup module, configured to control writing of all data marked as not backed up in the volatile memory into the non-volatile memory after detecting that the storage device loses power.
[0008] Optionally, the storage device also includes: a converter, wherein the input end of the converter is connected to the main power supply and the backup power supply, the output end of the converter is connected to the power supply module of the storage device, and the control end of the converter is connected to the controller; wherein, when it is detected that the storage device loses power, the controller switches the input end of the converter to be connected to the backup power supply so as to power the storage device through the backup power supply.
[0009] Optionally, the controller includes: a recovery module, configured to restore the data in the volatile memory based on the data stored in the non-volatile memory when it is detected that the storage device resumes supplying main power.
[0010] Optionally, the storage device also includes: a bus interface, which is used to communicate with a main control component; the bus interface is connected to the volatile memory, and the volatile memory obtains the data to be written sent by the main control component through the bus interface, and writes the data to be written to the non-volatile memory through the controller backup.
[0011] Optionally, the controller includes: a second backup module, which is connected to the bus interface so that when receiving a flush signal sent by the bus interface, it starts writing all the data in the volatile memory that has not yet been backed up into the non-volatile memory; wherein the flush signal carries a signal that a main power failure is detected.
[0012] Optionally, the storage device further includes: a charging module, connected to the backup power supply, and configured to charge the backup power supply after the storage device resumes power supply from the main power supply.
[0013] In a second aspect, a method for controlling a storage device is provided, which is applied to any storage device described in the first aspect, and the method includes: In response to a received request to write data to be written, write the data to be written into the volatile memory, and write the data to be written into the non-volatile memory for backup; When it is detected that the storage device loses power, the backup power supply is switched to supply power to the storage device, and the data in the volatile memory that has not yet been backed up is controlled to be written into the non-volatile memory.
[0014] Optionally, the writing of the data to be written into the volatile memory includes: writing the data to be written into the volatile memory, and marking the status of the data to be written to indicate that it has not been backed up; after the writing of the data to be written into the non-volatile memory for backup, it also includes: modifying the status mark of the data to be written in the volatile memory to indicate that it has been backed up; the controlling writing of the data in the volatile memory that has not yet been backed up into the non-volatile memory includes: controlling writing all the data marked as not backed up in the volatile memory into the non-volatile memory.
[0015] Optionally, after the control writes all the data in the volatile memory that has not yet been backed up into the non-volatile memory, it also includes: when it is detected that the storage device resumes main power supply, restoring the data in the volatile memory according to the data stored in the non-volatile memory.
[0016] The technical solution provided in the embodiments of the present invention has at least the following technical effects or advantages: The storage device and control method thereof provided by the embodiment of the present invention, on the one hand, sets a volatile memory and a non-volatile memory in the storage device, and when writing the required data to the volatile memory, the non-volatile memory is synchronously written for backup. On the other hand, a backup power supply is also provided, because the data to be written has been backed up in the non-volatile memory when it is written, so when an abnormal power failure occurs, even if a small part of the data has not been backed up in time due to the slower writing speed of the non-volatile memory than the volatile memory, the backup power supply can be used to quickly write all the data that has not been backed up into the non-volatile memory, that is, effectively ensure the reliability of the stored data, without increasing power consumption and floor space, and taking into account the speed of data backup after power failure. Furthermore, since only a small amount of remaining data is backed up after power failure, it is only necessary to provide a shorter backup power supply duration, which reduces the hardware requirements for the backup power supply and saves costs.
[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings: Figure 1 The structure of the storage device in the embodiment of the present invention is shown in FIG. Figure 1 ; Figure 2 The structure of the storage device in the embodiment of the present invention is shown in FIG. Figure 2 ; Figure 3 The figure is a flow chart of a method for controlling a storage device in an embodiment of the present invention. DETAILED DESCRIPTION
[0019] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to be able to fully convey the scope of the present disclosure to those skilled in the art. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0020] Various structural schematic diagrams according to embodiments of the present disclosure are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may further design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0021] See also Figure 1 The present application provides a storage device, including: a volatile memory 1, a non-volatile memory 2, a controller 3 and a backup power supply 4. The controller 3 is connected to the volatile memory 1, and the controller 3 is connected to the non-volatile memory 2. After receiving a request to write the data to be written, the storage device writes the data to be written into the volatile memory 1, and writes the data to be written into the non-volatile memory 2 for backup. Among them, the controller 3 is connected to the backup power supply 4, so that when it is detected that the storage device loses power, the backup power supply 4 is switched to power the storage device, and the data in the volatile memory 1 that has not yet been backed up is controlled to be written into the non-volatile memory 2.
[0022] It should be noted that the storage device can be a device with storage function such as a solid-state hard disk or a memory stick. For example, the storage device can be a non-volatile dual in-line memory module (NVDIMM); the volatile memory 1 can be a static memory SRAM, a synchronous dynamic random access memory SDRAM or a display data random access memory DDRAM, etc.; the non-volatile memory 2 can be a flash memory Flash, a magnetic random access memory MRAM, a variable resistance random access memory ReRAM, a ferroelectric memory FRAM or a phase change memory PCM, etc.; the backup power supply 4 can be a multi-channel power supply of the mainboard, a built-in power supply of the device, an external power supply of the device, etc.; the number of the backup power supplies 4 can be one or more, which is not limited here and will not be listed one by one.
[0023] Specifically, the storage device is provided with both volatile memory 1 and non-volatile memory 2, which can effectively improve the efficiency of data backup in non-volatile memory 2. Compared with storing data through an interface to connect to an external non-volatile memory 2, the delay of reading and writing data is greatly affected due to the increase of interface conversion. In addition, after receiving a request to write the data to be written (the data to be written is the data that needs to be written to the storage device), not only the data to be written is written to the volatile memory 1, but also the data to be written is synchronously written to the non-volatile memory 2 for backup. This can maximize the guarantee that when an emergency such as an abnormal power failure occurs, as much data as possible can be retained in the non-volatile memory 2 to avoid loss.
[0024] Furthermore, considering that even if writing is performed synchronously, the speed at which data is written to the volatile memory 1 is often faster than the speed at which data is written to the non-volatile memory 2. When a power outage occurs suddenly, some of the data written to the volatile memory 1 will not be completely written to the non-volatile memory 2. Therefore, a backup power supply 4 is also provided. When a power outage is detected in the storage device, the backup power supply 4 is switched to power the storage device, and during the power supply phase of the backup power supply 4, all the data in the volatile memory 1 that has not yet been backed up are written to the non-volatile memory 2 for backup, thereby effectively ensuring the reliability of the stored data. In addition, since only a small amount of remaining data is backed up after a power outage, only a shorter backup power supply duration is required, which reduces the hardware requirements for the backup power supply, and takes into account cost savings while ensuring data integrity.
[0025] In an optional embodiment, the controller 3 may include: a marking module connected to the volatile memory 1, for marking the state of the data to be written as not backed up when the data to be written is written into the volatile memory 1, and after determining that the data to be written is written into the non-volatile memory 2, modifying the state mark of the data to be written in the volatile memory 1 to mark it as backed up. In this way, it is possible to clearly know whether the data in the volatile memory 1 is backed up, which can avoid the consumption of time resources due to repeated backups and avoid data loss due to missed backups.
[0026] For example, when writing the data to be written into the volatile memory 1, the marking module adds a status bit to the data, marking it as dirty, indicating that it has not been backed up. Synchronously, the controller 3 writes the data into the non-volatile memory 2. When the writing operation is completed, the marking module of the controller 3 modifies the status to clean, indicating that the data has been backed up.
[0027] In an optional embodiment, the controller 3 may further include: a first backup module, which is used to control the writing of all data marked as not backed up in the volatile memory 1 into the non-volatile memory 2 after detecting that the storage device loses power. Since the marking module has already marked the status of the data in the volatile memory 1 in the previous data writing process, the first backup module can accurately identify which data has not been backed up, so after power failure, it can quickly back up all the remaining small amount of unbacked up data to the non-volatile memory 2 based on the status mark, which ensures the complete backup of the data, improves the efficiency of the backup after power failure, and reduces the capacity and power supply duration requirements of the backup power supply 4.
[0028] For example, if the status is marked as dirty, it means that the data has not been backed up. If the status is marked as clean, it means that the data has been backed up. After the storage device loses power, the controller 3 switches to the backup power supply, and the backup module backs up the data marked as dirty from the volatile memory 1 to the non-volatile memory 2, completing the backup of all data.
[0029] See also Figure 2 In an optional implementation, the storage device may further include: a converter 202, the input end of the converter 202 is respectively connected to the main power supply 201 and the backup power supply 4 (one of which is turned on), the output end of the converter 202 is connected to the power supply module of the storage device (including the controller 3, the volatile memory 1 and the non-volatile memory 2, etc.), and the control end of the converter 202 is connected to the controller 3. In the normal working state, the input end of the converter 202 is turned on to the main power supply 201 to supply power to the storage device through the main power supply 201. When the storage device is detected to be powered off, the controller 3 controls the input end of the switching converter 202 to be turned on to the backup power supply 4 to supply power to the storage device through the backup power supply 4.
[0030] See also Figure 2 In an optional implementation, the storage device may further include: a bus interface 5, which is used to communicate with a main control component (CPU or mainboard, etc.). The bus interface 5 is connected to the volatile memory 1, and the volatile memory 1 obtains the data to be written sent by the main control component through the bus interface 5, and writes the data to be written to the non-volatile memory 2 through the controller 3.
[0031] In an optional implementation, the bus interface 5 may be an open industry standard interconnect (Compute ExpressLink, CXL) interface module, which can be used to connect processors, accelerators, memory buffers, intelligent network interfaces, and storage devices, etc. The bus interface 5 may be used to communicate with the main control component, monitor power-off information, and monitor communication with the main control component.
[0032] In an optional embodiment, the controller may further include a second backup module (the second backup module may be the same module as the first backup module or may be a different module, which is not limited here), and the second backup module is connected to the bus interface 5, so as to start writing all the data that has not been backed up in the volatile memory 1 into the non-volatile memory 2 when receiving the flush signal sent by the bus interface. The flush signal carries a signal that the main power failure is detected.
[0033] Specifically, when an abnormal power failure occurs, the controller 3 will be triggered to switch the backup power supply 4 to power the storage device, and the main control component connected to the storage device will be triggered to flush the cache data in its caches at all levels into the volatile memory 1 in the storage device to prevent data loss. After the cache data in the main control component is flushed into the volatile memory 1, a flush signal will be generated, and the flush signal will be transmitted to the controller 3 through the bus interface 5. When the second backup module receives the flush signal, it will start to write all the data in the volatile memory 1 that has not been backed up to the non-volatile memory 2. In this way, after the cache data in the main control component is flushed into the volatile memory 1, it will start to write all the data in the volatile memory 1 that has not been backed up to the non-volatile memory 2, which can ensure the integrity of the cache data at all levels in the main control component and the storage device and avoid data loss due to abnormal power failure.
[0034] In an optional implementation, the controller 3 may further include: a recovery module, configured to restore the data in the volatile memory 1 according to the data stored in the non-volatile memory 2 when it is detected that the storage device resumes supplying the main power.
[0035] Specifically, after the main power supply or external power supply is normal, the power supply to the storage device will be restored, and the storage device will be powered on again. During the startup phase, the recovery module can write the data in the non-volatile memory 2 to the volatile memory 1 for data recovery. Among them, the specific data recovery method can be to write all the data in the non-volatile memory 2 to the volatile memory 1, or to write the latest stored part of the data in the non-volatile memory 2 (the latest stored preset size data, or the latest stored preset storage time period data) to the volatile memory 1, or to write some preset types of data in the non-volatile memory 2 to the volatile memory 1, which is not limited here and will not be listed one by one.
[0036] In an optional embodiment, the storage device may also include: a charging module, connected to the backup power supply 4, for charging the backup power supply 4 after the storage device restores the main power supply, so as to restore the power stored in the backup power supply 4 and prepare for the subsequent abnormal power outage.
[0037] Combine the following Figure 2 , an example is given to illustrate the storage device provided by this application and its working principle: The controller 3 of the storage device may include three functional modules: a power control functional module 31 (such as the aforementioned charging module, and a module for implementing backup power switching), a storage management functional module 32 (such as the aforementioned marking module, the first backup module, the second backup module and the recovery module), and an interface management functional module 33 (such as a module for monitoring power failure and a module for obtaining a flush signal).
[0038] Under normal conditions, the storage device is powered by the main power supply 201 (the stage marked by serial number a). When a power outage is detected, the controller 3 switches the backup power supply 4 to power the storage device through the converter 202 (the stage marked by serial number b). The power outage also triggers the main control component connected to the storage device to flush the cache data in its caches at all levels into the volatile memory 1 in the storage device, and generates a flush signal after the cache data is flushed into the volatile memory 1. The flush signal is transmitted to the controller 3 through the bus interface 5 (the stage marked by serial number c). After receiving the flush signal, the controller 3 starts to write all the data in the volatile memory 1 that has not been backed up to the non-volatile memory 2 to ensure the integrity of the data (the stage marked by serial number d). After the main power supply 201 is normal, the power supply to the storage device will be restored. In the startup stage, the controller 3 writes the data in the non-volatile memory 2 to the volatile memory 1 for data recovery (the stage marked by serial number e).
[0039] Through the above process, the integrity of data can be effectively guaranteed in the event of abnormal power failure, and the efficiency of data backup can also be guaranteed.
[0040] Based on the same inventive concept, an embodiment of the present invention further provides a control method for a storage device, which is applied to the aforementioned storage device, such as Figure 3 As shown, the method includes: Step S301, in response to a received request to write data to be written, writing the data to be written into the volatile memory, and writing the data to be written into the non-volatile memory for backup; Step S302, when it is detected that the storage device loses power, the backup power supply is switched to supply power to the storage device, and the data in the volatile memory that has not yet been backed up is controlled to be written into the non-volatile memory.
[0041] In an optional implementation, step S302 also includes: when switching the backup power supply to supply power to the storage device, after the main control device refreshes the cache data at all levels to the volatile memory, the data in the volatile memory that has not yet been backed up is controlled to be written into the non-volatile memory. Alternatively, when a flush signal is received, the writing of all the data in the volatile memory that has not yet been backed up into the non-volatile memory is started, wherein the flush signal carries a signal that the main power failure is detected, indicating that the cache data at all levels of the main control component has been flushed into the volatile memory.
[0042] In an optional embodiment, the step of writing the data to be written into the volatile memory includes: writing the data to be written into the volatile memory, and marking the data to be written as not backed up. After the step of writing the data to be written into the non-volatile memory for backup, the step further includes: modifying the status mark of the data to be written in the volatile memory to indicate that it has been backed up. The step of controlling the writing of the data in the volatile memory that has not yet been backed up into the non-volatile memory includes: controlling the writing of all the data in the volatile memory that is marked as not backed up into the non-volatile memory.
[0043] In an optional embodiment, after the control writes all the data in the volatile memory that has not yet been backed up into the non-volatile memory, it also includes: when it is detected that the storage device resumes main power supply, restoring the data in the volatile memory according to the data stored in the non-volatile memory.
[0044] Since the control method of the storage device introduced in the embodiment of the present invention is the control method corresponding to the storage device introduced in the embodiment of the present invention, the principle and structure of the storage device have been described in detail, so it is not repeated here. All control methods corresponding to the storage device of the embodiment of the present invention belong to the scope of protection of the present invention.
[0045] The technical solution provided in the embodiments of the present invention has at least the following technical effects or advantages: The storage device and control method thereof provided by the embodiment of the present invention, on the one hand, sets a volatile memory and a non-volatile memory in the storage device, and when writing the required data to the volatile memory, the non-volatile memory is synchronously written for backup. On the other hand, a backup power supply is also provided, because the data to be written has been backed up in the non-volatile memory when it is written, so when an abnormal power failure occurs, even if a small part of the data has not been backed up in time due to the slower writing speed of the non-volatile memory than the volatile memory, the backup power supply can be used to quickly write all the data that has not been backed up into the non-volatile memory, that is, effectively ensure the reliability of the stored data, without increasing power consumption and floor space, and taking into account the speed of data backup after power failure. Furthermore, since only a small amount of remaining data is backed up after power failure, it is only necessary to provide a shorter backup power supply duration, which reduces the hardware requirements for the backup power supply and saves costs.
[0046] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0047] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0048] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof.
[0049] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. All features disclosed in this specification (including the abstract and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying abstract and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0050] Furthermore, those skilled in the art will appreciate that although some embodiments herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.
[0051] It should be noted that the above embodiments illustrate the present invention rather than limiting it. Any reference symbol between brackets should not be constructed as a limitation of the present invention. The word "comprising" does not exclude the presence of components or steps not listed in the present invention. The word "one" or "an" preceding a component does not exclude the presence of multiple such components. The present invention can be implemented by means of hardware including several different components and by means of appropriately programmed computers. In the embodiments in which several devices are listed, several of these devices can be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
Claims
1. A storage device, characterized in that: include: Volatile memory, non-volatile memory, controller and backup power supply; The controller is connected to the volatile memory, and the controller is connected to the non-volatile memory; After receiving the request to write the data to be written, the storage device writes the data to be written into the volatile memory, and writes the data to be written into the non-volatile memory for backup; The controller is connected to the backup power supply so that when it is detected that the storage device loses power, the controller switches the backup power supply to supply power to the storage device and controls the writing of the data in the volatile memory that has not yet been backed up into the non-volatile memory.
2. The storage device according to claim 1, wherein: The controller comprises: A marking module is connected to the volatile memory and is used to mark the status of the data to be written to indicate that it has not been backed up when the data to be written is written to the volatile memory, and to modify the status mark of the data to be written in the volatile memory to indicate that it has been backed up after the data to be written is written to the non-volatile memory.
3. The storage device according to claim 2, wherein: The controller comprises: The first backup module is used to control writing all the data marked as not backed up in the volatile memory into the non-volatile memory after detecting that the storage device is powered off.
4. The storage device according to claim 1, wherein: Also includes: A converter, wherein an input end of the converter is connected to a main power supply and the backup power supply, an output end of the converter is connected to a power supply module of the storage device, and a control end of the converter is connected to the controller; When it is detected that the storage device loses power, the controller switches the input end of the converter to be connected to the backup power supply, so as to supply power to the storage device through the backup power supply.
5. The storage device according to claim 1, wherein: Also includes: A bus interface, the bus interface is used to communicate with the main control component; The bus interface is connected to the volatile memory, and the volatile memory obtains the data to be written sent by the main control component through the bus interface, and writes the data to be written into the non-volatile memory through the controller for backup.
6. The storage device according to claim 5, characterized in that: The controller comprises: A second backup module, wherein the second backup module is connected to the bus interface so as to start writing all the data in the volatile memory that has not yet been backed up into the non-volatile memory when receiving a flush signal sent by the bus interface; wherein the flush signal carries a signal indicating that a main power failure has been detected.
7. The storage device according to claim 1, wherein: Also includes: A charging module is connected to the backup power supply and is used to charge the backup power supply after the storage device resumes supplying power from the main power supply.
8. A method for controlling a storage device, characterized in that: Applied to the storage device according to any one of claims 1 to 7, the method comprising: In response to a received request to write data to be written, write the data to be written into the volatile memory, and write the data to be written into the non-volatile memory for backup; When it is detected that the storage device loses power, the backup power supply is switched to supply power to the storage device, and the data in the volatile memory that has not yet been backed up is controlled to be written into the non-volatile memory.
9. The control method according to claim 8, characterized in that: Writing the data to be written into the volatile memory comprises: writing the data to be written into the volatile memory, and marking the data to be written as not backed up; After writing the data to be written into the non-volatile memory for backup, the method further includes: modifying a status mark of the data to be written in the volatile memory to indicate that the data has been backed up; The controlling the writing of the data in the volatile memory that has not yet been backed up into the non-volatile memory includes: controlling the writing of all the data in the volatile memory that is marked as not backed up into the non-volatile memory.
10. The control method according to claim 8, characterized in that: After the control writes all the data in the volatile memory that has not yet been backed up into the non-volatile memory, the method further includes: When it is detected that the storage device resumes supplying the main power, the data in the volatile memory is restored according to the data stored in the non-volatile memory.
Citation Information
Patent Citations
Data access method for solid state disk
CN101673188A
Hybrid nonvolatile memory
CN101960430A
Member driving device possessing green energy data persisting mode
CN103995578A
Configurable volatile memory data save triggers
CN106852175A
Solid state drive with self-refresh power-saving mode
CN107210057A
Cited By
Solid state disk and electronic system
CN120353406A
Storage module, storage system and electronic system
CN120371227A