A method, device and computer equipment for improving read-write performance of a solid state disk

By analyzing the distribution, frequency, and correlation of access request commands, calculating cache importance, and updating the cache area of ​​the solid-state drive, the problem of reduced read and write capabilities of solid-state drives in the era of big data is solved, and faster access speeds are achieved.

CN120872258BActive Publication Date: 2025-12-05ZHEJIANG RUIZHAOXIN SEMICON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511383091.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-26
Publication Date
2025-12-05
Estimated Expiration
2045-09-26

AI Technical Summary

Technical Problem

Traditional methods cannot effectively meet the needs of solid-state drives (SSDs) for rapid access to large amounts of data in the era of big data, resulting in reduced read and write capabilities.

Method used

By collecting access request commands in real time, analyzing their distribution, frequency, and correlation within a preset time period, calculating cache importance, and updating access commands for reading and writing cache areas accordingly.

Benefits of technology

It effectively shortens the search time for access commands and improves the read and write performance of solid-state drives.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120872258B_ABST
    Figure CN120872258B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of solid state disk read-write performance, in particular to a method and device for improving the read-write performance of a solid state disk and computer equipment, which comprises the following steps: collecting various access request instructions in the solid state disk in real time; dividing a preset time period before each time point into sub-time periods, obtaining instruction distribution degrees of various access instructions in the preset time period by the distribution of various access instructions of any access request instruction in the sub-time periods within the preset time period, and obtaining instruction occurrence degrees, correlation strengths and cache importance degrees of the various access instructions in the preset time period; the access request instructions comprise read access instructions and write access instructions; and the access instructions in the read cache area and the write cache area of the solid state disk are updated at each time point. The application aims to effectively shorten the search time of the access instructions by updating the access instructions in the cache area, so as to improve the read-write performance of the solid state disk.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of solid state disk read-write performance, in particular to a method and device for improving the read-write performance of a solid state disk and a computer device. BACKGROUND

[0002] A solid state disk is a storage device that uses flash memory chips to store data, and as the frequency of computer use increases, the requirements for solid state disks are also increasing. The read-write capability of a solid state disk determines its performance, and high-speed reading and writing can improve data processing capability, shorten processing time and quickly respond to demand.

[0003] The structure of a solid state disk includes a control area, a storage area and a cache area. When reading and writing a solid state disk, data is first called in the cache area. Because the usage frequency of the same access instruction is different in different time periods, the access instruction in the cache area needs to be updated. The traditional method generally updates the data in the cache area according to the usage frequency of the commonly used access instruction to meet the fast reading and writing of data in the solid state disk. However, with the development of the big data era, the amount of data is very large, and the algorithm for updating the cache data by the size of the data read-write frequency in the traditional technology cannot meet the demand for fast access to a large amount of data, resulting in a decrease in the read-write capability of the solid state disk. SUMMARY

[0004] In view of the above, it is necessary to provide a method and device for improving the read-write performance of a solid state disk and a computer device. Compared with the traditional method for improving the read-write performance of a solid state disk, the access instruction in the cache area is updated, the search time of the access instruction is effectively shortened, and the read-write performance of the solid state disk is improved.

[0005] In a first aspect, the present application provides a method for improving the read-write performance of a solid state disk, which comprises the following steps:

[0006] Real-time collection of various access request instructions in the solid state disk;

[0007] Dividing a preset time period before each time into sub-periods, obtaining the instruction distribution degree of various access instructions in the preset time period through the distribution of various access instructions in each sub-period within the preset time period, obtaining the instruction occurrence degree of various access instructions in the preset time period in combination with the occurrence frequency of various access instructions in each sub-period, and further obtaining the cache importance degree of various access instructions in the preset time period in combination with the correlation between the occurrence frequency of various access instructions in the preset time period and the occurrence frequency of each access instruction other than it;

[0008] The access request instruction includes a read access instruction and a write access instruction, and the read cache area and the write cache area of the solid state disk are updated at each time according to the cache importance of each access instruction in the read access instruction and the write access instruction in the preset time period.

[0009] In one embodiment, the instruction distribution degree is obtained by:

[0010] The mean and the dispersion of the frequency of each access instruction in all sub-periods are calculated.

[0011] The number of non-zero values in the frequency of each access instruction in all sub-periods is counted.

[0012] The instruction distribution degree is proportional to the mean and the number, and inversely proportional to the dispersion.

[0013] In one embodiment, the instruction distribution degree is calculated by:

[0014] The product of the mean and the number is calculated, and the dispersion is mapped to a positive number.

[0015] The instruction distribution degree is the ratio of the product to the positive number.

[0016] In one embodiment, the instruction occurrence degree is obtained by:

[0017] The trend degree of each access instruction in the preset time period is obtained by the trend of the frequency of each access instruction in all sub-periods.

[0018] The number of continuous 0 from the end to the front in the frequency of each access instruction in all sub-periods is counted, and the number is mapped to a constant greater than 0.

[0019] The product value of the normalized value of the trend degree and the instruction distribution degree is calculated.

[0020] The instruction occurrence degree is the ratio of the product value to the constant.

[0021] In one embodiment, the trend degree is the slope of the fitted straight line of the frequency of each access instruction in all sub-periods in time sequence.

[0022] In one embodiment, the correlation strength is the mean of the correlation coefficient of the frequency in time sequence between each access instruction and all other access instructions.

[0023] In one embodiment, the cache importance is the product of the instruction occurrence degree and the correlation strength.

[0024] In one embodiment, the updating of the access instructions in the read cache area and the write cache area of the solid state disk at each time point comprises:

[0025] storing the access instruction with the largest cache importance in the read access instructions in the preset time period into the read cache area of the solid state disk;

[0026] storing the access instruction with the largest cache importance in the write access instructions in the preset time period into the write cache area of the solid state disk.

[0027] In a second aspect, the embodiments of the present application further provide a device for improving the read-write performance of a solid state disk, which comprises:

[0028] an access request instruction acquisition module, configured to collect various access request instructions in the solid state disk in real time;

[0029] an access request instruction analysis module, configured to evenly divide a preset time period before each time point into sub time periods, acquire the instruction distribution degree of various access instructions in the preset time period by the distribution of the various access instructions in the sub time periods in the preset time period of any one type of access request instruction, acquire the instruction occurrence degree of the various access instructions in the preset time period in combination with the occurrence frequency of the various access instructions in the sub time periods, and further acquire the cache importance of the various access instructions in the preset time period in combination with the correlation of the occurrence frequency between the various access instructions in the preset time period and the remaining access instructions;

[0030] a cache area updating module, configured to update the access instructions in the read cache area and the write cache area of the solid state disk at each time point according to the cache importance of each type of access instruction in the read access instructions and the write access instructions in the preset time period, respectively.

[0031] In a third aspect, the embodiments of the present application further provide a computer device, which comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the processor implements the steps of the method for improving the read-write performance of a solid state disk according to the first aspect when executing the computer program.

[0032] The present application has at least the following beneficial effects:

[0033] The application can evaluate the stability and activity of various access instructions in the whole period by calculating the instruction distribution degree, and help measure the importance of various access instructions; further, in combination with the change trend of the occurrence frequency of various access instructions and the occurrence of various access instructions at the end of the whole period, the probability of calling various access instructions in the next period is evaluated, which improves the accuracy of evaluating the occurrence probability of various access instructions in the next period; further, in combination with the relevance between various access instructions and each of the remaining access instructions, the importance of caching various access instructions is effectively evaluated, avoiding the problem of inaccurate evaluation of the importance of caching various access instructions due to the phenomenon that the access instructions have high occurrence frequency in the early stage and low occurrence frequency in the later stage in the whole period, which helps to identify the access instructions that should be stored in the cache area, thereby reducing direct access to the storage area, reducing read-write delay, and improving the read-write performance of the solid state disk; further, by the cache importance of various access instructions, the access instructions in the cache area are updated, which can effectively shorten the search time of the access instructions, thereby improving the read-write performance of the solid state disk. BRIEF DESCRIPTION OF DRAWINGS

[0034] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings according to these drawings without creative labor.

[0035] Figure 1 A step flow chart of a method for improving the read-write performance of a solid state disk provided by an embodiment of the present application;

[0036] Figure 2 An acquisition flowchart of instruction distribution degree;

[0037] Figure 3 An acquisition flowchart of cache importance. DETAILED DESCRIPTION

[0038] In the description of the embodiments of the present application, the words "exemplary", "or", "for example" are used to mean example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words "exemplary", "or", "for example" are intended to present the relevant concept in a specific manner.

[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. It will be understood that unless otherwise specified, "or" as used herein is inclusive or meant to be the same as "and / or." Unless otherwise required by context, singular terms shall include pluralities and plural terms shall include the singular.

[0040] In addition, it should be pointed out that the terms "first", "second" in the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence.

[0041] The specific scheme of the method, device and computer equipment for improving the read-write performance of a solid state disk provided by the present application will be specifically described below in conjunction with the drawings.

[0042] Please refer to Figure 1 which shows the step flow chart of the method for improving the read-write performance of a solid state disk provided by an embodiment of the present application, which comprises the following steps:

[0043] Step 1, collecting various access request instructions in the solid state disk in real time.

[0044] The control area of the solid state disk can monitor the read-write access instructions in real time, therefore, the control area of the solid state disk is used to collect various access request instructions in the solid state disk in real time, and the access request instructions include two types: read access instructions and write access instructions.

[0045] Step 2, dividing the preset time period before each time into sub-periods, and obtaining the instruction distribution degree of various access instructions in the preset time period by the distribution of various access instructions in the sub-periods of any type of access request instructions in the preset time period.

[0046] Since read and write are two operations, the update of access instructions in the read and write cache areas is performed respectively, therefore, the various access request instructions are analyzed respectively. Taking any type of access request instructions and various access instructions in the preset time period before each time as an example for analysis.

[0047] In the present embodiment, the length of the preset time period is 1 min, and the length of the preset time period is artificially preset, which can be set by the implementer according to the actual situation, and the present application does not make special limitation.

[0048] In the present embodiment, the update period of the access instructions in the cache area is 1 min, and the length of the update period is artificially preset, which can be set by the implementer according to the actual situation, and the present application does not make special limitation.

[0049] Since the access instructions of the hard disk data are uneven in different time periods, that is, the number of access instructions is different in different time periods, the load capacity of the solid state disk in different time periods is also different, and the load capacity refers to the number of access instructions processed by the solid state disk per unit time. In the load situation of a certain time period, the more frequently a certain data is accessed, the higher the probability that the certain data is accessed again in the next time period. If the number of access instructions of the certain data in different time periods increases over time, the importance of the certain data is higher.

[0050] Based on the above analysis, the preset time period before each time is evenly divided into each sub-period, and the occurrence frequency of various access instructions in each sub-period is counted. When the occurrence frequency of various access instructions in different sub-periods is the same, the number of various access instructions will increase with the increase of the number of access times. The greater the occurrence frequency of various access instructions, the more frequently various access instructions appear, and the higher the probability of various access instructions appearing in the next period, and the higher the possibility of various access instructions being called in the cache area. At the same time, the less the data access time, the higher the solid state disk read-write capacity.

[0051] In this embodiment, the number of sub-periods is 120, and the number of sub-periods is preset by human, and the implementer can set it according to the actual situation, and the application does not make special limitation.

[0052] Further, the average level and dispersion degree of the occurrence frequency of various access instructions in all sub-periods are obtained, combined with the number of non-zero values in the occurrence frequency of various access instructions in all sub-periods, to obtain the instruction distribution degree of various access instructions in the preset time period, specifically:

[0053] The mean and dispersion of the occurrence frequency of various access instructions in all sub-periods are calculated; the number of non-zero values in the occurrence frequency of various access instructions in all sub-periods is counted; the product of the mean and the number is calculated, and the dispersion is mapped to a positive number; the instruction distribution degree is the ratio of the product and the positive number.

[0054] In this embodiment, the dispersion of the occurrence frequency is the standard deviation, and as other embodiments, on the basis of measuring the uneven degree of the distribution of the occurrence frequency, the implementer can use other existing technologies, such as variance, coefficient of variation, etc., and the application does not make special limitation.

[0055] In this embodiment, the expression of the instruction distribution degree of the i-th access instruction in the preset time period is:

[0056] In the formula, indicates the instruction distribution degree of the i-th access instruction in the preset time period; , respectively represent the mean value and the dispersion of the occurrence frequency of the i-th access instruction in all sub-periods, wherein the occurrence frequency with a value of 0 is not involved in the calculation; represents the number of non-zero values in the occurrence frequency of the i-th access instruction in all sub-periods; represents a preset value greater than 0, used to map to a positive number, is a value preset by a human being, to avoid affecting the calculation result of the instruction distribution degree, should be a very small value greater than 0, and in the embodiment the value of is 0.01.

[0057] It should be noted that when reading and writing data in a solid state disk, the data in the solid state disk is called through the data address in the access instruction. Therefore, in the same sub-period, the greater the frequency of the i-th access instruction, the more frequently the i-th access instruction calls data, and the more important the data called by the i-th access instruction. Therefore, the greater the mean value of the occurrence frequency of the i-th access instruction in different time periods, the more frequently the i-th access instruction appears, and the smaller the dispersion of the occurrence frequency, the more the i-th access instruction increases with the increase of the access times. At the same time, when the i-th access instruction appears in more sub-periods in the preset period, the instruction distribution degree of the i-th access instruction in the preset period is greater, and the importance of the i-th access instruction is higher. The acquisition process of the instruction distribution degree is shown in Figure 2 .

[0058] Step 3, obtaining the instruction occurrence degree of various access instructions in the preset period by combining the instruction distribution degree of various access instructions in the preset period with the occurrence frequency of various access instructions in each sub-period.

[0059] Due to different scenarios of solid state disks, the occurrence frequency of access instructions in different sub-periods is different and has a certain trend, and the stronger the trend of various access instructions, the stronger the growth trend, the stronger the probability of the occurrence of various access instructions in the next period, and the stronger the decline trend, the weaker the probability of the occurrence of various access instructions in the next period. At the same time, if various access instructions appear in the first half of the preset period and do not appear in the second half, the probability of the access of various access instructions in the next period is lower.

[0060] Based on the above analysis, the slope of the fitting straight line of the occurrence frequency of various access instructions in all sub-periods in time sequence is taken as the trend degree of various access instructions in the preset period. The greater the trend degree, the higher the frequency of the call of various access instructions with the passage of time. The calculation of the slope is a known technology, and will not be described herein.

[0061] In this embodiment, the least square method is used to obtain the fitting straight line of the occurrence frequency of the various access instructions in all sub-periods in time sequence, wherein the least square method is a known technology, and will not be described herein again. As other embodiments, on the basis of being able to obtain the fitting straight line of the occurrence frequency of the various access instructions in all sub-periods in time sequence, the implementer can use other existing technologies, such as linear regression analysis, weighted least square method, etc., and the present application does not make special limitation.

[0062] Further, the instruction occurrence degree of the various access instructions in the preset period is obtained according to the instruction distribution degree and the trend degree of the various access instructions in the preset period, and the occurrence frequency of the various access instructions in each sub-period, specifically as follows:

[0063] The number of the occurrence frequency of the various access instructions in all sub-periods in reverse time sequence from the end to the front which is continuously 0 is counted, and the number is mapped to a constant greater than 0; the product value of the normalized value of the trend degree and the instruction distribution degree is calculated; and the instruction occurrence degree is the ratio of the product value and the constant.

[0064] In this embodiment, the expression of the instruction occurrence degree of the various access instructions in the preset period is as follows:

[0065] ; in the formula, represents the instruction occurrence degree of the i-th access instruction in the preset period; norm() represents a normalization function; represents the trend degree of the i-th access instruction in the preset period; represents the number of the occurrence frequency of the i-th access instruction in all sub-periods in reverse time sequence from the end to the front which is continuously 0; represents the instruction distribution degree of the i-th access instruction in the preset period; represents a preset value greater than 0, which is used to map to a constant greater than 0, is preset by a person, in order to avoid from affecting the calculation result of the instruction occurrence degree, should be a very small value greater than 0, in this embodiment the value of is 0.01. For example, if the sequence of the occurrence frequency of the i-th access instruction in all sub-periods in time sequence is {0.1, 0.2, 0.5, 0, 0}, then the value of is 2; if the sequence of the occurrence frequency of the i-th access instruction in all sub-periods in time sequence is {0.2, 0.2, 0.3, 0, 0.1}, then the value of is 0.

[0066] ​​In the embodiment, the normalization function involved in the process of calculating the instruction occurrence degree is the sigmoid function, which is a known technology and will not be described herein.

[0067] It should be noted that: since different access instructions appear in different time periods, the same access instruction appears at different times, and when the occurrence frequency of the ith access instruction increases in different time periods, the instruction distribution degree of the ith access instruction is greater, and the trend degree of the ith access instruction is greater, and the probability of the occurrence of the ith access instruction in the next period is higher, and the possibility of being called is higher; at the same time, when the number is smaller, it means that the ith access instruction appears for a shorter time at the end of the preset time period, and the calculated instruction occurrence degree is greater, and the ith access instruction should be stored in the cache area to improve the read-write capability of the solid state disk.

[0068] Step 4: Obtain the correlation strength of various access instructions in the preset time period through the correlation of the occurrence frequency between various access instructions and the rest of each access instruction in the preset time period, and obtain the cache importance of various access instructions in the preset time period in combination with the instruction occurrence degree of various access instructions in the preset time period.

[0069] The higher the access instruction occurrence frequency, the higher the activity of the access instruction, and in the data storage process, the access instruction can be stored in the low-density area, because the read-write capability of the low-density area is stronger, and the access request can be responded faster. In addition, different access instructions can have correlation, for example, when access instruction A appears, access instruction B also appears soon, and for access instructions with correlation, they should also be stored in the cache area so as to be called in time. Through the above two ways, the read-write time of the solid state disk can be reduced, thereby significantly improving the overall performance of the solid state disk in processing data read-write operations.

[0070] Based on the above analysis, the occurrence frequency of various access instructions in all sub-periods is arranged in time sequence to form an occurrence frequency sequence, the correlation coefficient of the occurrence frequency sequence between various access instructions and the rest of each access instruction is calculated, and the average of the correlation coefficient of the occurrence frequency sequence between various access instructions and the rest of all access instructions is taken as the correlation strength of various access instructions in the preset time period. The greater the correlation strength, the stronger the correlation between various access instructions and the rest of each access instruction, and the more likely it is that various access instructions appear after the rest of each access instruction appears, that is, the higher the probability of the appearance of various access instructions after the appearance of the rest of each access instruction.

[0071] In this embodiment, the correlation coefficient between the frequency sequences is a Pearson correlation coefficient, and the calculation of the Pearson correlation coefficient is a known technology, which will not be described herein. As other embodiments, as long as the correlation between the frequency sequences can be measured, other existing technologies such as Spearman correlation coefficient can be used, and the present application does not make special limitations.

[0072] Further, the cache importance of each access instruction in the preset time period is obtained according to the instruction frequency and the correlation strength of each access instruction in the preset time period, specifically, the product of the instruction frequency and the correlation strength of each access instruction in the preset time period is taken as the cache importance of each access instruction in the preset time period.

[0073] It should be noted that the higher the frequency of each access instruction in different sub-periods and the greater the frequency of each access instruction over time, the greater the instruction frequency of each access instruction; meanwhile, the stronger the correlation between each access instruction and the rest of each access instruction, the greater the correlation strength calculated, and the greater the cache importance of each access instruction calculated. The greater the cache importance calculated, the more each access instruction should be stored in the cache area to improve the reading ability of the data in the solid state disk. The flowchart of obtaining the cache importance is shown in FIG. 8. Figure 3

[0074] Step 5, updating the access instructions in the read cache area and the write cache area of the solid state disk at each time according to the cache importance of each access instruction in the read access instruction and the write access instruction in the preset time period.

[0075] Since the cache area is accessed first when the access instruction calls data, if the cache area does not exist, the storage area will be scanned, which will increase the reading and writing time. Therefore, at each time, the access instruction with the greatest cache importance in the read access instruction in the preset time period is stored in the read cache area of the solid state disk; at each time, the access instruction with the greatest cache importance in the write access instruction in the preset time period is stored in the write cache area of the solid state disk. So that the access instruction can quickly call data in the cache area, and improve the speed of the solid state disk when reading and writing, thereby improving the reading and writing performance of the solid state disk.

[0076] Based on the same inventive concept as the above method, the present application also provides a device for improving the reading and writing performance of a solid state disk, comprising:

[0077] An access request instruction acquisition module is configured to collect various access request instructions in the solid state disk in real time.

[0078] ​The access request instruction analysis module is configured to divide a preset time period before each time point into multiple sub-time periods, obtain instruction distribution degrees of various access instructions in the preset time period by analyzing the distribution of various access instructions of any one type of access request instruction in each sub-time period in the preset time period, obtain instruction occurrence degrees of the various access instructions in the preset time period by combining the occurrence frequencies of the various access instructions in each sub-time period, and obtain correlation strengths of the various access instructions in the preset time period by combining the correlation between the occurrence frequencies of the various access instructions and the occurrence frequencies of each of the remaining types of access instructions in the preset time period, and then obtain cache importance degrees of the various access instructions in the preset time period.

[0079] The cache area updating module is configured to update the access instructions in the read cache area and the write cache area of the solid state disk at each time point according to the cache importance degrees of each type of read access instruction and write access instruction in the preset time period.

[0080] Based on the same inventive concept as the above method, the embodiments of the present application also provide a computer device, which comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of any one of the above methods for improving the read-write performance of a solid state disk when executing the computer program.

[0081] In summary, the present application can evaluate the stability and activity of various access instructions in the entire time period by calculating the instruction distribution degrees, which helps to measure the importance of various access instructions. Furthermore, the present application can evaluate the probability of calling various access instructions in the next time period by combining the change trend of the occurrence frequencies of various access instructions and the occurrence of various access instructions at the end of the entire time period, which improves the accuracy of evaluating the occurrence probability of various access instructions in the next time period. Furthermore, the present application can effectively evaluate the importance of caching various access instructions by combining the correlation between various access instructions and each of the remaining types of access instructions, which helps to identify access instructions that should be stored in the cache area, thereby reducing direct access to the storage area, reducing read-write delay, and improving the read-write performance of the solid state disk. Furthermore, the present application can effectively shorten the search time of access instructions by updating the access instructions in the cache area according to the cache importance degrees of various access instructions, thereby improving the read-write performance of the solid state disk.

[0082] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other processing devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other processing devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flow diagrams and / or block diagrams.

[0083] It is apparent that a person skilled in the art can make a variety of modifications to the application described above without departing from the spirit and scope of the application. Therefore, the above-described embodiments of the application are intended to be illustrative only and not restrictive.

Claims

1. A method for improving the read-write performance of a solid state disk, characterized in that, The method comprises the following steps: Real-time acquisition of various access request instructions in the solid state disk; Dividing a preset time period before each time point into sub-periods, obtaining instruction distribution degrees of various access instructions in the preset time period through the distribution of various access instructions in the preset time period, and obtaining instruction occurrence degrees of various access instructions in the preset time period in combination with the occurrence frequencies of various access instructions in the sub-periods, and then obtaining the correlation strength of various access instructions in the preset time period in combination with the correlation between the occurrence frequencies of various access instructions in the preset time period and the occurrence frequencies of other access instructions, and obtaining the cache importance of various access instructions in the preset time period; The access request instructions include read access instructions and write access instructions, and the access instructions in the read cache area and the write cache area of the solid state disk are updated at each time point according to the cache importance of each type of access instruction in the read access instructions and the write access instructions in the preset time period.

2. The method for improving the read-write performance of a solid state disk according to claim 1, wherein, The acquisition process of the instruction distribution degree is as follows: Calculate the mean and dispersion of the occurrence frequencies of various access instructions in all sub-periods; Count the number of non-zero values in the occurrence frequencies of various access instructions in all sub-periods; The instruction distribution degree is directly proportional to the mean and the number, and inversely proportional to the dispersion.

3. The method for improving the read-write performance of a solid state disk according to claim 2, wherein, The calculation process of the instruction distribution degree is as follows: Calculate the product of the mean and the number, and map the dispersion to a positive number; The instruction distribution degree is the ratio of the product to the positive number.

4. The method for improving the read-write performance of a solid state disk according to claim 1, wherein, The acquisition process of the instruction occurrence degree is as follows: Obtain the trend degree of various access instructions in the preset time period through the change trend of the occurrence frequencies of various access instructions in all sub-periods; Map the number of continuous 0 from the end to the front in the occurrence frequencies of various access instructions in all sub-periods to a constant greater than 0; Calculate the product value of the normalized value of the trend degree and the instruction distribution degree; The instruction occurrence degree is the ratio of the product value to the constant.

5. The method for improving the read-write performance of a solid state disk according to claim 4, wherein, The trend degree is the slope of the fitting straight line of the occurrence frequencies of various access instructions in all sub-periods in time sequence.

6. The method for improving the read-write performance of a solid state disk according to claim 1, wherein, The correlation strength is the mean of the correlation coefficients of the occurrence frequencies between various access instructions and all other access instructions in time sequence.

7. The method for improving the read-write performance of a solid state disk according to claim 1, wherein, The cache importance is the product of the instruction occurrence degree and the correlation strength. 8.The method of claim 1, wherein, The updating of the access instructions in the read cache area and the write cache area of the solid state disk at each time point comprises: Storing the access instruction with the maximum cache importance in the read access instructions in the preset time period into the read cache area of the solid state disk; Storing the access instruction with the maximum cache importance in the write access instructions in the preset time period into the write cache area of the solid state disk.

9. A device for improving the read-write performance of a solid state disk, applying the method for improving the read-write performance of a solid state disk as claimed in claim 1, characterized in that, The device comprises: An access request instruction acquisition module for real-time acquisition of various access request instructions in the solid state disk; The access request instruction analysis module is configured to divide a preset time period before each time point into sub time periods, obtain instruction distribution degrees of various access instructions in the preset time period by distribution of the various access instructions in the sub time periods, obtain instruction occurrence degrees of the various access instructions in the preset time period by occurrence frequencies of the various access instructions in the sub time periods, and further obtain cache importance degrees of the various access instructions in the preset time period by correlation of the occurrence frequencies between the various access instructions and the remaining access instructions in the preset time period and the obtained correlation strengths of the various access instructions. The cache area updating module is configured to update access instructions in read cache areas and write cache areas of the solid state disk at each time point according to the cache importance degrees of each type of read access instruction and write access instruction in the preset time period.

10. A computer device, comprising: The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method for improving read-write performance of a solid state disk according to any one of claims 1 to 8 when executing the computer program.

Citation Information

Patent Citations

  • Data processing method and device for solid state disk

    CN119883140A

  • Computer defense system based on Internet of Things

    CN120354405A