Maximum power consumption control method and device based on solid state disk and computer equipment

By setting the maximum power consumption value in the solid-state drive and monitoring the voltage difference in real time, if it exceeds the value, the SOC operating frequency is reduced, which solves the problem of excessive power consumption of the solid-state drive on old motherboards and maximizes SSD within the safety range. performance.

CN118778902APending Publication Date: 2024-10-15SUZHOU UNIONMEMORY INFORMATION SYST LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410928840.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

When the latest high-performance solid-state drives are used on old computer motherboards, excessive power consumption may cause computer hardware abnormalities. The existing software method of limiting SSD performance results in a waste of performance, which needs to be maximized while protecting the security of the host motherboard. SSD performance.

Method used

The host sends a private command to set the maximum power consumption value of the solid state drive. The solid state drive firmware regularly obtains the real-time ADC difference and compares it with the maximum ADC difference. If it exceeds the maximum ADC difference, the SOC operating frequency is reduced to reduce power consumption, and the sensing resistor is used to monitor the voltage in real time. Difference to determine whether to reduce the frequency.

Benefits of technology

It effectively reduces the power consumption of the SSD within the safe power consumption range set by the host, protects the security of the motherboard, and ensures the maximum performance of the SSD.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778902A_ABST
    Figure CN118778902A_ABST
Patent Text Reader

Abstract

The invention relates to a maximum power consumption control method and device based on a solid state disk, computer equipment and a storage medium. The method comprises the steps that a host sends a private command to the solid state disk and sets the maximum power consumption value of the solid state disk; after the solid state disk receives the private command, calculating a maximum ADC difference value according to a set maximum power consumption value of the solid state disk; the solid state disk firmware acquires a real-time ADC difference value at regular time, and compares the real-time ADC difference value with the maximum ADC difference value; and if the real-time ADC difference value is greater than or equal to the maximum ADC difference value, the power consumption of the solid state disk at the moment exceeds the maximum power consumption value set by the host, and the firmware reduces the power consumption by reducing the SOC operation frequency. According to the method, the highest power consumption of the SSD is set through the private command, so that the SSD can exert the maximum performance within the safe power consumption range allowed by the host.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of solid state hard disks, and in particular to a maximum power consumption control method, device, computer equipment and storage medium based on a solid state hard disk. Background Art

[0002] Solid State Disk (SSD) has gradually become the main storage device of contemporary computers, and its read and write speed is also increasing day by day. As the performance of SSD increases day by day, its peak power consumption is also gradually increasing. The latest high-performance SSD is used on some old computer motherboards. The excessive power consumption of SSD may cause computer hardware abnormalities. If the power consumption of SSD is simply controlled by using software to limit the performance of SSD, it will lead to the waste of SSD performance. Therefore, it is urgent to provide a protection strategy in the prior art that can maximize the performance advantages of SSD under the premise of protecting the security of the host motherboard. Summary of the invention

[0003] Based on this, it is necessary to provide a maximum power consumption control method, device, computer equipment and storage medium based on a solid state drive to address the above technical problems.

[0004] A maximum power consumption control method based on a solid state drive, the method comprising:

[0005] The host sends a private command to the SSD and sets the maximum power consumption value of the SSD;

[0006] After the solid state drive receives the private command, the maximum ADC difference is calculated according to the set maximum power consumption value of the solid state drive;

[0007] The solid state drive firmware periodically obtains the real-time ADC difference value, and compares the real-time ADC difference value with the maximum ADC difference value;

[0008] If the real-time ADC difference is greater than or equal to the maximum ADC difference, it means that the power consumption of the solid-state drive exceeds the maximum power consumption value set by the host at this time, and the firmware reduces the power consumption by reducing the SOC operating frequency.

[0009] In one embodiment, after the step of the solid state drive firmware periodically acquiring the real-time ADC difference and comparing the real-time ADC difference with the maximum ADC difference, the following step is further included:

[0010] If the real-time ADC difference is less than the maximum ADC difference, it means that the current power consumption of the solid-state hard disk is within the maximum power consumption range set by the host, and the firmware runs normally.

[0011] In one embodiment, the method further comprises:

[0012] A sensing resistor is arranged on the hardware circuit of the solid state disk, and two ends of the sensing resistor are respectively connected to a first ADC pin and a second ADC pin of a main control SOC.

[0013] In one embodiment, the method further comprises:

[0014] The voltages of the first ADC pin and the second ADC pin are sensed in real time, and the voltage difference between the first ADC pin and the second ADC pin is the real-time ADC difference.

[0015] A maximum power consumption control device based on a solid state hard disk, the device comprising:

[0016] A power consumption setting module, wherein the power consumption setting module is used by the host to send a private command to the solid state drive and set a maximum power consumption value of the solid state drive;

[0017] A difference calculation module, wherein the difference calculation module is used to calculate the maximum ADC difference according to the set maximum power consumption value of the solid-state hard disk after the solid-state hard disk receives the private command;

[0018] A difference comparison module, wherein the difference comparison module is used for the solid state hard disk firmware to periodically obtain the real-time ADC difference and compare the real-time ADC difference with the maximum ADC difference;

[0019] The result processing module is used for if the real-time ADC difference is greater than or equal to the maximum ADC difference, it means that the power consumption of the solid state drive exceeds the maximum power consumption value set by the host, and the firmware reduces the power consumption by reducing the SOC operating frequency.

[0020] In one embodiment, the result processing module is further used for:

[0021] If the real-time ADC difference is less than the maximum ADC difference, it means that the current power consumption of the solid-state hard disk is within the maximum power consumption range set by the host, and the firmware runs normally.

[0022] In one embodiment, in the device:

[0023] A sensing resistor is arranged on the hardware circuit of the solid state disk, and two ends of the sensing resistor are respectively connected to a first ADC pin and a second ADC pin of a main control SOC.

[0024] In one embodiment, the device is further used for:

[0025] The voltages of the first ADC pin and the second ADC pin are sensed in real time, and the voltage difference between the first ADC pin and the second ADC pin is the real-time ADC difference.

[0026] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0027] A computer-readable storage medium stores a computer program, wherein the computer program implements the steps of any one of the above methods when executed by a processor.

[0028] The above-mentioned maximum power consumption control method, device, computer equipment and storage medium based on the solid-state hard disk, the host sends a private command to the solid-state hard disk and sets the maximum power consumption value of the solid-state hard disk; after the solid-state hard disk receives the private command, the maximum ADC difference is calculated according to the set maximum power consumption value of the solid-state hard disk; the solid-state hard disk firmware periodically obtains the real-time ADC difference, and compares the real-time ADC difference with the maximum ADC difference; if the real-time ADC difference is greater than or equal to the maximum ADC difference, it means that the power consumption of the solid-state hard disk exceeds the maximum power consumption value set by the host at this time, and the firmware reduces the power consumption by reducing the SOC operating frequency. The present invention sets the maximum power consumption of the SSD through a private command, allowing the SSD to exert its maximum performance within the safe power consumption range allowed by the host. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flowchart of a maximum power consumption control method based on a solid state hard disk in one embodiment;

[0030] Figure 2 is a flow chart of a maximum power consumption control method based on a solid state hard disk in another embodiment;

[0031] Figure 3 A schematic diagram of a flow chart of a maximum power consumption control method based on a solid state hard disk in yet another embodiment;

[0032] Figure 4 A schematic diagram of the connection relationship of a solid state drive hardware device in an embodiment;

[0033] Figure 5 is a structural block diagram of a maximum power consumption control device based on a solid state hard disk in one embodiment;

[0034] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0036] At present, as SSD performance continues to grow, its peak power consumption is also gradually increasing. The latest high-performance SSD is used on some old computer motherboards. Excessive power consumption of the SSD may cause computer hardware abnormalities. If the SSD power consumption is simply controlled by software to limit SSD performance, it will lead to a waste of SSD performance.

[0037] Based on this, the present invention provides a maximum power consumption control method based on a solid state drive, which aims to protect the motherboard while ensuring the performance of the SSD.

[0038] In one embodiment, Figure 1 As shown, a maximum power consumption control method based on a solid state drive is provided, the method comprising:

[0039] Step 102, the host sends a private command to the solid state drive and sets the maximum power consumption value of the solid state drive;

[0040] Step 104, after the solid state drive receives the private command, the maximum ADC difference is calculated according to the set maximum power consumption value of the solid state drive;

[0041] Step 106, the solid state drive firmware periodically obtains the real-time ADC difference value, and compares the real-time ADC difference value with the maximum ADC difference value;

[0042] Step 108: If the real-time ADC difference is greater than or equal to the maximum ADC difference, it means that the power consumption of the solid state drive exceeds the maximum power consumption value set by the host at this time, and the firmware reduces the power consumption by reducing the SOC operating frequency.

[0043] In this embodiment, a maximum power consumption control method based on a solid state drive is provided, in which the host can set a maximum power consumption threshold of the SSD through a private command to protect the security of the mainboard system.

[0044] Specifically, the host first needs to send a private command to set the maximum power consumption value of the SSD.

[0045] Then, after receiving the command, the SSD uses the formula: power = voltage * voltage / resistance to reversely calculate the maximum The SSD FW will periodically compare the real-time ADC difference with the maximum ADC difference.

[0046] If it is greater than or equal to the maximum ADC difference, it means that the SSD power consumption exceeds the maximum value set by the host. At this time, FW reduces power consumption by lowering the SOC operating frequency.

[0047] In one embodiment, after the step of the solid state drive firmware periodically acquiring the real-time ADC difference and comparing the real-time ADC difference with the maximum ADC difference, the method further includes:

[0048] If the real-time ADC difference is less than the maximum ADC difference, it means that the current power consumption of the solid-state hard disk is within the maximum power consumption range set by the host, and the firmware runs normally.

[0049] Specifically, refer to Figure 2 A flow chart of the maximum power consumption control method based on a solid state drive. If the real-time ADC difference is greater than or equal to the maximum ADC difference, it indicates that the SSD power consumption exceeds the maximum value set by the host, and the FW reduces the power consumption by lowering the SOC operating frequency. If the real-time ADC difference is less than the maximum ADC difference, it indicates that the current power consumption of the SSD is within the maximum power consumption range set by the host, and the FW operates normally.

[0050] In this embodiment, the host sends a private command to the SSD and sets the maximum power consumption value of the SSD; after the SSD receives the private command, the maximum ADC difference is calculated according to the set maximum power consumption value of the SSD; the SSD firmware periodically obtains the real-time ADC difference and compares the real-time ADC difference with the maximum ADC difference; if the real-time ADC difference is greater than or equal to the maximum ADC difference, it means that the power consumption of the SSD exceeds the maximum power consumption value set by the host at this time, and the firmware reduces the power consumption by reducing the SOC operating frequency. The present invention sets the maximum power consumption of the SSD through a private command, allowing the SSD to exert its maximum performance within the safe power consumption range allowed by the host.

[0051] In one embodiment, Figure 3 As shown, a maximum power consumption control method based on a solid state drive is provided, and the method also includes:

[0052] Step 302, a sensing resistor is provided on the hardware circuit of the solid state drive, and two ends of the sensing resistor are respectively connected to a first ADC pin and a second ADC pin of a main control SOC;

[0053] Step 304 , sensing the voltages of the first ADC pin and the second ADC pin in real time, wherein the voltage difference between the first ADC pin and the second ADC pin is the real-time ADC difference.

[0054] Specifically, refer to Figure 4The connection diagram of the solid-state drive hardware device shown in the figure shows that the SSD is mainly composed of a main control SOC (System on Chip) and a storage medium. The main control SOC and the storage medium are powered by the host. The main control SOC is used to run the firmware (a software program that manages the command transmission between the SSD and the host and the storage medium), and the storage medium is used to store data.

[0055] In the SSD hardware circuit, a sensing resistor is set after the host power supply. The sensing resistor is connected in series with the main control SOC and the storage medium. The circuit of the sensing resistor is the entire SSD disk current. The two ends of the sensing resistor are connected to the two ADC (analog to digital converter) pins of the main control SOC. The SSD FW can obtain the voltage value at both ends of the sensing resistor through the two ADC pins. The voltage difference between ADC1 and ADC2 is the voltage value at both ends of the sensing resistor.

[0056] In this embodiment, the ADC difference can be monitored in real time by setting the sensing resistor, and whether the SOC operating frequency needs to be reduced can be determined by comparing the ADC difference, which can effectively protect the motherboard and ensure the SSD performance.

[0057] It should be understood that although Figure 1-Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0058] In one embodiment, Figure 5 As shown, a maximum power consumption control device 500 based on a solid state hard disk is provided, and the device includes:

[0059] The power consumption setting module 501 is used by the host to send a private command to the solid state drive and set the maximum power consumption value of the solid state drive;

[0060] A difference calculation module 502, the difference calculation module is used to calculate the maximum ADC difference according to the set maximum power consumption value of the solid state hard disk after the solid state hard disk receives the private command;

[0061] A difference comparison module 503, which is used by the solid state hard disk firmware to periodically obtain the real-time ADC difference and compare the real-time ADC difference with the maximum ADC difference;

[0062] The result processing module 504 is used to reduce the power consumption by reducing the SOC operating frequency if the real-time ADC difference is greater than or equal to the maximum ADC difference, indicating that the power consumption of the solid state drive exceeds the maximum power consumption value set by the host.

[0063] In one embodiment, the result processing module 504 is further configured to:

[0064] If the real-time ADC difference is less than the maximum ADC difference, it means that the current power consumption of the solid-state hard disk is within the maximum power consumption range set by the host, and the firmware runs normally.

[0065] In one embodiment, in the device:

[0066] A sensing resistor is arranged on the hardware circuit of the solid state disk, and two ends of the sensing resistor are respectively connected to a first ADC pin and a second ADC pin of a main control SOC.

[0067] In one embodiment, the device is further used for:

[0068] The voltages of the first ADC pin and the second ADC pin are sensed in real time, and the voltage difference between the first ADC pin and the second ADC pin is the real-time ADC difference.

[0069] For the specific definition of the maximum power consumption control device based on the solid state drive, please refer to the definition of the maximum power consumption control method based on the solid state drive mentioned above, which will not be repeated here.

[0070] In one embodiment, a computer device is provided, whose internal structure diagram can be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating device, a computer program and a database. The internal memory provides an environment for the operation of the operating device and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a maximum power consumption control method based on a solid state drive is implemented.

[0071] Those skilled in the art will understand that Figure 6The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0072] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the above method embodiments when executing the computer program.

[0073] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0074] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0075] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0076] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A maximum power consumption control method based on a solid state drive, the method comprising: The host sends a private command to the SSD and sets the maximum power consumption value of the SSD; After the solid state drive receives the private command, the maximum ADC difference is calculated according to the set maximum power consumption value of the solid state drive; The solid state drive firmware periodically obtains the real-time ADC difference value, and compares the real-time ADC difference value with the maximum ADC difference value; If the real-time ADC difference is greater than or equal to the maximum ADC difference, it means that the power consumption of the solid-state drive exceeds the maximum power consumption value set by the host at this time, and the firmware reduces the power consumption by reducing the SOC operating frequency.

2. The maximum power consumption control method based on a solid state drive according to claim 1, characterized in that: After the step of the solid state hard disk firmware periodically acquiring the real-time ADC difference and comparing the real-time ADC difference with the maximum ADC difference, the method further includes: If the real-time ADC difference is less than the maximum ADC difference, it means that the current power consumption of the solid-state hard disk is within the maximum power consumption range set by the host, and the firmware runs normally.

3. The maximum power consumption control method based on a solid state drive according to claim 1 or 2, characterized in that: The method further comprises: A sensing resistor is arranged on the hardware circuit of the solid state disk, and two ends of the sensing resistor are respectively connected to a first ADC pin and a second ADC pin of a main control SOC.

4. The maximum power consumption control method based on a solid state drive according to claim 3, characterized in that: The method further comprises: The voltages of the first ADC pin and the second ADC pin are sensed in real time, and the voltage difference between the first ADC pin and the second ADC pin is the real-time ADC difference.

5. A maximum power consumption control device based on a solid state hard disk, characterized in that: The device comprises: A power consumption setting module, wherein the power consumption setting module is used by the host to send a private command to the solid state drive and set a maximum power consumption value of the solid state drive; A difference calculation module, wherein the difference calculation module is used to calculate the maximum ADC difference according to the set maximum power consumption value of the solid-state hard disk after the solid-state hard disk receives the private command; A difference comparison module, wherein the difference comparison module is used for the solid state hard disk firmware to periodically obtain the real-time ADC difference and compare the real-time ADC difference with the maximum ADC difference; The result processing module is used for if the real-time ADC difference is greater than or equal to the maximum ADC difference, it means that the power consumption of the solid state drive exceeds the maximum power consumption value set by the host, and the firmware reduces the power consumption by reducing the SOC operating frequency.

6. The maximum power consumption control device based on a solid state drive according to claim 5, characterized in that: The result processing module is also used for: If the real-time ADC difference is less than the maximum ADC difference, it means that the current power consumption of the solid-state hard disk is within the maximum power consumption range set by the host, and the firmware runs normally.

7. The maximum power consumption control device based on a solid state hard disk according to claim 5 or 6, characterized in that: In the device: A sensing resistor is arranged on the hardware circuit of the solid state disk, and two ends of the sensing resistor are respectively connected to a first ADC pin and a second ADC pin of a main control SOC.

8. The maximum power consumption control device based on a solid state hard disk according to claim 7, characterized in that: The device is also used for: The voltages of the first ADC pin and the second ADC pin are sensed in real time, and the voltage difference between the first ADC pin and the second ADC pin is the real-time ADC difference.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.