Solid state disk intelligent pre-reading method and device adaptive to user behaviors, equipment and medium
By acquiring user data access behavior information and using machine learning to predict user behavior patterns, the pre-read strategy is dynamically adjusted, solving the problem of the lack of adaptability in existing SSD pre-read strategies. This achieves efficient resource management and energy consumption optimization, improving user experience and device lifespan.
Patent Information
- Application Number
- CN202411635172.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-01-10
AI Technical Summary
Existing solid-state drive (SSD) prefetching strategies lack adaptability, resulting in low resource efficiency, high power consumption, inconsistent user experience, and limited prediction accuracy, failing to effectively distinguish the importance of user access data.
By acquiring user data access behavior information, using machine learning to predict user behavior patterns, dynamically adjusting the pre-read strategy, and combining intelligent cache management and resource scheduling optimization, unnecessary pre-reading and energy consumption can be reduced.
Improve data access efficiency, reduce resource consumption, enhance user experience, extend SSD lifespan, and adapt to various usage scenarios and user needs.
Smart Images

Figure CN119292537A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of solid state hard disk pre-reading technology, and in particular to a solid state hard disk intelligent pre-reading method, device, equipment and medium that are adaptive to user behavior. Background Art
[0002] Solid-state drives (SSDs) in the prior art usually use basic pre-reading algorithms to predict and load data that users may access. These algorithms may be based on simple temporal locality or spatial locality principles, but often lack the ability to deeply learn and adapt to user behavior. For example, some SSDs may use fixed time intervals or data block sizes for pre-reading without considering the user's specific access pattern or the system's current workload.
[0003] The defects of the prior art are mainly manifested in the following aspects:
[0004] Lack of adaptability: The existing SSD read-ahead strategy usually cannot be dynamically adjusted according to changes in user behavior, resulting in the read-ahead operation may not match the actual needs of users.
[0005] Low resource efficiency: Due to the lack of intelligent resource scheduling, existing technologies may still perform unnecessary pre-reading when resources are tight, thus affecting the overall performance of the system.
[0006] High energy consumption: The existing SSD pre-reading operation may not take energy consumption optimization into consideration, resulting in pre-reading being initiated when it is not necessary, or the actual efficiency of pre-reading being initiated is not tracked, resulting in poor pre-reading effect and increased energy consumption of the SSD disk.
[0007] Inconsistent user experience: Due to the fixed nature of the read-ahead policy, existing SSDs may not be able to provide a consistent user experience, especially in changing usage scenarios.
[0008] Limited prediction accuracy: Existing technologies typically do not use advanced machine learning algorithms to improve the accuracy of user behavior predictions.
[0009] Insufficient cache management: The cache management of existing SSDs may not be able to effectively distinguish the importance of user accessed data, resulting in frequently accessed data not being given priority. Summary of the invention
[0010] The embodiments of the present invention provide a method, device, equipment and medium for intelligent pre-reading of a solid-state hard disk that is adaptive to user behavior, aiming to solve at least one technical problem in the above-mentioned background technology. The present invention aims to solve the deficiencies of existing SSD storage devices in processing user data access behavior. The existing technology mainly relies on the improvement of hardware performance to increase data access speed, while ignoring the impact of user behavior patterns on data access patterns. This results in that in actual use, the SSD device cannot effectively predict and adapt to the user's access needs, thereby reducing data access efficiency and user experience.
[0011] In a first aspect, an embodiment of the present invention provides a method for intelligent pre-reading of a solid-state hard disk that is adaptive to user behavior, comprising: obtaining user data access behavior information for the solid-state hard disk;
[0012] predicting a user's behavior pattern based on the data access behavior information;
[0013] Determining a pre-reading strategy for the solid state drive according to the predicted behavior pattern;
[0014] The solid state drive is controlled to pre-read resources based on the pre-reading strategy.
[0015] A further technical solution is that the obtaining of the user's data access behavior information for the solid state drive includes:
[0016] Obtaining the user's initial data access behavior information for the solid state drive;
[0017] filtering noise data in the initial data access behavior information;
[0018] The initial data access behavior information after filtering out noise data is preprocessed to obtain the data access behavior information.
[0019] A further technical solution is that the initial data access behavior information after filtering out the noise data is preprocessed, including:
[0020] The initial data access behavior information after filtering out noise data is normalized and deduplicated.
[0021] A further technical solution is that predicting the user's behavior pattern based on the data access behavior information includes:
[0022] The user's behavior pattern is predicted based on the data access behavior information through a pre-trained prediction model.
[0023] A further technical solution is that the pre-reading strategy of the solid state drive is determined according to the predicted behavior pattern, including:
[0024] Obtaining a preset matching relationship;
[0025] A pre-reading strategy matching the behavior pattern is acquired based on the matching relationship.
[0026] A further technical solution is that the control of the solid state drive to pre-read resources based on the pre-reading strategy includes:
[0027] Determining whether the conditions of the pre-reading strategy are met;
[0028] If the condition of the pre-reading strategy is met, the resource is pre-read from the solid state drive according to the pre-reading strategy.
[0029] A further technical solution is that the method further comprises:
[0030] Managing cache data of the solid state drive through a preset intelligent cache management system;
[0031] Optimizing resource allocation of the solid state drive through a preset resource scheduler;
[0032] The energy consumption of the solid state drive is optimized by a preset energy consumption optimizer.
[0033] In a second aspect, an embodiment of the present invention further provides a solid state hard disk intelligent pre-reading device that is adaptive to user behavior, which includes a unit for executing the above method.
[0034] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0035] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
[0036] The embodiments of the present invention provide a method, device, equipment and medium for intelligent pre-reading of solid-state hard disks that are adaptive to user behavior. The method includes: obtaining user data access behavior information for solid-state hard disks; predicting user behavior patterns based on the data access behavior information; determining a pre-reading strategy for the solid-state hard disk according to the predicted behavior patterns; and controlling the solid-state hard disk to pre-read resources based on the pre-reading strategy. By accurately predicting the user's behavior pattern, and then determining a matching pre-reading strategy based on the user's behavior pattern, and controlling the solid-state hard disk to pre-read resources based on the pre-reading strategy, the accuracy of pre-reading can be greatly improved, thereby improving the user experience.
[0037] The technical effects of the present invention are mainly reflected in the following aspects:
[0038] 1. Improve data access efficiency: By integrating the user behavior analysis module and behavior pattern recognition engine, the intelligent pre-reading SSD can predict and adapt to the user's access needs in real time, thereby improving data access speed. This adaptive pre-reading strategy optimizes the data loading and transmission process, reduces data waiting time, and significantly improves the user experience.
[0039] 2. Reduce resource consumption: Using machine learning technology to conduct in-depth analysis of user data access behavior, the intelligent pre-reading SSD can dynamically adjust the pre-reading strategy, reduce unnecessary data pre-reading, and reduce the consumption of storage resources. This not only improves storage efficiency, but also reduces energy consumption, which is in line with the development trend of green energy conservation.
[0040] 3. Enhanced user experience: The intelligent cache management system ensures that frequently accessed data can be loaded quickly, reducing the delay in data access. This efficient cache strategy works in conjunction with the resource scheduler and energy optimizer to further improve the overall performance of the system, allowing users to experience a smoother and faster experience during use.
[0041] 4. Extend the service life of SSD: The coordinated work of resource scheduler and energy consumption optimizer ensures the stability of SSD performance and extends the service life of the device. By optimizing resource allocation and reducing energy consumption, the present invention can effectively reduce the wear of SSD and extend the service life of the device.
[0042] 5. Highly adaptive and intelligent: The present invention analyzes user behavior in real time, dynamically adjusts pre-reading strategies and cache management, and enables the intelligent pre-reading SSD to more accurately predict and adapt to user access needs. This highly adaptive and intelligent feature enables the present invention to be applicable to a variety of different usage scenarios and user needs, and has a wide range of application prospects.
[0043] To sum up, the technical effect of the present invention is remarkable. It not only improves data access efficiency and storage efficiency, but also reduces energy consumption, enhances user experience, and extends the service life of SSD. At the same time, it is highly adaptable and intelligent, and is suitable for a variety of different usage scenarios and user needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0045] Figure 1A schematic diagram of a flow chart of a solid state drive intelligent pre-reading method that is adaptive to user behavior provided by an embodiment of the present invention;
[0046] Figure 2 A principle block diagram of a solid state drive intelligent pre-reading method that is adaptive to user behavior provided by an embodiment of the present invention;
[0047] Figure 3 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0050] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0051] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0052] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0053] See also Figure 1 Combined with Figure 2 , Figure 1FIG. 1 is a flow chart of a method for intelligent pre-reading of a solid-state hard disk that is adaptive to user behavior provided by an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0054] S1, obtain the user's data access behavior information on the solid state drive.
[0055] In the specific implementation, the user's data access behavior information on the solid-state drive is obtained through the user behavior data collection module. Specifically, first, the user behavior data collection module collects the user's data access behavior information on the SSD disk in real time, including access time, access frequency, access data size, etc.
[0056] In one embodiment, the above step of "obtaining the user's data access behavior information for the solid-state drive" includes: obtaining the user's initial data access behavior information for the solid-state drive; filtering the noise data in the initial data access behavior information; and preprocessing the initial data access behavior information after filtering the noise data to obtain the data access behavior information.
[0057] In a specific implementation, the initial data access behavior information after filtering out noise data is normalized and deduplicated.
[0058] Specifically, the data collector is responsible for collecting data in real time, the data filter is responsible for filtering out noise data, and the data preprocessing unit is responsible for preprocessing the data, such as normalization and deduplication, to improve the accuracy of the data.
[0059] S2: predicting the user's behavior pattern based on the data access behavior information.
[0060] In a specific implementation, a user's behavior pattern is predicted based on the data access behavior information through a pre-trained prediction model. Specifically, the prediction model is first trained through training data so that the prediction model has the ability to identify and predict the user's behavior pattern. The data access behavior information is input into the prediction model, and the prediction model predicts the user's behavior pattern.
[0061] Specifically, the user behavior analysis module processes and analyzes the user behavior data to identify and predict the user's behavior pattern. The behavior pattern recognition unit is responsible for identifying the user's behavior pattern, the behavior pattern prediction unit is responsible for predicting the user's future behavior pattern, and the behavior pattern update unit is responsible for updating the behavior pattern in real time according to changes in user behavior.
[0062] S3, determining a pre-reading strategy for the solid state drive according to the predicted behavior pattern.
[0063] In a specific implementation, the pre-reading strategy of the solid state drive is determined according to the predicted behavior pattern. The pre-reading strategy is used to indicate what resources to pre-read under what conditions, and how to set the specific conditions is not specifically limited by the present invention.
[0064] In a specific implementation, a preset matching relationship is obtained; and a pre-reading strategy matching the behavior pattern is obtained based on the matching relationship.
[0065] In a specific implementation, a matching relationship between the pre-reading strategy and the behavior pattern is established in advance. Based on the matching relationship, the pre-reading strategy matching the behavior pattern can be obtained. The matching relationship is used to indicate the corresponding relationship between the pre-reading strategy and the behavior pattern.
[0066] Specifically, the pre-reading strategy of the solid state drive is determined by an adaptive pre-reading strategy generator according to the predicted behavior pattern. The adaptive pre-reading strategy generator adjusts the pre-reading strategy in real time according to the user behavior pattern to adapt to the specific access pattern of the user. The pre-reading strategy calculation unit is responsible for calculating the pre-reading strategy according to the user behavior pattern (for example, according to the user's reading behavior (such as block size, speed, etc.), a matching pre-reading strategy is selected from the preset or subsequently generated pre-reading strategy), the pre-reading strategy optimization unit is responsible for optimizing the pre-reading strategy (for example, comparing the actual effects of different pre-reading strategies under different user behavior patterns, and gradually optimizing and refining the parameters in the pre-reading strategy according to the actual effects, so that the pre-reading strategy has better pre-reading efficiency and effect), and the pre-reading strategy update unit is responsible for updating the pre-reading strategy in real time according to changes in user behavior (for example, the pre-reading strategy can be updated by timed update, idle time update and real-time update according to specific circumstances or pre-settings).
[0067] S4, controlling the solid state drive to pre-read resources based on the pre-reading strategy.
[0068] In a specific implementation, the SSD is controlled to pre-read resources according to the pre-reading strategy, that is, pre-read resources into the cache. Specifically, step S4 includes: determining whether the condition of the pre-reading strategy is met; if the condition of the pre-reading strategy is met, pre-reading resources from the SSD according to the pre-reading strategy.
[0069] Each pre-reading strategy is configured with conditions, for example, it can be a time condition, which is not specifically limited in this application. In the present invention, it is determined whether the conditions of the pre-reading strategy are met; if the conditions of the pre-reading strategy are met, resources are pre-read from the solid-state drive according to the pre-reading strategy. That is, which resources are read into the cache.
[0070] Furthermore, the method also includes: managing the cache data of the solid-state drive through a preset intelligent cache management system; optimizing the resource allocation of the solid-state drive through a preset resource scheduler; and optimizing the energy consumption of the solid-state drive through a preset energy consumption optimizer.
[0071] Specifically, the intelligent cache management system optimizes cache data management to ensure that frequently accessed data can be loaded quickly. The cache management unit is responsible for managing cache data, the cache optimization unit is responsible for optimizing the cache strategy (for example, selecting a suitable cache strategy from preset or subsequently generated cache strategies based on read behavior (such as block size, speed, etc.), and the cache update unit is responsible for updating the cache strategy in real time based on changes in user behavior (for example, the cache strategy can be updated in a timed update, idle time update, and real-time update manner based on specific circumstances or pre-set settings).
[0072] The resource scheduler optimizes resource allocation and improves the stability of SSD performance. The resource allocation unit is responsible for allocating resources, the resource optimization unit is responsible for optimizing resource strategies (for example, comparing the actual effects of different resource strategies under different user behavior patterns, and gradually optimizing and refining the parameters in the resource strategies so that the resource strategies have better effects. At this time, it is necessary to consider the pre-read resource consumption and maintain a balance between pre-read resources (mainly cache) and actual effects). The resource update unit is responsible for updating resource strategies in real time according to changes in user behavior. (For example, resource strategies can be updated by timed updates, idle time updates, and real-time updates according to specific circumstances or pre-set settings.)
[0073] The energy consumption optimizer reduces energy consumption and extends the service life of the equipment. The energy consumption monitoring unit is responsible for monitoring energy consumption, the energy consumption analysis unit is responsible for analyzing energy consumption data (for example, CPU resource and Cache resource consumption are the main power consumption indicators. Because it is impossible to count individual pre-read resource indicators, the power consumption of the entire disk, CPU, and chip under different pre-read strategies (under the same read pressure) can be analyzed), and the energy consumption adjustment unit is responsible for adjusting the energy consumption strategy according to the energy consumption data; for example, when adjusting, the energy consumption strategy can be comprehensively considered from four aspects: maintaining the balance between pre-read efficiency and effect and resource consumption and energy consumption.
[0074] By applying the embodiment of the present invention, a method for intelligent pre-reading of a solid-state hard disk that is adaptive to user behavior is proposed, which obtains the user's data access behavior information for the solid-state hard disk; predicts the user's behavior pattern based on the data access behavior information; determines the pre-reading strategy of the solid-state hard disk according to the predicted behavior pattern; and controls the solid-state hard disk to pre-read resources based on the pre-reading strategy. By accurately predicting the user's behavior pattern, and then determining a matching pre-reading strategy based on the user's behavior pattern, and controlling the solid-state hard disk to pre-read resources based on the pre-reading strategy, the accuracy of pre-reading can be greatly improved, thereby improving the user experience.
[0075] The technical effects of the present invention are mainly reflected in the following aspects:
[0076] 1. Improve data access efficiency: By integrating the user behavior analysis module and behavior pattern recognition engine, the intelligent pre-reading SSD can predict and adapt to the user's access needs in real time, thereby improving data access speed. This adaptive pre-reading strategy optimizes the data loading and transmission process, reduces data waiting time, and significantly improves the user experience.
[0077] 2. Reduce resource consumption: Using machine learning technology to conduct in-depth analysis of user data access behavior, the intelligent pre-reading SSD can dynamically adjust the pre-reading strategy, reduce unnecessary data pre-reading, and reduce the consumption of storage resources. This not only improves storage efficiency, but also reduces energy consumption, which is in line with the development trend of green energy conservation.
[0078] 3. Enhanced user experience: The intelligent cache management system ensures that frequently accessed data can be loaded quickly, reducing the delay in data access. This efficient cache strategy works in conjunction with the resource scheduler and energy optimizer to further improve the overall performance of the system, allowing users to experience a smoother and faster experience during use.
[0079] 4. Extend the service life of SSD: The coordinated work of resource scheduler and energy consumption optimizer ensures the stability of SSD performance and extends the service life of the device. By optimizing resource allocation and reducing energy consumption, the present invention can effectively reduce the wear of SSD and extend the service life of the device.
[0080] 5. Highly adaptive and intelligent: The present invention analyzes user behavior in real time, dynamically adjusts pre-reading strategies and cache management, and enables the intelligent pre-reading SSD to more accurately predict and adapt to user access needs. This highly adaptive and intelligent feature enables the present invention to be applicable to a variety of different usage scenarios and user needs, and has a wide range of application prospects.
[0081] To sum up, the technical effect of the present invention is remarkable. It not only improves data access efficiency and storage efficiency, but also reduces energy consumption, enhances user experience, and extends the service life of SSD. At the same time, it is highly adaptable and intelligent, and is suitable for a variety of different usage scenarios and user needs.
[0082] Corresponding to the above-mentioned intelligent pre-reading method of solid-state hard disks that is adaptive to user behavior, the present invention also provides an intelligent pre-reading device of solid-state hard disks that is adaptive to user behavior. The intelligent pre-reading device of solid-state hard disks that is adaptive to user behavior includes a unit for executing the above-mentioned intelligent pre-reading method of solid-state hard disks that is adaptive to user behavior. The intelligent pre-reading device of solid-state hard disks that is adaptive to user behavior can be configured in a desktop computer, a tablet computer, a laptop computer, and other terminals. Specifically, the intelligent pre-reading device of solid-state hard disks that is adaptive to user behavior includes:
[0083] An acquisition unit, used to acquire the user's data access behavior information on the solid state drive;
[0084] A prediction unit, configured to predict a user's behavior pattern based on the data access behavior information;
[0085] A determination unit, configured to determine a pre-reading strategy of the solid state drive according to the predicted behavior pattern;
[0086] The pre-reading unit is used to control the solid state drive to pre-read resources based on the pre-reading strategy.
[0087] In one embodiment, obtaining the user's data access behavior information for the solid state drive includes:
[0088] Obtaining the user's initial data access behavior information for the solid state drive;
[0089] filtering noise data in the initial data access behavior information;
[0090] The initial data access behavior information after filtering out noise data is preprocessed to obtain the data access behavior information.
[0091] In one embodiment, the preprocessing of the initial data access behavior information after filtering out the noise data includes:
[0092] The initial data access behavior information after filtering out noise data is normalized and deduplicated.
[0093] In one embodiment, predicting the user's behavior pattern based on the data access behavior information includes:
[0094] The user's behavior pattern is predicted based on the data access behavior information through a pre-trained prediction model.
[0095] In one embodiment, determining the pre-reading strategy of the solid state drive according to the predicted behavior pattern includes:
[0096] Obtaining a preset matching relationship;
[0097] A pre-reading strategy matching the behavior pattern is acquired based on the matching relationship.
[0098] In one embodiment, controlling the solid state drive to pre-read resources based on the pre-reading strategy includes:
[0099] Determining whether the conditions of the pre-reading strategy are met;
[0100] If the condition of the pre-reading strategy is met, the resource is pre-read from the solid state drive according to the pre-reading strategy.
[0101] In one embodiment, the solid-state hard disk intelligent pre-reading device adaptive to user behavior further includes:
[0102] A cache management unit, used to manage cache data of the solid state drive through a preset intelligent cache management system;
[0103] A resource scheduling unit, used for optimizing resource allocation of the solid state drive through a preset resource scheduler;
[0104] The energy consumption optimization unit is used to optimize the energy consumption of the solid state drive through a preset energy consumption optimizer.
[0105] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned solid-state hard disk intelligent pre-reading device and each unit that is adaptive to user behavior can refer to the corresponding description in the aforementioned method embodiment. For the convenience and conciseness of the description, it will not be repeated here.
[0106] The above-mentioned intelligent pre-reading device for solid-state hard disks that adapts to user behavior can be implemented in the form of a computer program. The computer program can be used in Figure 3 Runs on the computer device shown.
[0107] See also Figure 3 , Figure 3 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.
[0108] The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0109] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a solid state drive intelligent pre-reading method that is adaptive to user behavior.
[0110] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0111] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a solid state hard disk intelligent pre-reading method that is adaptive to user behavior.
[0112] The network interface 505 is used to communicate with other devices over the network. Those skilled in the art will appreciate that the above structure is only a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device 500 to which the present application solution is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0113] The processor 502 is used to run a computer program 5032 stored in the memory to implement the following steps of a solid state drive intelligent pre-reading method that is adaptive to user behavior:
[0114] Obtaining user data access behavior information on solid-state drives;
[0115] predicting a user's behavior pattern based on the data access behavior information;
[0116] Determining a pre-reading strategy for the solid state drive according to the predicted behavior pattern;
[0117] The solid state drive is controlled to pre-read resources based on the pre-reading strategy.
[0118] In one embodiment, obtaining the user's data access behavior information for the solid state drive includes:
[0119] Obtaining the user's initial data access behavior information for the solid state drive;
[0120] filtering noise data in the initial data access behavior information;
[0121] The initial data access behavior information after filtering out noise data is preprocessed to obtain the data access behavior information.
[0122] In one embodiment, the preprocessing of the initial data access behavior information after filtering out the noise data includes:
[0123] The initial data access behavior information after filtering out noise data is normalized and deduplicated.
[0124] In one embodiment, predicting the user's behavior pattern based on the data access behavior information includes:
[0125] The user's behavior pattern is predicted based on the data access behavior information through a pre-trained prediction model.
[0126] In one embodiment, determining the pre-reading strategy of the solid state drive according to the predicted behavior pattern includes:
[0127] Obtaining a preset matching relationship;
[0128] A pre-reading strategy matching the behavior pattern is acquired based on the matching relationship.
[0129] In one embodiment, controlling the solid state drive to pre-read resources based on the pre-reading strategy includes:
[0130] Determining whether the conditions of the pre-reading strategy are met;
[0131] If the condition of the pre-reading strategy is met, the resource is pre-read from the solid state drive according to the pre-reading strategy.
[0132] In one embodiment, the method further comprises:
[0133] Managing cache data of the solid state drive through a preset intelligent cache management system;
[0134] Optimizing resource allocation of the solid state drive through a preset resource scheduler;
[0135] The energy consumption of the solid state drive is optimized by a preset energy consumption optimizer.
[0136] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0137] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0138] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the following steps of a solid-state hard disk intelligent pre-reading method that is adaptive to user behavior:
[0139] Obtaining user data access behavior information on solid-state drives;
[0140] predicting a user's behavior pattern based on the data access behavior information;
[0141] Determining a pre-reading strategy for the solid state drive according to the predicted behavior pattern;
[0142] The solid state drive is controlled to pre-read resources based on the pre-reading strategy.
[0143] In one embodiment, obtaining the user's data access behavior information for the solid state drive includes:
[0144] Obtaining the user's initial data access behavior information for the solid state drive;
[0145] filtering noise data in the initial data access behavior information;
[0146] The initial data access behavior information after filtering out noise data is preprocessed to obtain the data access behavior information.
[0147] In one embodiment, the preprocessing of the initial data access behavior information after filtering out the noise data includes:
[0148] The initial data access behavior information after filtering out noise data is normalized and deduplicated.
[0149] In one embodiment, predicting the user's behavior pattern based on the data access behavior information includes:
[0150] The user's behavior pattern is predicted based on the data access behavior information through a pre-trained prediction model.
[0151] In one embodiment, determining the pre-reading strategy of the solid state drive according to the predicted behavior pattern includes:
[0152] Obtaining a preset matching relationship;
[0153] A pre-reading strategy matching the behavior pattern is acquired based on the matching relationship.
[0154] In one embodiment, controlling the solid state drive to pre-read resources based on the pre-reading strategy includes:
[0155] Determining whether the conditions of the pre-reading strategy are met;
[0156] If the condition of the pre-reading strategy is met, the resource is pre-read from the solid state drive according to the pre-reading strategy.
[0157] In one embodiment, the method further comprises:
[0158] Managing cache data of the solid state drive through a preset intelligent cache management system;
[0159] Optimizing resource allocation of the solid state drive through a preset resource scheduler;
[0160] The energy consumption of the solid state drive is optimized by a preset energy consumption optimizer.
[0161] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes. The computer-readable storage medium can be non-volatile or volatile.
[0162] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0163] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0164] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0165] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0166] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0167] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0168] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A solid state hard disk intelligent pre-reading method that is adaptive to user behavior, characterized in that: include: Obtaining user data access behavior information on solid-state drives; predicting a user's behavior pattern based on the data access behavior information; Determining a pre-reading strategy for the solid state drive according to the predicted behavior pattern; The solid state drive is controlled to pre-read resources based on the pre-reading strategy.
2. The method for intelligent pre-reading of a solid-state hard disk based on adaptive user behavior according to claim 1, characterized in that: The obtaining of the user's data access behavior information for the solid state drive includes: Obtaining the user's initial data access behavior information for the solid state drive; filtering noise data in the initial data access behavior information; The initial data access behavior information after filtering out noise data is preprocessed to obtain the data access behavior information.
3. The method for intelligent pre-reading of a solid state hard disk based on adaptive user behavior according to claim 2, characterized in that: The preprocessing of the initial data access behavior information after filtering out the noise data includes: The initial data access behavior information after filtering out noise data is normalized and deduplicated.
4. The method for intelligent pre-reading of a solid-state hard disk based on adaptive user behavior according to claim 1, characterized in that: The predicting of the user's behavior pattern based on the data access behavior information includes: The user's behavior pattern is predicted based on the data access behavior information through a pre-trained prediction model.
5. The method for intelligent pre-reading of a solid-state hard disk based on adaptive user behavior according to claim 1, characterized in that: Determining the pre-reading strategy of the solid state drive according to the predicted behavior pattern includes: Obtaining a preset matching relationship; A pre-reading strategy matching the behavior pattern is acquired based on the matching relationship.
6. The method for intelligent pre-reading of a solid-state hard disk based on adaptive user behavior according to claim 1, characterized in that: The controlling the solid state drive to pre-read resources based on the pre-reading strategy includes: Determining whether the conditions of the pre-reading strategy are met; If the condition of the pre-reading strategy is met, the resource is pre-read from the solid state drive according to the pre-reading strategy.
7. The method for intelligent pre-reading of a solid-state hard disk based on adaptive user behavior according to claim 1, characterized in that: The method further comprises: Managing cache data of the solid state drive through a preset intelligent cache management system; Optimizing resource allocation of the solid state drive through a preset resource scheduler; The energy consumption of the solid state drive is optimized by a preset energy consumption optimizer.
8. A solid state hard disk intelligent pre-reading device that is adaptive to user behavior, characterized in that: The method comprises a unit for executing the method according to any one of claims 1 to 7.
9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 can be implemented.