Method and device for controlling data transmission rate of solid state disk
By collecting the status parameters and operation load information of the solid state hard disk in real time, matching the target data transmission evaluation model, evaluating the data transmission pressure capability and adjusting the data transmission rate according to the application type, the problem of insufficient flexibility and accuracy of solid state hard disk data transmission rate control in the prior art is solved, and more flexible and accurate data transmission rate control is achieved.
Patent Information
- Application Number
- CN202510140952.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-08
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2045-02-08
AI Technical Summary
The existing solid-state drive data transmission rate control methods lack flexibility and accuracy, and cannot adapt to the dynamic needs of different application scenarios, and the unified threshold setting cannot achieve accurate rate control.
By collecting the internal state parameters and operation load information of the solid state drive in real time, determining the comprehensive state indicators, and matching the target data transmission evaluation model in the preset model library, evaluating the data transmission pressure capability based on the CPU usage and memory occupancy rate, and dynamically adjusting the data transmission rate according to the application type.
It improves the flexibility and accuracy of SSD data transmission rate control, and can dynamically adjust the data transmission rate according to different application types to meet the needs of different scenarios.
Smart Images

Figure CN120196523A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of solid state drives, and in particular, to a method and device for controlling the data transfer rate of a solid state drive. Background Art
[0002] With the rapid development of information technology, solid state drives (SSDs) have been widely used in the computer storage field. The data transfer rate of solid state drives is crucial for the performance of the entire computer system.
[0003] Traditional methods for controlling the data transfer rate of solid state drives are mainly based on fixed rate settings or threshold judgments. Based on fixed rate settings, a fixed upper limit of the data transfer rate is set according to the model or nominal speed of the solid state drive. Regardless of the actual operating conditions of the system, the data transfer will not exceed this set value. However, the fixed rate setting lacks flexibility and cannot adapt to the dynamic requirements for data transfer rates in different application scenarios. Based on the threshold control method, when the temperature or queue depth of the solid state drive reaches a certain threshold, the data transfer rate is adjusted. However, the threshold control is often too simple and rough, and the rate adjustment is only based on a single threshold, which is prone to misjudgment. Moreover, different solid state drives have differences in heat dissipation performance, internal architecture, etc., and a unified threshold setting cannot achieve precise rate control. Summary of the Invention
[0004] The present invention provides a method and device for controlling the data transfer rate of a solid state drive to improve the flexibility and accuracy of controlling the data transfer rate of the solid state drive.
[0005] In a first aspect, the present invention provides a method for controlling the data transfer rate of a solid state drive, including:
[0006] Real-time collecting the current internal state parameters and current operating load information of the target solid state drive; the current internal state parameters include the current temperature, current cumulative usage duration, current write amplification factor, and current queue depth; the current operating load information includes the current CPU usage rate, current memory occupancy rate, and the application program type of the currently running application;
[0007] Based on the current temperature, current cumulative usage duration, current write amplification factor, and current queue depth, determining a comprehensive state index of the target solid state drive;
[0008] Based on the comprehensive state index, matching a target data transfer evaluation model in a preset model library; the target data transfer evaluation model is trained based on sample CPU usage rates, sample memory occupancy rates, and their corresponding data transfer pressure ability label results;
[0009] Input the current CPU usage rate and the current memory occupancy rate into the target data transfer evaluation model to obtain the current data transfer pressure capacity output by the target data transfer evaluation model;
[0010] Control the data transfer rate of the target solid-state drive based on the current data transfer pressure capacity and the application type.
[0011] According to the solid-state drive data transfer rate control method provided by the embodiment of the present invention, the application type control includes a system tool program type, a network communication program type, and an entertainment creation program type;
[0012] The controlling the data transfer rate of the target solid-state drive based on the current data transfer pressure capacity and the application type includes:
[0013] If the application type is a system tool program type, determine the first current data transfer rate of the target solid-state drive based on the current data transfer pressure capacity, the maximum data transfer rate, and the minimum data transfer rate of the target solid-state drive, and control the data transfer rate of the target solid-state drive at the first current data transfer rate; or,
[0014] If the application type is a network communication program type, determine the second current data transfer rate of the target solid-state drive based on the current data transfer pressure capacity, the maximum data transfer rate, the minimum data transfer rate, and the network delay coefficient, and control the data transfer rate of the target solid-state drive at the second current data transfer rate; or,
[0015] If the application type control includes an entertainment creation program type, determine the third current data transfer rate of the target solid-state drive based on the current data transfer pressure capacity, the maximum data transfer rate, the minimum data transfer rate, and the user experience sensitivity coefficient, and control the data transfer rate of the target solid-state drive at the third current data transfer rate.
[0016] According to the solid-state drive data transfer rate control method provided by the embodiment of the present invention, the calculation formula for the first current data transfer rate is as follows:
[0017]
[0018] The calculation formula for the second current data transfer rate is as follows:
[0019]
[0020] The calculation formula for the third current data transfer rate is as follows:
[0021]
[0022] Among them, R sys represents the first current data transfer rate, and R net represents the second current data transfer rate, and R ent represents the third current data transfer rate, and R min represents the minimum data transfer rate, and R max represents the maximum data transfer rate, P represents the current data transfer pressure capacity, L represents the network delay coefficient, and S represents the user experience sensitivity coefficient.
[0023] According to the solid-state drive data transfer rate control method provided by the embodiment of the present invention, determining the comprehensive state index of the target solid-state drive based on the current temperature, the current cumulative usage duration, the current write amplification factor, and the current queue depth includes:
[0024] Determining the operation influence factor of the temperature on the target solid-state drive based on the current temperature;
[0025] Evaluating the life of the target solid-state drive based on the current cumulative usage duration and the set total life value of the target solid-state drive to obtain the current remaining life prediction value of the target solid-state drive;
[0026] Calculating the comprehensive state index of the target solid-state drive based on the current remaining life prediction value, the operation influence factor, the current write amplification factor, and the current queue depth;
[0027] Among them, the calculation formula of the comprehensive state index is as follows:
[0028]
[0029] Among them, S f represents the comprehensive state index, T f represents the operation influence factor, L f represents the current remaining life prediction value, W f represents the current write amplification factor, K Q represents the preset scaling coefficient, Q f represents the current queue depth, L represents the set total life value, e represents the base of the exponential function, t represents the current cumulative usage duration, T represents the current temperature, μ T and σ T respectively represent the mean and variance values of the normal operating temperature of the solid-state drive.
[0030] According to the solid-state drive data transfer rate control method provided by the embodiment of the present invention, matching the target data transfer evaluation model in the preset model library based on the comprehensive state index includes:
[0031] Determine a state stability index based on the comprehensive state index, determine a state change rate based on the state stability index, and determine a state fluctuation coefficient based on the state change rate;
[0032] Construct a working state feature vector of the target solid-state drive based on the state stability index, the state change rate, and the state fluctuation coefficient;
[0033] Based on the matching between the working state feature vector and the model feature vectors of each data transmission evaluation model in the preset model library, determine the final matching degree of the working state feature vector to the model feature vectors of each data transmission evaluation model;
[0034] Determine the data transmission evaluation model corresponding to the maximum final matching degree as the target data transmission evaluation model.
[0035] According to the solid-state drive data transmission rate control method provided by the embodiment of the present invention, the determining the final matching degree of the working state feature vector to the model feature vectors of each data transmission evaluation model based on the matching between the working state feature vector and the model feature vectors of each data transmission evaluation model in the preset model library includes:
[0036] Based on the vector distance between the working state feature vector and the model feature vectors of each data transmission evaluation model, determine the adaptation degree of the working state feature vector to the model feature vectors of each data transmission evaluation model;
[0037] Based on the feature correlation and feature similarity between the model feature vectors of each data transmission evaluation model and the model feature vectors of other data transmission evaluation models, determine the model influence factor of each data transmission evaluation model;
[0038] Based on the adaptation degree of the working state feature vector to the model feature vectors of each data transmission evaluation model and the model influence factor of each data transmission evaluation model, determine the final matching degree of the working state feature vector to the model feature vectors of each data transmission evaluation model.
[0039] According to the solid-state drive data transmission rate control method provided by the embodiment of the present invention, the target data transmission evaluation model includes a basic influence factor calculation layer, an interaction influence factor calculation layer, and a transmission pressure capacity calculation layer; the inputting the current CPU usage rate and the current memory occupancy rate into the target data transmission evaluation model to obtain the current data transmission pressure capacity output by the target data transmission evaluation model includes:
[0040] Input the current CPU usage rate and the current memory occupancy rate into the target data transmission evaluation model. Based on the basic influence factor calculation layer, calculate the first basic influence factor of the CPU usage rate on the data transmission pressure and the second basic influence factor of the memory occupancy rate on the data transmission pressure according to the current CPU usage rate and the current memory occupancy rate;
[0041] Based on the interaction influence factor calculation layer, calculate the interaction influence factor of the CPU usage rate and the memory occupancy rate on the data transmission pressure according to the current CPU usage rate and the current memory occupancy rate;
[0042] Based on the transmission pressure capacity calculation layer, calculate the current data transmission pressure capacity according to the first basic influence factor, the second basic influence factor and the interaction influence factor.
[0043] In a second aspect, the present invention also provides a solid-state drive data transmission rate control device, including:
[0044] A data acquisition module for real-time collecting the current internal state parameters and the current operating load information of the target solid-state drive; the current internal state parameters include the current temperature, the current cumulative usage duration, the current write amplification factor and the current queue depth; the current operating load information includes the current CPU usage rate, the current memory occupancy rate and the application program type of the currently running application;
[0045] A determination module for determining the comprehensive state index of the target solid-state drive based on the current temperature, the current cumulative usage duration, the current write amplification factor and the current queue depth;
[0046] A model matching module for matching a target data transmission evaluation model in a preset model library based on the comprehensive state index; the target data transmission evaluation model is trained based on the sample CPU usage rate, the sample memory occupancy rate and their corresponding data transmission pressure capacity label results;
[0047] A model prediction module for inputting the current CPU usage rate and the current memory occupancy rate into the target data transmission evaluation model to obtain the current data transmission pressure capacity output by the target data transmission evaluation model;
[0048] A transmission rate module for controlling the data transmission rate of the target solid-state drive based on the current data transmission pressure capacity and the application program type.
[0049] In a third aspect, the present invention further provides an electronic device, including: a memory for storing a computer software program; a processor for reading and executing the computer software program, thereby implementing the solid-state drive data transfer rate control method as described in any one of the above.
[0050] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium, in which a computer software program is stored, and when the computer software program is executed by a processor, the solid-state drive data transfer rate control method as described in any one of the above is implemented.
[0051] In a fifth aspect, the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the solid-state drive data transfer rate control method as described in any one of the above is implemented.
[0052] The solid-state drive data transfer rate control method provided by the embodiments of the present invention matches the most suitable target data transfer evaluation model for the current situation in a preset model library through a comprehensive state index determined by the current temperature, current cumulative usage duration, current write amplification factor, and current queue depth of the target solid-state drive. By combining the target data transfer evaluation model with the current CPU usage rate and current memory occupancy rate, the current data transfer pressure capacity of the target solid-state drive is evaluated, improving the accuracy of solid-state drive data transfer rate control. At the same time, by combining the current data transfer pressure capacity and the application program type to control the data transfer rate of the target solid-state drive, when facing different application program types, the target solid-state drive performs data transfer at different data transfer rates, improving the flexibility of solid-state drive data transfer rate control. Description of the Drawings
[0053] Figure 1 is a flowchart of the solid-state drive data transfer rate control method provided by the embodiments of the present invention;
[0054] Figure 2 is a structural diagram of the solid-state drive data transfer rate control device provided by the embodiments of the present invention;
[0055] Figure 3 is an embodiment diagram of the electronic device provided by the embodiments of the present invention;
[0056] Figure 4 is an embodiment diagram of the computer-readable storage medium provided by the embodiments of the present invention. Detailed Embodiments
[0057] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
[0058] In the description of the present invention, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality of" means two or more, unless otherwise specifically defined.
[0059] In the description of the present invention, the term "for example" is used to mean "serving as an example, illustration, or explanation". Any embodiment described as "for example" in the present invention is not necessarily construed as being more preferred or having more advantages than other embodiments. In order for any person skilled in the art to implement and use the present invention, the following description is given. In the following description, details are set forth for the purpose of explanation. It should be understood that those of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other instances, well-known structures and processes are not elaborated in detail to avoid unnecessary details from obscuring the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope that conforms to the principles and features disclosed in the present invention.
[0060] Refer to Figure 1 as shown in Figure 1 is a flowchart of the solid-state drive data transfer rate control method provided by the present invention. In the embodiments of the present invention, the execution subject of the solid-state drive data transfer rate control method is a transfer rate control device. Therefore, the solid-state drive data transfer rate control method includes:
[0061] Step 10, collect the current internal state parameters and current operating load information of the target solid-state drive.
[0062] Optionally, the transmission rate control device collects the current internal state parameters and current operating load information of the target solid-state drive in real time. Among them, the current internal state parameters include the current temperature, current cumulative usage duration, current write amplification factor, and current queue depth. The current internal state parameters can reflect the comprehensive state index and performance bottleneck of the solid-state drive. For example, a higher temperature may mean that the solid-state drive is operating under high load and the transmission rate needs to be adjusted appropriately to avoid overheating; an excessively high write amplification factor may indicate that the storage cells of the solid-state drive are under greater pressure, and the data write rate also needs to be optimized and controlled.
[0063] Optionally, the current operating load information includes the current CPU usage rate, current memory occupancy rate, and the application program types of the currently running applications. Among them, the currently running applications can include system tool applications, network communication applications, and entertainment creation applications. Therefore, the application program types include system tool program types, network communication program types, and entertainment creation program types. Different types of application programs have quite different requirements for data transmission rates. For example, game applications usually require fast and stable data reading rates to ensure smooth screen rendering, while background data backup programs can run at a relatively low rate.
[0064] Step 20: Determine the comprehensive state index of the target solid-state drive based on the current temperature, current cumulative usage duration, current write amplification factor, and current queue depth.
[0065] Furthermore, the transmission rate control device determines the comprehensive state index of the target solid-state drive according to the current temperature, current cumulative usage duration, current write amplification factor, and current queue depth, as specifically described in Steps 210 to 203.
[0066] Step 30: Match the target data transmission evaluation model in the preset model library based on the comprehensive state index.
[0067] Optionally, a preset model library is pre-constructed in the transmission rate control device of the embodiment of the present invention. Among them, the preset model library includes multiple data transmission evaluation models, and the adaptation situations of each data transmission evaluation model are different. Each data transmission evaluation model is trained based on the sample CPU usage rate, sample memory occupancy rate, and their corresponding data transmission pressure ability label results. Therefore, the transmission rate control device matches the target data transmission evaluation model most suitable for the current situation in the preset model library, as specifically described in Steps 301 to 304.
[0068] Step 40: Input the current CPU usage rate and current memory occupancy rate into the target data transmission evaluation model to obtain the current data transmission pressure ability output by the target data transmission evaluation model.
[0069] Further, the transmission rate control device inputs the current CPU usage rate and the current memory occupancy rate into the target data transmission evaluation model, and obtains the current data transmission pressure capacity output by the target data transmission evaluation model, where the value range of the current data transmission pressure capacity is from 0 to 1, specifically as described in steps 401 to 403.
[0070] Step 50: Control the data transmission rate of the target solid-state drive based on the current data transmission pressure capacity and the application program type.
[0071] Further, for different application program types, the transmission rate control device controls the data transmission rate of the target solid-state drive according to the current data transmission pressure capacity and the application program type, specifically as described in steps 501 to 503.
[0072] In the embodiment of the present invention, the comprehensive status index determined by the current temperature, the current cumulative usage duration, the current write amplification factor, and the current queue depth of the target solid-state drive is used to match the target data transmission evaluation model most suitable for the current situation in the preset model library. The current data transmission pressure capacity of the target solid-state drive is evaluated through the target data transmission evaluation model in combination with the current CPU usage rate and the current memory occupancy rate, which improves the accuracy of the data transmission rate control of the solid-state drive. At the same time, the data transmission rate of the target solid-state drive is controlled in combination with the current data transmission pressure capacity and the application program type, so that when facing different application program types, the target solid-state drive performs data transmission at different data transmission rates, which improves the flexibility of the data transmission rate control of the solid-state drive.
[0073] In one embodiment, the descriptions of steps 210 to 203 are as follows:
[0074] Step 201: Determine the operation influence factor of the temperature on the target solid-state drive based on the current temperature.
[0075] Optionally, the transmission rate control device determines the operation influence factor of the temperature on the target solid-state drive according to the current temperature, and the specific formula is as follows:
[0076]
[0077] where T f represents the operation influence factor, T represents the current temperature, μ T and σ T respectively represent the mean and variance values of the normal working temperature of the solid-state drive.
[0078] Step 202: Evaluate the life of the target solid-state drive based on the current cumulative usage duration and the set total life value of the target solid-state drive, and obtain the current remaining life prediction value of the target solid-state drive.
[0079] Further, the transmission rate control device evaluates the lifespan of the target solid-state drive according to the current cumulative usage duration and the set total lifespan value of the target solid-state drive, and obtains a current remaining lifespan prediction value of the target solid-state drive. The specific formula is as follows:
[0080]
[0081] Among them, L f represents the current remaining lifespan prediction value, L represents the set total lifespan value, e represents the base of the exponential function, and t represents the current cumulative usage duration.
[0082] Step 203: Calculate a comprehensive status index of the target solid-state drive based on the current remaining lifespan prediction value, the operation impact factor, the current write amplification factor, and the current queue depth.
[0083] Further, the transmission rate control device calculates a comprehensive status index of the target solid-state drive according to the current remaining lifespan prediction value, the operation impact factor, the current write amplification factor, and the current queue depth. The specific formula is as follows:
[0084]
[0085] Among them, S f represents the comprehensive status index, W f represents the current write amplification factor, K Q represents a preset scaling coefficient, and Q f represents the current queue depth.
[0086] In the embodiment of the present invention, the target data transmission evaluation model most suitable for the current situation is matched in the preset model library through the comprehensive status index. Therefore, the current data transmission pressure capacity of the target solid-state drive can be evaluated by combining the target data transmission evaluation model with the current CPU usage rate and the current memory occupancy rate, improving the accuracy of the solid-state drive data transmission rate control.
[0087] In one embodiment, the descriptions of steps 301 to 304 are as follows:
[0088] Step 301: Determine a state stability index based on the comprehensive status index, determine a state change rate based on the state stability index, and determine a state fluctuation coefficient based on the state change rate.
[0089] Optionally, the transmission rate control device calculates a state stability index S stable , among which, the specific calculation formula of the state stability index S stable is as follows:
[0090] S stable = 1 / [1 + exp(Sf )].
[0091] Optionally, the state change rate reflects how fast the state changes over time and is related to the state stability index. Therefore, the transmission rate control device calculates the state change rate S based on the state stability index. rate , where the state change rate S rate has the following specific calculation formula:
[0092]
[0093] where represents the state stability index at the previous moment, represents the state stability index at the current moment.
[0094] Optionally, the state fluctuation coefficient is used to measure the intensity and uncertainty of state changes. In one embodiment, the sequence of state change rates over a period of time is where s represents the dimension of the state change rate sequence S rate (t). Therefore, the transmission rate control device calculates the state change rate variance S rate based on the state change rate sequence S V (t), and the specific formula is as follows:
[0095]
[0096] Furthermore, the transmission rate control device calculates the state fluctuation coefficient S V based on the state change rate variance S fluctuate , where the specific calculation formula of the state fluctuation coefficient S fluctuate is as follows:
[0097]
[0098] Step 302: Based on the state stability index, the state change rate, and the state fluctuation coefficient, construct a working state feature vector of the target solid-state drive.
[0099] Step 303: Based on the working state feature vector, match it with the model feature vectors of each data transmission evaluation model in the preset model library to determine the final matching degree of the working state feature vector to the model feature vectors of each data transmission evaluation model.
[0100] Further, the transmission rate control device fuses the state stability index, the state change rate, and the state fluctuation coefficient to construct a working state feature vector of the target solid-state drive. Further, the transmission rate control device matches the working state feature vector with the model feature vectors of each data transmission evaluation model in the preset model library to determine the final matching degree of the working state feature vector to the model feature vectors of each data transmission evaluation model, as specifically described in steps 3031 to 3033.
[0101] Step 304: Determine the data transmission evaluation model corresponding to the maximum final matching degree as the target data transmission evaluation model.
[0102] Further, the transmission rate control device traverses all the final matching degrees and determines the data transmission evaluation model corresponding to the maximum final matching degree as the target data transmission evaluation model.
[0103] In the embodiment of the present invention, the target data transmission evaluation model most suitable for the current situation is matched in the preset model library through comprehensive state indicators. Therefore, the current data transmission pressure capacity of the target solid-state drive can be evaluated by combining the target data transmission evaluation model with the current CPU usage rate and the current memory occupancy rate, improving the accuracy of the solid-state drive data transmission rate control.
[0104] In one embodiment, the descriptions of steps 3031 to 3033 are as follows:
[0105] Step 3031: Determine the adaptation degree of the working state feature vector to the model feature vectors of each data transmission evaluation model based on the vector distance between the working state feature vector and the model feature vectors of each data transmission evaluation model.
[0106] Optionally, the working state feature vector in the embodiment of the present invention is represented as X = {x1, x2, x3}, where, for example, x1 represents the state stability index, x2 represents the state change rate, and x3 represents the state fluctuation coefficient. There are m data transmission evaluation models in the preset model library, where the m data transmission evaluation models can be represented as M = {M1, M2,..., M m}, and the model feature vector of each data transmission evaluation model M i can be represented as M i = {M i1 , M i2 , M i3}, i = 1, 2,.., m, where M i1 , M i2 , M i3 respectively represent the relevant eigenvalue of the state stability index, the state change rate, and the state fluctuation coefficient of the data transmission evaluation model M i .
[0107] Further, the transmission rate control device calculates the vector distance between the working state feature vector and the model feature vector of each data transmission evaluation model. The specific formula is as follows:
[0108]
[0109] where D XM represents the vector distance between the working state feature vector X and the model feature vector of the M i -th data transmission evaluation model, x j represents the j-th eigenvalue in the working state feature vector X, M ij represents the M i -th data transmission evaluation model, and M j represents the j-th eigenvalue in the model feature vector of the M j -th data transmission evaluation model. W ij ={x ij} represents the value set of the working state feature vector in the j-th dimension, and W
[0110] Further, the transmission rate control device determines the adaptation degree of the working state feature vector to the model feature vector of each data transmission evaluation model according to the vector distance between the working state feature vector and the model feature vector of each data transmission evaluation model. The specific formula is as follows:
[0111]
[0112] where represents the adaptation degree of the working state feature vector X to the model feature vector of the M i -th data transmission evaluation model. It can be understood that when the vector distance is relatively small, is close to 1, indicating that the adaptation degree of the working state feature vector X to the model feature vector of the M i -th data transmission evaluation model is high; when the vector distance is relatively large, is close to 0, indicating that the adaptation degree of the working state feature vector X to the model feature vector of the M i -th data transmission evaluation model is low.
[0113] Step 3032: Determine the model influence factor of each data transmission evaluation model based on the feature correlation and feature similarity between the model feature vector of each data transmission evaluation model and the model feature vectors of other data transmission evaluation models.
[0114] Further, the transmission rate control device obtains the feature correlation between the model feature vector of each data transmission evaluation model and the model feature vectors of other data transmission evaluation models, and the feature similarity between the model feature vector of each data transmission evaluation model and the model feature vectors of other data transmission evaluation models, where other data transmission evaluation models refer to other models in the preset model library except for itself for each data transmission evaluation model. The feature correlation can be calculated according to the Pearson correlation coefficient method, and the feature similarity can be calculated by the cosine similarity method.
[0115] Further, the transmission rate control device determines the model influence factor of each data transmission evaluation model according to the feature correlation and feature similarity between the model feature vector of each data transmission evaluation model and the model feature vectors of other data transmission evaluation models. The specific formula is as follows:
[0116] I i =α*Corr(M i ,M j )+(1-α 2 )*Sim(M i ,M j ),i≠j。
[0117] Wherein, I i represents the model influence factor of the M i th data transmission evaluation model, Corr(M i ,M j ) represents the feature correlation between the M i th data transmission evaluation model and the M j th data transmission evaluation model, Sim(M i ,M j ) represents the feature similarity between the M i th data transmission evaluation model and the M j th data transmission evaluation model, and α represents a preset coefficient.
[0118] Step 3033: Determine the final matching degree of the working state feature vector to the model feature vector of each data transmission evaluation model based on the adaptation degree of the working state feature vector to the model feature vector of each data transmission evaluation model and the model influence factor of each data transmission evaluation model.
[0119] Further, the transmission rate control device calculates the final matching degree of the working state feature vector to the model feature vector of each data transmission evaluation model according to the adaptation degree of the working state feature vector to the model feature vector of each data transmission evaluation model and the model influence factor of each data transmission evaluation model. The specific formula is as follows:
[0120]
[0121] Among them, represents the final matching degree of the working state feature vector X to the model feature vector of the M i th data transmission evaluation model, and β represents a preset adjustment parameter.
[0122] In the embodiment of the present invention, the working state feature vector of the target solid-state drive constructed by the state stability index, the state change rate, and the state fluctuation coefficient is used to determine the final matching degree with each data transmission evaluation model in the preset model library. Therefore, the target data transmission evaluation model that is most suitable for the current situation can be accurately matched according to the final matching degree. Therefore, the current data transmission pressure capacity of the target solid-state drive can be evaluated by combining the current CPU usage rate and the current memory occupancy rate through the target data transmission evaluation model, improving the accuracy of the solid-state drive data transmission rate control.
[0123] In one embodiment, the target data transmission evaluation model in the embodiment of the present invention includes a basic influence factor calculation layer, an interaction influence factor calculation layer, and a transmission pressure capacity calculation layer. Therefore, the descriptions of steps 401 to 403 are as follows:
[0124] Step 401, input the current CPU usage rate and the current memory occupancy rate into the target data transmission evaluation model. The basic influence factor calculation layer calculates the first basic influence factor of the CPU usage rate on the data transmission pressure and the second basic influence factor of the memory occupancy rate on the data transmission pressure according to the current CPU usage rate and the current memory occupancy rate.
[0125] Optionally, the current CPU usage rate in the embodiment of the present invention is CPU usage , and its value range is between 0 and 100; the current memory occupancy rate is Memory usage , and the value range is between 0 and 100. For the convenience of subsequent calculations, the current CPU usage rate and the current memory occupancy rate are normalized to obtain the normalized CPU usage rate Y1 and the normalized memory occupancy rate Y2. The specific formulas are as follows:
[0126] Y1 = CPU usage / 100; Y2 = Memory usage / 100.
[0127] Optionally, the transmission rate control device inputs the current CPU usage rate and the current memory occupancy rate into the target data transmission evaluation model. Based on the basic influence factor calculation layer, according to the current CPU usage rate and the current memory occupancy rate, it calculates the first basic influence factor of the CPU usage rate on the data transmission pressure and the second basic influence factor of the memory occupancy rate on the data transmission pressure. The specific formulas are as follows:
[0128]
[0129] Among them, F CPU represents the first basic influence factor, and F men represents the second basic influence factor.
[0130] Step 402: Based on the interaction influence factor calculation layer, according to the current CPU usage rate and the current memory occupancy rate, calculate the interaction influence factor of the CPU usage rate and the memory occupancy rate on the data transmission pressure.
[0131] Furthermore, the interaction influence factor calculation layer calculates the interaction influence factor of the CPU usage rate and the memory occupancy rate on the data transmission pressure according to the current CPU usage rate and the current memory occupancy rate. The specific formula is:
[0132]
[0133] Among them, F inter represents the interaction influence factor.
[0134] Step 403: Based on the transmission pressure capacity calculation layer, according to the first basic influence factor, the second basic influence factor, and the interaction influence factor, calculate the current data transmission pressure capacity.
[0135] Furthermore, the transmission pressure capacity calculation layer calculates the current data transmission pressure capacity P according to the first basic influence factor, the second basic influence factor, and the interaction influence factor. The specific formula is as follows:
[0136] P = F CPU + F men + F inter .
[0137] In the embodiment of the present invention, by using the target data transmission evaluation model to combine the current CPU usage rate and the current memory occupancy rate to evaluate the current data transmission pressure capacity of the target solid-state drive, the accuracy of the data transmission rate control of the solid-state drive is improved.
[0138] In one embodiment, the descriptions of steps 501 to 503 are as follows:
[0139] Step 501, if the application type is a system tool program type, then based on the current data transmission pressure capacity, the maximum data transmission rate, and the minimum data transmission rate of the target solid-state drive, determine the first current data transmission rate of the target solid-state drive, and control the data transmission rate of the target solid-state drive at the first current data transmission rate.
[0140] Optionally, application programs of the system tool type usually have relatively high requirements for data timeliness and stability. Under different data transmission pressures, it is necessary to reasonably adjust the data transmission rate of the solid-state drive. Therefore, if it is determined that the application type is a system tool program type, the transmission rate control device obtains the maximum data transmission rate and the minimum data transmission rate of the target solid-state drive, and determines the first current data transmission rate of the target solid-state drive according to the current data transmission pressure capacity, the maximum data transmission rate, and the minimum data transmission rate, and controls the data transmission rate of the target solid-state drive at the first current data transmission rate. That is, when the target solid-state drive transmits the data of the system tool program, it transmits the data of the system tool program at the first current data transmission rate. The calculation formula for the first current data transmission rate is as follows:
[0141]
[0142] Wherein, R sys represents the first current data transmission rate, R min represents the minimum data transmission rate, R max represents the maximum data transmission rate, and P represents the current data transmission pressure capacity.
[0143] Step 502, if the application type is a network communication program type, then based on the current data transmission pressure capacity, the maximum data transmission rate, the minimum data transmission rate, and the network delay coefficient, determine the second current data transmission rate of the target solid-state drive, and control the data transmission rate of the target solid-state drive at the second current data transmission rate.
[0144] Optionally, application programs of the network communication type have certain requirements for the timeliness and continuity of data transmission, and at the same time, they need to take into account the network environment and data transmission pressure. Therefore, if it is determined that the application type is a network communication program type, the transmission rate control device obtains the maximum data transmission rate and the minimum data transmission rate of the target solid-state drive, and the network delay coefficient of the network. Among them, the value range of the network delay coefficient is from 0 to 1, and the higher the network delay, the greater the network delay coefficient.
[0145] Further, the transmission rate control device determines the second current data transmission rate of the target solid-state drive according to the current data transmission pressure capacity, the maximum data transmission rate, the minimum data transmission rate, and the network delay coefficient, and controls the data transmission rate of the target solid-state drive at the second current data transmission rate. That is, when the target solid-state drive transmits the data of the network communication program, it transmits the data of the network communication program at the second current data transmission rate. The calculation formula of the second current data transmission rate is as follows:
[0146]
[0147] Where, R net represents the second current data transmission rate, and L represents the network delay coefficient.
[0148] Step 503, if the application program type control includes the entertainment creation program type, then based on the current data transmission pressure capacity, the maximum data transmission rate, the minimum data transmission rate, and the user experience sensitivity coefficient, determine the third current data transmission rate of the target solid-state drive, and control the data transmission rate of the target solid-state drive at the third current data transmission rate.
[0149] Optionally, entertainment creation type application programs usually have a large bandwidth requirement for data transmission, but when the data transmission pressure is large, reasonable rate adjustment is also required to ensure the user experience. Therefore, if it is determined that the application program type control includes the entertainment creation program type, the transmission rate control device obtains the maximum data transmission rate and the minimum data transmission rate of the target solid-state drive, as well as the user experience sensitivity coefficient of the user to the experience. The value range of the user experience sensitivity coefficient is from 0 to 1. The higher the user's sensitivity to the experience, the larger the user experience sensitivity coefficient.
[0150] Further, the transmission rate control device determines the third current data transmission rate of the target solid-state drive according to the current data transmission pressure capacity, the maximum data transmission rate, the minimum data transmission rate, and the user experience sensitivity coefficient, and controls the data transmission rate of the target solid-state drive at the third current data transmission rate. That is, when the target solid-state drive transmits the data of the entertainment creation program, it transmits the data of the entertainment creation program at the third current data transmission rate. The calculation formula of the third current data transmission rate is as follows:
[0151]
[0152] Where, R ent represents the third current data transmission rate, and S represents the user experience sensitivity coefficient.
[0153] An embodiment of the present invention controls the data transmission rate of a target solid-state drive in combination with the current data transmission pressure capacity and the application program type, so that when facing different application program types, the target solid-state drive performs data transmission at different data transmission rates, improving the flexibility of data transmission rate control of the solid-state drive.
[0154] Further, the solid-state drive data transmission rate control system provided by the present invention will be described below. The solid-state drive data transmission rate control system described below can be correspondingly referred to the solid-state drive data transmission rate control method described above. Optionally, referring to Figure 2 , Figure 2 is a structural diagram of a solid-state drive data transmission rate control device provided by the present invention. The solid-state drive data transmission rate control device includes:
[0155] A data acquisition module 210, configured to collect the current internal state parameters and the current operating load information of the target solid-state drive in real time; the current internal state parameters include the current temperature, the current cumulative usage duration, the current write amplification factor, and the current queue depth; the current operating load information includes the current CPU usage rate, the current memory occupancy rate, and the application program type of the currently running application;
[0156] A determination module 220, configured to determine a comprehensive state index of the target solid-state drive based on the current temperature, the current cumulative usage duration, the current write amplification factor, and the current queue depth;
[0157] A model matching module 230, configured to match a target data transmission evaluation model in a preset model library based on the comprehensive state index; the target data transmission evaluation model is trained based on the sample CPU usage rate, the sample memory occupancy rate, and their corresponding data transmission pressure capacity label results;
[0158] A model prediction module 240, configured to input the current CPU usage rate and the current memory occupancy rate into the target data transmission evaluation model to obtain the current data transmission pressure capacity output by the target data transmission evaluation model;
[0159] A transmission rate module 250, configured to control the data transmission rate of the target solid-state drive based on the current data transmission pressure capacity and the application program type.
[0160] In an embodiment of the present invention, a comprehensive status index determined by the current temperature, current cumulative usage duration, current write amplification factor, and current queue depth of a target solid-state drive is used to match the most suitable target data transfer evaluation model for the current situation in a preset model library. By using the target data transfer evaluation model and combining the current CPU usage rate and current memory occupancy rate, the current data transfer pressure capacity of the target solid-state drive is evaluated, improving the accuracy of solid-state drive data transfer rate control. At the same time, by combining the current data transfer pressure capacity and application program type to control the data transfer rate of the target solid-state drive, when facing different application program types, the target solid-state drive performs data transfer at different data transfer rates, improving the flexibility of solid-state drive data transfer rate control.
[0161] Please refer to Figure 3 , Figure 3 which is an embodiment diagram of an electronic device provided by an embodiment of the present invention. As Figure 3 shown, an embodiment of the present invention provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, the following steps are implemented:
[0162] Real-time collect the current internal state parameters and current operating load information of the target solid-state drive; the current internal state parameters include the current temperature, current cumulative usage duration, current write amplification factor, and current queue depth; the current operating load information includes the current CPU usage rate, current memory occupancy rate, and the application program type of the currently running application;
[0163] Based on the current temperature, current cumulative usage duration, current write amplification factor, and current queue depth, determine the comprehensive status index of the target solid-state drive;
[0164] Based on the comprehensive status index, match the target data transfer evaluation model in the preset model library; the target data transfer evaluation model is trained based on the sample CPU usage rate, sample memory occupancy rate, and their corresponding data transfer pressure capacity label results;
[0165] Input the current CPU usage rate and current memory occupancy rate into the target data transfer evaluation model to obtain the current data transfer pressure capacity output by the target data transfer evaluation model;
[0166] Based on the current data transfer pressure capacity and application program type, control the data transfer rate of the target solid-state drive.
[0167] Please refer to Figure 4 , Figure 4 which is an embodiment diagram of a computer-readable storage medium provided by an embodiment of the present invention. As Figure 4As shown in the figure, this embodiment provides a computer-readable storage medium 400, on which a computer program 311 is stored. When the computer program 311 is executed by a processor, the following steps are implemented:
[0168] Collect the current internal state parameters and current operating load information of the target solid-state drive in real time; the current internal state parameters include the current temperature, the current cumulative usage duration, the current write amplification factor, and the current queue depth; the current operating load information includes the current CPU usage rate, the current memory occupancy rate, and the application program type of the currently running application;
[0169] Based on the current temperature, the current cumulative usage duration, the current write amplification factor, and the current queue depth, determine the comprehensive state index of the target solid-state drive;
[0170] Based on the comprehensive state index, match the target data transmission evaluation model in the preset model library; the target data transmission evaluation model is trained based on the sample CPU usage rate, the sample memory occupancy rate, and their corresponding data transmission pressure ability label results;
[0171] Input the current CPU usage rate and the current memory occupancy rate into the target data transmission evaluation model to obtain the current data transmission pressure ability output by the target data transmission evaluation model;
[0172] Control the data transmission rate of the target solid-state drive based on the current data transmission pressure ability and the application program type.
[0173] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the solid-state drive data transmission rate control method provided by the above-mentioned various methods. The method includes:
[0174] Collect the current internal state parameters and current operating load information of the target solid-state drive in real time; the current internal state parameters include the current temperature, the current cumulative usage duration, the current write amplification factor, and the current queue depth; the current operating load information includes the current CPU usage rate, the current memory occupancy rate, and the application program type of the currently running application;
[0175] Based on the current temperature, the current cumulative usage duration, the current write amplification factor, and the current queue depth, determine the comprehensive state index of the target solid-state drive;
[0176] Based on the comprehensive state index, match the target data transmission evaluation model in the preset model library; the target data transmission evaluation model is trained based on the sample CPU usage rate, the sample memory occupancy rate, and their corresponding data transmission pressure ability label results;
[0177] Input the current CPU usage rate and the current memory occupancy rate into the target data transmission evaluation model to obtain the current data transmission pressure capacity output by the target data transmission evaluation model;
[0178] Control the data transmission rate of the target solid-state drive based on the current data transmission pressure capacity and the application type.
[0179] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative work.
[0180] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0181] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or equivalently replace some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for controlling the data transmission rate of a solid state hard disk, characterized in that: include: Real-time collection of current internal state parameters and current operating load information of the target solid-state drive; the current internal state parameters include current temperature, current cumulative usage time, current write amplification factor, and current queue depth; the current operating load information includes current CPU usage, current memory occupancy, and the type of application currently running; Determining a comprehensive status indicator of the target solid-state drive based on the current temperature, the current accumulated usage time, the current write amplification factor, and the current queue depth; Based on the comprehensive status indicator, a target data transmission evaluation model is matched in a preset model library; the target data transmission evaluation model is trained based on the sample CPU usage rate and the sample memory occupancy rate and their corresponding data transmission pressure capability label results; Inputting the current CPU usage rate and the current memory occupancy rate into the target data transmission assessment model to obtain the current data transmission pressure capacity output by the target data transmission assessment model; The data transfer rate of the target solid state drive is controlled based on the current data transfer pressure capability and the application type.
2. The method for controlling the data transmission rate of a solid state hard disk according to claim 1, characterized in that: The application program type control includes system tool program type, network communication program type and entertainment creation program type; The controlling the data transmission rate of the target solid state drive based on the current data transmission pressure capability and the application type includes: If the application type is a system tool program type, then based on the current data transmission pressure capability and the maximum data transmission rate and the minimum data transmission rate of the target solid state drive, a first current data transmission rate of the target solid state drive is determined, and the data transmission rate of the target solid state drive is controlled at the first current data transmission rate; or, If the application type is a network communication program type, then based on the current data transmission pressure capability, the maximum data transmission rate, the minimum data transmission rate and the network delay coefficient, a second current data transmission rate of the target solid state drive is determined, and the data transmission rate of the target solid state drive is controlled at the second current data transmission rate; or, If the application type control includes an entertainment creation program type, then based on the current data transmission pressure capability, the maximum data transmission rate, the minimum data transmission rate and the user experience sensitivity coefficient, the third current data transmission rate of the target solid-state hard disk is determined, and the data transmission rate of the target solid-state hard disk is controlled with the third current data transmission rate.
3. The method for controlling the data transmission rate of a solid state hard disk according to claim 1, characterized in that: The calculation formula of the first current data transmission rate is as follows: The calculation formula of the second current data transmission rate is as follows: The calculation formula of the third current data transmission rate is as follows: Among them, R sys Represents the first current data transmission rate, R net Represents the second current data transmission rate, R ent represents the third current data transmission rate, R min Indicates the minimum data transmission rate, R max It represents the maximum data transmission rate, P represents the current data transmission pressure capacity, L represents the network delay coefficient, and S represents the user experience sensitivity coefficient.
4. The method for controlling the data transmission rate of a solid state hard disk according to claim 1, characterized in that: The step of determining the comprehensive status indicator of the target solid state drive based on the current temperature, the current accumulated usage time, the current write amplification factor, and the current queue depth includes: Determine, based on the current temperature, a temperature influence factor on the operation of the target solid state drive; Evaluate the life of the target solid-state drive based on the current accumulated usage time and the set total life value of the target solid-state drive to obtain a current remaining life estimate of the target solid-state drive; Calculating a comprehensive status indicator of the target solid-state drive based on the current estimated remaining lifespan, the operation influencing factor, the current write amplification factor, and the current queue depth; The calculation formula of the comprehensive status index is as follows: Among them, S f Represents the comprehensive status index, T f represents the operation impact factor, L f represents the current estimated remaining lifespan, W f Indicates the current write amplification factor, K Q Indicates the preset scaling factor, Q f represents the current queue depth, L represents the set total lifespan value, e represents the base of the exponential function, t represents the current cumulative usage time, T represents the current temperature, μ T and σ T Respectively represent the mean and variance of the normal working temperature of the solid state drive.
5. The method for controlling the data transmission rate of a solid state hard disk according to claim 1, wherein: Matching a target data transmission evaluation model in a preset model library based on the comprehensive status indicator includes: Determining a state stability index based on the comprehensive state index, determining a state change rate based on the state stability index, and determining a state fluctuation coefficient based on the state change rate; Based on the state stability index, the state change rate and the state fluctuation coefficient, constructing a working state feature vector of the target solid state drive; Based on matching the working state feature vector with the model feature vector of each data transmission evaluation model in the preset model library, determining the final matching degree of the working state feature vector to the model feature vector of each data transmission evaluation model; The data transmission evaluation model corresponding to the maximum final matching degree is determined as the target data transmission evaluation model.
6. The method for controlling the data transmission rate of a solid state hard disk according to claim 5, characterized in that: The matching of the working state feature vector with the model feature vector of each data transmission evaluation model in the preset model library to determine the final matching degree of the working state feature vector to the model feature vector of each data transmission evaluation model includes: Determining the degree of adaptability of the working state feature vector to the model feature vector of each data transmission assessment model based on a vector distance between the working state feature vector and the model feature vector of each data transmission assessment model; determining a model influencing factor of each data transmission assessment model based on feature correlation and feature similarity between a model feature vector of each data transmission assessment model and model feature vectors of other data transmission assessment models; Based on the adaptability of the working status feature vector to the model feature vector of each data transmission assessment model and the model influencing factor of each data transmission assessment model, the final matching degree of the working status feature vector to the model feature vector of each data transmission assessment model is determined.
7. The method for controlling the data transmission rate of a solid state hard disk according to any one of claims 1 to 6, characterized in that: The target data transmission assessment model includes a basic impact factor calculation layer, an interactive impact factor calculation layer and a transmission pressure capacity calculation layer; the current CPU usage rate and the current memory occupancy rate are input into the target data transmission assessment model to obtain the current data transmission pressure capacity output by the target data transmission assessment model, including: Input the current CPU usage rate and the current memory occupancy rate into the target data transmission assessment model, and calculate the first basic impact factor of the CPU usage rate on the data transmission pressure and the second basic impact factor of the memory occupancy rate on the data transmission pressure based on the basic impact factor calculation layer according to the current CPU usage rate and the current memory occupancy rate; Based on the interactive impact factor calculation layer, the interactive impact factor of the CPU usage and the memory usage on the data transmission pressure is calculated according to the current CPU usage and the current memory usage; The transmission pressure capability calculation layer calculates the current data transmission pressure capability according to the first basic influencing factor, the second basic influencing factor and the interaction influencing factor.
8. A solid state hard disk data transmission rate control device, characterized in that: include: A data acquisition module is used to collect the current internal state parameters and current operation load information of the target solid-state hard disk in real time; the current internal state parameters include the current temperature, the current cumulative usage time, the current write amplification factor and the current queue depth; the current operation load information includes the current CPU usage rate, the current memory occupancy rate and the type of application currently running; A determination module, configured to determine a comprehensive status indicator of the target solid state drive based on the current temperature, the current accumulated usage time, the current write amplification factor, and the current queue depth; A model matching module is used to match a target data transmission evaluation model in a preset model library based on the comprehensive status indicator; the target data transmission evaluation model is trained based on the sample CPU usage rate and the sample memory occupancy rate and their corresponding data transmission pressure capability label results; A model prediction module, used for inputting the current CPU usage rate and the current memory occupancy rate into the target data transmission assessment model to obtain the current data transmission pressure capacity output by the target data transmission assessment model; A transmission rate module is used to control the data transmission rate of the target solid state drive based on the current data transmission pressure capability and the application type.
9. An electronic device, comprising: Memory for storing computer software programs; A processor, used to read and execute the computer software program, characterized in that when the processor executes the computer software program, it implements the solid state hard disk data transmission rate control method as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer software program stored therein, characterized in that: When the computer software program is executed by a processor, the solid state hard disk data transmission rate control method as claimed in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and system for predicting service life of solid state disk
CN118093324A
Solid state disk service life monitoring and early warning system and method based on performance analysis
CN118642921A
Data storage device and data storing method thereof
US20110093659A1
Throttle disk I / O using disk drive simulation model
US20130132057A1
Optimizing algorithms for hardware devices
US20240127045A1