A method and device for enhancing the reading and writing quality of a solid state hard disk

By performing mutual information calculation and access mode monitoring on multiple storage partitions of the SSD, we optimize partition combinations and caching strategies, solving the problems of unbalanced reading and writing and inappropriate caching strategies in SSD technology, and achieving more efficient reading and writing. performance and better adaptability.

CN118519928BActive Publication Date: 2024-10-01JIANGSU HUACUN ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410995876.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-10-01
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

Existing solid-state drive technology is simple and localized in terms of read and write optimization, making it difficult to comprehensively evaluate the read and write status of storage partitions, resulting in unreasonable caching strategies and inability to effectively respond to actual read and write needs of data changes, resulting in rigid read and write performance improvement solutions. Unable to adapt to different data processing scenarios.

Method used

By obtaining the read/write related data sets of multiple storage partitions of the solid-state drive, mutual information calculations are performed, access patterns are monitored, partition combination optimization is performed, and the cache management module is connected to configure and manage cache policies to optimize read and write operations.

Benefits of technology

It improves the reading and writing efficiency and quality of solid-state drives, enhances the system's adaptability to data changes, and ensures stable and efficient operation in various data reading and writing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118519928B_ABST
    Figure CN118519928B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for enhancing the read and write quality of a solid-state hard disk, and relates to fields related to computer storage technology. The method comprises: obtaining N storage partitions of a solid-state hard disk, collecting its read / write related data sets, performing mutual information calculation to obtain N mutual information operators, monitoring access mode information, and performing partition combination optimization to obtain M combined storage partitions based on the information, and connecting a cache management module to configure a cache strategy and manage read and write operations. The method solves the technical problems of the existing solid-state hard disk storage partition read and write imbalance and the cache strategy not being adapted to the actual read and write requirements, and achieves the technical effect of improving the read and write efficiency and quality of the solid-state hard disk, enhancing the system's adaptability to data changes, and ensuring that it can operate stably and efficiently in various data read and write scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer storage technology, and in particular to a method and device for enhancing the read and write quality of a solid state hard disk. Background Art

[0002] In the application scenarios of SSD technology, the requirements for its read and write efficiency and quality are becoming more and more stringent, and the contradiction between performance optimization requirements is relatively more prominent. Achieving efficient optimization of read and write performance and reasonable configuration of cache resources to better meet the needs of different data processing has become a crucial link in solving the development of SSD technology. Traditional SSD technology often has many shortcomings. For example, it is relatively simple and localized in read and write optimization, relying only on basic controller algorithms or limited hardware configurations, insufficient overall planning of storage partitions, lack of in-depth analysis and utilization of read and write data, and difficult to comprehensively and accurately evaluate the read and write status of each partition. In terms of cache strategy, there are unreasonable situations, resulting in insufficient cache in some high-frequency read and write areas, while some areas have idle caches. The formulation of read and write performance improvement plans is relatively fixed and rigid, and cannot cope well with the actual read and write conditions of constantly changing data.

[0003] In the current related technologies, there are technical problems such as unbalanced reading and writing of solid-state hard disk storage partitions and cache strategies that are not suitable for actual reading and writing needs. Summary of the invention

[0004] The present application provides a method and device for enhancing the read and write quality of a solid-state hard disk, which obtains N storage partitions of the solid-state hard disk, collects its read / write related data sets, performs mutual information calculations to obtain N mutual information operators, monitors access mode information, and performs partition combination optimization to obtain M combined storage partitions based on the information. The cache management module is connected to configure the cache strategy and manage the read and write operations, thereby achieving the technical effect of improving the read and write efficiency and quality of the solid-state hard disk, enhancing the system's adaptability to data changes, and ensuring that it can operate stably and efficiently in various data read and write scenarios.

[0005] The present application provides a method for enhancing the read and write quality of a solid state drive, comprising:

[0006] Acquire N storage partitions of a solid-state hard disk; collect read / write related data sets corresponding to each storage partition, and acquire N groups of read / write related data sets corresponding to the N storage partitions, wherein each group of read / write related data sets includes a read / write operation address, a read / write operation byte number, and a read / write operation timestamp; perform mutual information calculation on the N groups of read / write related data sets, and output N mutual information operators corresponding to the N storage partitions; monitor N groups of access mode information corresponding to the N storage partitions; identify a balancing strategy based on the N mutual information operators, perform partition combination optimization with a preset mutual information operator, and output M combined storage partitions; connect a cache management module, the cache management module configures a cache strategy for the M combined storage partitions based on the N groups of access mode information, and manages read and write operations for the M combined storage partitions according to the configured cache strategy.

[0007] The present application also provides a device for enhancing the read and write quality of a solid state hard disk, comprising:

[0008] A storage partition acquisition module, the storage partition acquisition module is used to acquire N storage partitions of the solid-state hard disk; a read / write related data set acquisition module, the read / write related data set acquisition module is used to collect the read / write related data set corresponding to each storage partition, and acquire N groups of read / write related data sets corresponding to the N storage partitions, wherein each group of read / write related data sets includes a read / write operation address, a read / write operation byte number, and a read / write operation timestamp; a mutual information operator output module, the mutual information operator output module is used to perform mutual information calculation on the N groups of read / write related data sets, and output the corresponding N mutual information operators; an access mode information monitoring module, the access mode information monitoring module is used to monitor N groups of access mode information corresponding to the N storage partitions; a combined storage partition output module, the combined storage partition output module is used to identify the balancing strategy according to the N mutual information operators, perform partition combination optimization with the preset mutual information operator, and output M combined storage partitions; a connection cache management module, the cache management module configures the cache strategy for the M combined storage partitions based on the N groups of access mode information, and manages the read and write operations of the M combined storage partitions according to the configured cache strategy.

[0009] A method and device for enhancing the read and write quality of a solid-state hard disk proposed in this application first obtain N storage partitions of the solid-state hard disk, collect its read / write related data sets, perform mutual information calculations to obtain N mutual information operators, monitor access mode information, and perform partition combination optimization to obtain M combined storage partitions based on this. The cache management module is connected to configure the cache strategy and manage read and write operations, thereby achieving the technical effect of improving the read and write efficiency and quality of the solid-state hard disk, enhancing the system's adaptability to data changes, and ensuring that it can operate stably and efficiently in various data read and write scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the accompanying drawings of the embodiment of the present invention will be briefly introduced below. A flow chart is used in the present application to illustrate the operations performed by the system according to the embodiment of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps can be processed in reverse order or simultaneously as needed. At the same time, other operations can also be added to these processes, or one or more operations can be removed from these processes.

[0011] Figure 1 A flowchart of a method for enhancing the read and write quality of a solid state drive provided in an embodiment of the present application;

[0012] Figure 2 A schematic diagram of the structure of a read / write quality enhancement device for a solid state drive provided in an embodiment of the present application.

[0013] Explanation of the reference numerals: storage partition acquisition module 10 , read / write related data set acquisition module 20 , mutual information operator output module 30 , access mode information monitoring module 40 , combined storage partition output module 50 , connection cache management module 60 . DETAILED DESCRIPTION

[0014] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.

[0015] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0016] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict, and the terms "first\second" involved are merely to distinguish similar objects and do not represent a specific ordering of objects. The terms "including" and "having" and any variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products, or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of this application. The terms used herein are for the purpose of describing the embodiments of the present application only.

[0017] The present application embodiment provides a method for enhancing the read and write quality of a solid state drive, such as Figure 1 As shown, the method includes:

[0018] Step S100, obtain N storage partitions of the solid state drive. Specifically, the obtaining of N storage partitions of the solid state drive refers to obtaining the relevant information of the N storage areas divided from the solid state drive through a specific method and mechanism. Select the model and specification of the solid state drive, enable the corresponding data reading and analysis tools, set the relevant parameters for obtaining the storage partition information, such as the partition identification rules, data format, etc., perform the acquisition operation, and obtain the basic data about the storage partition, such as the starting address, end address, partition identifier, etc. These data represent the space division inside the solid state drive, and provide a basic basis and scope for subsequent analysis and processing.

[0019] Step S200, collect the read / write related data set corresponding to each storage partition, and obtain N groups of read / write related data sets corresponding to the N storage partitions, wherein each group of read / write related data sets includes the read / write operation address, the number of bytes of the read / write operation, and the timestamp of the read / write operation. Specifically, the collection of the read / write related data set corresponding to each storage partition means recording and integrating the relevant read / write operation information for each storage partition. Select the storage partition to be analyzed, plan the means and tools for data collection, set the parameters for read / write data collection, such as the read / write operation address, the number of bytes, the timestamp, etc., perform the data collection operation, and obtain the read operation address record data. The read operation address record data indicates the specific position when reading the data, and its characteristic is to clarify the reading direction of the data. Obtain the read operation byte number record data, which reflects the amount of data read each time, and its characteristic is to reflect the reading scale. Get the read operation timestamp record data. This record identifies the specific moment of the read operation. Its characteristic is that it shows the time pattern of the read operation. For the write operation, the above operation is also performed to obtain the record data of the write operation address, number of bytes and timestamp. By conducting such comprehensive and detailed collection of read / write operations for each storage partition, we can eventually obtain N groups of read / write related data sets corresponding to N storage partitions. The data sets cover rich content and lay a solid data foundation for subsequent analysis, calculation and optimization.

[0020] Step S300, performing mutual information calculation on the N groups of read / write related data sets, and outputting N mutual information operators corresponding to the N storage partitions. Specifically, performing mutual information calculation on the N groups of read / write related data sets, and outputting N mutual information operators corresponding to the N storage partitions, means that a series of calculation operations are carried out for the obtained N groups of read / write related data sets to obtain N mutual information operators corresponding to the N storage partitions. Select the data set combination to be calculated, plan the resources and algorithms required for the calculation, set the relevant parameters of the mutual information calculation, such as attribute weights, calculation accuracy, etc., perform the mutual information calculation operation, and obtain the mutual information calculation result data of the read / write operation address. This result data indicates the degree of association between the read / write operation addresses, and its characteristic is that it reflects the interaction status related to the address. Obtain the mutual information calculation result data of the number of bytes of the read / write operation, and this data reflects the association between the number of bytes of the read / write operation, and its characteristic is that it shows the interaction characteristics related to the number of bytes. Get the mutual information calculation result data of the read / write operation timestamp. This record identifies the association status between the read / write operation timestamps. Its characteristic is that it presents the time-related interaction rules. Through calculation, the corresponding N mutual information operators are finally output for the N storage partitions. The mutual information operator accurately depicts the relationship and dependence between the read and write operations in each storage partition, providing key references and indicators for subsequent partition combination optimization and cache strategy setting.

[0021] In a possible implementation, mutual information is calculated for the N groups of read / write related data sets, and N mutual information operators corresponding to the N storage partitions are output. Step S300 further includes step S310, which calculates the marginal probability distribution of each attribute according to the frequency of occurrence of each attribute in the N groups of read / write related data sets. Specifically, for each attribute in the N groups of read / write related data sets (such as read operation address, number of read operation bytes, read operation timestamp, write operation address, number of write operation bytes, write operation timestamp), the number of times it appears is counted. Assuming that the attribute of the read operation address appears A times in the data set, and the total amount of data in the data set is B, then the frequency of occurrence of the attribute of the read operation address is A / B, and the marginal probability distribution of each attribute is calculated according to the frequency. Taking the read operation address as an example, its marginal probability distribution P(X)=A / B.

[0022] Step S320, performing attribute combination of read operation and write operation on the N groups of read / write related data sets to obtain a read / write attribute combination. Specifically, performing attribute combination of read operation and write operation, combination of read operation address and write operation address, combination of read operation byte number and write operation byte number, etc. on the N groups of read / write related data sets to obtain a read / write attribute combination.

[0023] Step S330, according to the frequency of simultaneous occurrence of the read-write attribute combination, calculate the marginal probability distribution of each attribute combination. Specifically, for the simultaneous occurrence of the read-write attribute combination, calculate the marginal probability distribution of each attribute combination. For discrete random variables, by adding all joint probabilities related to a certain read operation attribute or write operation attribute, the marginal probability distribution of the attribute can be obtained. For example, the read operation attribute x is added to the joint probability of all write operation attribute combinations to obtain the marginal probability distribution of the read operation attribute x, and the write operation attribute y is added to the joint probability of all read operation attribute combinations to obtain the marginal probability distribution of the write operation attribute y. For continuous random variables, the marginal probability distribution is obtained by integral calculation. The marginal probability distribution allows us to understand the probability characteristics of a single read operation or write operation attribute itself, without considering the specific value of the other attribute, so as to prepare for the subsequent analysis of the relationship between the read operation and the write operation.

[0024] Step S340, based on the marginal probability distribution of each attribute and the marginal probability distribution of each attribute combination, mutual information calculation is performed, and N mutual information operators corresponding to the N storage partitions are output. Specifically, based on the marginal probability distribution of each attribute (such as read operation address, read operation byte number, etc.) And the marginal probability distribution of each attribute combination (such as the combination of read operation address and write operation address) The calculation of mutual information aims to quantify the degree of mutual dependence between two random variables (here, the relevant attributes of read and write operations). Suppose we have read operation attribute X and write operation attribute Y, whose marginal probability distributions are and , the joint probability distribution is , the calculation formula of mutual information is: , for all possible attribute value combinations , the joint probability Multiply by the natural logarithm The logarithmic value of is then accumulated, and the corresponding N mutual information operators are obtained for the N storage partitions through calculation. These operators can reflect the degree of correlation between the read operation and the write operation in each storage partition.

[0025] In a possible implementation, mutual information is calculated based on the marginal probability distribution of each attribute and the marginal probability distribution of each attribute combination, and N mutual information operators corresponding to the N storage partitions are output. Step S340 further includes step S341, and the mutual information operator expression corresponding to each storage partition includes: , where represents the mutual information operator between the read operation and the write operation of the corresponding storage partition. X is the data set about the read operation in the read / write related data set, and Y is the data set about the write operation in the read / write related data set. x represents the data attribute of a single read operation, and y represents the data attribute of a single read operation. is a joint probability distribution function, which indicates the probability that a read operation x and a write operation y occur simultaneously. It is the marginal probability distribution function of the read operation data set X, which indicates the probability of the read operation x occurring. It is the marginal probability distribution function of the read operation data set Y, which indicates the probability of the read operation y occurring. It is a logarithmic function that measures the ratio of the probability of a read operation x and a write operation y occurring simultaneously to the product of the probability of their occurring independently. Specifically, the mutual information operator corresponding to each storage partition is calculated. , we need to identify the various data attributes about read operations in data set X and the various data attributes about write operations in data set Y. For each possible combination of read operation data attribute X and write operation data attribute Y, we need to calculate its joint probability distribution function , perform statistical analysis on a large amount of read and write operation data to determine the frequency of simultaneous occurrence of read operation X and write operation Y, and convert it into probability, and calculate the marginal probability distribution function of the read operation data set X respectively And the marginal probability distribution function of the write operation data set Y ,for Summarize all cases where the read operation is X and calculate its probability in the entire read operation data set. , take a similar approach to process the write operation data, and after obtaining the above probability values, substitute them into the logarithmic function Calculate for all possible and The combination of The values ​​of are summed to obtain the final mutual information operator The data collection and statistical analysis need to be accurate and comprehensive to ensure that the calculated probability distribution function can truly reflect the relationship between read operations and write operations. The use of logarithmic functions makes the measurement of probability ratios more sensitive and intuitive, and can effectively reveal the degree of correlation between read operations and write operations.

[0026] Step S400, monitoring the N groups of access mode information corresponding to the N storage partitions. Specifically, the so-called monitoring of the N groups of access mode information corresponding to the N storage partitions means that for the N storage partitions, the monitoring objectives and scopes are clearly defined, appropriate monitoring means and technologies are selected, and monitoring parameters such as the monitoring time interval, the specific types of access mode information to be collected (such as read frequency, write frequency, time distribution of access, size of accessed data, etc.) are set using the built-in monitoring function of the system, special storage management software, or a self-developed monitoring program. After the monitoring is turned on, the access activities of each storage partition are collected in real time or regularly according to the set parameters. For each storage partition, the collected access mode information is recorded to form a set of independent data, the collected data is sorted and classified, and different types of access mode information are stored and marked separately to facilitate subsequent analysis and processing. To ensure the accuracy and integrity of the data, the collected data is verified and corrected to check whether there are abnormal values, missing values, or erroneous data records, and corresponding measures are taken to correct or supplement them. Finally, the N groups of access pattern information are sorted out in a clear and intuitive manner, such as in the form of charts, reports or databases, to facilitate analysis and decision-making by relevant personnel.

[0027] Step S500, identify the equilibrium strategy based on the N mutual information operators, perform partition combination optimization with the preset mutual information operator, and output M combined storage partitions. Specifically, the equilibrium strategy identification is carried out based on the N mutual information operators, and the partition combination optimization operation is performed with the preset mutual information operator, and then M combined storage partitions are output, the N mutual information operators are obtained, and the preset mutual information operator is used as a benchmark and criterion to start the equilibrium strategy judgment process. In this process, an in-depth analysis is carried out for the characteristics and correlation status of the storage partitions represented by each mutual information operator, and the correlation degree and equilibrium situation between the various storage partitions are determined by comparing and evaluating the values ​​of these mutual information operators, and then the stage of partition combination optimization is entered, and different combinations are carried out for these N storage partitions. Combined attempts are made to generate many possible partition combinations. For each generated partition combination, its pros and cons are calculated based on the preset mutual information operator and the set evaluation indicators. The evaluation indicators cover but are not limited to data access efficiency, storage resource utilization, read-write performance balance, etc. In the process of continuously generating and evaluating partition combinations, the system will gradually screen out relatively good combinations. After repeated calculations and comparisons, M combined storage partitions that are considered to be optimal or near-optimal are finally output. The solution completes a large number of combination attempts and evaluations within a reasonable period of time, so as to find the storage partition combination that best fits the balance strategy and optimization goals.

[0028] In one possible implementation, a balancing strategy is identified based on the N mutual information operators, and partition combination optimization is performed using a preset mutual information operator to output M combined storage partitions. Step S500 further includes step S510, in which the N mutual information operators are judged to obtain first-category storage partitions and second-category storage partitions, wherein the first-category storage partitions are storage partitions larger than the preset mutual information operator, and the second-category storage partitions are storage partitions smaller than the preset mutual information operator. Specifically, there are N mutual information operators, a preset mutual information operator value is set, and the N mutual information operators are analyzed and judged one by one, and each mutual information operator is compared with the preset mutual information operator value. For example, the first mutual information operator is examined first. If its value is greater than the preset mutual information operator value, then its corresponding storage partition is marked as a first-class storage partition. Next, the second mutual information operator is looked at. If its value is less than the preset mutual information operator value, the corresponding storage partition is classified as a second-class storage partition. In this way, each subsequent mutual information operator is processed in turn. After all processing is completed, all storage partitions are divided into two categories, one is the first-class storage partition with a value greater than the preset value, and the other is the second-class storage partition with a value less than the preset value. Through judgment and division, the foundation is laid for subsequent operations, and different categories of storage partitions can be processed and analyzed more targeted.

[0029] Step S520, selecting one partition from each of the first type of storage partition and the second type of storage partition, combining them, and outputting an initialized storage partition. Specifically, a selection operation is performed in the first type of storage partitions and the second type of storage partitions that have been clearly divided. For the first type of storage partitions, each partition is analyzed, and the partition to be selected is determined by random selection or according to certain rules (such as the size of the partition, the creation time, etc.). Assuming that partition A is finally selected as the representative of the first type of storage partition, the second type of storage partition is selected in a similar selection method. After analysis, factors such as the activity of the partition are determined, and finally partition B is selected as the representative of the second type of storage partition. The selected partitions A and B are combined. The combination method can be to logically connect the data of the two partitions together, or to fuse the data of the two partitions according to specific algorithms and rules. After the combination operation is completed, it is output and defined as an initialization storage partition. The initialization storage partition will serve as the basis for subsequent processing and analysis, and prepare for subsequent calculation of the mean mutual information operator and minimization of the difference. During the entire selection and combination process, it is necessary to ensure the accuracy of the operation and the integrity of the data to ensure that the output initialization storage partition can effectively reflect the characteristics and information of the first type of storage partition and the second type of storage partition.

[0030] Step S530, calculate the mean mutual information operator of the initialization storage partition, and output M combined storage partitions as the target to minimize the difference between the mean mutual information operator and the preset mutual information operator. Specifically, obtain the initialization storage partition, calculate the mean mutual information operator of the initialization storage partition, add up the values ​​of all mutual information operators in the partition, and then divide by the number of mutual information operators. The goal is to find the case with the smallest difference, that is, to make the calculated mean mutual information operator and the preset mutual information operator as close as possible. Repeat the following operations to find M combined storage partitions that meet the requirements. Each time, reselect one partition from the first type of storage partition and the second type of storage partition to combine to form a new storage partition, add up the values ​​of all mutual information operators in the new partition, and then divide by the number to obtain a new mean. Value, compare the new mean with the preset mutual information operator, calculate the difference, and compare it with the previous comparison result. If the difference is smaller this time, keep the new combined storage partition and repeat the operation until we find M combined storage partitions with small differences and close to the preset mutual information operator. When selecting partitions each time, you can choose randomly or according to some regulations. For example, you can choose the partitions with larger or smaller differences first, which may make it easier to find a better combination. Try different partition combinations, compare and select continuously, and finally you can get the M combined storage partitions we want.

[0031] In a possible implementation, the balancing strategy is identified according to the N mutual information operators, the partition combination is optimized with the preset mutual information operator, and M combined storage partitions are output. Step S500 further includes step S540, which enters the change data of the N storage partitions about the read / write related data set and generates a data mutation index. Specifically, the change data of the read / write related data set in the N storage partitions is entered, and various changes in the data are paid attention to, such as the impact of operations such as adding, deleting, and modifying data. Based on the change data, a data mutation index is generated through a specific algorithm and calculation method, and the index can reflect the severity of the data change.

[0032] Step S550: if the data mutation index is greater than or equal to the preset mutation threshold, the mutual information operators of the N storage partitions are updated, and N updated mutual information operators are output. Specifically, the generated data mutation index is compared with the preset mutation threshold. If the data mutation index is greater than or equal to the preset mutation threshold, the mutual information operators of the N storage partitions are updated. When updating, the value of the mutual information operator is adjusted according to the characteristics and laws of data changes, using corresponding mathematical models or logical rules, and finally outputting N updated mutual information operators.

[0033] Step S560, optimally reorganize the M combined storage partitions according to the N updated mutual information operators, and output M reorganized storage partitions. Specifically, optimally reorganize the previously existing M combined storage partitions according to the N updated mutual information operators. In the process of optimal reorganization, multiple factors are comprehensively considered, such as the value of the mutual information operator, the space utilization efficiency of the storage partition, the frequency and mode of data access, etc., and the optimal combination method is found through complex calculation and analysis, and finally M reorganized storage partitions are output.

[0034] Step S570, according to the cache management module, the cache strategy of the M reorganized storage partitions is updated and configured. Specifically, according to the relevant rules and policies of the cache management module, the cache strategy of the M reorganized storage partitions is updated and configured, including adjusting the size of the cache, the update frequency of the cache data, the elimination mechanism of the cache data, etc., to ensure that the cache can more efficiently serve the data access and processing requirements of the storage partitions, and improve the performance and efficiency of the entire system.

[0035] Step S600, connect the cache management module, the cache management module configures the cache strategy for the M combined storage partitions based on the N groups of access mode information, and manages the read and write operations of the M combined storage partitions according to the configured cache strategy. Specifically, the cache management module configures the cache strategy for the M combined storage partitions based on the N groups of access mode information. Select the combined storage partition to be managed, prepare the facilities required for cache management, set cache strategy parameters such as cache space size, data update frequency, elimination mechanism, etc., start the cache management process, and obtain the optimized configuration data for different combined storage partitions. This optimized configuration data means the process of customizing a suitable cache strategy for each storage partition based on the characteristics of the access mode, and its significant features are adaptability and efficiency. Continue to perform cache management operations, and then obtain fine management data for each combined storage partition. This fine management data represents the process of continuously optimizing and adjusting the strategy to adapt to actual access needs in the entire cache management process, and its outstanding features are dynamicity and flexibility. And the M combined storage partitions are managed for read and write operations according to the configured cache strategy.

[0036] In a possible implementation, a cache management module is connected, and the cache management module configures cache strategies for the M combined storage partitions based on N groups of access mode information, and manages read and write operations for the M combined storage partitions according to the configured cache strategies. Step S600 further includes step S610, which performs pattern identification on the N storage partitions according to the N groups of access mode information, and outputs the pattern identification results of the M combined storage partitions. Specifically, N groups of access mode information are obtained, and the N storage partitions are analyzed and judged one by one for the N groups of access mode information. During the analysis process, a corresponding pattern identification is assigned to each storage partition according to the characteristics of the access mode information, such as the frequency of access, the amount of data, the time pattern of access, etc. After completing the pattern identification of all storage partitions, the storage partitions with similar or related pattern identifications are combined, thereby outputting the pattern identification results of the M combined storage partitions.

[0037] Step S620, the cache management module performs cache priority configuration and cache elimination configuration on the M combined storage partitions according to the pattern identification results. Specifically, the cache management module obtains the pattern identification results of the M combined storage partitions. For cache priority configuration, the cache management module will determine based on the pattern identification results. If the pattern identification of a certain combined storage partition shows that it has a high access frequency and high data importance, then it will be given a higher cache priority, which means that in the case of limited cache resources, the data of the combined storage partition will be retained in the cache with higher priority to achieve fast access. For cache elimination configuration, also based on the pattern identification results, if the pattern identification of a certain combined storage partition shows that it has a low access frequency and low data timeliness, then when the cache space is insufficient and data elimination is required, the data of the combined storage partition will be more likely to be eliminated first to make room for more important data that needs to be cached, thereby achieving reasonable cache management of the M combined storage partitions and improving cache utilization efficiency and overall system performance.

[0038] In a possible implementation, the cache management module performs cache priority configuration and cache elimination configuration on the M combined storage partitions according to the pattern identification result, and step S620 further includes step S621, wherein the cache priority configuration includes that when a read operation is performed in any combined storage partition, the cache is preferentially cached to the storage block with a read mark, and the cache elimination configuration includes using LRU to eliminate cache data for the storage block with a write mark in any combined storage partition. Specifically, in terms of cache priority configuration, when a read operation is performed on any combined storage partition, the system will respond immediately, and the system will check whether the storage block in the combined storage partition has a read mark. If there is a storage block with a read mark, the system will preferentially cache the read data in these blocks with a read mark, because the read mark indicates that the block is determined to be more suitable for storing read data, based on past access patterns, data importance or other relevant factors. In terms of cache elimination configuration, the LRU (least recently used algorithm) algorithm is used to process the storage block with a write mark in any combined storage partition, LRU The RU algorithm tracks the usage of each storage block with a write flag. When the cache space is insufficient and data needs to be eliminated, the algorithm will find and determine the storage block with the lowest frequency of use in the recent period. The storage block with the lowest frequency of use and the write flag will be selected for cache data elimination to make room for new data. In actual operation, the system will continuously monitor the usage of the cache and continuously update the identification status and usage records of the storage blocks to ensure that the cache priority configuration and elimination configuration can be dynamically adjusted and optimized according to the actual access mode and data requirements, thereby improving the efficiency and performance of the cache.

[0039] The embodiment of the present application obtains N storage partitions of the solid-state hard disk, collects its read / write related data sets, performs mutual information calculation to obtain N mutual information operators, monitors access pattern information, and performs partition combination optimization to obtain M combined storage partitions. The cache management module is connected to configure the cache strategy and manage read and write operations, thereby achieving the technical effect of improving the read and write efficiency and quality of the solid-state hard disk, enhancing the system's adaptability to data changes, and ensuring that it can run stably and efficiently in various data read and write scenarios.

[0040] In the above, refer to Figure 1 A method for enhancing the read and write quality of a solid state hard disk according to an embodiment of the present invention is described in detail. Figure 2 A device for enhancing the read and write quality of a solid state hard disk according to an embodiment of the present invention is described.

[0041] According to an embodiment of the present invention, a read-write quality enhancement device for a solid-state hard disk is used to solve the technical problems of unbalanced read-write of existing solid-state hard disk storage partitions and the inability of cache strategies to adapt to actual read-write requirements, thereby improving the read-write efficiency and quality of the solid-state hard disk, enhancing the adaptability of the system to data changes, and ensuring that it can operate stably and efficiently in various data read-write scenarios. A read-write quality enhancement device for a solid-state hard disk includes: a storage partition acquisition module 10, a read / write related data set acquisition module 20, a mutual information operator output module 30, an access mode information monitoring module 40, a combined storage partition output module 50, and a connection cache management module 60.

[0042] The storage partition acquisition module 10 is used to acquire N storage partitions of the solid state drive;

[0043] The read / write related data set acquisition module 20 is used to collect the read / write related data set corresponding to each storage partition, and acquire N groups of read / write related data sets corresponding to the N storage partitions, wherein each group of read / write related data sets includes a read / write operation address, a read / write operation byte number, and a read / write operation timestamp;

[0044] The mutual information operator output module 30 is used to perform mutual information calculation on the N groups of read / write related data sets, and output N mutual information operators corresponding to the N storage partitions;

[0045] The access mode information monitoring module 40 is used to monitor N groups of access mode information corresponding to the N storage partitions;

[0046] The combined storage partition output module 50 is used to identify the balancing strategy according to the N mutual information operators, perform partition combination optimization with the preset mutual information operator, and output M combined storage partitions;

[0047] The cache management module 60 configures cache policies for the M combined storage partitions based on the N groups of access mode information, and manages read and write operations for the M combined storage partitions according to the configured cache policies.

[0048] The specific configuration of the mutual information operator output module 30 will be described in detail below. As described above, mutual information calculation is performed on the N groups of read / write related data sets, and the N mutual information operators corresponding to the N storage partitions are output. The mutual information operator output module 30 may further include: an edge probability distribution calculation unit for calculating the edge probability distribution of each attribute according to the frequency of occurrence of each attribute in the N groups of read / write related data sets; a read-write attribute combination acquisition unit for performing attribute combinations of read operations and write operations on the N groups of read / write related data sets to obtain read-write attribute combinations; an attribute combination probability distribution calculation unit for calculating the edge probability distribution of each attribute combination according to the frequency of simultaneous occurrence of the read-write attribute combination; a mutual trust operator calculation unit for performing mutual information calculation based on the edge probability distribution of each attribute and the edge probability distribution of each attribute combination, and outputting the N mutual information operators corresponding to the N storage partitions.

[0049] Wherein, mutual information calculation is performed based on the marginal probability distribution of each attribute and the marginal probability distribution of each attribute combination, and N mutual information operators corresponding to the N storage partitions are output. The mutual information operator calculation unit may further include: a mutual information operator expression subunit for each storage partition corresponding to the mutual information operator expression including: , where represents the mutual information operator between the read operation and the write operation of the corresponding storage partition. X is the data set about the read operation in the read / write related data set, and Y is the data set about the write operation in the read / write related data set. x represents the data attribute of a single read operation, and y represents the data attribute of a single read operation. is a joint probability distribution function, which indicates the probability that a read operation x and a write operation y occur simultaneously. It is the marginal probability distribution function of the read operation data set X, which indicates the probability of the read operation x occurring. It is the marginal probability distribution function of the read operation data set Y, which indicates the probability of the read operation y occurring. It is a logarithmic function that measures the ratio of the probability of a read operation x and a write operation y occurring simultaneously to the product of the probability of their respective independent occurrences.

[0050] The specific configuration of the combined storage partition output module 50 will be described in detail below. As described above, the balance strategy is identified according to the N mutual information operators, the partition combination is optimized with the preset mutual information operator, and M combined storage partitions are output. The combined storage partition output module 50 may further include: a storage partition acquisition unit is used to judge the N mutual information operators, obtain the first type of storage partition and the second type of storage partition, wherein the first type of storage partition is a storage partition greater than the preset mutual information operator, and the second type of storage partition is a storage partition less than the preset mutual information operator; an initialization storage partition output unit is used to select a partition from each of the first type of storage partition and the second type of storage partition for combination, and output the initialization storage partition; the combined storage partition output unit is used to calculate the mean mutual information operator of the initialization storage partition, so as to minimize the difference between the mean mutual information operator and the preset mutual information operator and output M combined storage partitions as the target.

[0051] Among them, the combined storage partition output module 50 can further include: a data mutation indicator generation unit is used to enter the change data of the N storage partitions about the read / write related data set to generate a data mutation indicator; a mutual information operator update unit is used to update the mutual information operators of the N storage partitions if the data mutation indicator is greater than or equal to a preset mutation threshold, and output N updated mutual information operators; an optimal reorganization unit is used to optimally reorganize the M combined storage partitions according to the N updated mutual information operators, and output M reorganized storage partitions; a cache strategy update unit is used to perform cache strategy update configuration on the M reorganized storage partitions according to the cache management module.

[0052] The specific configuration of the cache management module 60 will be described in detail below. As described above, the cache management module is connected, the cache management module performs cache strategy configuration on the M combined storage partitions based on N groups of access mode information, and performs read and write operation management on the M combined storage partitions according to the configured cache strategy. The cache management module 60 may further include: a mode identification result output unit for performing mode identification on the N storage partitions according to the N groups of access mode information, and outputting the mode identification results of the M combined storage partitions; a cache configuration unit for the cache management module to perform cache priority configuration and cache elimination configuration on the M combined storage partitions according to the mode identification results.

[0053] Among them, the cache management module performs cache priority configuration and cache elimination configuration on the M combined storage partitions according to the pattern identification result, and the cache configuration unit may further include: a data elimination processing subunit is used therein, the cache priority configuration includes when a read operation is performed in any combined storage partition, priority is given to caching to the storage block with a read mark, the cache elimination configuration includes using LRU to perform cache data elimination processing on the storage block with a write mark in any combined storage partition.

[0054] A read / write quality enhancement device for a solid-state hard disk provided in an embodiment of the present invention can execute a read / write quality enhancement method for a solid-state hard disk provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0055] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules may be used and run on the user terminal and / or server, and the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0056] The above specific implementation manner does not constitute a limitation to the protection scope of the present application. It should be understood by those skilled in the art that various modifications, combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application. In some cases, the actions or steps recorded in the present application can be performed in an order different from that in the embodiment and can still achieve the desired results. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

Claims

1. A method for enhancing the read and write quality of a solid state hard disk, characterized in that: The method comprises: Get N storage partitions of the solid state drive; Collecting a read / write related data set corresponding to each storage partition, and obtaining N groups of read / write related data sets corresponding to the N storage partitions, wherein each group of read / write related data sets includes a read / write operation address, a read / write operation byte number, and a read / write operation timestamp; Perform mutual information calculation on the N groups of read / write related data sets, and output N mutual information operators corresponding to the N storage partitions, wherein the mutual information calculation is intended to quantify the degree of mutual dependence between related attribute variables of the read operation and the write operation; Monitoring N groups of access mode information corresponding to the N storage partitions; Identify the balancing strategy according to the N mutual information operators, perform partition combination optimization with the preset mutual information operator, and output M combined storage partitions; A cache management module is connected, and the cache management module configures cache strategies for the M combined storage partitions based on the N groups of access mode information, and manages read and write operations for the M combined storage partitions according to the configured cache strategies.

2. The method according to claim 1, characterized in that The mutual information of the N sets of read / write related data sets is calculated, and the method includes: Calculate the marginal probability distribution of each attribute according to the frequency of occurrence of each attribute in the N groups of read / write related data sets; Performing attribute combinations of read operations and write operations on the N groups of read / write related data sets to obtain read and write attribute combinations; Calculate the marginal probability distribution of each attribute combination according to the frequency of simultaneous occurrence of the read-write attribute combination; Mutual information is calculated based on the marginal probability distribution of each attribute and the marginal probability distribution of each attribute combination, and N mutual information operators corresponding to the N storage partitions are output.

3. The method according to claim 2, characterized in that The mutual information operator expression corresponding to each storage partition includes: ; In the formula, represents the mutual information operator between the read and write operations of the corresponding storage partition, For the data set about the read operation in the read / write related data set, For the data set about the write operation in the read / write related data set, Represents the data attributes of a single read operation, Represents the data attributes of a single read operation, is the joint probability distribution function, indicating that the read operation is and write operations as The probability of simultaneous occurrence, It is about reading data sets The marginal probability distribution function of The probability of occurrence, It is about reading the data set The marginal probability distribution function of The probability of occurrence, Is a logarithmic function used to measure read operations and write operations The ratio of the probability of their simultaneous occurrence to the product of the probabilities of their independent occurrence.

4. The method according to claim 1, characterized in that The method includes: identifying a balancing strategy according to the N mutual information operators, and performing partition combination optimization with a preset mutual information operator and N groups of access mode information. Judging the N mutual information operators, obtaining a first type of storage partition and a second type of storage partition, wherein the first type of storage partition is a storage partition greater than the preset mutual information operator, and the second type of storage partition is a storage partition less than the preset mutual information operator; Select one partition from each of the first type of storage partition and the second type of storage partition to combine, and output an initialized storage partition; The mean mutual information operator of the initialized storage partition is calculated to minimize the difference between the mean mutual information operator and the preset mutual information operator to output M combined storage partitions as a target.

5. The method according to claim 1, characterized in that After outputting the M combined storage partitions, the method further includes: Recording the change data of the N storage partitions regarding the read / write related data sets, and generating a data mutation indicator; If the data mutation index is greater than or equal to a preset mutation threshold, update the mutual information operators of the N storage partitions, and output N updated mutual information operators; According to the N updated mutual information operators, the M combined storage partitions are optimally reorganized, and M reorganized storage partitions are output; The cache strategy update configuration is performed on the M reorganized storage partitions according to the cache management module.

6. The method according to claim 1, characterized in that A cache management module is connected, and the cache management module performs cache strategy configuration on the M combined storage partitions based on the N groups of access mode information. The method includes: Performing mode identification on the N storage partitions according to the N groups of access mode information, and outputting mode identification results of the M combined storage partitions; The cache management module performs cache priority configuration and cache elimination configuration on the M combined storage partitions according to the pattern identification result.

7. The method according to claim 6, characterized in that The cache management module performs cache priority configuration and cache elimination configuration on the M combined storage partitions according to the pattern identification result; Among them, the cache priority configuration includes giving priority to caching to the storage block with a read mark when a read operation is performed in any combined storage partition, and the cache elimination configuration includes using LRU to eliminate cache data from the storage block with a write mark in any combined storage partition.

8. A device for enhancing the read and write quality of a solid state hard disk, characterized in that: The device is used to implement the method for enhancing the read and write quality of a solid state hard disk according to any one of claims 1 to 7, and the device comprises: A storage partition acquisition module, wherein the storage partition acquisition module is used to acquire N storage partitions of the solid state drive; A read / write related data set acquisition module, the read / write related data set acquisition module is used to collect the read / write related data set corresponding to each storage partition, and acquire N groups of read / write related data sets corresponding to the N storage partitions, wherein each group of read / write related data sets includes a read / write operation address, a read / write operation byte number, and a read / write operation timestamp; A mutual information operator output module, the mutual information operator output module is used to perform mutual information calculation on the N groups of read / write related data sets, and output N mutual information operators corresponding to the N storage partitions, wherein the mutual information calculation is intended to quantify the degree of mutual dependence between related attribute variables of read operations and write operations; An access mode information monitoring module, the access mode information monitoring module is used to monitor N groups of access mode information corresponding to the N storage partitions; A combined storage partition output module, the combined storage partition output module is used to identify the balancing strategy according to the N mutual information operators, perform partition combination optimization with a preset mutual information operator, and output M combined storage partitions; A cache management module is connected, and the cache management module configures cache strategies for the M combined storage partitions based on the N groups of access mode information, and manages read and write operations for the M combined storage partitions according to the configured cache strategies.