SSD self-adaptive power consumption flow adjusting method, device and equipment and medium

By obtaining the commands issued by the host and the preset total power consumption quota, determining the number of concurrent executions of SSD commands, and adaptive adjustment of SSD power consumption is achieved, solving the problems of SSD temperature stability and performance reliability, and reducing the driver requirements on the host side.

CN120066232APending Publication Date: 2025-05-30RAMAXEL TECH SHENZHEN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510151097.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

How to achieve accurate control of the power consumption of SSD storage media to ensure stable temperature and reliable performance of SSD.

Method used

By obtaining the commands issued by the host, the power consumption value of the command is determined, and the number of concurrent executions of the command is determined based on the preset total power consumption limit and the power consumption value of the command is determined, thereby achieving adaptive adjustment of the SSD power consumption.

Benefits of technology

It effectively avoids the excessive temperature of the SSD caused by excessive concurrency, ensures the stability and performance reliability of the SSD temperature, and reduces the driver requirements on the host side.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066232A_ABST
    Figure CN120066232A_ABST
Patent Text Reader

Abstract

The invention discloses an SSD self-adaptive power consumption flow regulation method, device and equipment and a medium, and relates to the technical field of SSD flow regulation. The method comprises the following steps: acquiring a command issued by a host, and determining a power consumption value of the command; acquiring a preset total power consumption limit; and determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command. Wherein the sum of the power consumption values of the concurrently executed commands is smaller than or equal to the total power consumption limit, so that reliable flow control can be realized, the situation that the temperature of the solid state disk is too high due to too much concurrence is effectively avoided, and stable temperature and reliable performance of the solid state disk are ensured. Therefore, the flow can be adaptively adjusted according to the power consumption, the multi-concurrence quantity can be effectively controlled, and the influence on the performance of the solid state disk due to overhigh power consumption of the storage medium is avoided; meanwhile, the host end driving requirement is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of SSD traffic regulation, and particularly to a method, device, equipment and medium for adaptively adjusting the power consumption and traffic of an SSD. Background Art

[0002] The storage medium in SSD - Solid State Drives (solid - state drives) now widely uses NAND Flash. NAND Flash mostly uses multi - layer stacking and splicing to increase capacity. However, in the case of multi - layer stacking, temperature control is an important problem currently faced. Excessive temperature is likely to cause performance degradation and even data loss.

[0003] As the number of stacking layers of SSD (solid - state drive) increases, the requirement for controlling the medium temperature becomes higher, and the temperature of the medium depends on the magnitude of the power consumption of the storage medium.

[0004] In related technologies, the host often limits the number of concurrences according to the medium temperature to reduce the number of concurrences in order to control the medium temperature. However, this method has relatively high requirements for the host driver. The main reason is that the host cannot issue commands randomly and needs to monitor the medium temperature to dynamically adjust the number of concurrences.

[0005] It can be seen that how to achieve precise control of the magnitude of the power consumption of the storage medium to ensure the stable temperature and reliable performance of the SSD has become a technical problem that needs to be solved urgently in this field. Summary of the Invention

[0006] Embodiments of the present invention provide a method, device, equipment and medium for adaptively adjusting the power consumption and traffic of an SSD, aiming to solve at least one of the technical problems in the above - mentioned background art.

[0007] In a first aspect, an embodiment of the present invention provides a method for adaptively adjusting the power consumption and traffic of an SSD, which includes:

[0008] Obtain a command issued by the host and determine the power consumption value of the command;

[0009] Obtain a preset total power consumption limit;

[0010] Determine the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0011] A further technical solution thereof is that determining the power consumption value of the command includes:

[0012] Obtain the type of the command;

[0013] Determine the power consumption value of the command based on the type of the command.

[0014] A further technical solution thereof is that determining the power consumption value of the command based on the type of the command includes:

[0015] Obtaining a preset type-power consumption correspondence;

[0016] Determining the power consumption value of the command according to the type of the command and the type-power consumption correspondence.

[0017] A further technical solution thereof is that the sum of the power consumption values of the concurrently executed commands is less than or equal to the total power consumption limit.

[0018] A further technical solution thereof is that the obtaining the preset total power consumption limit includes:

[0019] Receiving a total power consumption limit configuration command sent by a host;

[0020] Determining the total power consumption limit according to the total power consumption limit configuration command.

[0021] A further technical solution thereof is that the method further includes:

[0022] If the total power consumption limit is adjusted, based on the adjusted total power consumption limit, re-executing the step of determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0023] A further technical solution thereof is that the method further includes:

[0024] If the power consumption value of the command is adjusted, based on the adjusted power consumption value of the command, re-executing the step of determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0025] In a second aspect, an embodiment of the present invention further provides an SSD adaptive power consumption adjustment flow device, which includes a unit for executing the above method.

[0026] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, and a computer program is stored on the memory, and when the processor executes the computer program, the above method is implemented.

[0027] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, and the storage medium stores a computer program, and when the computer program is executed by a processor, the above method can be implemented.

[0028] An embodiment of the present invention provides a method, apparatus, device, and medium for SSD adaptive power consumption adjustment of traffic. Among them, the method includes: obtaining a command sent by a host, determining the power consumption value of the command; obtaining a preset total power consumption limit; and determining the concurrent execution quantity of the command according to the total power consumption limit and the power consumption value of the command. The sum of the power consumption values of the commands executed concurrently is less than or equal to the total power consumption limit, so that reliable traffic control can be achieved, effectively avoiding too many concurrent quantities, resulting in too high a temperature of the solid-state drive, ensuring the stable temperature of the solid-state drive and reliable performance. It can be seen that the present invention can adaptively adjust traffic according to power consumption, effectively control the multi-concurrent quantity, avoid causing too large a power consumption of the storage medium and affecting the performance of the solid-state drive; at the same time, reduce the driver requirements on the host side. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0030] Figure 1 It is a schematic flowchart of a method for SSD adaptive power consumption adjustment of traffic provided by an embodiment of the present invention;

[0031] Figure 2 It is another schematic flowchart of a method for SSD adaptive power consumption adjustment of traffic provided by an embodiment of the present invention;

[0032] Figure 3 It is a schematic diagram of the change in the power consumption of the solid-state drive after the total power consumption limit is adjusted provided by an embodiment of the present invention;

[0033] Figure 4 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0034] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts fall within the protection scope of the present invention.

[0035] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprise" indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0036] It should also be understood that the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms.

[0037] It should be further understood that the term "and / or" used in the specification of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0038] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when", "once", "in response to determining" or "in response to detecting". Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, as meaning "once determined", "in response to determining", "once [the described condition or event] is detected" or "in response to detecting [the described condition or event]".

[0039] Please refer to Figures 1 - 2 , an embodiment of the present invention provides a method for SSD adaptive power consumption regulation of traffic, and the method includes the following steps:

[0040] S1. Obtain a command sent by the host and determine the power consumption value of the command.

[0041] In specific implementation, the method for SSD adaptive power consumption regulation of traffic proposed by the present invention is applied to a solid state drive. The solid state drive receives a command sent by the host, and in the present invention, the type of the command is not specifically limited.

[0042] The solid state drive can receive multiple commands sent by the host at the same time. After receiving the command, the solid state drive determines the power consumption value of the command. Specifically, the host pre-configures the power consumption values of various commands, and after receiving the command, the solid state drive can determine the power consumption value of the command based on the configuration information of the power consumption value of the command pre-configured by the host.

[0043] In some embodiments, the above step "determine the power consumption value of the command" specifically includes: obtaining the type of the command; determining the power consumption value of the command based on the type of the command.

[0044] In specific implementation, obtain a preset type-power consumption correspondence; determine the power consumption value of the command according to the type of the command and the type-power consumption correspondence.

[0045] The type of the command can be determined based on the parameters of the command. The type-power consumption correspondence can be pre-configured by the host, and the present invention does not specifically limit this. The type-power consumption correspondence records the power consumption corresponding to different types of commands. Therefore, after determining the type of the command, the power consumption value of the corresponding command can be found from the type-power consumption correspondence.

[0046] S2. Obtain a preset total power consumption limit.

[0047] In specific implementation, the total power consumption limit can be pre-determined by the host and sent to the solid-state drive, and the present invention does not specifically limit this.

[0048] For example, in some embodiments, the above step of "obtaining a preset total power consumption limit" specifically includes: receiving a total power consumption limit configuration command sent by the host; and determining the total power consumption limit according to the total power consumption limit configuration command.

[0049] Specifically, the host sends a total power consumption limit configuration command to the solid-state drive, and the total power consumption limit configuration command contains the total power consumption limit. The solid-state drive parses the total power consumption limit configuration command to obtain the total power consumption limit.

[0050] S3. Determine the concurrent execution quantity of the command according to the total power consumption limit and the power consumption value of the command.

[0051] In specific implementation, the concurrent execution quantity of the command is determined according to the total power consumption limit and the power consumption value of the command, and the command is concurrently executed according to the concurrent execution quantity. Among them, the sum of the power consumption values of the concurrently executed commands is less than or equal to the total power consumption limit, so that reliable traffic control can be realized, effectively avoiding excessive concurrent quantity, resulting in too high temperature of the solid-state drive, and ensuring the stable temperature and reliable performance of the solid-state drive.

[0052] Further, if the total power consumption limit is adjusted, based on the adjusted total power consumption limit, the step of determining the concurrent execution quantity of the command according to the total power consumption limit and the power consumption value of the command is re-executed. If the power consumption value of the command is adjusted, based on the adjusted power consumption value of the command, the step of determining the concurrent execution quantity of the command according to the total power consumption limit and the power consumption value of the command is re-executed.

[0053] In specific implementation, when any one of the total power consumption limit and the power consumption value of the command is adjusted, the present invention re-determines the concurrent execution quantity of the command according to the total power consumption limit and the power consumption value of the command, ensuring the controllability of the traffic. It can be understood that the adjustment of the total power consumption limit and the power consumption value of the command can be adjusted based on an adjustment instruction sent by the host, and the present invention does not specifically limit this.

[0054] For example, referring to Figure 3 , in the method for SSD adaptive power consumption regulation of traffic provided in this embodiment, the total power consumption limit is modified at t = t3, and converges to the configured value after the total power consumption limit is modified at t = t4, indicating that the method of this embodiment can adaptively regulate the traffic according to the power consumption.

[0055] An embodiment of the present invention provides a method for SSD adaptive power consumption regulation of traffic. The method includes: obtaining a command sent by a host, and determining the power consumption value of the command; obtaining a preset total power consumption limit; determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command. Among them, the sum of the power consumption values of the concurrently executed commands is less than or equal to the total power consumption limit, so that reliable traffic control can be achieved, effectively avoiding too many concurrent numbers, resulting in too high a temperature of the solid-state drive, ensuring the temperature stability of the solid-state drive and reliable performance. It can be seen that the present invention can adaptively regulate the traffic according to the power consumption, effectively control the multi-concurrent number, avoid causing too large a power consumption of the storage medium and affecting the performance of the solid-state drive; at the same time, reduce the driver requirements on the host side.

[0056] Corresponding to the above method for SSD adaptive power consumption regulation of traffic, the present invention also provides a device for SSD adaptive power consumption regulation of traffic. The device for SSD adaptive power consumption regulation of traffic includes units for executing the above method for SSD adaptive power consumption regulation of traffic. The device for SSD adaptive power consumption regulation of traffic can be configured in terminals such as desktop computers, tablet computers, laptop computers, etc. Specifically, the device for SSD adaptive power consumption regulation of traffic includes:

[0057] A determination unit, configured to obtain a command sent by a host and determine the power consumption value of the command;

[0058] An obtaining unit, configured to obtain a preset total power consumption limit;

[0059] A concurrency unit, configured to determine the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0060] In some embodiments, such as this embodiment, determining the power consumption value of the command includes:

[0061] Obtaining the type of the command;

[0062] Determining the power consumption value of the command based on the type of the command.

[0063] In some embodiments, such as this embodiment, determining the power consumption value of the command based on the type of the command includes:

[0064] Obtaining a preset type-power consumption correspondence;

[0065] Determine the power consumption value of the command according to the type of the command and the type-power consumption correspondence relationship.

[0066] In some embodiments, such as this embodiment, the sum of the power consumption values of the concurrently executed commands is less than or equal to the total power consumption limit.

[0067] In some embodiments, such as this embodiment, the obtaining of the preset total power consumption limit includes:

[0068] Receive the total power consumption limit configuration command sent by the host;

[0069] Determine the total power consumption limit according to the total power consumption limit configuration command.

[0070] In some embodiments, such as this embodiment, the SSD adaptive power consumption regulation flow device further includes:

[0071] A first adjustment unit, configured to, if the total power consumption limit is adjusted, based on the adjusted total power consumption limit, re-execute the step of determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0072] In some embodiments, such as this embodiment, the SSD adaptive power consumption regulation flow device further includes:

[0073] A second adjustment unit, configured to, if the power consumption value of the command is adjusted, based on the adjusted power consumption value of the command, re-execute the step of determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0074] It should be noted that those skilled in the art can clearly understand that the specific implementation processes of the above SSD adaptive power consumption regulation flow device and each unit can refer to the corresponding descriptions in the foregoing method embodiments. For the convenience and conciseness of description, they will not be repeated here.

[0075] The above SSD adaptive power consumption regulation flow device can be implemented in the form of a computer program, and the computer program can run on a computer device as shown in Figure 4 shown.

[0076] Please refer to Figure 4 , Figure 4 which is a schematic block diagram of a computer device provided by an embodiment of the present application. The computer device 500 can be a terminal or a server. Among them, the terminal can be an electronic device with a communication function such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server can be an independent server or a server cluster composed of multiple servers.

[0077] The computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501. Among them, the memory may include a non-volatile storage medium 503 and an internal memory 504.

[0078] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it can cause the processor 502 to execute a method for SSD adaptive power consumption regulation traffic.

[0079] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.

[0080] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, it can cause the processor 502 to execute a method for SSD adaptive power consumption regulation traffic.

[0081] The network interface 505 is used for network communication with other devices. Those skilled in the art can understand that the above structure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0082] Among them, the processor 502 is used to run the computer program 5032 stored in the memory to implement the steps of the above method for SSD adaptive power consumption regulation traffic, specifically including the following steps:

[0083] Obtain a command issued by the host and determine the power consumption value of the command;

[0084] Obtain a preset total power consumption limit;

[0085] Determine the concurrent execution quantity of the command according to the total power consumption limit and the power consumption value of the command.

[0086] In some embodiments, such as this embodiment, the determining the power consumption value of the command includes:

[0087] Obtain the type of the command;

[0088] Determine the power consumption value of the command based on the type of the command.

[0089] In some embodiments, such as this embodiment, the determining the power consumption value of the command based on the type of the command includes:

[0090] Obtain a preset type-power consumption correspondence;

[0091] Determine the power consumption value of the command according to the type of the command and the type-power consumption correspondence.

[0092] In some embodiments, such as this embodiment, the sum of the power consumption values of the concurrently executed commands is less than or equal to the total power consumption limit.

[0093] In some embodiments, such as this embodiment, the obtaining of the preset total power consumption limit includes:

[0094] Receive a total power consumption limit configuration command sent by the host;

[0095] Determine the total power consumption limit according to the total power consumption limit configuration command.

[0096] In some embodiments, such as this embodiment, the method further includes:

[0097] If the total power consumption limit is adjusted, based on the adjusted total power consumption limit, re-execute the step of determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0098] In some embodiments, such as this embodiment, the method further includes:

[0099] If the power consumption value of the command is adjusted, based on the adjusted power consumption value of the command, re-execute the step of determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0100] It should be understood that in the embodiments of the present application, the processor 502 may be a central processing unit (CPU), and this processor 502 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0101] Those of ordinary skill in the art can understand that all or part of the processes in the methods of implementing the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a storage medium, and the storage medium is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiments of the above methods.

[0102] Therefore, the present invention also provides a storage medium. The storage medium can be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the method for SSD adaptive power consumption adjustment flow, specifically including the following steps:

[0103] Obtain the command issued by the host and determine the power consumption value of the command;

[0104] Obtain the preset total power consumption limit;

[0105] Determine the concurrent execution quantity of the command according to the total power consumption limit and the power consumption value of the command.

[0106] In some embodiments, such as this embodiment, the determining the power consumption value of the command includes:

[0107] Obtain the type of the command;

[0108] Determine the power consumption value of the command based on the type of the command.

[0109] In some embodiments, such as this embodiment, the determining the power consumption value of the command based on the type of the command includes:

[0110] Obtain the preset type-power consumption correspondence;

[0111] Determine the power consumption value of the command according to the type of the command and the type-power consumption correspondence.

[0112] In some embodiments, such as this embodiment, the sum of the power consumption values of the concurrently executed commands is less than or equal to the total power consumption limit.

[0113] In some embodiments, such as this embodiment, the obtaining the preset total power consumption limit includes:

[0114] Receive the total power consumption limit configuration command sent by the host;

[0115] Determine the total power consumption limit according to the total power consumption limit configuration command.

[0116] In some embodiments, such as this embodiment, the method further includes:

[0117] If the total power consumption limit is adjusted, based on the adjusted total power consumption limit, re - execute the step of determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0118] In some embodiments, such as this embodiment, the method further includes:

[0119] If the power consumption value of the command is adjusted, based on the adjusted power consumption value of the command, re - execute the step of determining the concurrent execution number of the command according to the total power consumption limit and the power consumption value of the command.

[0120] The storage medium is a physical, non - transient storage medium, such as a USB flash drive, a portable hard drive, a read - only memory (ROM), a magnetic disk, or an optical disc, etc., which are various physical storage media that can store program codes. The computer - readable storage medium can be non - volatile or volatile.

[0121] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.

[0122] In several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only a logical function division, and there can be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0123] The steps in the method embodiments of the present invention can be adjusted, combined, and deleted according to actual needs. The units in the device embodiments of the present invention can be combined, divided, and deleted according to actual needs. In addition, the functional units in each embodiment of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0124] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0125] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0126] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, provided that these modifications and variations of the present invention are within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these changes and modifications.

[0127] As described above, the above are only the specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for SSD adaptive power consumption regulation flow, characterized in that: include: Obtaining a command sent by the host and determining a power consumption value of the command; Get the preset total power consumption quota; The number of concurrent executions of the commands is determined according to the total power consumption quota and the power consumption value of the commands.

2. The method for adjusting flow rate by adaptive power consumption of SSD according to claim 1, characterized in that: The determining the power consumption value of the command includes: Get the type of the command; A power consumption value of the command is determined based on the type of the command.

3. The method for adjusting flow rate by adaptive power consumption of SSD according to claim 1, characterized in that: The determining the power consumption value of the command based on the type of the command includes: Get the preset type-power consumption correspondence; The power consumption value of the command is determined according to the type of the command and the type-power consumption correspondence.

4. The method for adjusting flow rate by adaptive power consumption of SSD according to claim 1, characterized in that: The sum of the power consumption values ​​of the concurrently executed commands is less than or equal to the total power consumption quota.

5. The method for adjusting flow rate by adaptive power consumption of SSD according to claim 1, characterized in that: The obtaining of the preset total power consumption quota includes: Receive a total power consumption quota configuration command sent by the host; The total power consumption quota is determined according to the total power consumption quota configuration command.

6. The method for adjusting flow rate by adaptive power consumption of SSD according to claim 1, characterized in that: The method further comprises: If the total power consumption quota is adjusted, based on the adjusted total power consumption quota, the step of determining the number of concurrent executions of the command according to the total power consumption quota and the power consumption value of the command is re-executed.

7. The method for adjusting flow rate by adaptive power consumption of SSD according to claim 1, characterized in that: The method further comprises: If the power consumption value of the command is adjusted, based on the adjusted power consumption value of the command, the step of determining the number of concurrent executions of the command according to the total power consumption quota and the power consumption value of the command is re-executed.

8. A device for SSD adaptive power consumption regulation flow, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 7.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.