Methods for optimizing laptop storage performance
By evaluating and optimizing the status of the laptop's storage area, the problem of SSDs consuming storage space in laptops much faster than they can be recycled is resolved, achieving efficient data management and system stability, and extending the life of the device.
Patent Information
- Application Number
- CN202411179133.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2044-08-26
AI Technical Summary
In the prior art, solid-state drives in laptops have a fast data writing speed and a slow data recovery speed, resulting in storage space consumption speed far exceeding the recovery speed, causing the storage system to be unavailable and a prominent performance bottleneck problem.
By evaluating the storage status of the target storage area, it is determined whether it is normal. If it is not normal, it will be prompted that storage cannot be performed. During the data storage process, the initial storage speed and the removal speed of data that needs to be cleaned are optimized. The storage status is dynamically monitored and adjusted to ensure efficient data writing and management.
It effectively avoids data loss or inability to store data, optimizes the storage process, improves data processing efficiency, maintains system stability and smoothness, extends equipment life, and solves the performance bottleneck problem of laptop computers in data storage.
Smart Images

Figure CN119088299B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of storage performance optimization, in particular to a method for optimizing the storage performance of a notebook computer. Background Art
[0002] With the development of IT informatization, storage systems are experiencing massive amounts of data, requiring more complex storage hardware and software architectures to ensure reliability and scalability. Constant hardware component updates and software stacks complicate performance optimization during storage operations. Based on past performance optimization experience, we adjust optimization parameters for each hardware and software module individually based on standardized metrics to ensure storage service quality.
[0003] Solid-state drives (SSDs) have become a mainstream storage device, widely used in laptops. However, because data writing is faster than garbage collection, if no measures are taken, storage space consumption will far outstrip recycling, rendering the system unusable. Therefore, improving the data processing efficiency of storage systems is crucial. Summary of the Invention
[0004] In view of the deficiencies of the prior art, the present invention provides a method for optimizing the storage performance of a notebook computer, which effectively solves the problem of performance bottlenecks in the data storage process of a notebook computer.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for optimizing the storage performance of a laptop computer, comprising the following steps: evaluating the storage status of a target storage area for storing data, and determining whether the storage status of the target storage area is normal; if the storage status of the target storage area is abnormal, prompting that the data cannot be stored in the target storage area of the laptop computer; if the read and write status of the target storage area is normal, optimizing and controlling the initial storage speed of the data to be stored and the initial removal speed of the data to be cleared during the data storage process; during the optimization and control process, evaluating the storage status of the laptop computer, obtaining an evaluation result, and adjusting the storage status based on the evaluation result.
[0006] Furthermore, the determination of whether the storage status of the target storage area is normal comprises the following steps: obtaining read and write status data of the target storage area, the read and write status data including available storage space, historical buffer hit rate average, historical instruction response delay average, historical maximum I / O operation rate average, and historical read and write error rate average; determining whether the available storage space is not less than the required space for the data to be stored; if the available storage space is less than the required space for the data to be stored, determining the occupied space of the data to be cleared in the target storage area, and determining whether the sum of the available storage space and the occupied space of the data to be cleared in the target storage area is not less than the required space for the data to be stored : If the sum of the available storage space and the space occupied by the data to be cleared in the target storage area is less than the space required for the data to be stored, the storage status of the target storage area is abnormal; if the available storage space is not less than the space required for the data to be stored or the sum of the available storage space and the space occupied by the data to be cleared in the target storage area is not less than the space required for the data to be stored, the read and write status of the target storage area is evaluated based on the historical buffer hit rate average, the historical instruction response delay average, the historical maximum I / O operation rate average and the historical read and write error rate average to obtain a read and write status evaluation value; based on the read and write status evaluation value, it is determined whether the storage status of the target storage area is normal.
[0007] Furthermore, the obtaining of the read-write status evaluation value includes the following steps: obtaining the read-write status definition data stored in the database, the read-write status definition data including defining the mean buffer hit rate, defining the mean instruction response delay, defining the mean maximum I / O operation rate and defining the mean read-write error rate; obtaining the weight factor data set stored in the database, the weight factor data set including the buffer hit rate weight factor, the instruction response delay weight factor, the maximum I / O operation rate weight factor and the read-write error rate weight factor; performing comprehensive analysis and processing on the read-write status definition data stored in the database, the weight factor data set stored in the database, and the historical buffer hit rate mean, the historical instruction response delay mean, the historical maximum I / O operation rate mean and the historical read-write error rate mean to obtain the read-write status evaluation value.
[0008] Furthermore, the calculation formula of the read / write status evaluation value is as follows:
[0009]
[0010] Where Dzp is the read / write status evaluation value, Hsm is the historical buffer hit rate mean, Ysc is the historical command response delay mean, Czs is the historical maximum I / O operation rate mean, Dxs is the historical read / write error rate mean, Hcm is the defined buffer hit rate mean, Ycc is the defined command response delay mean, Czc is the defined maximum I / O operation rate mean, Dxc is the defined read / write error rate mean, α1 is the buffer hit rate weight factor, α2 is the command response delay weight factor, α3 is the maximum I / O operation rate weight factor, and α4 is the read / write error rate weight factor.
[0011] Furthermore, the method of judging whether the storage status of the target storage area is normal based on the read-write status evaluation value includes the following steps: judging whether the historical buffer hit rate mean is less than the buffer hit rate threshold stored in the database: if so, the storage status of the target storage area is abnormal; if otherwise, judging whether the historical instruction response delay mean is less than the instruction response delay threshold stored in the database: if otherwise, the storage status of the target storage area is abnormal; if so, judging whether the historical maximum I / O operation rate mean is less than the I / O operation rate threshold stored in the database: if so, the storage status of the target storage area is abnormal; if otherwise, judging whether the historical read-write error rate mean is less than the read-write error rate threshold stored in the database: if otherwise, the storage status of the target storage area is abnormal; if so, judging whether the read-write status evaluation value is less than the read-write status evaluation threshold stored in the database: if so, the storage status of the target storage area is abnormal; if otherwise, the storage status of the target storage area is normal.
[0012] Furthermore, during the data storage process, the initial storage speed of the data to be stored and the initial removal speed of the data to be cleared are optimized and controlled, including the following steps: based on the data type and data size of the data to be stored and the read-write status data of the target storage area, the initial storage speed corresponding to the data type is obtained from the database; based on the data type and data size of the data to be cleared and the read-write status data of the target storage area, the initial removal speed corresponding to the data type is obtained from the database; in the process of processing the data to be stored and the data to be cleared, the available storage space of the target storage area is obtained in real time, and it is judged whether the available storage space of the target storage area is less than the available storage space threshold set in the database: if the available storage space of the target storage area is less than the available storage space threshold set in the database, it is judged whether the data to be cleared is cleared: if it is cleared, the data to be stored is stored at the initial storage speed; if it is not cleared, the initial storage speed is reduced and the initial removal speed is increased; if the available storage space of the target storage area is not less than the available storage space threshold set in the database, the initial storage speed is maintained until the data to be stored is completed, and the initial removal speed is maintained until the data to be cleared is completed.
[0013] Furthermore, the evaluation of the notebook storage status and obtaining of the evaluation results include the following steps: obtaining storage status data during data processing, the storage status data including the actual storage speed of the data to be stored, the actual removal speed of the data to be cleaned, and the maximum I / O operation rate; obtaining storage performance allowable deviation data during data processing from a database based on the storage status data, the storage performance allowable deviation data including the memory temperature allowable deviation value and the CPU utilization allowable deviation value; obtaining actual storage performance data during data processing, the actual storage performance data including the actual memory temperature value and the actual CPU utilization; obtaining storage performance parameter data stored in the database, the storage performance parameter data including the memory parameter temperature value and the CPU parameter utilization; obtaining an evaluation result based on the storage performance allowable deviation data, the actual storage performance data, and the storage performance parameter data, and the evaluation result is used as an analysis basis for adjusting the storage status.
[0014] Furthermore, the calculation formula of the evaluation result is as follows:
[0015]
[0016] Where PG is the evaluation result, WSc is the actual memory temperature, PSs is the actual CPU utilization, WCc is the specified memory temperature, PCc is the specified CPU utilization, ΔW is the allowable deviation of the memory temperature, and ΔP is the allowable deviation of the CPU utilization.
[0017] Furthermore, the method of obtaining storage performance tolerance data during data processing from a database based on the storage status data includes the following steps: comparing and analyzing the storage status data with various storage status matching data stored in the database to obtain a comparison coefficient, wherein the storage status matching data includes a matching storage speed of data to be stored, a matching removal speed of data to be cleared, and a maximum I / O operation matching rate, wherein the calculation formula of the comparison coefficient is as follows:
[0018]
[0019] Where δ is the comparison coefficient, Scs is the actual storage speed of the data to be stored, Sys is the actual removal speed of the data to be cleaned, Szs is the maximum I / O operation rate, Ccs is the matching storage speed, Cys is the matching removal speed of the data to be cleaned, Czs is the maximum I / O operation matching rate, and e is a natural constant. The storage state matching data corresponding to the minimum comparison coefficient is obtained, and the storage performance allowable deviation data corresponding to the storage stored in the database is obtained.
[0020] Furthermore, the adjustment of the storage state based on the evaluation results includes the following steps: comparing the evaluation results with the state adjustment plans corresponding to each evaluation result stored in the database, and obtaining the state adjustment plan corresponding to the evaluation results, wherein the state adjustment plan includes lowering the memory temperature and reducing the CPU utilization of other programs.
[0021] The present invention has the following beneficial effects:
[0022] This laptop storage performance optimization method evaluates the status of target storage areas to promptly detect and alert users to storage anomalies, preventing data loss or data storage failure. It also optimizes the initial storage speed and the removal speed of data requiring cleanup during the storage process, ensuring efficient data writing and management. Furthermore, dynamic monitoring and adjustment of storage status helps users maintain system stability and fluidity, extending device lifespan and improving the overall user experience, effectively resolving performance bottlenecks in laptop data storage.
[0023] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is a flow chart of the method for optimizing the storage performance of a notebook computer according to the present invention. DETAILED DESCRIPTION
[0025] The embodiments of the present application utilize a laptop computer storage performance optimization method that evaluates the status of the target storage area, promptly identifying and alerting users to storage anomalies, thereby avoiding data loss or data storage failure. Furthermore, during the storage process, the initial storage speed and the speed of removing data requiring cleanup are optimized to ensure efficient data writing and management. Furthermore, dynamic monitoring and adjustment of storage status help users maintain system stability and fluidity, extend device life, and enhance the overall user experience, effectively resolving performance bottlenecks associated with laptop computer data storage.
[0026] See also Figure 1 An embodiment of the present invention provides a technical solution: a method for optimizing storage performance of a laptop computer, comprising the following steps: evaluating the storage status of a target storage area for data to be stored, and determining whether the storage status of the target storage area is normal; if the storage status of the target storage area is abnormal, prompting that the data cannot be stored in the target storage area of the laptop computer; if the read / write status of the target storage area is normal, optimizing and controlling the initial storage speed of the data to be stored and the initial removal speed of the data to be cleared during the data storage process; during the optimization and control process, evaluating the storage status of the laptop computer, obtaining an evaluation result, and adjusting the storage status based on the evaluation result.
[0027] First, the target storage area is assessed to ensure it can support normal data storage. This prevents errors during the storage process that could lead to data loss or corruption. If abnormal storage status is detected, users are promptly notified to prevent them from continuing operations without knowledge, thereby reducing the risk of greater data loss. By optimizing the initial storage speed and removal speed, overall data storage efficiency is improved, latency is reduced, and the user experience is enhanced. During the optimization process, the storage status is continuously monitored and assessed, and adjustments are made based on the assessment results to ensure optimal storage performance.
[0028] Specifically, the determining whether the storage status of the target storage area is normal includes the following steps: obtaining read and write status data of the target storage area, the read and write status data including available storage space, a historical buffer hit rate average, a historical command response delay average, a historical maximum I / O operation rate average, and a historical read and write error rate average; determining whether the available storage space is not less than the required space for the data to be stored; if the available storage space is less than the required space for the data to be stored, determining the occupied space of the data to be cleared in the target storage area, and determining whether the sum of the available storage space and the occupied space of the data to be cleared in the target storage area is not less than the required space for the data to be stored; If the sum of the available storage space and the space occupied by the data to be cleared in the target storage area is less than the space required for the data to be stored, the storage status of the target storage area is abnormal; if the available storage space is not less than the space required for the data to be stored or the sum of the available storage space and the space occupied by the data to be cleared in the target storage area is not less than the space required for the data to be stored, the read and write status of the target storage area is evaluated based on the historical buffer hit rate average, the historical instruction response delay average, the historical maximum I / O operation rate average and the historical read and write error rate average to obtain a read and write status evaluation value; based on the read and write status evaluation value, it is judged whether the storage status of the target storage area is normal.
[0029] Insufficient storage space or poor storage status can lead to data loss or corruption. By assessing storage status, you can identify potential risks in advance and take preventative measures. Monitoring historical read and write error rates can help identify trends in hardware failures or data corruption, preventing data loss at critical moments. Historical buffer hit rates and command response latency are key indicators of storage performance. By monitoring these metrics, you can assess the performance of storage areas under high load and adjust storage policies to improve performance. Analyzing historical maximum I / O operation rates can reveal bottlenecks during operation, provide a basis for performance improvements, and help optimize data query and write efficiency.
[0030] By regularly assessing storage status, the storage system can implement proactive maintenance, remove unnecessary data, and ensure optimal performance. This proactive approach is clearly a more viable management approach than passive monitoring. Decision support integrated with historical data analysis eliminates random actions in storage management and instead relies on reliable data analysis, guiding users to make more reasonable storage policy adjustments.
[0031] The method of obtaining the read / write status evaluation value includes the following steps: obtaining the read / write status definition data stored in the database, wherein the read / write status definition data includes defining the mean buffer hit rate, defining the mean instruction response delay, defining the mean maximum I / O operation rate, and defining the mean read / write error rate. These definition parameters can be obtained from the test environment, and the various test parameters in the test environment are used as definition parameters.
[0032] Obtain a weight factor data set stored in a database, wherein the weight factor data set includes a buffer hit rate weight factor, an instruction response delay weight factor, a maximum I / O operation rate weight factor, and a read / write error rate weight factor. When used, it can be directly obtained from the database, and the corresponding relationship can be a mapping set. For example, the historical buffer hit rate average, the historical instruction response delay average, the historical maximum I / O operation rate average, and the historical read / write error rate average form a mapping set with the buffer hit rate weight factor, the instruction response delay weight factor, the maximum I / O operation rate weight factor, and the read / write error rate weight factor. The buffer hit rate weight factor, the instruction response delay weight factor, the maximum I / O operation rate weight factor, and the read / write error rate weight factor corresponding to the historical buffer hit rate average, the historical instruction response delay average, the historical maximum I / O operation rate average, and the historical read / write error rate average can be obtained directly through the mapping set.
[0033] The read / write status definition data and weight factor dataset stored in the database are comprehensively analyzed with the historical average buffer hit rate, historical average command response delay, historical average maximum I / O operation rate, and historical average read / write error rate to obtain a read / write status assessment value. The historical average buffer hit rate, historical average command response delay, historical average maximum I / O operation rate, and historical average read / write error rate are all averaged based on data from the historical storage process.
[0034] Comparing and analyzing the current read / write status data obtained with historical data helps identify trends and potential performance issues. Weighting factors are used to weight the impact of each indicator, ensuring that the evaluation value not only considers the current status but also appropriately reflects past performance. By integrating all data, a comprehensive read / write status evaluation value is calculated, which can intuitively display the overall performance status of the storage system.
[0035] The calculation formula of the read-write status evaluation value is as follows:
[0036]
[0037] Where Dzp is the read / write status evaluation value, Hsm is the historical buffer hit rate mean, Ysc is the historical command response delay mean, Czs is the historical maximum I / O operation rate mean, Dxs is the historical read / write error rate mean, Hcm is the defined buffer hit rate mean, Ycc is the defined command response delay mean, Czc is the defined maximum I / O operation rate mean, Dxc is the defined read / write error rate mean, α1 is the buffer hit rate weight factor, α2 is the command response delay weight factor, α3 is the maximum I / O operation rate weight factor, and α4 is the read / write error rate weight factor.
[0038] The cache hit ratio refers to the ratio of data hits in the cache when data is requested. A high cache hit ratio generally means that the system can respond faster when processing requests because it does not need to read data from the back-end storage device, reducing the need for I / O operations. The command response latency indicates the system's response time to a request and is usually measured in milliseconds or microseconds. Response latency is a direct indicator of user experience and system performance. Lower latency generally means that the system can process requests faster, providing a smoother operating experience. The I / O operation rate generally refers to the number of read and write operations that the system can complete per second (such as I / O operations per second, IOPS). A higher I / O operation rate means that the system can read and write data faster and is a key indicator for measuring storage system performance. The read and write error rate refers to the ratio of failed read and write requests within a certain period of time. A higher error rate may indicate system instability, which may result in data loss or application crashes, affecting system reliability and stability.
[0039] A higher cache hit rate typically corresponds to lower response latency because many requests can be satisfied directly from the cache, avoiding slower back-end storage access. Lower response latency typically means that the system can process I / O operations at a higher rate. When the response time of the back-end storage is shorter, the overall I / O operation rate will also increase. A higher read and write error rate may cause some requests to fail, thereby affecting the efficiency of the cache (reducing the hit rate), and may also lead to increased response latency because the system may need to retry the operation.
[0040] From a comprehensive perspective, a high buffer hit rate, low response latency, high I / O operation rate, and low error rate generally indicate a healthy system with good performance. However, if any of these parameters becomes abnormal (such as an increase in the error rate), it may have a chain reaction that affects other indicators, indicating the need for troubleshooting or performance optimization.
[0041] Specifically, the method of judging whether the storage status of the target storage area is normal based on the read-write status evaluation value includes the following steps: judging whether the historical buffer hit rate mean is less than the buffer hit rate threshold stored in the database: if so, the storage status of the target storage area is abnormal; if otherwise, judging whether the historical instruction response delay mean is less than the instruction response delay threshold stored in the database: if otherwise, the storage status of the target storage area is abnormal; if so, judging whether the historical maximum I / O operation rate mean is less than the I / O operation rate threshold stored in the database: if so, the storage status of the target storage area is abnormal; if otherwise, judging whether the historical read-write error rate mean is less than the read-write error rate threshold stored in the database: if otherwise, the storage status of the target storage area is abnormal; if so, judging whether the read-write status evaluation value is less than the read-write status evaluation threshold stored in the database: if so, the storage status of the target storage area is abnormal; if otherwise, the storage status of the target storage area is normal.
[0042] The buffer hit rate threshold stored in the database is calculated by analyzing historical operating data to calculate the long-term buffer hit rate average, and is set according to the normal operating conditions of the system. The instruction response delay threshold stored in the database is the instruction response delay threshold stored in the database. The I / O operation rate threshold stored in the database is determined by benchmarking the average I / O rate under a standard workload, and the threshold is set accordingly. The read and write error rate threshold stored in the database sets the maximum acceptable value of the error rate based on the fault tolerance and error recovery technology of the storage system. The read and write status evaluation threshold stored in the database comprehensively considers the impact of the buffer hit rate, response delay, I / O rate and error rate, and is calculated through weighted sum or other mathematical models. It can also be determined based on experience and historical performance to determine a comprehensive performance and health status evaluation threshold and store it in the database.
[0043] In this implementation scheme, a more comprehensive view of the storage status can be obtained by comprehensively considering multiple indicators (such as buffer hit rate, response latency, I / O operation rate, and read and write error rate). This avoids the deviation that may be caused by a single indicator, because a single parameter may be distorted under specific circumstances (such as a parameter suddenly changing due to an accidental event). A step-by-step judgment method is adopted, that is, each indicator is checked in sequence from high to low, and each step has a direct impact on the storage status. This method can flexibly locate performance problems and facilitate the discovery of potential bottlenecks in the storage system. Using pre-set thresholds (such as the various thresholds stored in the database) to evaluate indicators makes the evaluation criteria quantified and clear, which helps to achieve consistency and repeatability.
[0044] When abnormal storage status is detected, the problem (such as a cache miss, excessive response latency, or other issues) can be quickly located, driving targeted optimization and troubleshooting to maintain system performance and stability. The multi-level evaluation design based on read and write status makes storage status monitoring more comprehensive and accurate, which has a significant positive impact on improving storage device performance, enhancing system reliability, and data protection. This systematic approach allows for effective management of storage resources, keeping them in optimal condition despite changing demand environments.
[0045] Specifically, during the data storage process, the initial storage speed of the data to be stored and the initial removal speed of the data to be cleared are optimized and controlled, including the following steps: based on the data type and data size of the data to be stored and the read-write status data of the target storage area, the initial storage speed corresponding to the data type is obtained from the database; based on the data type and data size of the data to be cleared and the read-write status data of the target storage area, the initial removal speed corresponding to the data type is obtained from the database; in the process of processing the data to be stored and the data to be cleared, the available storage space of the target storage area is obtained in real time, and it is judged whether the available storage space of the target storage area is less than the available storage space threshold set in the database: if the available storage space of the target storage area is less than the available storage space threshold set in the database, it is judged whether the data to be cleared is cleared: if it is cleared, the data to be stored is stored at the initial storage speed; if it is not cleared, the initial storage speed is reduced and the initial removal speed is increased; if the available storage space of the target storage area is not less than the available storage space threshold set in the database, the initial storage speed is maintained until the data to be stored is stored, and the initial removal speed is maintained until the data to be cleared is cleared.
[0046] In this embodiment, the data type (such as text, pictures, videos, etc.) and data size determine how the data is processed. Different types of data may require different processing speeds and methods. For example, large files may require more cache space and longer write times. By matching the database with the storage and removal speeds suitable for each type of data, more personalized and efficient data management can be achieved (a mapping table of storage or removal speeds corresponding to various data types and data sizes is stored in the database, and the mapping table can be used to obtain real-time storage or removal speeds corresponding to various data types and data sizes).
[0047] The read / write status of storage devices (such as I / O performance and error rates) significantly impacts data processing speed. When read / write conditions are good, storage speed can be increased; conversely, speed may need to be reduced to avoid errors and performance degradation. Real-time monitoring of storage space and dynamically adjusting data storage and purge speeds based on available space can help prevent system crashes or performance issues caused by insufficient storage space. When space is insufficient, speeding up data purges and reducing storage speeds can prevent errors or data loss during the writing of new data.
[0048] By dynamically adjusting storage and removal speeds, the system can respond to changes in storage space and avoid system crashes or sharp performance drops due to insufficient space. It can flexibly adjust based on real-time data and storage conditions to adapt to different workloads and storage requirements, thereby maintaining a high performance level under various operating conditions.
[0049] Specifically, the evaluation of the notebook storage status and obtaining the evaluation result include the following steps: obtaining storage status data during data processing, the storage status data including the actual storage speed of the data to be stored, the actual removal speed of the data to be cleaned, and the maximum I / O operation rate; obtaining storage performance allowable deviation data during data processing from a database based on the storage status data, the storage performance allowable deviation data including the memory temperature allowable deviation value and the CPU utilization allowable deviation value; obtaining actual storage performance data during data processing, the actual storage performance data including the actual memory temperature value and the actual CPU utilization; obtaining storage performance parameter data stored in the database, the storage performance parameter data including the memory parameter temperature value and the CPU parameter utilization; obtaining the evaluation result based on the storage performance allowable deviation data, the actual storage performance data, and the storage performance parameter data, and the evaluation result is used as the analysis basis for adjusting the storage status.
[0050] Actual storage speed and removal speed directly impact system response time and processing efficiency. Maximum I / O operation rate, a key metric for measuring storage system performance, helps understand system performance under high load. The tolerance for storage temperature and CPU utilization provides flexibility, allowing for moderate fluctuations without impacting device security and stability. Comparing actual storage performance data with parameterized storage performance allows maintenance personnel to accurately assess the system's current operating status and potential risks.
[0051] The calculation formula of the evaluation result is as follows:
[0052]
[0053] Where PG is the evaluation result, WSc is the actual memory temperature, PSs is the actual CPU utilization, WCc is the specified memory temperature, PCc is the specified CPU utilization, ΔW is the allowable deviation of the memory temperature, and ΔP is the allowable deviation of the CPU utilization.
[0054] In this embodiment, by calculating the deviation between the actual value and the parameter value and then dividing it by the allowable deviation, this method provides a standardized deviation measurement. Whether it is the deviation of temperature or utilization, it is normalized by its corresponding allowable deviation so that these different quantities can be compared fairly in one formula. The purpose of using the natural logarithm function (ln) is to convert the weighted and normalized deviation value into a smoother and more nonlinear evaluation scale. This helps to amplify smaller deviation values (values close to 1), while the growth of larger deviation values (values much greater than 1) will slow down, avoiding the excessive influence of extreme values on the evaluation results.
[0055] While these two metrics appear independent, they actually influence each other during operation. For example, high CPU utilization can cause overall system temperature to rise, and vice versa, an overheated system can affect CPU performance. It's important to consider the difference between actual and target performance across multiple key performance indicators simultaneously. By monitoring these key parameters, you can adjust system configuration or implement cooling measures in a timely manner to avoid performance bottlenecks or overheating damage, keeping the system running at its optimal state.
[0056] Specifically, the method of obtaining storage performance tolerance data during data processing from a database based on storage status data includes the following steps: comparing and analyzing the storage status data with various storage status matching data stored in the database to obtain a comparison coefficient, wherein the storage status matching data includes a matching storage speed of data to be stored, a matching removal speed of data to be cleared, and a maximum I / O operation matching rate, wherein the calculation formula of the comparison coefficient is as follows:
[0057]
[0058] Wherein, δ is the comparison coefficient, Scs is the actual storage speed of the data to be stored, Sys is the actual removal speed of the data to be cleaned, Szs is the maximum I / O operation rate, Ccs is the matching storage speed, Cys is the matching removal speed of the data to be cleaned, Czs is the maximum I / O operation matching rate, and e is a natural constant; the storage state matching data corresponding to the minimum comparison coefficient is obtained, and the storage performance allowable deviation data corresponding to the storage state matching data stored in the database is obtained.
[0059] In this embodiment, by calculating the difference between the actual storage speed (Scs), removal speed (Sys) and maximum I / O operation rate (Szs) and the corresponding matching speeds in the database, the deviation between the current state of the system and the preset optimal state can be quantified.
[0060] Specifically, the adjustment of the storage state based on the evaluation results includes the following steps: comparing the evaluation results with the state adjustment plans corresponding to each evaluation result stored in the database, and obtaining the state adjustment plan corresponding to the evaluation result, wherein the state adjustment plan includes lowering the memory temperature and reducing the CPU utilization of other programs.
[0061] In this embodiment, a pre-stored evaluation result that is the same as the current evaluation result is searched in the database, and the state adjustment plan corresponding to the current evaluation result can be determined through a pre-set mapping set. By timely adjusting the memory temperature and managing the CPU utilization, it can run in the optimal state, avoid performance degradation caused by overheating or resource overload, and reduce unnecessary resource usage. For example, reducing the CPU usage of non-critical programs can free up these resources for more critical tasks, thereby optimizing overall resource allocation and usage.
[0062] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0063] The present invention is described with reference to flowcharts and / or block diagrams of systems, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0064] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0066] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0067] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.
Claims
1. A method for optimizing storage performance of a notebook computer, characterized in that: The following steps are involved: Evaluate the storage status of the target storage area to store the data and determine whether the storage status of the target storage area is normal; If the storage status of the target storage area is abnormal, it will prompt that the data cannot be stored in the target storage area of the laptop; If the read and write status of the target storage area is normal, the initial storage speed of the data to be stored and the initial removal speed of the data to be cleared are optimized and controlled during the data storage process; During the optimization control process, the storage status of the notebook is evaluated, an evaluation result is obtained, and the storage status is adjusted based on the evaluation result; The step of determining whether the storage state of the target storage area is normal comprises the following steps: Obtaining read and write status data of the target storage area, the read and write status data including available storage space, historical buffer hit rate average, historical command response delay average, historical maximum I / O operation rate average, and historical read and write error rate average; Determine whether the available storage space is not less than the space required for the data to be stored: If the available storage space is less than the space required for the data to be stored, determine the space occupied by the data to be cleared in the target storage area, and determine whether the sum of the available storage space and the space occupied by the data to be cleared in the target storage area is not less than the space required for the data to be stored: If the sum of the available storage space and the space occupied by the data to be cleared in the target storage area is less than the space required for the data to be stored, the storage status of the target storage area is abnormal; If the available storage space is not less than the space required for the data to be stored or the sum of the available storage space and the space occupied by the data to be cleared in the target storage area is not less than the space required for the data to be stored, then the read and write status of the target storage area is evaluated based on the historical average buffer hit rate, the historical average command response delay, the historical average maximum I / O operation rate, and the historical average read and write error rate to obtain a read and write status evaluation value; Determine whether the storage state of the target storage area is normal based on the read / write state evaluation value; The step of obtaining the read / write status evaluation value comprises the following steps: Obtaining read / write status definition data stored in a database, wherein the read / write status definition data includes defining a mean buffer hit rate, defining a mean command response delay, defining a mean maximum I / O operation rate, and defining a mean read / write error rate; Obtaining a weight factor data set stored in a database, the weight factor data set including a buffer hit rate weight factor, an instruction response delay weight factor, a maximum I / O operation rate weight factor, and a read / write error rate weight factor; Comprehensively analyzing the read / write status definition data stored in the database, the weight factor data set stored in the database, and the historical buffer hit rate average, the historical instruction response delay average, the historical maximum I / O operation rate average, and the historical read / write error rate average to obtain a read / write status evaluation value; The calculation formula of the read-write status evaluation value is as follows: Wherein, Dzp, Hsm, Ysc, Czs, Dxs, Hcm, Ycc, Czc, and Dxc are the read / write status evaluation value, the historical buffer hit rate average, the historical command response delay average, the historical maximum I / O operation rate average, the historical read / write error rate average, the defined buffer hit rate average, the defined command response delay average, the defined maximum I / O operation rate average, and the defined read / write error rate average, respectively; α1, α2, α3, and α4 are the buffer hit rate weight factor, the command response delay weight factor, the maximum I / O operation rate weight factor, and the read / write error rate weight factor, respectively; The step of adjusting the storage state based on the evaluation result includes the following steps: The evaluation result is compared with the state adjustment scheme corresponding to each evaluation result stored in the database to obtain the state adjustment scheme corresponding to the evaluation result, wherein the state adjustment scheme includes reducing the memory temperature and reducing the CPU utilization of other programs.
2. The method for optimizing the storage performance of a notebook computer according to claim 1, wherein: The step of judging whether the storage state of the target storage area is normal based on the read / write state evaluation value comprises the following steps: Determine whether the historical buffer hit rate average is less than the buffer hit rate threshold stored in the database: If yes, the storage status of the target storage area is abnormal; If not, determine whether the historical command response delay average is less than the command response delay threshold stored in the database: If otherwise the storage status of the target storage area is abnormal; If yes, determine whether the historical maximum I / O operation rate average is less than the I / O operation rate threshold stored in the database: If yes, the storage status of the target storage area is abnormal; Otherwise, determine whether the historical read and write error rate average is less than the read and write error rate threshold stored in the database: If otherwise the storage status of the target storage area is abnormal; If yes, determine whether the read / write status evaluation value is less than the read / write status evaluation threshold stored in the database: If yes, the storage status of the target storage area is abnormal; Otherwise, the storage status of the target storage area is normal.
3. The method for optimizing the storage performance of a notebook computer according to claim 1, wherein: The process of data storage is performed by optimizing and controlling the initial storage speed of the data to be stored and the initial removal speed of the data to be cleared, including the following steps: Based on the data type and data size of the data to be stored and the read / write status data of the target storage area, an initial storage speed corresponding to the data type is obtained from the database; Based on the data type and size of the data to be cleaned and the read / write status data of the target storage area, an initial removal speed corresponding to the data type is obtained from the database; During the process of processing the data to be stored and the data to be cleared, the available storage space of the target storage area is obtained in real time, and it is determined whether the available storage space of the target storage area is less than the available storage space threshold set in the database: If the available storage space in the target storage area is less than the available storage space threshold set in the database, it is determined whether the data to be cleared has been cleared: If the cleaning is completed, the data to be stored will be stored at the initial storage speed; If the cleanup is not complete, reduce the initial storage speed and increase the initial removal speed; If the available storage space in the target storage area is not less than the available storage space threshold set in the database, the initial storage speed is maintained until the data to be stored is completely stored, and the initial removal speed is maintained until the data to be cleared is completely cleared.
4. The method for optimizing the storage performance of a notebook computer according to claim 3, wherein: The step of evaluating the notebook storage status and obtaining the evaluation result includes the following steps: Acquiring storage status data during data processing, the storage status data including the actual storage speed of data to be stored, the actual removal speed of data to be cleared, and the maximum I / O operation rate; Acquiring storage performance allowable deviation data during data processing from a database based on the storage status data, wherein the storage performance allowable deviation data includes a memory temperature allowable deviation value and a CPU utilization allowable deviation value; Acquire actual storage performance data during data processing, wherein the actual storage performance data includes an actual temperature value of the memory and an actual CPU utilization rate; Obtaining storage performance parameter data stored in a database, wherein the storage performance parameter data includes a memory parameter temperature value and a CPU parameter utilization rate; An evaluation result is obtained based on the storage performance allowable deviation data, the actual storage performance data, and the storage performance parameter data, and the evaluation result serves as an analysis basis for adjusting the storage state.
5. The method for optimizing the storage performance of a notebook computer according to claim 4, wherein: The calculation formula of the evaluation result is as follows: Where PG is the evaluation result, WSc is the actual memory temperature, PSs is the actual CPU utilization, WCc is the specified memory temperature, PCc is the specified CPU utilization, ΔW is the allowable deviation of the memory temperature, and ΔP is the allowable deviation of the CPU utilization.
6. The method for optimizing the storage performance of a notebook computer according to claim 4, wherein: The method of acquiring storage performance tolerance data during data processing from a database based on storage status data includes the following steps: The storage status data is compared and analyzed with each storage status matching data stored in the database to obtain a comparison coefficient. The storage status matching data includes the matching storage speed of the data to be stored, the matching removal speed of the data to be cleared, and the maximum I / O operation matching rate. The calculation formula of the comparison coefficient is as follows: Where δ is the comparison coefficient, Scs is the actual storage speed of the data to be stored, Sys is the actual removal speed of the data to be cleaned, Szs is the maximum I / O operation rate, Ccs is the matching storage speed, Cys is the matching removal speed of the data to be cleaned, Czs is the maximum I / O operation matching rate, and e is a natural constant. The storage state matching data corresponding to the minimum comparison coefficient is obtained, and the storage performance allowable deviation data stored in the database is obtained.
Citation Information
Patent Citations
Data protection method and system for solid state disk
CN118051190A