CN117894347A - Method, system and medium for controlling power consumption of solid state disk - Google Patents

Method, system and medium for controlling power consumption of solid state disk Download PDF

Info

Publication number
CN117894347A
CN117894347A CN202410298220.0A CN202410298220A CN117894347A CN 117894347 A CN117894347 A CN 117894347A CN 202410298220 A CN202410298220 A CN 202410298220A CN 117894347 A CN117894347 A CN 117894347A
Authority
CN
China
Prior art keywords
power consumption
data
solid state
state disk
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202410298220.0A
Other languages
Chinese (zh)
Other versions
CN117894347B (en
Inventor
黄少娃
郭威成
黄旭彪
吴桂冠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Quanxing Technology Co ltd
Original Assignee
Shenzhen Quanxing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Quanxing Technology Co ltd filed Critical Shenzhen Quanxing Technology Co ltd
Priority to CN202410298220.0A priority Critical patent/CN117894347B/en
Publication of CN117894347A publication Critical patent/CN117894347A/en
Application granted granted Critical
Publication of CN117894347B publication Critical patent/CN117894347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Abstract

The embodiment of the application provides a method, a system and a medium for controlling power consumption of a solid state disk. The method comprises the following steps: acquiring capacity data of the solid state disk, calculating to acquire a capacity power consumption influence index according to the capacity data, acquiring standard working state data and real-time working state data of the solid state disk, and calculating to acquire a working state power consumption influence index according to the standard working state data and the real-time working state data; obtaining standard mode power consumption data of the solid state disk, and then combining the capacity power consumption influence index and the working state power consumption influence index to process to obtain predicted power consumption demand data of the solid state disk; obtaining target power consumption data of the solid state disk, comparing the target power consumption data with predicted power consumption demand data to obtain a predicted power consumption duty ratio index, comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold to obtain an operation state of the solid state disk, and finally correspondingly obtaining a solid state disk operation mode and executing corresponding operation.

Description

Method, system and medium for controlling power consumption of solid state disk
Technical Field
The application relates to the field of solid state disks, in particular to a method, a system and a medium for controlling power consumption of a solid state disk.
Background
With the rapid development of information technology, solid state disk is used as a high-efficiency data storage device, and is widely applied to various computer systems due to the advantages of high performance, low delay and the like. However, with the increase of data storage and the increase of computing demands, the use of the solid state disk is also more and more focused, and in the use process of the solid state disk, power consumption is inevitably generated, and the size of the power consumption is one of important factors affecting the service life of the solid state disk, so that the power consumption problem of the solid state disk is gradually highlighted. The influence factors of the power consumption of the solid state disk are various, wherein the influence factors include the read-write speed, the workload, the temperature and the like of the solid state disk. How to effectively control the power consumption of the solid state disk, prolong the service life of the solid state disk and improve the energy efficiency ratio of the solid state disk is a focus of attention in the industry.
In view of the above problems, an effective technical solution is currently needed.
Disclosure of Invention
The application aims to provide a method, a system and a medium for controlling the power consumption of a solid state disk, wherein the method, the system and the medium can obtain capacity power consumption influence indexes by obtaining capacity data of the solid state disk and calculating the capacity power consumption influence indexes according to the capacity data, then obtain standard working state data and real-time working state data of the solid state disk and calculate the working state power consumption influence indexes according to the standard working state data and the real-time working state data of the solid state disk; obtaining standard mode power consumption data of the solid state disk, and then combining the capacity power consumption influence index and the working state power consumption influence index to process to obtain predicted power consumption demand data of the solid state disk; obtaining target power consumption data of the solid state disk, comparing the target power consumption data with predicted power consumption demand data to obtain a predicted power consumption duty ratio index, comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold to obtain an operation state of the solid state disk, and finally correspondingly obtaining a solid state disk operation mode and executing corresponding operation.
The application also provides a method for controlling the power consumption of the solid state disk, which comprises the following steps:
acquiring capacity data of the solid state disk, and calculating according to the capacity data to acquire a capacity power consumption influence index;
standard working state data and real-time working state data of the solid state disk are obtained, and working state power consumption influence indexes are obtained through calculation according to the standard working state data and the real-time working state data;
obtaining standard mode power consumption data of the solid state disk, and processing the standard mode power consumption data according to the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data through a preset power consumption demand data prediction model to obtain predicted power consumption demand data of the solid state disk;
acquiring target power consumption data of the solid state disk, and comparing the predicted power consumption demand data with the target power consumption data to obtain a predicted power consumption duty ratio index;
comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk;
and correspondingly obtaining a solid state disk operation mode according to the operation state and executing corresponding operation.
Optionally, in the method for controlling power consumption of a solid state disk described in the present application, the obtaining capacity data of the solid state disk and calculating according to the capacity data to obtain a capacity power consumption impact index specifically includes:
Acquiring capacity data of the solid state disk, wherein the capacity data comprises standard storage capacity data and use storage capacity data;
and calculating and obtaining a capacity power consumption influence index according to the standard storage capacity data and the storage capacity data.
Optionally, in the method for controlling power consumption of a solid state disk described in the present application, the obtaining standard working state data and real-time working state data of the solid state disk, and calculating according to the standard working state data and the real-time working state data to obtain a working state power consumption impact index specifically includes:
the method comprises the steps of obtaining standard working state data of the solid state disk, wherein the standard working state data comprise standard read-write speed data, standard workload data and standard temperature data;
acquiring real-time working state data of the solid state disk, wherein the real-time working state data comprises real-time read-write speed data, real-time workload data and real-time temperature data;
and calculating according to the standard read-write speed data, the standard work load data, the standard temperature data, the real-time read-write speed data, the real-time work load data and the real-time temperature data to obtain the working state power consumption influence index.
Optionally, in the method for controlling power consumption of a solid state disk, the obtaining standard mode power consumption data of the solid state disk, and processing the standard mode power consumption data, the capacity power consumption influence index, the working state power consumption influence index and the power consumption influence index by a preset power consumption demand data prediction model to obtain predicted power consumption demand data of the solid state disk specifically includes:
Obtaining standard mode power consumption data of the solid state disk;
inputting the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data into a preset power consumption demand data prediction model for processing to obtain predicted power consumption demand data of the solid state disk;
the calculation formula of the predicted power consumption demand data in the preset power consumption demand data prediction model is as follows:
wherein,for predicting power consumption demand data +.>For standard mode power consumption data, +.>For the capacity power consumption impact index,power consumption influence index for operating state, +.>、/>、/>Is a preset characteristic coefficient.
Optionally, in the method for controlling power consumption of a solid state disk described in the present application, comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain an operation state of the solid state disk specifically includes:
extracting a first threshold and a second threshold according to a preset power consumption duty ratio index threshold, wherein the first threshold is larger than the second threshold;
comparing the predicted power consumption duty cycle index to the first and second thresholds;
if the predicted power consumption duty ratio index is larger than the first threshold, the running state of the solid state disk is an overload state;
if the predicted power consumption duty ratio index is larger than the second threshold and smaller than the first threshold, the running state of the solid state disk is in a full load state;
And if the predicted power consumption duty ratio index is smaller than the second threshold, the running state of the solid state disk is a light load state.
Optionally, in the method for controlling power consumption of a solid state disk, the obtaining a running mode of the solid state disk according to the running state corresponds and executes a corresponding operation, and specifically includes:
correspondingly obtaining a solid state disk operation mode according to the solid state disk operation state;
the overload state, the full load state and the light load state correspond to an energy-saving and power-saving mode, a down-regulating working state data mode and a normal working mode respectively;
and executing corresponding operation according to the running mode of the solid state disk.
Optionally, in the method for controlling power consumption of a solid state disk described in the present application, after the solid state disk executes the energy-saving and power-saving mode, the method further includes:
acquiring the running state of the solid state disk according to a preset time period;
and if the running state is still the overload state, suspending the running of the solid state disk.
In a second aspect, the present application provides a solid state disk power consumption control system, including: the memory comprises a program of a solid state disk power consumption control method, and the program of the solid state disk power consumption control method realizes the following steps when being executed by the processor:
Acquiring capacity data of the solid state disk, and calculating according to the capacity data to acquire a capacity power consumption influence index;
standard working state data and real-time working state data of the solid state disk are obtained, and working state power consumption influence indexes are obtained through calculation according to the standard working state data and the real-time working state data;
obtaining standard mode power consumption data of the solid state disk, and processing the standard mode power consumption data according to the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data through a preset power consumption demand data prediction model to obtain predicted power consumption demand data of the solid state disk;
acquiring target power consumption data of the solid state disk, and comparing the predicted power consumption demand data with the target power consumption data to obtain a predicted power consumption duty ratio index;
comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk;
and correspondingly obtaining a solid state disk operation mode according to the operation state and executing corresponding operation.
Optionally, in the solid state disk power consumption control system described in the present application, the obtaining capacity data of the solid state disk, and calculating according to the capacity data to obtain a capacity power consumption impact index specifically includes:
Acquiring capacity data of the solid state disk, wherein the capacity data comprises standard storage capacity data and use storage capacity data;
and calculating and obtaining a capacity power consumption influence index according to the standard storage capacity data and the storage capacity data.
In a third aspect, the present application further provides a readable storage medium, where the readable storage medium includes a solid state disk power consumption control method program, where when the solid state disk power consumption control method program is executed by a processor, the steps of a solid state disk power consumption control method according to any one of the above embodiments are implemented.
From the above, the method, system and medium for controlling the power consumption of the solid state disk are provided. The method comprises the steps of obtaining capacity data of a solid state disk, calculating to obtain a capacity power consumption influence index according to the capacity data, obtaining standard working state data and real-time working state data of the solid state disk, and calculating to obtain a working state power consumption influence index according to the standard working state data and the real-time working state data; obtaining standard mode power consumption data of the solid state disk, and then combining the capacity power consumption influence index and the working state power consumption influence index to process to obtain predicted power consumption demand data of the solid state disk; obtaining target power consumption data of the solid state disk, comparing the target power consumption data with predicted power consumption demand data to obtain a predicted power consumption duty ratio index, comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold to obtain an operation state of the solid state disk, and finally correspondingly obtaining a solid state disk operation mode and executing corresponding operation.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objects and other advantages of the present application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for controlling power consumption of a solid state disk according to an embodiment of the present application;
fig. 2 is a flowchart of obtaining a capacity power consumption impact index of a solid state disk power consumption control method according to an embodiment of the present application;
fig. 3 is a flowchart of obtaining an operating state power consumption impact index of a method for controlling power consumption of a solid state disk according to an embodiment of the present application.
Fig. 4 is a flowchart of obtaining predicted power consumption requirement data in a method for controlling power consumption of a solid state disk according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart of a method for controlling power consumption of a solid state disk according to some embodiments of the present application. The method for controlling the power consumption of the solid state disk is used in terminal equipment, such as a computer. The method for controlling the power consumption of the solid state disk comprises the following steps:
s11, acquiring capacity data of the solid state disk, and calculating according to the capacity data to acquire a capacity power consumption influence index;
s12, acquiring standard working state data and real-time working state data of the solid state disk, and calculating to acquire a working state power consumption influence index according to the standard working state data and the real-time working state data;
s13, obtaining standard mode power consumption data of the solid state disk, and processing the standard mode power consumption data according to the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data through a preset power consumption demand data prediction model to obtain predicted power consumption demand data of the solid state disk;
s14, acquiring target power consumption data of the solid state disk, and comparing the predicted power consumption demand data with the target power consumption data to obtain a predicted power consumption duty ratio index;
s15, comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk;
S16, correspondingly obtaining a solid state disk running mode according to the running state and executing corresponding operation.
In order to realize the power consumption control of the solid state disk, the solid state disk can timely and accurately perform the power consumption control, capacity data of the solid state disk is firstly obtained, a capacity power consumption influence index is obtained through capacity data calculation, the capacity power consumption influence index refers to data of the capacity on the power consumption influence degree, standard working state data and real-time working state data of the solid state disk are then obtained, and the working state power consumption influence index is obtained according to the two data calculation; obtaining standard mode power consumption data of the solid state disk, and obtaining predicted power consumption demand data of the solid state disk through processing calculation by combining the capacity power consumption influence index and the working state power consumption influence index; and comparing the predicted power consumption demand data with the target power consumption data, namely the predicted power consumption demand data/the target power consumption data, so as to obtain a predicted power consumption duty ratio index, wherein the predicted power consumption duty ratio index is the proportion data of the predicted power consumption data to the target power consumption data, comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk, and finally correspondingly obtaining the running mode of the solid state disk according to the running state and executing corresponding operation, thereby realizing the technology of power consumption control.
Referring to fig. 2, fig. 2 is a flowchart of obtaining a capacity power consumption impact index in a method for controlling power consumption of a solid state disk according to an embodiment of the present application. According to the embodiment of the invention, the method for acquiring the capacity data of the solid state disk and calculating and acquiring the capacity power consumption influence index according to the capacity data specifically comprises the following steps:
s21, acquiring capacity data of the solid state disk, wherein the capacity data comprise standard storage capacity data and use storage capacity data;
s22, calculating and obtaining a capacity power consumption influence index according to the standard storage capacity data and the storage capacity data.
After the solid state disk is determined, capacity data of the solid state disk can be obtained, wherein the capacity data comprise standard storage capacity data and used storage capacity data, the standard storage capacity data refer to design storage capacity data of the solid state disk, and the used storage capacity data refer to storage capacity data used by the solid state disk. The capacity power consumption impact index is calculated from the standard storage capacity data and using the storage capacity data. The capacity power consumption impact index calculation formula is:
wherein,index of influence for capacity power consumption>For standard storage capacity data +.>For using the storage capacity data.
Referring to fig. 3, fig. 3 is a flowchart of a method for controlling power consumption of a solid state disk to obtain an impact index of power consumption in a working state according to an embodiment of the present application. According to the embodiment of the invention, the standard working state data and the real-time working state data of the solid state disk are obtained, and the working state power consumption influence index is obtained by calculation according to the standard working state data and the real-time working state data, and the method specifically comprises the following steps:
s31, acquiring standard working state data of the solid state disk, wherein the standard working state data comprise standard read-write speed data, standard workload data and standard temperature data;
s32, acquiring real-time working state data of the solid state disk, wherein the real-time working state data comprise real-time read-write speed data, real-time workload data and real-time temperature data;
and S33, calculating and obtaining the working state power consumption influence index according to the standard read-write speed data, the standard workload data, the standard temperature data, the real-time read-write speed data, the real-time workload data and the real-time temperature data.
The method comprises the steps of obtaining standard working state data of the solid state disk, wherein the standard working state data refer to standard data of various works of the solid state disk in a designed standard working state, the standard working state data comprise standard read-write speed data, standard working load data and standard temperature data, and the standard temperature data refer to the temperature of the solid state disk in the standard working state; then, acquiring real-time working state data, wherein the real-time working state data refers to real-time conditions of the solid state disk during working, the real-time working state data comprises real-time read-write speed data, real-time workload data and real-time temperature data, and working state power consumption influence indexes are obtained according to standard read-write speed data, standard workload data, standard temperature data, real-time read-write speed data, real-time workload data and real-time temperature data, the working state power consumption influence indexes are namely the degree data of the solid state disk working state on power consumption influence, and a working state power consumption influence index calculation formula is as follows:
Wherein,power consumption influence index for operating state, +.>For real-time read-write speed data +.>For real-time workload data +.>Real-time temperature data,/->For standard read-write speed data +.>For standard workload data, +.>Is standard temperature data, < >>、/>、/>、/>And the characteristic coefficient is preset (the characteristic coefficient is obtained by inquiring a preset solid state disk power consumption database).
Referring to fig. 4, fig. 4 is a flowchart of obtaining predicted power consumption requirement data in a method for controlling power consumption of a solid state disk according to an embodiment of the present application. According to the embodiment of the invention, the standard mode power consumption data of the solid state disk is obtained, and the predicted power consumption demand data of the solid state disk is obtained according to the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data through a preset power consumption demand data prediction model, specifically comprising:
s41, acquiring standard mode power consumption data of the solid state disk;
s42, inputting the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data into a preset power consumption demand data prediction model for processing to obtain predicted power consumption demand data of the solid state disk;
the calculation formula of the predicted power consumption demand data in the preset power consumption demand data prediction model is as follows:
Wherein,for predicting power consumption demand data +.>For standard mode power consumption data, +.>For the capacity power consumption impact index,power consumption influence index for operating state, +.>、/>、/>And the characteristic coefficient is preset (the characteristic coefficient is obtained by inquiring a preset solid state disk power consumption database).
Firstly, standard mode power consumption data of the solid state disk, namely power consumption condition data of the solid state disk in a standard working mode, are obtained, and then the predicted power consumption requirement data of the solid state disk are obtained according to the standard mode power consumption data, the capacity power consumption influence index and the working state power consumption influence index in combination through a preset power consumption requirement data prediction model.
According to an embodiment of the present invention, the comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk specifically includes:
extracting a first threshold and a second threshold according to a preset power consumption duty ratio index threshold, wherein the first threshold is larger than the second threshold;
comparing the predicted power consumption duty cycle index to the first and second thresholds;
if the predicted power consumption duty ratio index is larger than the first threshold, the running state of the solid state disk is an overload state;
If the predicted power consumption duty ratio index is larger than the second threshold and smaller than the first threshold, the running state of the solid state disk is in a full load state;
and if the predicted power consumption duty ratio index is smaller than the second threshold, the running state of the solid state disk is a light load state.
After a preset power consumption duty ratio index threshold value is obtained, a first threshold value and a second threshold value are extracted, wherein the first threshold value is larger than the second threshold value, the predicted power consumption duty ratio index reflects whether the predicted power consumption exceeds a standard, the predicted power consumption duty ratio index is compared with the first threshold value and the second threshold value, when the predicted power consumption duty ratio index is larger than the first threshold value, the predicted power consumption is larger than the target power consumption of the solid state disk, and the running state is an overload state; when the predicted power consumption duty ratio index is larger than the second threshold value and smaller than the first threshold value, the running state of the solid state disk is in a full-load state, and the state indicates that the predicted power consumption data can occupy most of target power consumption; when the predicted power consumption duty ratio index is smaller than the second threshold value, the running state of the solid state disk is in a light load state, which indicates that the predicted power consumption data is obviously smaller than the target power consumption data, and the running state is good.
According to the embodiment of the invention, the method for correspondingly obtaining the operation mode of the solid state disk and executing the corresponding operation according to the operation state comprises the following steps:
correspondingly obtaining a solid state disk operation mode according to the solid state disk operation state;
the overload state, the full load state and the light load state correspond to an energy-saving and power-saving mode, a down-regulating working state data mode and a normal working mode respectively;
and executing corresponding operation according to the running mode of the solid state disk.
In order to better ensure the stable, long-term and efficient operation of the solid state disk, when the solid state disk is in different operation states, different operation modes are adopted, and when the solid state disk is in an overload state, an energy-saving and power-saving mode is started, and in the energy-saving and power-saving mode, the solid state disk temporarily stops working, including suspending reading and writing and loading, and starting a cooling fan; when the solid state disk is in a full load state, starting a down-regulating working state data mode, and in the down-regulating working state data mode, the solid state disk down-regulating working parameters, including reducing the read-write speed, reducing the load and starting a cooling fan; when the solid state disk is in a light load state, a normal working mode is started, and the solid state disk works normally.
According to an embodiment of the present invention, after the solid state disk executes the energy-saving and power-saving mode, the method further includes:
acquiring the running state of the solid state disk according to a preset time period;
and if the running state is still the overload state, suspending the running of the solid state disk.
After the energy-saving and power-saving mode is executed, the running state of the solid state disk is acquired according to a preset data acquisition time period in order to better monitor the state of the solid state disk, and if the running state is still in an overload state, the running of the solid state disk is suspended so as to ensure the safety of the solid state disk.
It should be noted that, according to an embodiment of the present invention, the method further includes:
obtaining partition information of the solid state disk and the read-write times of the corresponding partition;
comparing the read-write times with a preset threshold value of the read-write times of the solid state disk to obtain the use priority of the solid state disk partition;
and selecting the solid state disk partition and storing information according to the use priority.
The solid state disk is used in a partitioning mode in the using process, and after the solid state disk is determined, the standard reading and writing times are certain, and the probability of damage is higher when the reading and writing times are more. Firstly, obtaining partition information of a solid state disk and read-write times of corresponding partitions, comparing the read-write times with a preset threshold value of the read-write times of the solid state disk, and obtaining use priority of the solid state disk partition, wherein the priority comprises priority, general description and use times of priority are relatively less, the priority can be used preferentially, general description and use times of priority are more, the priority is not used preferentially, and the selection of the solid state disk partition and the storage of information are carried out according to the use priority.
The invention also discloses a solid state disk power consumption control system, which comprises a memory and a processor, wherein the memory comprises a solid state disk power consumption control method program, and the solid state disk power consumption control method program realizes the following steps when being executed by the processor:
acquiring capacity data of the solid state disk, and calculating according to the capacity data to acquire a capacity power consumption influence index;
standard working state data and real-time working state data of the solid state disk are obtained, and working state power consumption influence indexes are obtained through calculation according to the standard working state data and the real-time working state data;
obtaining standard mode power consumption data of the solid state disk, and processing the standard mode power consumption data according to the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data through a preset power consumption demand data prediction model to obtain predicted power consumption demand data of the solid state disk;
acquiring target power consumption data of the solid state disk, and comparing the predicted power consumption demand data with the target power consumption data to obtain a predicted power consumption duty ratio index;
comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk;
And correspondingly obtaining a solid state disk operation mode according to the operation state and executing corresponding operation.
In order to realize the power consumption control of the solid state disk, the solid state disk can timely and accurately perform the power consumption control, capacity data of the solid state disk is firstly obtained, a capacity power consumption influence index is obtained through capacity data calculation, the capacity power consumption influence index refers to data of the capacity on the power consumption influence degree, standard working state data and real-time working state data of the solid state disk are then obtained, and the working state power consumption influence index is obtained according to the two data calculation; obtaining standard mode power consumption data of the solid state disk, and obtaining predicted power consumption demand data of the solid state disk through processing calculation by combining the capacity power consumption influence index and the working state power consumption influence index; and comparing the predicted power consumption demand data with the target power consumption data, namely the predicted power consumption demand data/the target power consumption data, so as to obtain a predicted power consumption duty ratio index, wherein the predicted power consumption duty ratio index is the proportion data of the predicted power consumption data to the target power consumption data, comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk, and finally correspondingly obtaining the running mode of the solid state disk according to the running state and executing corresponding operation, thereby realizing the technology of power consumption control.
According to the embodiment of the invention, the method for acquiring the capacity data of the solid state disk and calculating and acquiring the capacity power consumption influence index according to the capacity data specifically comprises the following steps:
acquiring capacity data of the solid state disk, wherein the capacity data comprises standard storage capacity data and use storage capacity data;
and calculating and obtaining a capacity power consumption influence index according to the standard storage capacity data and the storage capacity data.
After the solid state disk is determined, capacity data of the solid state disk can be obtained, wherein the capacity data comprise standard storage capacity data and used storage capacity data, the standard storage capacity data refer to design storage capacity data of the solid state disk, and the used storage capacity data refer to storage capacity data used by the solid state disk. The capacity power consumption impact index is calculated from the standard storage capacity data and using the storage capacity data. The capacity power consumption impact index calculation formula is:
wherein,index of influence for capacity power consumption>For standard storage capacity data +.>For using the storage capacity data.
According to the embodiment of the invention, the standard working state data and the real-time working state data of the solid state disk are obtained, and the working state power consumption influence index is obtained by calculation according to the standard working state data and the real-time working state data, and the method specifically comprises the following steps:
The method comprises the steps of obtaining standard working state data of the solid state disk, wherein the standard working state data comprise standard read-write speed data, standard workload data and standard temperature data;
acquiring real-time working state data of the solid state disk, wherein the real-time working state data comprises real-time read-write speed data, real-time workload data and real-time temperature data;
and calculating according to the standard read-write speed data, the standard work load data, the standard temperature data, the real-time read-write speed data, the real-time work load data and the real-time temperature data to obtain the working state power consumption influence index.
The method comprises the steps of obtaining standard working state data of the solid state disk, wherein the standard working state data refer to standard data of various works of the solid state disk in a designed standard working state, the standard working state data comprise standard read-write speed data, standard working load data and standard temperature data, and the standard temperature data refer to the temperature of the solid state disk in the standard working state; then, acquiring real-time working state data, wherein the real-time working state data refers to real-time conditions of the solid state disk during working, the real-time working state data comprises real-time read-write speed data, real-time workload data and real-time temperature data, and working state power consumption influence indexes are obtained according to standard read-write speed data, standard workload data, standard temperature data, real-time read-write speed data, real-time workload data and real-time temperature data, the working state power consumption influence indexes are namely the degree data of the solid state disk working state on power consumption influence, and a working state power consumption influence index calculation formula is as follows:
Wherein,power consumption influence index for operating state, +.>For real-time read-write speed data +.>For real-time workload data +.>Real-time temperature data,/->For standard read-write speed data +.>For standard workload data, +.>Is standard temperature data, < >>、/>、/>、/>And the characteristic coefficient is preset (the characteristic coefficient is obtained by inquiring a preset solid state disk power consumption database).
According to the embodiment of the invention, the standard mode power consumption data of the solid state disk is obtained, and the predicted power consumption demand data of the solid state disk is obtained according to the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data through a preset power consumption demand data prediction model, specifically comprising:
obtaining standard mode power consumption data of the solid state disk;
inputting the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data into a preset power consumption demand data prediction model for processing to obtain predicted power consumption demand data of the solid state disk;
the calculation formula of the predicted power consumption demand data in the preset power consumption demand data prediction model is as follows:
wherein,for predicting power consumption demand data +.>For standard mode power consumption data, +. >For the capacity power consumption impact index,power consumption influence index for operating state, +.>、/>、/>And the characteristic coefficient is preset (the characteristic coefficient is obtained by inquiring a preset solid state disk power consumption database).
Firstly, standard mode power consumption data of the solid state disk, namely power consumption condition data of the solid state disk in a standard working mode, are obtained, and then the predicted power consumption requirement data of the solid state disk are obtained according to the standard mode power consumption data, the capacity power consumption influence index and the working state power consumption influence index in combination through a preset power consumption requirement data prediction model.
According to an embodiment of the present invention, the comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk specifically includes:
extracting a first threshold and a second threshold according to a preset power consumption duty ratio index threshold, wherein the first threshold is larger than the second threshold;
comparing the predicted power consumption duty cycle index to the first and second thresholds;
if the predicted power consumption duty ratio index is larger than the first threshold, the running state of the solid state disk is an overload state;
if the predicted power consumption duty ratio index is larger than the second threshold and smaller than the first threshold, the running state of the solid state disk is in a full load state;
And if the predicted power consumption duty ratio index is smaller than the second threshold, the running state of the solid state disk is a light load state.
After a preset power consumption duty ratio index threshold value is obtained, a first threshold value and a second threshold value are extracted, wherein the first threshold value is larger than the second threshold value, the predicted power consumption duty ratio index reflects whether the predicted power consumption exceeds a standard, the predicted power consumption duty ratio index is compared with the first threshold value and the second threshold value, when the predicted power consumption duty ratio index is larger than the first threshold value, the predicted power consumption is larger than the target power consumption of the solid state disk, and the running state is an overload state; when the predicted power consumption duty ratio index is larger than the second threshold value and smaller than the first threshold value, the running state of the solid state disk is in a full-load state, and the state indicates that the predicted power consumption data can occupy most of target power consumption; when the predicted power consumption duty ratio index is smaller than the second threshold value, the running state of the solid state disk is in a light load state, which indicates that the predicted power consumption data is obviously smaller than the target power consumption data, and the running state is good.
According to the embodiment of the invention, the method for correspondingly obtaining the operation mode of the solid state disk and executing the corresponding operation according to the operation state comprises the following steps:
Correspondingly obtaining a solid state disk operation mode according to the solid state disk operation state;
the overload state, the full load state and the light load state correspond to an energy-saving and power-saving mode, a down-regulating working state data mode and a normal working mode respectively;
and executing corresponding operation according to the running mode of the solid state disk.
In order to better ensure the stable, long-term and efficient operation of the solid state disk, when the solid state disk is in different operation states, different operation modes are adopted, and when the solid state disk is in an overload state, an energy-saving and power-saving mode is started, and in the energy-saving and power-saving mode, the solid state disk temporarily stops working, including suspending reading and writing and loading, and starting a cooling fan; when the solid state disk is in a full load state, starting a down-regulating working state data mode, and in the down-regulating working state data mode, the solid state disk down-regulating working parameters, including reducing the read-write speed, reducing the load and starting a cooling fan; when the solid state disk is in a light load state, a normal working mode is started, and the solid state disk works normally.
According to an embodiment of the present invention, after the solid state disk executes the energy-saving and power-saving mode, the method further includes:
acquiring the running state of the solid state disk according to a preset time period;
And if the running state is still the overload state, suspending the running of the solid state disk.
After the energy-saving and power-saving mode is executed, the running state of the solid state disk is acquired according to a preset data acquisition time period in order to better monitor the state of the solid state disk, and if the running state is still in an overload state, the running of the solid state disk is suspended so as to ensure the safety of the solid state disk.
It should be noted that, according to an embodiment of the present invention, the method further includes:
obtaining partition information of the solid state disk and the read-write times of the corresponding partition;
comparing the read-write times with a preset threshold value of the read-write times of the solid state disk to obtain the use priority of the solid state disk partition;
and selecting the solid state disk partition and storing information according to the use priority.
The solid state disk is used in a partitioning mode in the using process, and after the solid state disk is determined, the standard reading and writing times are certain, and the probability of damage is higher when the reading and writing times are more. Firstly, obtaining partition information of a solid state disk and read-write times of corresponding partitions, comparing the read-write times with a preset threshold value of the read-write times of the solid state disk, and obtaining use priority of the solid state disk partition, wherein the priority comprises priority, general description and use times of priority are relatively less, the priority can be used preferentially, general description and use times of priority are more, the priority is not used preferentially, and the selection of the solid state disk partition and the storage of information are carried out according to the use priority.
The third aspect of the present invention provides a readable storage medium, where the readable storage medium includes a solid state disk power consumption control method program, where the solid state disk power consumption control method program, when executed by a processor, implements the steps of a solid state disk power consumption control method as described in any one of the foregoing.
The invention discloses a solid state disk power consumption control method, a system and a medium, which are used for acquiring capacity data of a solid state disk and calculating to acquire a capacity power consumption influence index according to the capacity data, acquiring standard working state data and real-time working state data of the solid state disk and calculating to acquire the working state power consumption influence index according to the standard working state data and the real-time working state data of the solid state disk; obtaining standard mode power consumption data of the solid state disk, and then combining the capacity power consumption influence index and the working state power consumption influence index to process to obtain predicted power consumption demand data of the solid state disk; obtaining target power consumption data of the solid state disk, comparing the target power consumption data with predicted power consumption demand data to obtain a predicted power consumption duty ratio index, comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold to obtain an operation state of the solid state disk, and finally correspondingly obtaining a solid state disk operation mode and executing corresponding operation.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above described device embodiments are only illustrative, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units; can be located in one place or distributed to a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or the like, which can store program codes.
Alternatively, the above-described integrated units of the present invention may be stored in a readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.

Claims (10)

1. The method for controlling the power consumption of the solid state disk is characterized by comprising the following steps of:
acquiring capacity data of the solid state disk, and calculating according to the capacity data to acquire a capacity power consumption influence index;
standard working state data and real-time working state data of the solid state disk are obtained, and working state power consumption influence indexes are obtained through calculation according to the standard working state data and the real-time working state data;
obtaining standard mode power consumption data of the solid state disk, and processing the standard mode power consumption data according to the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data through a preset power consumption demand data prediction model to obtain predicted power consumption demand data of the solid state disk;
acquiring target power consumption data of the solid state disk, and comparing the predicted power consumption demand data with the target power consumption data to obtain a predicted power consumption duty ratio index;
comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk;
and correspondingly obtaining a solid state disk operation mode according to the operation state and executing corresponding operation.
2. The method for controlling power consumption of a solid state disk according to claim 1, wherein the method for obtaining capacity data of the solid state disk and obtaining a capacity power consumption impact index according to capacity data calculation comprises:
Acquiring capacity data of the solid state disk, wherein the capacity data comprises standard storage capacity data and use storage capacity data;
and calculating and obtaining a capacity power consumption influence index according to the standard storage capacity data and the storage capacity data.
3. The method for controlling power consumption of a solid state disk according to claim 2, wherein the step of obtaining standard working state data and real-time working state data of the solid state disk and calculating to obtain a working state power consumption impact index according to the standard working state data and the real-time working state data specifically comprises the steps of:
the method comprises the steps of obtaining standard working state data of the solid state disk, wherein the standard working state data comprise standard read-write speed data, standard workload data and standard temperature data;
acquiring real-time working state data of the solid state disk, wherein the real-time working state data comprises real-time read-write speed data, real-time workload data and real-time temperature data;
and calculating according to the standard read-write speed data, the standard work load data, the standard temperature data, the real-time read-write speed data, the real-time work load data and the real-time temperature data to obtain the working state power consumption influence index.
4. The method for controlling power consumption of a solid state disk according to claim 3, wherein the obtaining standard mode power consumption data of the solid state disk includes processing the standard mode power consumption data, the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data through a preset power consumption demand data prediction model to obtain predicted power consumption demand data of the solid state disk, and specifically includes:
Obtaining standard mode power consumption data of the solid state disk;
inputting the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data into a preset power consumption demand data prediction model for processing to obtain predicted power consumption demand data of the solid state disk;
the calculation formula of the predicted power consumption demand data in the preset power consumption demand data prediction model is as follows:
wherein,for predicting power consumption demand data +.>For standard mode power consumption data, +.>Index of influence for capacity power consumption>Power consumption influence index for operating state, +.>、/>、/>Is a preset characteristic coefficient.
5. The method for controlling power consumption of a solid state disk according to claim 4, wherein comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain an operation state of the solid state disk specifically includes:
extracting a first threshold and a second threshold according to a preset power consumption duty ratio index threshold, wherein the first threshold is larger than the second threshold;
comparing the predicted power consumption duty cycle index to the first and second thresholds;
if the predicted power consumption duty ratio index is larger than the first threshold, the running state of the solid state disk is an overload state;
If the predicted power consumption duty ratio index is larger than the second threshold and smaller than the first threshold, the running state of the solid state disk is in a full load state;
and if the predicted power consumption duty ratio index is smaller than the second threshold, the running state of the solid state disk is a light load state.
6. The method for controlling power consumption of a solid state disk according to claim 5, wherein the obtaining the operation mode of the solid state disk according to the operation state corresponds and performs the corresponding operation, specifically includes:
correspondingly obtaining a solid state disk operation mode according to the solid state disk operation state;
the overload state, the full load state and the light load state correspond to an energy-saving and power-saving mode, a down-regulating working state data mode and a normal working mode respectively;
and executing corresponding operation according to the running mode of the solid state disk.
7. The method for controlling power consumption of a solid state disk according to claim 6, further comprising, after the solid state disk executes the energy-saving and power-saving mode:
acquiring the running state of the solid state disk according to a preset time period;
and if the running state is still the overload state, suspending the running of the solid state disk.
8. The solid state disk power consumption control system is characterized by comprising a memory and a processor, wherein the memory comprises a solid state disk power consumption control method program, and the solid state disk power consumption control method program realizes the following steps when being executed by the processor:
acquiring capacity data of the solid state disk, and calculating according to the capacity data to acquire a capacity power consumption influence index;
standard working state data and real-time working state data of the solid state disk are obtained, and working state power consumption influence indexes are obtained through calculation according to the standard working state data and the real-time working state data;
obtaining standard mode power consumption data of the solid state disk, and processing the standard mode power consumption data according to the capacity power consumption influence index, the working state power consumption influence index and the standard mode power consumption data through a preset power consumption demand data prediction model to obtain predicted power consumption demand data of the solid state disk;
acquiring target power consumption data of the solid state disk, and comparing the predicted power consumption demand data with the target power consumption data to obtain a predicted power consumption duty ratio index;
comparing the predicted power consumption duty ratio index with a preset power consumption duty ratio index threshold value to obtain the running state of the solid state disk;
And correspondingly obtaining a solid state disk operation mode according to the operation state and executing corresponding operation.
9. The system of claim 8, wherein the obtaining capacity data of the solid state disk and calculating according to the capacity data to obtain a capacity power consumption impact index specifically includes:
acquiring capacity data of the solid state disk, wherein the capacity data comprises standard storage capacity data and use storage capacity data;
and calculating and obtaining a capacity power consumption influence index according to the standard storage capacity data and the storage capacity data.
10. A computer-readable storage medium, wherein the computer-readable storage medium includes a solid state disk power consumption control method program, and when the solid state disk power consumption control method program is executed by a processor, the steps of the solid state disk power consumption control method according to any one of claims 1 to 7 are implemented.
CN202410298220.0A 2024-03-15 2024-03-15 Method, system and medium for controlling power consumption of solid state disk Active CN117894347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410298220.0A CN117894347B (en) 2024-03-15 2024-03-15 Method, system and medium for controlling power consumption of solid state disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410298220.0A CN117894347B (en) 2024-03-15 2024-03-15 Method, system and medium for controlling power consumption of solid state disk

Publications (2)

Publication Number Publication Date
CN117894347A true CN117894347A (en) 2024-04-16
CN117894347B CN117894347B (en) 2024-05-24

Family

ID=90647664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410298220.0A Active CN117894347B (en) 2024-03-15 2024-03-15 Method, system and medium for controlling power consumption of solid state disk

Country Status (1)

Country Link
CN (1) CN117894347B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113325998A (en) * 2020-02-29 2021-08-31 杭州海康存储科技有限公司 Read-write speed control method and device
CN114461452A (en) * 2022-01-27 2022-05-10 西安超越申泰信息科技有限公司 Hard disk protection method, electronic device and computer readable storage medium
CN115298652A (en) * 2020-04-30 2022-11-04 北京嘀嘀无限科技发展有限公司 System and method for storage medium health assessment
CN116088652A (en) * 2022-11-29 2023-05-09 苏州浪潮智能科技有限公司 Hard disk heat dissipation coordination control method, system, equipment, medium and storage server
CN116610469A (en) * 2023-07-21 2023-08-18 江苏华存电子科技有限公司 Comprehensive quality performance test method and system for solid state disk
US20240086086A1 (en) * 2022-09-08 2024-03-14 SK Hynix Inc. Ssd performance per power state improvement by deterministic utilization control

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113325998A (en) * 2020-02-29 2021-08-31 杭州海康存储科技有限公司 Read-write speed control method and device
CN115298652A (en) * 2020-04-30 2022-11-04 北京嘀嘀无限科技发展有限公司 System and method for storage medium health assessment
CN114461452A (en) * 2022-01-27 2022-05-10 西安超越申泰信息科技有限公司 Hard disk protection method, electronic device and computer readable storage medium
US20240086086A1 (en) * 2022-09-08 2024-03-14 SK Hynix Inc. Ssd performance per power state improvement by deterministic utilization control
CN116088652A (en) * 2022-11-29 2023-05-09 苏州浪潮智能科技有限公司 Hard disk heat dissipation coordination control method, system, equipment, medium and storage server
CN116610469A (en) * 2023-07-21 2023-08-18 江苏华存电子科技有限公司 Comprehensive quality performance test method and system for solid state disk

Also Published As

Publication number Publication date
CN117894347B (en) 2024-05-24

Similar Documents

Publication Publication Date Title
CA2814604C (en) Application lifetime management
US20150106582A1 (en) Apparatus and method for managing data in hybrid memory
CN101266515A (en) Optimizing power usage by factoring processor architecutral events to PMU
CN103037109B (en) Multicore equipment energy consumption management method and device
CN107153455A (en) Cache power management
CN117894347B (en) Method, system and medium for controlling power consumption of solid state disk
CN110737322B (en) Information processing method and electronic equipment
CN117639112B (en) Wind power generation control method, system and medium based on air film system
CN101819459A (en) Heterogeneous object memory system-based power consumption control method
CN117993887A (en) Intelligent decision method, system and medium based on optimization control
CN116307945B (en) Building electric intelligent operation monitoring method, system and medium
CN115119478B (en) Control method, system and equipment of air conditioner
CN115129476A (en) Index loading method, device and medium for fragment data
CN114201369A (en) Server cluster management method and device, electronic equipment and storage medium
CN111968266A (en) Method, system, electronic device and medium for generating operation data recording file
CN117996785B (en) New energy device self-adaptive frequency modulation method, system and medium
CN118093088A (en) Cloud platform resource scheduling device based on multidimensional resource utilization rate
CN117743127B (en) Power consumption data analysis method and system of notebook computer
CN113761295B (en) Index segment merging method and device
CN117559446B (en) Environment-adaptive electric energy storage and intelligent allocation method and system
CN111897410B (en) System component power consumption optimization method and device, electronic equipment and storage medium
CN113590411A (en) Dynamic data warehousing prediction method, system, equipment and storage medium
CN118331243A (en) Self-checking data processing method and system of embedded industrial personal computer
CN116398998A (en) Energy-saving control method and device for data center
CN116502849A (en) Low-energy-consumption building power distribution system planning method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant