Method and device for adjusting storage system, computing equipment, medium and program product
Through the combination of multiple prediction strategies, the IO characteristics of the storage system are extracted and a suitable prediction strategy is selected to dynamically adjust the parameters of the solid state drive, solving the problem of load characteristic identification and optimization in different application scenarios, and improving the overall performance and life of the storage system.
Patent Information
- Application Number
- CN202310347759.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
It is difficult for existing technology to accurately identify and adapt to the load characteristics of solid-state drives in different application scenarios, resulting in poor performance of storage systems in terms of power consumption, performance, and lifespan optimization.
Adopt a storage system adjustment method based on multiple prediction strategies. By extracting the IO data characteristics of the storage system, use multiple prediction strategies to predict future characteristics, and select the appropriate strategy for adjustment based on the comparison results to dynamically optimize the parameters of the storage system to adapt to different conditions. load scenario.
It reduces the resource overhead of IO prediction, supports multiple application scenarios, avoids the limitations of a single prediction technology, improves the power consumption, performance and lifespan optimization effects of the storage system, and prevents negative optimization from occurring.
Smart Images

Figure CN118732927A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to the field of computer technology, and more particularly to the field of data storage devices. More particularly, embodiments of the present disclosure relate to methods, apparatuses, computing devices, computer-readable storage media, and computer program products for adjusting a storage system. Background Art
[0002] In SSDs or system-level storage, different application scenarios (databases, distributed storage, big data, etc.) have different load characteristics. Under different load characteristics, SSDs or system-level storage have different response capabilities. In view of the different load characteristics in different application scenarios, the SSD needs to be optimized to adapt to different scenarios.
[0003] Therefore, for different application scenarios, it is necessary to be able to accurately identify load characteristics and dynamically adjust the internal parameters or management strategies of the SSD according to the identified load characteristics, so as to optimize storage power consumption, performance, latency, lifespan and other indicators. Summary of the invention
[0004] The embodiments of the present disclosure provide a technical solution for adjusting a storage system based on integrating multiple prediction strategies.
[0005] According to the first aspect of the present disclosure, a method for adjusting a storage system based on multiple prediction strategies is provided. The method may include: a) extracting the characteristics of the input and output IO data of the storage system within a first statistical unit; b) predicting multiple prediction characteristics of the IO data of the second statistical unit after the first statistical unit using multiple prediction strategies based on the extracted characteristics; c) extracting the actual characteristics of the IO data of the storage system within the second statistical unit; d) comparing each of the multiple prediction characteristics with the actual characteristics respectively; and e) based on the comparison result, selecting at least one candidate prediction strategy from the multiple prediction strategies, thereby adjusting the storage system based on at least one candidate prediction strategy. The storage system adjustment method based on multiple prediction strategies extracts the characteristics of IO rather than the complete IO information as the input / output of the load feature prediction technology, thereby reducing the resource overhead of IO prediction, and the method integrates multiple prediction strategies, thereby supporting multiple application scenarios, and does not rely on a single prediction technology or a certain prediction technology.
[0006] In some embodiments, steps a) to d) may be performed for multiple pairs of adjacent first statistical units and second statistical units. In some embodiments, based on the comparison results, selecting at least one candidate prediction strategy from multiple prediction strategies may include: determining a statistical result for each prediction strategy based on the comparison results for multiple pairs of adjacent first statistical units and second statistical units; comparing the statistical result for each prediction strategy with a statistical threshold; and in response to the statistical result being greater than or equal to the statistical threshold, selecting the prediction strategy corresponding to the statistical result as a candidate prediction strategy. By acquiring as many data samples as possible, more accurate statistical results can be obtained based on statistics of these data.
[0007] In some embodiments, the method for adjusting a storage system based on multiple prediction strategies may further include: f) evaluating the adjustment effect achieved by the prediction adjustment parameter determined by each candidate strategy in at least one candidate prediction strategy; and g) selecting a target strategy from the at least one candidate prediction strategy based on the evaluation result. By providing feedback evaluation on the adjustment effect of each candidate strategy, negative optimization of the candidate strategy can be prevented, thereby improving optimization performance.
[0008] In some embodiments, the above step f) may be performed in multiple statistical units. By performing feedback evaluation in multiple statistical units, the evaluation result can be made more accurate.
[0009] In some embodiments, the method for adjusting a storage system based on multiple prediction strategies may further include: periodically evaluating the adjustment effect achieved by the prediction adjustment parameters determined by the target strategy; and in response to the adjustment not meeting the requirements, re-performing steps a) to e) or a) to g). The IO load of the storage system may change significantly. By periodically performing feedback evaluation on the target strategy, it is possible to find out whether the target strategy is suitable for the IO load in the current situation, so that an appropriate prediction strategy can be selected in real time based on the new IO load.
[0010] In some embodiments, the statistical unit may be related to a time period. In some embodiments, the statistical unit may be related to the amount of written data of the storage system.
[0011] In some embodiments, the feature may be related to the ratio of the read / write bandwidth of the IO data within a time period to the total bandwidth allowed by the storage system, wherein within the first statistical unit, extracting the feature of the input / output IO data of the storage system includes: determining multiple levels of the total bandwidth allowed by the storage system based on the bandwidth amount; and determining the level corresponding to the read / write bandwidth of the IO data within a time period. In some embodiments, the level may be related to the read / write frequency and / or read / write voltage of the storage system. By making the feature correspond to the read / write bandwidth of the IO data, a relatively simple IO feature can be extracted, which is an FTL feature, and the computing power resources required for extraction are relatively small. By extracting this feature, the read / write frequency and / or read / write voltage of the storage system can be adjusted.
[0012] In some embodiments, the characteristic may be related to a life cycle of each write address, wherein the life cycle may be related to a total amount of written data to the storage system during a first time period, the first time period being related to an amount of time between a time when data is written and a time when the data is deleted at the write address; and / or wherein the life cycle may be related to a total amount of written data to the storage system during a second time period, the second time period being related to an amount of time between a time when data is written for the first time and a time when data is written for the second time at the write address.
[0013] In some embodiments, within a first statistical unit, extracting features of the input and output IO data of a storage system may include: determining multiple levels of write addresses according to the order of magnitude of the amount of written data; and determining the level corresponding to the write address based on the life cycle of the write address. In some embodiments, the level of the write address may be related to the hotness or coldness of the data. In some embodiments, the first life cycle corresponds to hot data, and the second life cycle that is longer than the first life cycle corresponds to cold data. By making the feature correspond to the life cycle of the write address, a relatively simple IO feature can be extracted, which is an FTL feature, and the computing resources required for extraction are relatively small. By extracting this feature, data arrangement optimization can be performed to reduce the amount of garbage collection GC garbage / write amplification.
[0014] In some embodiments, the feature may include at least one of the following: sequentiality or randomness of reading and writing, life cycle of each written data, reading frequency of each data, and correlation between reading and writing.
[0015] According to the second aspect of the present disclosure, there is also provided a storage system adjustment device based on multiple prediction strategies, which may include: a feature extraction unit, used to extract features of input and output IO data of the storage system within a statistical unit; a feature prediction unit, used to predict multiple prediction features of IO data within a future statistical unit using multiple prediction strategies; and a prediction strategy selection unit, used to compare the multiple prediction features of a future statistical unit with the actual features of the future statistical unit, and based on the comparison result, select at least one candidate prediction strategy from the multiple prediction strategies to adjust the storage system based on the at least one candidate prediction strategy.
[0016] In one embodiment, the storage system adjustment device may further include: a prediction strategy adjustment performance evaluation unit, configured to evaluate the adjustment effect achieved by the prediction adjustment parameters determined by the prediction strategy.
[0017] According to the third aspect of the present disclosure, a computing device is also provided, comprising: at least one processor; and a memory, on which computer executable instructions are stored. When the computer executable instructions are executed by the at least one processor, the computing device executes the method according to the first aspect of the present disclosure.
[0018] According to a fourth aspect of the present disclosure, a computer-readable storage medium is further provided, on which one or more computer-executable instructions are stored, wherein the one or more computer-executable instructions are executed by a processor to enable the processor to execute the method according to the first aspect of the present disclosure.
[0019] According to a fifth aspect of the present disclosure, a computer program product is also provided, comprising computer executable instructions, which, when executed by a device, cause the device to perform the method according to the first aspect of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0021] Figure 1 shows an example environment in which embodiments of the present disclosure may be implemented;
[0022] Figure 2 A schematic flow chart of a storage system adjustment method based on multiple prediction strategies according to an embodiment of the present disclosure is shown;
[0023] Figure 3 A schematic flow chart of a storage optimization method based on multi-strategy load prediction and effect feedback according to an embodiment of the present disclosure is shown;
[0024] Figure 4 A schematic flow chart of a method for dynamically adjusting power consumption by predicting future bandwidth gear positions according to an embodiment of the present disclosure is shown;
[0025] Figure 5 A schematic flow chart of a method for optimizing data arrangement by predicting the life cycle of write data according to an embodiment of the present disclosure is shown;
[0026] Figure 6 A schematic block diagram showing a storage system adjustment method based on multiple prediction strategies according to an embodiment of the present disclosure; and
[0027] Figure 7 A schematic block diagram of an example device that may be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0028] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0029] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "some embodiments" or "the embodiment" should be understood as "at least some embodiments". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0030] In SSD or system-level storage, different application scenarios (database, distributed storage, big data, etc.) have different load characteristics. These different load characteristics can include: 1) the pressure of input and output IO; 2) the order and randomness of read / write IO; 3) the life cycle of each written data (the time between writing and writing again, or the time between writing and deleting, or the amount of written data); 4) the (read) access frequency of each data; and 5) the correlation between read / write IO.
[0031] If the characteristics of each IO currently input to the SSD by the host can be obtained in advance, the management strategy inside the SSD can be changed dynamically (generally referring to the flash translation layer (FTL) strategy in SSD, and the management strategy is described as FTL strategy below), thereby optimizing storage performance, latency, power consumption, and life. For example, if the IO pressure can be accurately predicted and it is predicted that the IO pressure will decrease in the future, the voltage and frequency of the storage device / system can be reduced to reduce power consumption without affecting performance. At the same time, if it is predicted that the IO pressure will increase, the voltage / frequency can be increased to restore performance.
[0032] In addition, the prediction strategies used in traditional technologies (for example, more complex prediction models based on artificial intelligence) are not compatible with all load models, and the prediction strategies used are related to specific network structures and specific load conditions. In addition, in the scenario of predicting IOPS (input and output per second), the benefits of applying prediction features are not guaranteed. After applying the prediction features of IOPS to optimize the FTL strategy, because IOPS is the result of a compromise between host demand and storage capacity, it may change future IOPS, resulting in distortion of future prediction features, and ultimately poor optimization results, or negative optimization.
[0033] According to an embodiment of the present disclosure, a storage system adjustment method based on multiple prediction strategies is provided, wherein the characteristics of the input and output IO data of the storage system are extracted within a first statistical unit; based on the extracted characteristics, multiple prediction characteristics of the IO data of the second statistical unit after the first statistical unit are predicted using multiple prediction strategies; within the second statistical unit, the actual characteristics of the IO data of the storage system are extracted; each of the multiple prediction characteristics is compared with the actual characteristics respectively; and based on the comparison result, at least one candidate prediction strategy is selected from the multiple prediction strategies, so as to adjust the storage system based on at least one candidate prediction strategy. The storage system adjustment method based on multiple prediction strategies extracts the characteristics of IO instead of the complete IO information, and uses the extracted IO characteristics instead of the complete IO information as the input / output of the load characteristic prediction technology, so as to reduce the resource overhead of predicting future IO. In addition, the storage system adjustment method based on multiple prediction strategies according to the present disclosure integrates multiple prediction strategies, so as to support multiple application scenarios, and does not rely on a single prediction technology or a certain prediction technology, so that a prediction strategy that is more suitable for the application scenario can be selected, and then the storage system is adjusted based on the appropriate prediction strategy.
[0034] Example Environment
[0035] Figure 1An example environment 100 in which embodiments of the present disclosure may be implemented is shown. The environment 100 includes a host system 101 for writing data to or reading data from a storage medium 102; the storage medium 102; and a storage control system 103 for controlling the storage medium 102. In some embodiments, the storage medium 102 can be a local storage device, such as a solid state drive (SSD). In some embodiments, the storage medium 102 can be a system-level storage device, such as distributed storage, enterprise storage, or cloud storage. Figure 1 For ease of explanation, the storage control system 103 is shown as being separated from the storage medium 102 , but the storage control system 103 may be integrated into the storage medium 102 according to the requirements of the storage application.
[0036] For different host systems, the amount of data written to or read from the storage medium is different. For example, for different application scenarios, such as database application scenarios, distributed storage application scenarios, big data application scenarios, etc., the input and output IO loads faced by the storage medium 102 are different.
[0037] If the storage control system 103 can obtain in advance the characteristics of each IO input from the current host system 101 to the storage medium 102, then the storage control system 103 can dynamically change the management strategy inside the storage medium 102 (i.e., adjust the parameters of the storage medium 102), thereby optimizing storage performance, latency, power consumption, and life, etc. For example, if the IO pressure can be accurately predicted, and it is predicted that the IO pressure will decrease in the future, the voltage and / or frequency of the storage medium 102 (e.g., solid-state hard disk) can be reduced at this time, thereby reducing power consumption without affecting performance. At the same time, if it is predicted that the IO pressure will increase in the future, the voltage and / or frequency of the storage medium 102 (e.g., solid-state hard disk) can be increased to restore higher performance.
[0038] A variety of prediction strategies can predict the IO characteristics of a period of time in the future. For different IO characteristics of local storage devices (e.g., solid-state drives) and / or system-level storage devices (e.g., distributed storage, enterprise storage, cloud storage), it is necessary to be able to select a strategy that is suitable for different IO characteristics from a variety of prediction strategies to adapt to the load characteristics in various application scenarios. For example, the following prediction strategies 1) to 6) can be used to predict the IO characteristics of a period of time in the future:
[0039] 1) History is completely equal to the future, for example, assuming that the bandwidth of the next second is exactly equal to the bandwidth of the previous second;
[0040] 2) A special algorithm designed based on known rules (sequential prediction, etc.), for example, when LBA addresses 1, 2, and 3 appear, the next LBA address is predicted to be 4;
[0041] 3) Non-ANN (Artificial Neural Network) machine learning methods, such as decision trees, random forests, Bayesian, etc.;
[0042] 4) Online-ANN, an artificial neural network model trained online, learns load characteristics online, and is more adaptable to scenarios than offline models. However, its problem is that the training time is long and the resource consumption is high;
[0043] 5) Offline-ANN, an artificial neural network model trained offline, which directly calculates the output results based on the input when applied online without training. Its characteristics are low resource consumption and faster output of prediction features than offline models; and
[0044] 6) ANN, including RNN, CNN, GRU, Transformer, etc. ANN models can learn some complex rules, but their interpretability is poor, and the prediction effect is strongly related to the load scenario / NN architecture.
[0045] Example Process
[0046] Figure 2 A schematic flow chart of a storage system adjustment method 200 based on multiple prediction strategies according to an embodiment of the present disclosure is shown. For the convenience of description, the storage control system 103 implementation method 200 is described as an example. The storage control system 103 can be a controller of a solid-state hard disk SSD, or a control system of a system-level storage device. The present disclosure does not impose any restrictions on the environment in which the storage control system 103 is located. For SSD, the terminal storage medium is NAND. For enterprise storage, its terminal storage medium is HDD / SSD. For cloud storage or distributed storage, its terminal storage medium becomes a storage node, SSD, etc.
[0047] In block 210, features of input / output IO data of a storage system are extracted within a first statistical unit. The storage system here may be a local storage device (e.g., a solid state drive) or a system-level storage device (e.g., distributed storage, enterprise storage, and cloud storage).
[0048] In some embodiments of the present disclosure, the feature is a feature for the flash translation layer (FTL). The FTL feature is different from IOPS, and the required prediction or extraction computing power is much smaller than IOPS. Therefore, the IO feature extracted according to the present disclosure is optimally matched with the management strategy (e.g., FTL management strategy), and does not require particularly complex and accurate IOPS features.
[0049] The features of the extracted IO data (eg, FTL features) can be used as input for a variety of subsequent load prediction techniques, thereby reducing the resource overhead of prediction and eliminating the need to predict IOPS, which is complex and requires large computing resources.
[0050] In some embodiments, the statistical unit is, for example, a statistical time period (eg, 100 ms). In this embodiment, the feature is related to the read and write bandwidth in the storage system within a statistical time period (eg, 100 ms) and the total bandwidth allowed by the storage system.
[0051] In some embodiments, the statistical unit is related to the amount of data written to the storage system, such as a unit amount of data written of 100GB. During the time when the storage system is written with an amount of 100GB, multiple logical block addresses (LBAs) are written with data, and the LBAs to which the data is written are referred to as write addresses hereinafter. In this embodiment, the feature is related to the life cycle of each write address LBA. In this embodiment, in addition to predicting the life cycle feature, it is also possible to predict the sequentiality or randomness of the IO address, and the associated address of the IO address (that is, the association between reading and writing), so as to perform IO pre-reading to reduce the latency of the SSD or storage system. In addition, in this embodiment, the feature may also include the reading frequency of each data.
[0052] In some embodiments, the life cycle can be defined as: when the storage system completes 100GB of written data, the difference between the total system write data volume when each write address LBA is written for the first time and the total system write data volume when the data is written for the second time, that is, the total write data volume of the storage system during the period from the first write data to the second write data. In some embodiments, the life cycle can be defined as: when the storage system completes 100GB of written data, the difference between the total system write data volume when each write address LBA is written and the total system write data volume when the data is deleted, that is, the total write data volume of the storage system during the period from writing data to being deleted. In some embodiments, if the LBA is written or deleted multiple times, the life cycle is positioned as the difference in the amount of write data counted at the last write or deletion when the storage system completes 100GB of written data.
[0053] In box 220, based on the extracted features, multiple prediction strategies are used to predict multiple prediction features of IO data of a second statistical unit after the first statistical unit. In some embodiments, the prediction feature can be the ratio of the read and write bandwidth of the IO to the total bandwidth allowed by the storage system during the statistical time, or the gear corresponding to the read and write bandwidth of the IO. In some embodiments, the prediction feature can be the gear at which the predicted life cycle of the write address is located, where each gear is divided according to the level of the amount of written data, which will be explained in detail below.
[0054] In block 230, actual features of the IO data of the storage system are extracted within a second statistical unit. In some embodiments, the second statistical unit is adjacent to the first statistical unit, for example, the next 100ms. In some embodiments, the second statistical unit is the time period for the storage system to complete the next 100GB of written data.
[0055] In block 240, each of the plurality of predicted features is compared with the actual feature. By comparison, it can be found which feature predicted by the prediction strategy is closer to the actual feature.
[0056] In block 250, at least one candidate prediction strategy is selected from the plurality of prediction strategies based on the comparison result, so as to adjust the storage system based on the at least one candidate strategy. The one or more candidate prediction strategies will be the ones with the most accurate prediction among the plurality of prediction strategies. In some embodiments, the comparison results may be statistically analyzed, and some statistical thresholds may be set for the statistical results, so as to select some prediction strategies that meet the statistical thresholds as candidate prediction strategies. In the case where the candidate prediction strategies include a plurality of strategies, the simplest strategy with the least required prediction computing resources may be selected as the final strategy to perform load prediction on the storage system and to adjust or optimize the management strategy.
[0057] After the final prediction strategy is selected, in long-term applications, adjusting the storage system based on the prediction strategy may include using the prediction strategy to predict future IO characteristics, and predicting the adjustment reference of the storage system based on the IO characteristics, and then adjusting or optimizing the storage system based on the adjustment parameters. For example, if the prediction strategy predicts that the IO pressure will decrease in the future, the voltage and / or frequency of the storage medium (e.g., solid-state drive) can be reduced at this time, thereby reducing power consumption without affecting performance. At the same time, if the prediction strategy predicts that the IO pressure will increase in the future, the voltage and / or frequency of the storage medium (e.g., solid-state drive) can be increased to restore higher performance.
[0058] In some embodiments, the steps of the above-mentioned boxes 210 to 240 are performed in multiple pairs of adjacent statistical units, thereby obtaining a large number of comparison results. Then in box 250, these comparison results are counted, so as to obtain candidate prediction strategies based on the statistics of a large number of samples. In some embodiments, a statistical unit is 100ms or 100GB, and feature extraction and feature comparison can be performed for 10K to 1000K statistical units. The present disclosure does not limit the number of statistical units, and the number of statistical units may change according to actual needs.
[0059] It is difficult to predict accurate IO information (such as the address, time or IOPS of the next IO), and high-precision prediction requires more storage and computing resources, which brings more cost, performance, and power consumption overhead. Compared with the technology of predicting accurate IO information, the embodiment of the present disclosure only extracts the IO characteristics of read and write data (for example, the gear corresponding to the IOPS information), rather than the complete IO information. Therefore, accurate IO information is not required, but only IO characteristics that match the required management policy optimization are required. Therefore, the required overhead and computing resources are small, the cost is lower, and the difficulty is lower. In addition, using the extracted IO characteristics rather than the complete IO information (such as the address, time or IOPS of the next IO) as the input / output of the load feature prediction technology can reduce the resource overhead of predicting future IO, so that IO prediction can be implemented in a simpler way.
[0060] A single prediction technology or a certain prediction technology is not compatible with all load models. The choice of prediction strategy should be related to the network structure and load conditions. For example, some complex prediction strategies (such as LSTM, etc.) can solve some scenarios, but may not be as good as simple strategies (such as future = history) in other application scenarios.
[0061] The storage system adjustment method based on multiple prediction strategies of the embodiment of the present disclosure predicts the input IO load characteristics using multiple prediction strategies, and evaluates the multiple prediction strategies based on the comparison between the actual characteristics and the predicted characteristics, thereby excluding some strategies whose prediction results do not meet the conditions, so as to select some strategies whose predictions are more accurate and meet the application scenario. The storage system adjustment method based on multiple prediction strategies according to the present disclosure integrates multiple prediction strategies, so as to support multiple application scenarios, and does not rely on a single prediction technology or a certain prediction technology, so that a prediction strategy that is more suitable for the application scenario can be selected, and then the storage system can be adjusted based on the appropriate prediction strategy.
[0062] The selected candidate prediction strategies may include one or more prediction strategies, one of which (for example, a simpler strategy, or a strategy requiring less computing resources) may be used to predict the optimization strategy or adjustment strategy to be implemented on the storage system based on the characteristics of the load, so as to perform tuning operations on the storage system, such as adjusting or optimizing the FTL strategy.
[0063] In some cases, by adjusting or changing the management policy of the storage system, future prediction results may be distorted. For example, in traditional technology, after applying the prediction results of IOPS to optimize the management policy, the future IOPS may be changed (because IOPS is the result of a compromise between host demand and storage capacity), which may cause distortion of future prediction results, and ultimately lead to poor optimization effect or negative optimization. In other words, from the perspective of prediction technology, even if the prediction results are completely accurate, applying the prediction results and performing policy optimization may change future inputs, resulting in reduced final benefits or negative optimization. According to the method disclosed in the present invention, the IO characteristics (for example, the gear of IOPS) that match the management policy are predicted instead of the accurate value of IOPS, which reduces the demand for prediction accuracy and improves the accuracy of the prediction. Therefore, the probability of the above-mentioned negative optimization is much lower than the probability in the case of inaccurate prediction.
[0064] In order to make the storage system adjustment method based on multiple prediction strategies more reliable to ensure that negative optimization does not occur, the storage system adjustment method based on multiple prediction strategies according to the present disclosure can optionally also include the step of evaluating the selected candidate strategy. When evaluating the candidate strategy, based on each candidate strategy, the prediction adjustment parameters of the storage system are determined, and then the storage system is adjusted based on the adjustment parameters, and then the performance of the modulated storage system is evaluated to select the prediction strategy corresponding to the better performance as the target prediction strategy. The above evaluation can be performed within multiple cycles, for example, one cycle is 100ms or 100GB, and the evaluation of the adjustment performance can be performed for 10K to 1000K cycles, and then the target prediction strategy is selected based on the statistical results for multiple cycles. After the target prediction strategy is selected, in long-term applications, the selected target prediction strategy is applied to predict the IO characteristics of the storage system, and the adjustment parameters given by the prediction strategy are applied to adjust or optimize the storage system.
[0065] When the application scenario changes, that is, when the characteristics of the IO load change significantly, it is necessary to reselect an appropriate prediction strategy. In order to cope with the load change, the FTL optimization effect and / or overhead can be periodically monitored. When the FTL optimization effect evaluation index no longer meets certain conditions, the above-mentioned method of selecting a candidate prediction strategy, that is, the steps shown in the above-mentioned blocks 210 to 250, is restarted, and optionally, the above-mentioned method of evaluating the candidate prediction strategy can also be periodically executed.
[0066] The storage system adjustment method based on multiple prediction strategies according to the embodiment of the present disclosure is not only applied to storage devices such as solid-state drives (SSDs), but can also be applied to larger storage devices or systems such as enterprise storage and cloud storage. For SSDs, IO characteristics are predicted and FTL strategies are optimized, and the terminal storage medium is NAND. For enterprise storage, IO characteristics are predicted and internal data management strategies are optimized, and the terminal storage medium is HDD / SSD. For cloud storage or distributed storage, IO characteristics are predicted, internal management strategies are optimized, and the terminal storage medium becomes a storage node, SSD, etc.
[0067] In order to better illustrate the storage system adjustment method based on multiple prediction strategies disclosed in the present invention, the following reference is made to Figure 3 To explain. Figure 3 A schematic flow chart of a storage optimization method based on multi-strategy load prediction and effect feedback according to an embodiment of the present disclosure is shown. For the convenience of description, the storage control system 103 implementation method 300 is described as an example. The storage control system 103 can be a controller of a solid state drive SSD or a storage control system of a system-level storage device. The present disclosure does not impose any restrictions on the environment in which the storage control system 103 is located.
[0068] In step S310 , the storage control system 103 parses the command from the host system 103 .
[0069] In step S320, the storage control system 103 extracts FTL features from the IO data. In some embodiments of the present disclosure, the feature is a feature for the flash translation layer (FTL). The FTL feature is different from IOPS, and the prediction or extraction computing power required is much less than IOPS. Therefore, according to the present disclosure, the IO features extracted are optimally matched with the management strategy (e.g., FTL management strategy), and particularly complex and accurate IOPS features are not required.
[0070] In step S330, the storage control system 103 uses multiple prediction strategies, such as prediction strategies A, B, C, etc. to predict the characteristics of the IO data of the next statistical period. In some embodiments, the extracted characteristics of the IO data are used as inputs of the prediction strategy to predict the FTL characteristics of the IO data of the next period, which can reduce the resource overhead of the prediction and eliminate the need to predict IOPS, which is complex and requires a lot of computing resources.
[0071] In step S340, the storage control system 103 estimates the FTL optimization benefits or expenses of each prediction strategy, and selects a candidate prediction strategy based on the estimated results. The selection can be completed by comparing the prediction characteristics of the strategy with the actual characteristics and statistically analyzing the comparison results in multiple cycles, so that the prediction strategy that meets the conditions can be selected as the candidate prediction strategy, that is, the strategy with more accurate prediction results is selected. For example, through this step S304, candidate prediction strategies X and Y are selected. After selecting prediction strategies X and Y, a simpler strategy can be selected as the final prediction strategy.
[0072] In order to ensure that the selected prediction strategy does not have negative optimization in unpredictable special circumstances, the method 300 optionally further includes step 305. That is, even if the prediction result is completely accurate (from the perspective of prediction technology), applying the prediction result and performing FTL optimization may change future inputs (for example, for the case of more complex IOPS prediction), resulting in reduced final benefits or negative optimization. By comparing and screening the prediction strategies based on the prediction characteristics and further evaluating the adjustment effect of the FTL optimization based on the prediction strategy, a more preferred prediction strategy can be selected.
[0073] In step 350, the storage control system 103 performs feedback evaluation on the candidate prediction strategies X and Y. The feedback evaluation can be performed based on optimization performance, power consumption, latency, hardware idle rate, garbage collection amount, etc. Through step S305, strategy X is selected as the optimal strategy, and then strategy X is applied for a long time for the application scenario to perform feature prediction of IO data and management strategy adjustment of the storage system.
[0074] Specific embodiments will be listed below to illustrate the storage optimization method based on multi-strategy load prediction and effect feedback according to the embodiments of the present disclosure.
[0075] Figure 4A schematic flow chart of a method 400 for dynamically adjusting power consumption by predicting future bandwidth gear positions according to an embodiment of the present disclosure is shown. For the convenience of description, the storage control system 103 is used as an example to describe the implementation method 400. The storage control system 103 can be a controller of a solid-state hard disk SSD, or a control system of a system-level storage device. The present disclosure does not impose any restrictions on the environment in which the storage control system 103 is located. For SSD, the terminal storage medium is NAND. For enterprise storage, its terminal storage medium is HDD / SSD. For cloud storage or distributed storage, its terminal storage medium becomes a storage node, SSD, etc.
[0076] In the method 400, the storage control system 103 performs dynamic power consumption adjustment by predicting future bandwidth gear positions. In this embodiment, power consumption management using predicted load bandwidth can reduce power consumption of SSD or system-level storage.
[0077] In step 410, the IO FTL features of the read and write bandwidth of the IO data are extracted. Specifically, the IO read and write bandwidths and the total bandwidth of the storage system in multiple cycles are counted, for example, each cycle is 100ms, and 1000K cycles are counted. For power consumption regulation (adjusting device frequency and voltage), since the voltage / frequency has certain adjustment gears, such as 1 / 30, 2 / 30, 3 / 30...30 / 30, the IO bandwidth (total read+write bandwidth, or weighted in a certain proportion) is divided into 30 gears, and each IO bandwidth gear corresponds to a frequency reduction / voltage reduction gear. The number of gears, the number of cycles, and the time of the cycle mentioned above are merely exemplary and do not represent any limitation on the scope of protection disclosed.
[0078] In step 420, for multiple statistical periods of 100 ms, IO FTL characteristics regarding read and write bandwidth are predicted using multiple prediction strategies, and the benefits and / or costs of each strategy are estimated:
[0079] 2.1) First verify strategy A: Future = History, and perform the following steps i to iii to perform the verification:
[0080] i. Calculate the predicted total bandwidth and the actual total bandwidth level of each cycle within 1000K cycles;
[0081] ii. Since power consumption adjustment based on inaccurate prediction results will affect IO performance, the accuracy and precision of the prediction are required:
[0082] The proportion of predicted accurate gears is > 95%, and the proportion of |predicted bandwidth gear - actual gear|> 10 is < 1%
[0083] The above rules specify the amount of prediction failure overhead that can be tolerated by the design; and
[0084] iii. Evaluate whether the strategy meets the conditions. If so, use it as a candidate verification strategy. If not, exclude the strategy directly.
[0085] The thresholds listed above (such as 95% and / or 1%, etc.) are merely exemplary and illustrative targets, and the thresholds can be changed according to needs. The present disclosure is intended to include the above thresholds but is limited to the above thresholds.
[0086] 2.2). Then, verify prediction strategy B: Offline ANN strategy, and perform the above steps i to iii in the same way.
[0087] 2.3). Verify strategies C, D, etc. and execute steps i to iii as above.
[0088] In step 430, based on the estimation result, at least one candidate strategy is selected from the multiple prediction strategies to adjust the management strategy of the storage system, for example, a strategy that satisfies the condition ii in step 2.1) from the prediction strategies AD... is selected as a candidate strategy. The number of the candidate strategies may be one or more. In the case of including multiple candidate strategies, the simplest strategy may be selected as the final strategy to adjust the management strategy of the storage system in the long term.
[0089] In order to ensure that the selected prediction strategy does not suffer from negative optimization under unpredictable special circumstances, the method 400 may optionally further include step 440 .
[0090] In step 440, feedback evaluation is performed on the candidate strategies. Assuming that only strategies A and B meet the requirements, feedback evaluation is required for the candidate prediction strategies:
[0091] 4.1) First verify strategy A: The bandwidth of the next 100ms is equal to the current 100ms bandwidth. Perform the following steps to verify strategy A:
[0092] i. Apply the prediction results given by strategy A, such as the predicted IO bandwidth level for each cycle;
[0093] ii. Reduce the system voltage / frequency to the corresponding level based on the predicted IO bandwidth; and
[0094] iii. Evaluate whether the policy affects IO bandwidth:
[0095] Observe a period (for example, 1000K 100ms periods) and calculate the percentage of prediction failure periods.
[0096] Definition of prediction failure cycle: The proportion of cycles in which the prediction gear is lower than 30% and the system CPU idle rate or chip idle rate exceeds 50%.
[0097] The proportion is compared with a preset threshold (eg, 10%). If it is higher than the threshold, it is considered that the negative impact of applying the strategy is too great.
[0098] The thresholds listed above (such as 30% and / or 50% and / or 10%, etc.) are merely exemplary and illustrative targets, and the thresholds can vary according to needs. The present disclosure is intended to include the above thresholds but is limited to the above thresholds.
[0099] 4.2) Revalidation Strategy B: For example, Online ANN, evaluates whether the negative impact is also too large according to the conditions in 4.1) iii above.
[0100] In step 450, a target strategy is selected from the candidate strategies based on the feedback evaluation. If only one of strategies A and B has a small negative impact, then that strategy is selected; if both are feasible, then a relatively simple strategy (easier to explain and control) is selected; if neither is feasible, then the predicted features are not used for power consumption control.
[0101] When the application scenario changes, that is, when the characteristics of the IO load change significantly, it is necessary to reselect an appropriate prediction strategy. To achieve this purpose, the method 400 optionally includes step 460 .
[0102] In step 460, the target policy is evaluated for feedback periodically (for example, every 1000 seconds), and the condition in 4.1) iii is used to determine whether the policy affects the IO bandwidth. If so, steps 1 to 5 are restarted.
[0103] In this embodiment, according to the FTL characteristics of the expected application, targeted IO FTL feature extraction is performed as the predicted input / output to reduce the resource overhead of load feature prediction, and the bandwidth is divided into power consumption levels. After predicting the IO bandwidth, power consumption management is performed to reduce the power consumption of the storage device or system. In addition, in the optimization method of this embodiment, a variety of prediction strategies are used, and the estimated benefits / expenses, as well as feedback evaluation and other methods are combined to determine the optimal strategy, thereby avoiding the problem of limited application scenarios and possible negative benefits due to a single prediction strategy. Traditional technology often uses a single strategy, and the result of FTL optimization after predicting the characteristics is uncontrollable.
[0104] Figure 5A schematic flow chart of a method 500 for optimizing data arrangement by predicting the life cycle of write data according to an embodiment of the present disclosure is shown. For the convenience of description, the storage control system 103 is used as an example to describe the implementation method 500. The storage control system 103 can be a controller of a solid-state hard disk SSD or a control system of a system-level storage device. The present disclosure does not impose any restrictions on the environment in which the storage control system 103 is located. For SSD, the terminal storage medium is NAND. For enterprise storage, its terminal storage medium is HDD / SSD. For cloud storage or distributed storage, its terminal storage medium becomes a storage node, SSD, etc.
[0105] In the method 500, the storage control system 103 predicts the life cycle of the write data, optimizes the data arrangement, and reduces the amount of garbage collection GC / write amplification. In this embodiment, by using the predicted life cycle and other features to optimize the data arrangement, the effective data moved during garbage collection can be reduced, thereby optimizing the latency and performance of the SSD or system-level storage, thereby increasing the product life.
[0106] In step 510, IO FTL features related to the life cycle of the IO data are extracted. Specifically, the extraction of the features of the life cycle is performed through the following steps:
[0107] 1.1) Count all LBA addresses written in a unit cycle. The unit cycle is defined by data volume (e.g., 100GB of written data volume). The above written data volume is only exemplary and does not represent any limitation on the disclosed protection scope;
[0108] 1.2) Calculate the life cycle of each LBA in sequence:
[0109] The total amount of data written to the system when the LBA is written again minus the total amount of data written to the system when the LBA was last written; or
[0110] The total amount of data written to the system when the LBA is deleted - the total amount of data written to the system when the LBA was last written,
[0111] If the LBA is written or deleted multiple times, the difference in the total amount of data written to the storage system when the last LBA is written or deleted is counted; and
[0112] 1.3) Store LBAs and their lifecycle information in order.
[0113] In step 520, multiple prediction strategies are used to predict the life cycle of write data within multiple statistical periods, and the benefits and / or costs of each strategy are estimated.
[0114] 2.1) First verify strategy A: Future = History. Perform the following steps to verify strategy A:
[0115] i) Considering the query overhead, the life cycle is recorded according to the granularity of the LBA group (for example, 32MB), and all LBAs in the LBA group share the same life cycle. That is to say, multiple LBAs are set as a group. During a statistical period (for example, 100GB), only some LBAs in the group have data written to them, while others have no data written to them. Then the life cycle of these LBAs with data written to them is used as the life cycle of all LBAs in the group.
[0116] ii) The life cycle cannot be directly applied and needs to be divided into tiers. Each LBA is divided into 8 tiers according to the order of magnitude (1, 10, 100, 1000...). The number of tiers mentioned above is only exemplary and does not represent any limitation on the scope of protection disclosed;
[0117] iii) Optimizing data layout based on inaccurate prediction results (writing data of different lifecycles to different garbage collection GC units to separate hot and cold data) may have negative benefits, so requirements are set for the accuracy and precision of the prediction:
[0118] The proportion of predicted accurate gears is >80%, the proportion of |predicted life gear - actual gear|>2 is less than 30%,
[0119] Among other things, the above rules specify the prediction failure overhead that can be tolerated by the design; and
[0120] iv) Evaluate whether the strategy meets the conditions. If so, use it as a candidate verification strategy; if not, exclude the strategy directly.
[0121] The thresholds listed above (such as 80% and / or 30%, etc.) are merely exemplary and illustrative targets, and the thresholds can be changed according to needs. The present disclosure is intended to include the above thresholds but is limited to the above thresholds.
[0122] 2.2) Verify prediction strategy B: Offline ANN strategy, the NN model has been trained offline, and verify whether it meets the conditions in 2.1) iii.
[0123] 2.3) Verify strategies C, D, etc. to see if they meet the conditions in 2.1) iii.
[0124] In step 530, based on the estimation result, candidate strategies are selected from multiple prediction strategies to adjust the management strategy of the storage system, for example, strategies satisfying the condition in condition 2.1) iii are selected from strategies AD... In the case of multiple candidate strategies, the simplest strategy can be selected as the final strategy to adjust the management strategy of the storage system in the long term.
[0125] In order to ensure that the selected prediction strategy does not suffer from negative optimization under unpredictable special circumstances, the method 500 may optionally further include step 540 .
[0126] In step 540, feedback evaluation is performed on the candidate strategies. Assuming that only strategies A and B are satisfied, "feedback evaluation of candidate prediction strategies" is required:
[0127] 4.1) First verify strategy A: the future life cycle of LBA is equal to the current life cycle.
[0128] i) When writing data, query the current life cycle position of the LBA corresponding to the chunk, and
[0129] ii) Evaluate whether hot and cold separation is achieved after optimizing data arrangement according to the strategy:
[0130] Statistics are collected for each garbage collection GC block during a period (for example, when writing 1 TB of data), and the coefficient of variation of the number of valid pages VPC of the garbage collected GC is calculated to evaluate the degree of cold-hot separation of the predicted data. The larger the coefficient of variation, the more obvious the cold-hot separation is, and the better the prediction strategy is. After the cold-hot separation, the amount of garbage collected will be less, and the system life and performance will be higher.
[0131] 4.2) Re-verify B: Offline ANN and evaluate the coefficient of variation of the number of valid pages VPC that are garbage collected.
[0132] In step 550, a target strategy is selected from the candidate strategies based on the feedback evaluation. For example, a strategy with the largest coefficient of variation of the number of valid pages VPC that are garbage collected GC is selected from all candidate strategies as the long-term strategy.
[0133] When the application scenario changes, that is, when the characteristics of the IO load change significantly, it is necessary to reselect an appropriate prediction strategy. To achieve this purpose, the method 500 optionally includes step 560 .
[0134] In step 560, the target strategy is evaluated by feedback periodically (for example, several TB of data) to determine whether the coefficient of variation of the number of valid pages VPC of the garbage collection GC of the strategy is lower than a certain threshold α. If so, restart steps 1-5.
[0135] In this embodiment, according to the FTL characteristics of the expected application, targeted IO FTL feature extraction is performed as the input / output of the prediction, the resource overhead of the load feature prediction is reduced, the life cycle is graded according to the order of magnitude, the data is separated into hot and cold, the amount of garbage collected is reduced, and the performance and life of the storage system are improved. In addition, in the optimization method of this embodiment, a variety of prediction strategies are used, and the estimated benefits and / or expenses, as well as feedback evaluation and other methods are combined to determine the optimal strategy, thereby avoiding the problem of limited application scenarios and possible negative benefits due to a single prediction strategy. Traditional technology is often a single strategy, and the result of FTL optimization after predicting the characteristics is uncontrollable.
[0136] Example Device
[0137] Figure 6 A schematic block diagram of a storage system adjustment device 600 based on multiple prediction strategies according to an embodiment of the present disclosure is shown. The storage system adjustment device 600 may include a feature extraction unit 610 , a feature prediction unit 620 , and a prediction strategy selection unit 630 .
[0138] The feature extraction unit 610 is configured to extract features of the input and output IO data of the storage system in each statistical unit. The statistical unit can be related to a time period, such as 100ms. The statistical unit can also be related to the amount of data written to the storage system, such as the amount of data written to the storage system every 100GB. In one embodiment, the feature can be a FTL feature.
[0139] The feature prediction unit 620 is used to predict multiple prediction features of IO data within a future statistical unit using multiple prediction strategies. By integrating multiple prediction strategies, it is possible to support multiple application scenarios without relying on a single prediction technology or a certain prediction technology.
[0140] The prediction strategy selection unit 630 is used to compare multiple predicted features of a future statistical unit with actual features of a future statistical unit, and based on the comparison result, select at least one candidate prediction strategy from multiple prediction strategy predictions, so as to adjust the storage system based on the at least one candidate prediction strategy. In some embodiments, the feature extraction unit 610, the feature prediction unit 620, and the prediction strategy selection unit 630 perform operations on multiple pairs of two adjacent statistical units. For example, in the first statistical unit, feature extraction is performed using the feature extraction unit 610. Then, the feature prediction unit 620 uses multiple prediction strategy predictions based on the extracted features of the first statistical unit to perform multiple predictions on the features of the IO data in the second statistical unit. Then, the prediction strategy selection unit 630 compares the multiple predicted features for the second statistical unit with the actual features to select a suitable prediction strategy based on statistics of the comparison results.
[0141] In some embodiments, the storage system adjustment device 600 may further include a prediction strategy adjustment performance evaluation unit 640, which is used to evaluate the adjustment effect achieved by the prediction adjustment parameters determined by the prediction strategy. By evaluating the adjustment performance achieved by the selected prediction strategy for a long time, it is possible to prevent the optimization based on the prediction strategy from being negatively optimized, thereby maintaining positive optimization of the storage system.
[0142] Example Device
[0143] Figure 7 A schematic block diagram of an example device 700 that can be used to implement an embodiment of the present disclosure is shown, and the device can be the aforementioned storage control system 103. As shown, the device 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 702 or computer program instructions loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0144] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0145] The various processes and processing described above, such as methods 200 to 500, may be performed by the processing unit 701. For example, in some embodiments, methods 200 to 500 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the CPU 701, one or more actions of the methods 200 to 500 described above may be performed.
[0146] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0147] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0148] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0149] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0150] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0151] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0152] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0153] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0154] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for adjusting a storage system based on multiple prediction strategies, It is characterized in that include: a) extracting features of input and output IO data of the storage system within a first statistical unit; b) predicting multiple prediction features of IO data of a second statistical unit after the first statistical unit using multiple prediction strategies based on the extracted features; c) extracting actual features of the IO data of the storage system within the second statistical unit; d) comparing each of the plurality of predicted features with the actual feature; as well as e) Based on the comparison result, selecting at least one candidate prediction strategy from the multiple prediction strategies, thereby adjusting the storage system based on the at least one candidate prediction strategy.
2. The method according to claim 1, It is characterized in that Step a) to step d) are performed for a plurality of adjacent pairs of first statistical units and second statistical units.
3. The method according to claim 2, It is characterized in that Based on the comparison result, selecting at least one candidate prediction strategy from the multiple prediction strategies includes: Determine a statistical result for each prediction strategy based on comparison results for the plurality of adjacent pairs of first statistical units and second statistical units; comparing the statistical results for each prediction strategy to a statistical threshold; and In response to the statistical result being greater than or equal to the statistical threshold, the prediction strategy corresponding to the statistical result is selected as a candidate prediction strategy.
4. The method according to claim 1, It is characterized in that Also includes: f) evaluating an adjustment effect achieved by the prediction adjustment parameters determined by each candidate strategy of the at least one candidate prediction strategy; as well as g) Based on the evaluation result, selecting a target strategy from the at least one candidate prediction strategy.
5. The method according to claim 4, It is characterized in that Step f) is performed in a plurality of statistical units.
6. The method according to claim 4, further comprising: include: Periodically evaluating the adjustment effect achieved by the forecast adjustment parameters determined by the target strategy; as well as In response to the adjustment effect failing to meet the requirements, steps a) to e) or a) to g) are re-executed.
7. The method according to any one of claims 1 to 6, It is characterized in that Each of the first statistical unit and the second statistical unit is associated with a time period.
8. The method according to any one of claims 1 to 6, It is characterized in that Each of the first statistical unit and the second statistical unit is related to an amount of written data of the storage system.
9. The method according to claim 7, It is characterized in that The feature is related to the ratio of the read and write bandwidth of IO data within a time period to the total bandwidth allowed by the storage system. In the first statistical unit, extracting the characteristics of the input and output IO data of the storage system includes: determining a plurality of levels of allowed total bandwidth for the storage system; and Determine a level corresponding to the read / write bandwidth of the IO data within the one time period.
10. The method according to claim 9, It is characterized in that The level is related to the read / write frequency and / or the read / write voltage of the storage system.
11. The method according to claim 8, It is characterized in that The characteristics are related to the life cycle of each written address, wherein the life cycle is related to a total amount of data written to the storage system during a first time period, the first time period being related to an amount of time between a moment of writing data and a moment of deleting data in the write address; and / or The life cycle is related to the total amount of data written to the storage system during a second time period, and the second time period is related to the amount of time between the first time data is written and the second time data is written in the write address.
12. The method according to claim 11, It is characterized in that In the first statistical unit, extracting the characteristics of the input and output IO data of the storage system includes: determining a plurality of levels of write addresses based on the magnitude of the amount of write data; and Based on the life cycle of the write address, the level corresponding to the write address is determined.
13. The method according to claim 12, It is characterized in that The level is related to how hot or cold the data is.
14. The method according to claim 13, It is characterized in that The first life cycle corresponds to hot data, and the second life cycle, which is longer than the first life cycle, corresponds to cold data.
15. The method according to claim 8, It is characterized in that The feature includes at least one of the following: sequentiality or randomness of reading and writing, life cycle of each written data, reading frequency of each data, and correlation between reading and writing.
16. A storage system adjustment device based on multiple prediction strategies, It is characterized in that include: A feature extraction unit, used to extract features of input and output IO data of the storage system within a statistical unit; A feature prediction unit, used to predict multiple prediction features of IO data within a future statistical unit using multiple prediction strategies; as well as A prediction strategy selection unit is used to compare multiple predicted features of a future statistical unit with actual features of the future statistical unit, and based on the comparison result, select at least one candidate prediction strategy from the multiple prediction strategies to adjust the storage system based on the at least one candidate prediction strategy.
17. The storage system adjustment device according to claim 16, It is characterized in that Also includes: The prediction strategy adjustment performance evaluation unit is used to evaluate the adjustment effect achieved by the prediction adjustment parameters determined by the prediction strategy.
18. A computing device, include: at least one processor; as well as A memory having computer executable instructions stored thereon, wherein when the computer executable instructions are executed by the at least one processor, the computing device performs the method according to any one of claims 1 to 15.
19. A computer-readable storage medium having one or more computer-executable instructions stored thereon, wherein the one or more computer-executable instructions are executed by a processor to cause the processor to perform the method according to any one of claims 1 to 15.
20. A computer program product comprising computer executable instructions which, when executed by a device, cause the device to perform the method according to any one of claims 1 to 15.
