Storage device and power supply control method

By setting up a switching mechanism between main power and backup power in the CXL storage device, the problem of low storage reliability caused by abnormal power supply in computer clusters is solved, and safe data migration and high reliability of storage devices are achieved when the main power fails.

CN118567458APending Publication Date: 2024-08-30XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410555146.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When the CXL storage device is powered abnormally in a computer cluster, the storage reliability is low and the use of other computing devices is affected.

Method used

Design a storage device that includes a main power supply and a backup power supply. It uses a monitoring circuit and a switching circuit to switch to the backup power supply when the power supply intensity of the main power supply is not within the preset range, ensuring that the storage components are always powered by power, and provide power to the target computing through the system-level chip. The device sends an interrupt signal for data migration.

Benefits of technology

This effectively avoids the direct loss of data in the storage device, improves the reliability of the storage device, and allows the target computing device to back up data after receiving an interrupt signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567458A
    Figure CN118567458A
Patent Text Reader

Abstract

The embodiment of the invention provides a storage device and a power supply control method, the storage device comprises a storage assembly and a power supply unit, the power supply unit comprises a main power supply and a standby power supply, the storage assembly comprises one or more CXL devices, and the main power supply and the standby power supply are respectively connected with the storage assembly; under the condition that the power supply intensity of the main power supply is within a preset range, the main power supply supplies power to the storage assembly; and under the condition that the power supply intensity of the main power supply is not within the preset range, the standby power supply supplies power to the storage assembly. The storage device can improve the storage reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of server technology, and in particular to a storage device and a power supply control method. Background Art

[0002] A compute express link (CXL) storage device can provide storage space to one or more computing devices in a computer cluster to increase the storage capacity of the computing devices.

[0003] Currently, any computing device in a computer cluster can supply power to a CXL storage device. However, if the computing device has a power supply anomaly, the CXL storage device will not be able to operate normally, which will affect the use of the CXL storage device by other computing devices in the computer cluster, resulting in low storage reliability. Summary of the invention

[0004] Embodiments of the present application provide a storage device and a power supply control method to solve the technical problem of low storage reliability.

[0005] In a first aspect, an embodiment of the present application provides a storage device, including a storage component and a power supply unit, wherein the power supply unit includes a main power supply and a backup power supply, and the storage component includes one or more computing fast connection CXL devices, wherein:

[0006] The main power supply and the backup power supply are respectively connected to the storage component;

[0007] When the power supply strength of the main power supply is within a preset range, the main power supply supplies power to the storage component; when the power supply strength of the main power supply is not within the preset range, the backup power supply supplies power to the storage component.

[0008] In the above storage device, if the power supply strength of the main power supply is within the preset range, the main power supply can supply power to the storage component; if the power supply strength of the main power supply is not within the preset range, the backup power supply can supply power to the storage component. Through the above setting, the direct loss of data stored in the storage device due to power anomaly can be avoided, thereby improving storage reliability.

[0009] In a possible implementation, the power supply unit further includes a control circuit, and the control circuit includes a monitoring circuit and a switching circuit, wherein:

[0010] One end of the monitoring circuit is connected to the main power supply, and the other end of the monitoring circuit is connected to the switching circuit;

[0011] The monitoring circuit is used to collect the power supply strength of the main power supply and send an electrical signal to the switching circuit when the power supply strength of the main power supply is not within the preset range. The electrical signal is used to instruct the switching circuit to control the backup power supply to supply power to the storage component.

[0012] In the above storage device, the monitoring circuit can collect the power supply strength of the main power supply, thereby achieving the purpose of determining the power supply strength of the main power supply.

[0013] In one possible implementation,

[0014] The output end of the switching circuit is connected to the storage component, and the input end of the switching circuit is connected to the main power supply to control the main power supply to supply power to the storage component; or,

[0015] The output end of the switching circuit is connected to the storage component, and the input end of the switching circuit is connected to the backup power supply to control the backup power supply to supply power to the storage component.

[0016] In the above storage device, the input end of the switching circuit can be connected to the main power supply, or the input end of the switching circuit can also be connected to the backup power supply, so as to switch the power source of the storage component from the main power supply to the backup power supply, or from the backup power supply to the main power supply.

[0017] In a possible implementation, the storage device further includes a system-level chip, and the power supply unit further includes a register, wherein:

[0018] The register is connected to the system-on-chip;

[0019] The register is used to set the display signal of the register according to the power supply source of the storage component, and the power supply source of the storage component is the main power supply or the backup power supply;

[0020] The system-level chip is used to determine the power supply source of the storage component according to the display signal of the register, and when it is determined that the power supply source of the storage component is the backup power supply, send an interrupt signal to the target computing device, wherein the interrupt signal is used to characterize the failure of the main power supply, and the target computing device uses the storage device to store data.

[0021] In the above storage device, the system-level chip can determine the power supply source of the storage component according to the display signal of the register, and send an interrupt signal to the target computing device when the power supply source of the storage component is a backup power supply.

[0022] In a possible implementation, the register is specifically used to:

[0023] If the power supply source of the storage component is the main power supply, setting the display signal of the register to be the first signal;

[0024] If the power supply source of the storage component is the backup power supply, the display signal of the register is set to be the second signal.

[0025] In the above storage device, the register can set the display signal of the register according to the power supply source of the storage component, so that the system-level chip can determine the power supply source of the storage component according to the display signal of the register.

[0026] In a possible implementation, the power supply unit further includes a charging circuit, wherein:

[0027] The main power supply is connected to the backup power supply through the charging circuit;

[0028] The main power supply is also used to charge the backup power supply through the charging circuit.

[0029] In the above storage device, the main power supply can also charge the backup power supply. In this way, if the main power supply fails, the backup power supply can continue to supply power to the storage component, thereby improving storage reliability.

[0030] In one possible implementation,

[0031] The backup power source is a capacitor or a battery, and the capacity of the backup power source is greater than or equal to a preset capacity.

[0032] In the above storage device, the capacity of the backup power supply is greater than or equal to the preset capacity. In this way, the backup power supply can provide power supply service for a certain period of time for the storage component, so that the target computing device can migrate the data in the storage device to a safe storage space, further improving the storage reliability.

[0033] In a second aspect, an embodiment of the present application provides a power supply control method, which is applied to a storage device, wherein the storage device includes a storage component and a power supply unit, wherein the storage component includes one or more computing fast connection CXL devices, and the power supply unit includes a main power supply and a backup power supply, wherein the main power supply and the backup power supply are respectively connected to the storage component, and the method includes:

[0034] When the power supply strength of the main power supply is within a preset range, supplying power to the storage component through the main power supply;

[0035] When the power supply strength of the main power supply is not within a preset range, supplying power to the storage component through the backup power supply and sending an interrupt signal to the target computing device, wherein the interrupt signal is used to indicate a failure of the main power supply;

[0036] The power supply strength of the main power supply is the voltage or current of the main power supply.

[0037] In the above method, if the power supply strength of the main power supply is within a preset range, the storage component can be powered by the main power supply; if the power supply strength of the main power supply is not within the preset range, the storage component can be powered by the backup power supply. Through the above method, when the main power supply is abnormal, the direct loss of data stored in the storage device can be avoided, thereby improving storage reliability.

[0038] In a possible implementation, the power supply unit further includes a switching circuit, and an output end of the switching circuit is connected to the storage component; supplying power to the storage component through the backup power supply includes:

[0039] The input end of the switching circuit is controlled to switch from the main power supply to the backup power supply, so as to supply power to the storage component through the backup power supply.

[0040] In the above method, the input end of the switching circuit can be controlled to switch from the main power supply to the backup power supply, so as to achieve the purpose of supplying power to the storage component through the backup power supply.

[0041] In a possible implementation, sending an interrupt signal to a target computing device includes:

[0042] Acquire a device usage information table, wherein the device usage information table includes device identifications of one or more computing devices, and the computing devices corresponding to the device identifications use the storage device to store data;

[0043] Determine the computing device corresponding to the device identifier as the target computing device;

[0044] An interrupt signal is sent to the target computing device.

[0045] In the above method, after the backup power supply is used to supply power to the storage component, the storage device can also send an interrupt signal to the target computing device, so that the target computing device can back up the data in the storage device after receiving the interrupt signal. In this way, the direct loss of data stored in the storage device can be avoided, thereby improving storage reliability.

[0046] In a possible implementation, after sending the interrupt signal to the target computing device, the method further includes:

[0047] receiving a response message from the target computing device, the response message being used to indicate that the data stored in the storage device has been backed up;

[0048] Power to the storage component is stopped.

[0049] In the above method, after receiving the response message from the target computing device, the storage device may stop supplying power to the storage component to facilitate maintenance of the storage device.

[0050] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in any one of the second aspects.

[0051] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the method shown in any one of the second aspects when executed by a processor.

[0052] The storage device and power supply control method provided by the embodiment of the present application can supply power to the storage component if the power supply strength of the main power supply is within a preset range; if the power supply strength of the main power supply is not within the preset range, the backup power supply can supply power to the storage component. Through the above settings, the direct loss of data stored in the storage device due to power supply anomalies can be avoided, thereby improving storage reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0054] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of the architecture of a computer cluster provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of the structure of a storage device provided in an embodiment of the present application;

[0057] Figure 4 A schematic diagram of the structure of another storage device provided in an embodiment of the present application;

[0058] Figure 5 A schematic diagram of the structure of another storage device provided in an embodiment of the present application;

[0059] Figure 6 A schematic diagram of the structure of another storage device provided in an embodiment of the present application;

[0060] Figure 7A schematic diagram of the structure of another storage device provided in an embodiment of the present application;

[0061] Figure 8 A schematic diagram of the structure of another storage device provided in an embodiment of the present application;

[0062] Fig. 9 A schematic diagram of a flow chart of a power supply control method provided in an embodiment of the present application;

[0063] Fig.10 A flowchart of another power supply control method provided in an embodiment of the present application;

[0064] Fig.11 A flowchart of another power supply control method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.

[0066] To facilitate understanding, the technical terms involved in the embodiments of the present application are first explained.

[0067] CXL: Refers to a high-speed serial protocol. CXL technology allows fast and reliable data transfer between different components within a computer system. CXL technology is designed to address issues such as memory capacity, memory bandwidth, and input / output latency.

[0068] CXL storage device: refers to a computing device storage expansion device. CXL storage devices include: a storage device containing multiple CXL devices by integrating resources based on pooling technology. CXL storage devices can also be called CXL memory boxes.

[0069] CXL device: may include a control chip and a storage medium. The control chip may be a CXL controller, which may also be called a memory expansion (CXL memory expander) chip, a CXL memory controller (CXL memory expandercontroller) or a CXL memory pooling (CXL memory expander pooling) chip. The storage medium may include a memory bar or a DRAM particle. The computing device may access the storage medium of the CXL device to store data through the CXL device. For example, the CXL device may be a memory expansion device.

[0070] Interrupt service routine (ISR): refers to the program or function used to handle interrupts when the system or device receives an interrupt request. ISR is usually written in assembly language or C language and is used to execute the handler associated with a specific interrupt source.

[0071] For ease of understanding, the following Figure 1 , the application scenarios involved in the embodiments of the present application are described.

[0072] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 The computer cluster may include computing device 1, computing device 2, computing device 3, computing device 4, computing device 5 and a CXL storage device. The computing device 1, computing device 2, computing device 3, computing device 4 and computing device 5 are connected to the CXL storage device respectively.

[0073] The computing device may be an electronic device that needs to read and write data. For example, the computing device may be a server, a laptop computer, a desktop computer, a tablet computer, a single-chip microcomputer, or an artificial intelligence device. For example, the server may be a graphics processing unit (GPU) server or an artificial intelligence (AI) server.

[0074] In the above computer cluster, the CXL storage device can provide storage resources for multiple computing devices in the computer cluster, and the multiple computing devices can share the storage resources provided by the CXL storage device.

[0075] It should be understood that the CXL storage device needs to be powered on to operate. Currently, any computing device in the computer cluster can power the CXL storage device.

[0076] like Figure 1 As shown, Figure 1 In the computer cluster shown, computing device 5 can supply power to the CXL storage device. However, if computing device 5 has a power supply abnormality, the CXL storage device will not be able to operate normally, which will affect the use of the CXL storage device by computing devices 1, 2, 3 and 4, resulting in low storage reliability.

[0077] To solve the above technical problems, a separate power supply can be provided for the CXL storage device. Figure 2 , a method for providing a separate power supply to a CXL storage device is described.

[0078] Figure 2 A schematic diagram of the architecture of a computer cluster provided in an embodiment of the present application. Figure 2 The computer cluster may include a CXL storage device and multiple computing devices, and the multiple computing devices may be connected to the CXL storage device. The multiple computing devices may be, for example, computing device 1, computing device 2, computing device 3, computing device 4, and computing device 5.

[0079] The CXL storage device may include CXL device 1, CXL device 2, CXL device 3, CXL device 4 and a power supply. The power supply may supply power to CXL device 1, CXL device 2, CXL device 3 and CXL device 4.

[0080] Figure 2 In the computer cluster shown, a separate power supply can be set for the CXL storage device. If any computing device in the computer cluster has a power supply abnormality, the computing device with the power supply abnormality will not affect the normal use of the CXL storage device. However, if the power supply in the CXL storage device is abnormal, the data stored in the CXL storage device will be directly lost, affecting the normal operation of all computing devices in the computer cluster, and thus resulting in low storage reliability.

[0081] In view of this, an embodiment of the present application provides a storage device and a power supply control method applied to the storage device to solve the technical problem of low storage reliability.

[0082] The storage device provided in the embodiment of the present application may be provided with a power supply unit, which may include a main power supply and a backup power supply, and the main power supply may supply power to the storage components in the storage device. If the main power supply is abnormal, the backup power supply may supply power to the storage components. In the above storage device, if the main power supply is abnormal, the data in the storage device will not be directly lost, thereby improving storage reliability.

[0083] The technical solutions of the embodiments of the present application are described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0084] Figure 3 A schematic diagram of the structure of a storage device provided in an embodiment of the present application. Figure 3 The storage device includes a storage component and a power supply unit, the power supply unit includes a main power supply and a backup power supply, the storage component includes one or more CXL devices, and the main power supply and the backup power supply are respectively connected to the storage component.

[0085] The storage device may be the CXL storage device shown in any of the above embodiments.

[0086] The storage component may be one or more CXL devices in a CXL storage device.

[0087] Both the main power supply and the backup power supply can be devices that can provide electrical energy to the storage component.

[0088] In this embodiment, when the power supply strength of the main power supply is within a preset range, the main power supply supplies power to the storage component; when the power supply strength of the main power supply is not within the preset range, the backup power supply supplies power to the storage component; wherein the power supply strength of the main power supply is the voltage or current of the main power supply.

[0089] It should be noted that the power supply strength is not within the preset range, that is, the power supply strength is greater than the maximum value of the preset range, or less than the minimum value of the preset range. The power supply strength is within the preset range, that is, the power supply strength is greater than or equal to the minimum value of the preset range, or less than or equal to the minimum value of the preset range.

[0090] Exemplarily, assuming that the power supply strength of the main power supply is the magnitude of the voltage of the main power supply, and the preset range is the preset voltage range. If the voltage of the main power supply is greater than the maximum value of the preset voltage range, or the voltage of the main power supply is less than the minimum value of the preset voltage range, then the power supply strength of the main power supply is not within the preset range.

[0091] Assuming that the power supply strength of the main power supply is the magnitude of the current of the main power supply, and the preset range is the preset current range, if the current of the main power supply is greater than the maximum value of the preset current range, or the current of the main power supply is less than the minimum value of the preset current range, the power supply strength of the main power supply is not within the preset range.

[0092] The preset range can be set according to actual needs, and this embodiment does not limit this.

[0093] In the storage device provided by this embodiment, if the power supply strength of the main power supply is within a preset range, the main power supply can supply power to the storage component; if the power supply strength of the main power supply is not within the preset range, the backup power supply can supply power to the storage component. Through the above settings, the direct loss of data stored in the storage device due to power anomalies can be avoided, thereby improving storage reliability.

[0094] Combine the following Figure 4 , the storage device provided in the embodiment of the present application is described through specific examples.

[0095] Figure 4 A schematic diagram of the structure of another storage device provided in an embodiment of the present application. Figure 4 , the storage device may include a storage component, a capacitor and a main power supply.

[0096] The main power supply can be connected to the storage component, and the capacitor can also be connected to the storage component. Specifically, the positive electrode of the main power supply can be connected to one end of the storage component, and the negative electrode of the main power supply can be connected to the other end of the storage component. The positive electrode of the capacitor can be connected to one end of the storage component, and the negative electrode of the capacitor can be connected to the other end of the storage component. In addition, the positive electrode of the capacitor can also be connected to the positive electrode of the main power supply, and the negative electrode of the capacitor can also be connected to the negative electrode of the main power supply.

[0097] When the main power supply operates normally, it can power the storage components and charge the capacitors at the same time.

[0098] If the main power supply is abnormal, the main power supply stops supplying power to the storage component and stops charging the capacitor. At this time, the charge in the capacitor can flow out from the positive electrode of the capacitor, flow through the storage component and then flow to the negative electrode of the capacitor. Therefore, during the flow of charge in the capacitor, the capacitor can supply power to the storage component.

[0099] In the storage device provided in this embodiment, the capacitor can be used as a backup power supply. If the main power supply fails, the capacitor can supply power to the storage component. Through the above configuration, the direct loss of data stored in the storage device caused by the abnormality of the main power supply can be avoided, thereby improving storage reliability.

[0100] Based on the above embodiment, the power supply unit may further include a control circuit, and the control circuit may include a switching circuit and a monitoring circuit. Figure 5 , the storage device provided in the embodiment of the present application is further described.

[0101] Figure 5 This is a schematic diagram of the structure of another storage device provided in an embodiment of the present application. Figure 5 ,exist Figure 3 On the basis of, the power supply unit may further include a control circuit, the control circuit may include a monitoring circuit and a switching circuit, one end of the monitoring circuit is connected to the main power supply, and the other end of the monitoring circuit is connected to the switching circuit.

[0102] The control circuit may also be called a power management chip, or a pulse width modulation (PWM) chip, etc.

[0103] In this embodiment, the monitoring circuit can be used to collect the power supply strength of the main power supply, and send an electrical signal to the switching circuit when the power supply strength of the main power supply is not within a preset range. The electrical signal is used to instruct the switching circuit to control the backup power supply to supply power to the storage component.

[0104] The electrical signal may be, for example, a voltage signal or a current signal, etc. This embodiment does not limit the type and value of the electrical signal.

[0105] Specifically, if the monitoring circuit detects that the power supply strength of the main power supply is not within a preset range, an electrical signal can be sent to the switching circuit to enable the switching circuit to control the backup power supply to supply power to the storage component.

[0106] In this embodiment, the monitoring circuit may include a detection unit and a control unit. The control unit may measure the power supply strength of the main power supply through the detection unit.

[0107] If the power supply strength of the main power source is the magnitude of the voltage of the main power source, the detection unit may include a multimeter, a voltmeter, or a voltage sensor, etc. The multimeter, voltmeter, or voltage sensor may be used to measure the voltage of the main power source.

[0108] Exemplarily, the detection unit may include a voltmeter. The control unit may measure the voltage of the main power supply through the voltmeter. If the measured voltage is less than a minimum value of a preset voltage range, or greater than a maximum value of the preset voltage range, the monitoring circuit may send an electrical signal to the switching circuit to instruct the switching circuit to control the backup power supply to supply power to the storage component.

[0109] If the power supply strength of the main power source is the magnitude of the current of the main power source, the detection unit may include a current sensor, etc. The current sensor may be used to measure the current of the main power source.

[0110] Optionally, the monitoring circuit may further include an amplifier and a filter. The amplifier may be used to amplify a voltage signal collected by a multimeter, a voltmeter or a voltage sensor, or the amplifier may be used to amplify a current signal collected by a current sensor. The filter may filter the voltage signal collected by a multimeter, a voltmeter or a voltage sensor, or the filter may filter the current signal collected by a current sensor.

[0111] In this embodiment, the output end of the switching circuit is connected to the storage component, and the input end of the switching circuit is connected to the main power supply to control the main power supply to supply power to the storage component; or, the output end of the switching circuit is connected to the storage component, and the input end of the switching circuit is connected to the backup power supply to control the backup power supply to supply power to the storage component.

[0112] The switching circuit may include a switching switch, for example, a relay or a contactor.

[0113] Specifically, if the power supply strength of the main power source collected by the monitoring circuit is within a preset range, the output end of the switching circuit can be connected to the storage component, and the input end of the switching circuit can be connected to the main power source, so that the main power source can supply power to the storage component. If the power supply strength of the main power source collected by the monitoring circuit is not within the preset range, the monitoring circuit can send an electrical signal to the switching circuit to instruct the switching circuit to control the backup power source to supply power to the storage component. After receiving the electrical signal from the monitoring circuit, the switching circuit can control the input end of the switching circuit to switch from the main power source to the backup power source, so as to achieve the purpose of controlling the backup power source to supply power to the storage component.

[0114] In the storage device provided in this embodiment, the power supply unit of the storage device may include a monitoring circuit, a switching circuit, a main power supply and a backup power supply. The main power supply may supply power to the storage component of the storage device. The monitoring circuit may collect the power supply intensity of the main power supply. If the voltage of the main power supply is not within a preset range, the monitoring circuit may send an electrical signal to the switching circuit so that the switching circuit controls the backup power supply to supply power to the storage component. In the above device, if the main power supply has a power supply abnormality, it will not cause the data stored in the storage device to be directly lost, thereby improving the storage reliability.

[0115] Based on any of the above embodiments, the storage device may further include a system on chip (SoC) and a register. Figure 6 , the storage device provided in the embodiment of the present application is further described.

[0116] Figure 6 This is a schematic diagram of the structure of another storage device provided in an embodiment of the present application. Figure 6 ,exist Figure 5 On the basis of the present invention, the storage device further includes a system-level chip, and the power supply unit further includes a register, and the register is connected to the system-level chip.

[0117] The register is used to set a display signal of the register according to a power supply source of the storage component, and the power supply source of the storage component is a main power supply or a backup power supply;

[0118] The system-level chip is used to determine the power supply source of the storage component according to the display signal of the register, and when it is determined that the power supply source of the storage component is the backup power supply, send an interrupt signal to the target computing device. The interrupt signal is used to indicate a main power failure. The target computing device uses the storage device to store data.

[0119] The register is specifically used to set the display signal of the register to the first signal if the power supply source of the storage component is the main power supply; and to set the display signal of the register to the second signal if the power supply source of the storage component is the backup power supply. The display signal of the register can be the value stored in the register.

[0120] The first signal is different from the second signal. For example, the first signal may be "0" and the second signal may be "1".

[0121] Exemplarily, assuming that the first signal is "0" and the second signal is "1", when the power supply source of the storage component is the main power supply, the display signal of the register is "0"; when the power supply source of the storage component is the backup power supply, the display signal of the register is "1". If the system-level chip obtains the display signal of the register as "1" from the register, the system-level chip can send an interrupt signal to the target computing device.

[0122] The target computing device may be a computing device that uses a storage device to store data, that is, the storage device stores the data of the target computing device.

[0123] In this embodiment, the register may also be connected to the control circuit to determine the power supply source of the storage component from the control circuit. For example, if the input end of the switching circuit is connected to the main power supply, the register may determine that the power supply source of the storage component is the main power supply; if the input end of the switching circuit is connected to the backup power supply, the register may determine that the power supply source of the storage component is the backup power supply.

[0124] After the register determines the power supply source of the storage component from the control circuit, the display signal of the register can be set according to the power supply source of the storage component.

[0125] In this embodiment, the firmware (FW) of the storage device can be run on the system-on-chip.

[0126] The system-level chip can access the register through the FW, and can send an interrupt signal to the target computing device when a display signal of the register indicates that the power supply source of the storage component is the backup power supply.

[0127] After receiving the terminal signal, the target computing device can back up the data stored in the storage device to avoid data loss of the target computing device due to main power anomaly.

[0128] In the storage device provided in this embodiment, the storage device may include a storage component, a power supply unit and a system-level chip, and the power supply unit may include a main power supply, a backup power supply, a control circuit and a register. The control circuit may control the main power supply to supply power to the storage component, or control the backup power supply to supply power to the storage component. The display signal of the register may be used to indicate the power supply source of the storage component. The system-level chip may obtain the power supply source of the storage component from the register, and may send an interrupt signal to the target computing device when the power supply source of the register is the backup power supply, so that the target computing device may back up the data in the storage device according to the terminal signal. In the above device, if the main power supply has a power supply abnormality, it will not cause the stored data to be directly lost, and the target computing device may back up the data in the storage device, further providing storage reliability.

[0129] Based on any of the above embodiments, if there is no control circuit in the power supply unit, the register can also be connected to the main power supply or the backup power supply. Figure 7 , the storage device provided in the embodiment of the present application is further described.

[0130] Figure 7 This is a schematic diagram of the structure of another storage device provided in an embodiment of the present application. Figure 7 ,exist Figure 4 On the basis of, the storage device may further include a register and a system-level chip, the register may be connected to the system-level chip, and the register may be respectively connected to the positive electrode and the negative electrode of the capacitor.

[0131] In this embodiment, if the main power supply supplies power to the storage component, the charge in the capacitor may flow into the capacitor from the positive electrode (the main power supply charges the capacitor), or the charge in the capacitor may not flow (after the capacitor is fully charged, the main power supply stops charging the capacitor); if the capacitor supplies power to the storage component, the charge in the capacitor may flow out from the positive electrode of the capacitor. In this way, the register can determine the power supply source of the storage component according to the flow direction of the charge in the capacitor (i.e., the current direction in the capacitor), and can set the display signal of the register according to the power supply source of the storage component.

[0132] Furthermore, the storage device may also include an analog to digital converter (ADC) (not shown in the figure). The register may be connected to the positive electrode and the negative electrode of the capacitor respectively through the analog to digital converter.

[0133] The analog-to-digital converter can convert the current signal of the capacitor into a digital signal. If the current direction in the capacitor is different, the digital signal converted by the analog-to-digital converter is different. In this way, the register can determine the power supply source of the storage component according to the digital signal converted by the analog-to-digital converter, and can set the display signal of the register according to the power supply source of the storage component.

[0134] In other embodiments, Figure 4 On the basis of the present invention, the storage device may further include a register and a system-level chip, the register may be connected to the system-level chip, and the register may be respectively connected to the positive and negative electrodes of the main power supply. In this embodiment, if the main power supply supplies power to the storage component, there is current in the positive and negative electrodes of the main power supply, and if the main power supply is powered off, there is no current in the positive and negative electrodes of the main power supply. The register may determine the power supply source of the storage component according to the flow of charge in the capacitor, and may set the display signal of the register according to the power supply source of the storage component.

[0135] It should be noted that the method for the system-level chip to determine the power supply source of the storage component according to the display signal of the register can be seen in Figure 6 The embodiments are not described in detail here.

[0136] Based on any of the above embodiments, the backup power supply can be a rechargeable device. Figure 8 , the storage device provided in the embodiment of the present application is further described.

[0137] Figure 8 This is a schematic diagram of the structure of another storage device provided in an embodiment of the present application. Figure 8 ,exist Figure 6 On the basis of, the power supply unit also includes a charging circuit, the main power supply is connected to the backup power supply through the charging circuit; the main power supply is also used to charge the backup power supply through the charging circuit.

[0138] The charging circuit may include a charger, a rectifier, or a charging cable, etc.

[0139] The backup power source is a capacitor or a battery, and the capacity of the backup power source is greater than or equal to a preset capacity. The preset capacity can be set according to actual needs, and this embodiment does not limit this.

[0140] In this embodiment, when the main power supply supplies power to the storage component, the backup power supply can be charged through the charging circuit at the same time. In this way, if the main power supply fails, the backup power supply can continue to supply power to the storage component, thereby improving storage reliability.

[0141] In addition, after the backup power supply is fully charged, the main power supply can stop charging the backup power supply, so that the backup power supply can be kept in a state of no leakage.

[0142] Optionally, the main power source may be a constant current source or a constant voltage source. In this way, the main power source may adjust the output current according to the state of the backup power source to avoid overcharging or undercharging of the backup power source.

[0143] Optionally, the charging circuit may further include a voltage regulating module and a protection module. The voltage regulating module may include a voltage stabilizer or a voltage stabilizing circuit. The voltage regulating module may be used to stabilize the input voltage of the backup power supply so that the input voltage of the backup power supply does not change with the output voltage of the main power supply or the load of the main power supply. The protection module may include a fuse, a thermistor, a voltage detection circuit or a current detection circuit. The protection module may be used to protect the charging circuit from overvoltage, undervoltage, overcurrent, or overtemperature.

[0144] In this embodiment, to further improve storage reliability, after a main power failure occurs, data in the storage device can be migrated to a safe storage space, where the safe storage space can be a storage space in other storage devices or a storage space inside a computing device.

[0145] Assuming that migrating all data in the storage device to the safe storage space requires Q mAh of power, the preset capacity may be Q mAh. In other words, the capacity of the backup power supply needs to be greater than or equal to Q mAh.

[0146] In this embodiment, it is assumed that the storage components of the storage device include N identical CXL devices. For any CXL device, when the CXL device is in a fully loaded state, if the data in a single CXL device is migrated to a secure storage space, the power consumption is M. Then, the power consumption required to migrate all the data in the storage device to the secure storage space is N*M. In addition, assuming that the storage device needs L nanoseconds to migrate data, the capacity of the backup power supply needs to meet the requirement of providing power consumption greater than M*N within L nanoseconds.

[0147] The storage device provided in this embodiment may include a main power supply and a backup power supply. The main power supply can supply power to the storage components of the storage device, and the main power supply can also charge the backup power supply. If the main power supply is abnormal, the backup power supply can supply power to the storage components, which will not cause the data stored in the storage device to be directly lost, thereby improving storage reliability.

[0148] Based on any of the above embodiments, the present application also provides a power supply control method. Fig. 9 , the power supply control method provided in the embodiment of the present application is described.

[0149] Fig. 9 This is a flow chart of a power supply control method provided in an embodiment of the present application. The execution subject of the method may be a storage device or a processing chip set in the storage device. This embodiment is only described by taking the execution subject as a storage device as an example. Fig. 9 , the method comprising:

[0150] S901. Determine the power supply strength of the main power supply.

[0151] If the power supply strength of the main power supply is within a preset range, power is supplied to the storage component through the main power supply.

[0152] In this embodiment, if the power supply strength of the main power supply is within a preset range, the storage device can supply power to the storage component through the main power supply.

[0153] If the power supply strength of the main power source is not within the preset range, execute S902.

[0154] The power supply strength of the main power supply may be the magnitude of the voltage or the magnitude of the current of the main power supply.

[0155] The storage device includes a storage component and a power supply unit. The storage component includes one or more CXL devices. The power supply unit includes a main power supply and a backup power supply. The main power supply and the backup power supply are connected to the storage component respectively.

[0156] In this embodiment, the power supply unit further includes a control circuit, which may include a monitoring circuit, which may be used to collect the power supply strength of the main power supply. In actual implementation, the storage device may collect the power supply strength of the main power supply through the monitoring circuit, and determine whether the power supply strength of the main power supply is within a preset range.

[0157] Specifically, during the operation of the main power supply, the storage device may collect the power supply strength of the main power supply through a monitoring circuit to determine whether the power supply strength of the main power supply is within a preset range.

[0158] S902. Supply power to the storage component through the backup power supply.

[0159] In this embodiment, the control circuit may further include a switching circuit, and an output end of the switching circuit is connected to the storage component.

[0160] The switching circuit may include but is not limited to a relay, a field effect transistor (MOSFET), or a diode, etc. In actual implementation, the switching circuit may be selected according to specific needs.

[0161] If the power supply strength of the main power supply is not within the preset range (i.e., greater than the maximum value of the preset range, or less than the minimum value of the preset range), the input end of the switching circuit can be controlled to switch from the main power supply to the backup power supply to supply power to the storage component through the backup power supply.

[0162] Optionally, if after the input end of the switching circuit is switched from the main power supply to the backup power supply, the power supply strength of the main power supply recovers to within a preset range, the storage device may control the input end of the switching circuit to switch from the backup power supply to the main power supply.

[0163] In the power supply control method provided in this embodiment, if the power supply strength of the main power supply is within a preset range, the storage component can be powered by the main power supply; if the power supply strength of the main power supply is not within the preset range, the storage component can be powered by the backup power supply. Through the above method, when the main power supply is abnormal, the direct loss of data stored in the storage device can be avoided, thereby improving storage reliability.

[0164] On the basis of the above embodiment, after the main power fails, the data in the storage device can also be migrated to a safe storage space, further improving the storage reliability. Fig.10 , the power supply control method provided in the embodiment of the present application is described.

[0165] Fig.10 This is a flow chart of another power supply control method provided in an embodiment of the present application. The execution subject of the method can be a storage device or a processing chip set in the storage device. This embodiment is only described by taking the execution subject as a storage device as an example. Fig.10 , the method comprising:

[0166] S1001. Determine the power supply strength of the main power supply.

[0167] If the power supply strength of the main power supply is within a preset range, power is supplied to the storage component through the main power supply;

[0168] If the power supply strength of the main power supply is not within the preset range, the storage component is powered by the backup power supply.

[0169] It should be noted that the specific implementation method of S1001 can be found in S901-S902 and will not be repeated here.

[0170] In some embodiments, when Figure 8 The method shown runs on Figure 7 In the storage device shown, if the power supply strength of the main power supply is within the preset range, that is, when the main power supply is normally powered, the main power supply is used to supply power to the storage component. At the same time, the main power supply can charge the capacitor. If the power supply strength of the main power supply is not within the preset range, that is, when the main power supply is abnormally powered off, the capacitor as a backup power supply will automatically supply power to the storage component.

[0171] S1002: Obtain a device usage information table, where the device usage information table includes device identifications of one or more computing devices.

[0172] The computing device corresponding to the device identification uses the storage device to store data.

[0173] In this embodiment, the storage device may store the device usage information table, that is, the storage device may obtain the device usage information table locally.

[0174] S1003: Determine the computing device corresponding to the device identifier as the target computing device.

[0175] The target computing device may be an electronic device that uses a storage device to store data.

[0176] In this embodiment, the computing device corresponding to the device identification in the device usage information table may be an electronic device that uses a storage device to store data. Therefore, the computing device corresponding to the device identification may be determined as the target computing device.

[0177] The number of the target computing devices may be one or more, which is not limited in this embodiment.

[0178] S1004. Send an interrupt signal to the target computing device.

[0179] Accordingly, the target computing device may receive the interrupt signal sent by the storage device.

[0180] It should be noted that if there are multiple target computing devices, the storage device may send an interrupt signal to each target computing device respectively.

[0181] The interrupt signal is used to indicate a main power failure.

[0182] It should be noted that if the storage device controls the backup power supply to supply power to the storage component and then controls the input end of the switching circuit to switch from the backup power supply to the main power supply, the storage device will still execute S1002-S1006 to ensure better power supply safety of the power supply unit.

[0183] In this embodiment, the storage device can determine the power supply source of the storage component through the system-level chip, and can send an interrupt signal to the target computing device through the system-level chip when the power supply source of the storage component is a backup device.

[0184] In this embodiment, if there are multiple target computing devices, for any target computing device, after receiving the interrupt signal, the target computing device can enter the data migration process. Specifically, the computing device can migrate the target data from the storage device to a secure storage space. The secure storage space can be a storage space in other storage devices, or a storage space inside the computing device, etc.

[0185] During the specific implementation process, after receiving the interrupt signal, the target computing device can initiate a data migration process through the ISR to migrate the data corresponding to the target computing device in the storage device to a safe storage space.

[0186] S1005. Receive a response message from the target computing device.

[0187] In this embodiment, after completing the data migration, the target computing device may send a response message to the storage device, wherein the response message is used to indicate that the data in the storage device has been backed up.

[0188] If the number of target computing devices is one, the storage device may receive a response message from the one target computing device. If the number of target computing devices is multiple, the storage device may receive a response message from each target computing device.

[0189] S1006. Stop supplying power to the storage component.

[0190] In this embodiment, after receiving the response messages from all target computing devices, the storage device may control the backup power supply to stop supplying power to the storage component.

[0191] In the power supply control method provided by this embodiment, if the power supply strength of the main power supply is within a preset range, the storage component can be powered by the main power supply; if the power supply strength of the main power supply is not within the preset range, the storage component can be powered by the backup power supply; after the storage component is powered by the backup power supply, the storage device can also send an interrupt signal to the target computing device, can receive a response message from the target computing device, and can stop supplying power to the storage component. Through the above method, when the main power supply is abnormal, the direct loss of data stored in the storage device can be avoided, thereby improving storage reliability. In addition, in the method provided by this embodiment, the backup power supply can provide power supply service for a certain period of time for the storage component, so that the target computing device can migrate the data in the storage device to a safe storage space, further improving storage reliability.

[0192] Next, combine Fig.11 , taking the number of target computing devices as 1 as an example, the power supply control method provided in the embodiment of the present application is explained through a specific example.

[0193] Fig.11 A flowchart of another power supply control method provided in an embodiment of the present application. Fig.11 , the method comprising:

[0194] S1101. The storage device determines the power supply strength of the main power supply.

[0195] If the power supply strength of the main power supply is within a preset range, power is supplied to the storage component through the main power supply;

[0196] If the power supply strength of the main power supply is not within the preset range, the storage component is powered by the backup power supply.

[0197] S1102: The storage device obtains a device usage information table, where the device usage information table includes device identifications of one or more computing devices.

[0198] S1103: The storage device determines the computing device corresponding to the device identifier as the target computing device.

[0199] S1104: The storage device sends an interrupt signal to the target computing device.

[0200] S1105: The target computing device backs up the data in the storage device.

[0201] S1106. The target computing device sends a response message to the storage device.

[0202] S1107: The storage device stops supplying power to the storage component.

[0203] In the power supply control method provided in this embodiment, if the power supply strength of the main power supply is within a preset range, the storage device can supply power to the storage component through the main power supply; if the power supply strength of the main power supply is not within the preset range, the storage device can supply power to the storage component through the backup power supply; after supplying power to the storage component through the backup power supply, the storage device can also send an interrupt signal to the target computing device; after receiving the interrupt signal, the target computing device can migrate the data in the storage device, and can send a response message to the storage device after migrating the data in the storage device; after receiving the response message, the storage device can stop supplying power to the storage component. Through the above method, when the main power supply is abnormal, the direct loss of data stored in the storage device can be avoided, thereby improving storage reliability. In addition, after the main power supply fails, the target computing device can migrate the target data, further improving storage reliability.

[0204] All or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviated: ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.

[0205] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable terminal device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0206] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0207] These computer program instructions can also be loaded onto a computer or other programmable terminal device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0208] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the embodiments of the present application are also intended to include these modifications and variations.

[0209] In the embodiments of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the element. The term "or" and its variations may refer to "and / or". In the embodiments of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. In the embodiments of the present application, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, A and / or B, which may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0210] After considering the invention disclosed in the specification and practice, those skilled in the art will easily think of other embodiments of the present application. The embodiments of the present application are intended to cover any variation, use or adaptive change of the embodiments of the present application, which follows the general principles of the embodiments of the present application and includes common knowledge or conventional technical means in the technical field that are not disclosed in the embodiments of the present application.

Claims

1. A storage device, It is characterized in that The invention comprises a storage component and a power supply unit, wherein the power supply unit comprises a main power supply and a backup power supply, and the storage component comprises one or more computing fast connection CXL devices, wherein: The main power supply and the backup power supply are respectively connected to the storage component; When the power supply strength of the main power supply is within a preset range, the main power supply supplies power to the storage component; when the power supply strength of the main power supply is not within the preset range, the backup power supply supplies power to the storage component.

2. The device according to claim 1, It is characterized in that The power supply unit further includes a control circuit, which includes a monitoring circuit and a switching circuit, wherein: One end of the monitoring circuit is connected to the main power supply, and the other end of the monitoring circuit is connected to the switching circuit; The monitoring circuit is used to collect the power supply strength of the main power supply and send an electrical signal to the switching circuit when the power supply strength of the main power supply is not within the preset range. The electrical signal is used to instruct the switching circuit to control the backup power supply to supply power to the storage component.

3. The device according to claim 2, It is characterized in that The output end of the switching circuit is connected to the storage component, and the input end of the switching circuit is connected to the main power supply to control the main power supply to supply power to the storage component; or, The output end of the switching circuit is connected to the storage component, and the input end of the switching circuit is connected to the backup power supply to control the backup power supply to supply power to the storage component.

4. The device according to any one of claims 1 to 3, It is characterized in that The storage device further includes a system-level chip, and the power supply unit further includes a register, wherein: The register is connected to the system-on-chip; The register is used to set the display signal of the register according to the power supply source of the storage component, and the power supply source of the storage component is the main power supply or the backup power supply; The system-level chip is used to determine the power supply source of the storage component according to the display signal of the register, and when it is determined that the power supply source of the storage component is the backup power supply, send an interrupt signal to the target computing device, wherein the interrupt signal is used to characterize the failure of the main power supply, and the target computing device uses the storage device to store data.

5. The device according to claim 4, It is characterized in that The register is specifically used for: If the power supply source of the storage component is the main power supply, setting the display signal of the register to be the first signal; If the power supply source of the storage component is the backup power supply, the display signal of the register is set to be the second signal.

6. The device according to any one of claims 1 to 5, It is characterized in that The power supply unit further includes a charging circuit, wherein: The main power supply is connected to the backup power supply through the charging circuit; The main power supply is also used to charge the backup power supply through the charging circuit.

7. A power supply control method, It is characterized in that Applied to a storage device, the storage device includes a storage component and a power supply unit, the storage component includes one or more computing fast connection CXL devices, the power supply unit includes a main power supply and a backup power supply, the main power supply and the backup power supply are respectively connected to the storage component, the method includes: When the power supply strength of the main power supply is within a preset range, supplying power to the storage component through the main power supply; When the power supply strength of the main power supply is not within a preset range, supplying power to the storage component through the backup power supply and sending an interrupt signal to the target computing device, wherein the interrupt signal is used to indicate a failure of the main power supply; The power supply strength of the main power supply is the voltage or current of the main power supply.

8. The method according to claim 7, It is characterized in that The power supply unit further includes a switching circuit, and an output end of the switching circuit is connected to the storage component; supplying power to the storage component through the backup power supply includes: The input end of the switching circuit is controlled to switch from the main power supply to the backup power supply, so as to supply power to the storage component through the backup power supply.

9. The method according to claim 7 or 8, It is characterized in that The sending of an interrupt signal to the target computing device comprises: Acquire a device usage information table, wherein the device usage information table includes device identifications of one or more computing devices, and the computing devices corresponding to the device identifications use the storage device to store data; Determine the computing device corresponding to the device identifier as the target computing device; An interrupt signal is sent to the target computing device.

10. The method according to any one of claims 7 to 9, It is characterized in that After sending the interrupt signal to the target computing device, the method further includes: receiving a response message from the target computing device, the response message being used to indicate that the data stored in the storage device has been backed up; Power to the storage component is stopped.