Mapping data transfer control method and device, storage medium and electronic equipment
By predicting the task load status of the storage server and generating target transfer parameters, the problem of low matching between task load pressure and transfer parameters in the storage server is solved, more efficient data transfer control is achieved, and the performance of the storage server is improved. efficiency.
Patent Information
- Application Number
- CN202411162665.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-11-01
AI Technical Summary
In the existing cache management strategy, the task load pressure matches the transfer parameters in the storage server, resulting in limited performance optimization, and the inability to adapt to changes in the storage server in real time, making it difficult to tune, affecting the performance and efficiency of the storage server.
By collecting the mapping data of the storage server, using parameters and cache parameters, predicting the task load status and generating matching target transfer parameters, the cache device controls the mapping data to the storage device, ensuring that the task load pressure is greater than the target threshold before the task load pressure is greater than the target threshold. To avoid data loss and load pressure increase.
The task load pressure and transfer parameters matching the task load pressure of the storage server performing data input and output tasks is improved, and unnecessary downsplash operations and insufficient cache utilization are avoided, and the performance and efficiency of the storage server are improved.
Smart Images

Figure CN118885299A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computers, and in particular, to a method and device for controlling the transfer of mapping data, a storage medium, and an electronic device. Background Art
[0002] Driven by big data and cloud computing technologies, storage servers have an increasing demand for high performance and high availability of massive data. Thin volumes are widely used in user tasks due to their flexibility and cost-effectiveness. However, thin volumes need to store a large amount of metadata (also known as mapping data) to achieve address mapping, which is crucial for fast access to user data. To improve performance, metadata is usually cached in memory, but the limited capacity and volatility of memory require that metadata must be written to the hard disk and eliminated from memory in a timely manner.
[0003] Existing cache management strategies, such as the cache water level-based flushing algorithm, have solved the problem of fast access to metadata to a certain extent, but they usually rely on preset transfer thresholds (a transfer parameter), which have a low matching degree with the load pressure of actual I / O tasks (data input and output tasks), resulting in limitations in performance optimization. They cannot adapt to changes in storage servers in real time, lack sensitivity to I / O behavior, and are difficult to tune. These limitations make it difficult to determine the optimal transfer threshold under different system task loads (load pressure of executing I / O tasks) and data access modes, affecting the performance and efficiency of storage servers. During peak hours, a fixed transfer threshold may lead to unnecessary flushing operations (also known as transfer operations), increasing the I / O burden; while during trough hours, setting the threshold too high may lead to insufficient cache utilization. Therefore, the current transfer threshold based on artificial presets has poor flexibility and cannot adapt to the changing storage server requirements and load pressure.
[0004] In the related art, there is no effective solution to the problem that the task load pressure of the storage server performing data input and output tasks is not well matched with the transfer parameters used. Summary of the invention
[0005] The embodiments of the present application provide a mapping data transfer control method and device, a storage medium and an electronic device to at least solve the problem in the related art that the task load pressure of the storage server performing data input and output tasks is not well matched with the transfer parameters used.
[0006] According to an embodiment of the present application, a method for controlling the transfer of mapping data is provided. A processor, a cache device and a storage device are deployed in a storage server. The cache device caches mapping data. The mapping data is used to provide a mapping relationship between a logical address of a logical space and a physical address of a physical space when the storage server performs a data input and output task. The logical space is a space that allows users to access, and the physical space is a space that actually stores data. The method is applied to the processor, and the method includes:
[0007] Collecting the current mapping data usage parameters and mapping data cache parameters of the storage server, wherein the mapping data usage parameters are used to indicate the current usage of the mapping data by the storage server, and the mapping data cache parameters are used to indicate the current cache status of the mapping data by the cache device;
[0008] Predicting a task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter, wherein the task load state is used to indicate a possibility that a task load pressure of the storage server performing the data input and output task after a first time period is greater than a target pressure threshold;
[0009] In a case where the possibility indicated by the task load state is greater than a target possibility, generating a target transfer parameter matching the task load state, wherein the target transfer parameter is used to accelerate the transfer of the mapping data in the cache device to the storage device before the first duration is reached;
[0010] The cache device is controlled to transfer the mapping data to the storage device according to the target transfer parameter.
[0011] Optionally, predicting the task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter includes:
[0012] Inputting the mapping data usage parameter and the mapping data cache parameter into a target state prediction model, wherein the target state prediction model is obtained by training an initial state prediction model using target training samples annotated with probability labels, the target training samples include mapping data usage parameter samples and mapping data cache parameter samples, and the probability labels are used to indicate the possibility that the task load pressure of the storage server performing the data input and output task after the first duration under the corresponding mapping data usage parameter samples and mapping data cache parameter samples is greater than the target pressure threshold;
[0013] The task load state is generated according to the predicted probability output by the target state prediction model.
[0014] Optionally, generating a target transfer parameter matching the task load state includes:
[0015] The task load state is input into a target parameter generation model, wherein the target parameter generation model is obtained by training an initial parameter generation model using a task load state sample annotated with a transfer parameter label, and the higher the probability indicated by the task load state sample, the faster the corresponding transfer parameter label is used to transfer the mapping data in the cache device to the storage device;
[0016] The transfer parameter output by the target parameter generation model is determined as the target transfer parameter.
[0017] Optionally, generating a target transfer parameter matching the task load state includes at least one of the following:
[0018] The transfer threshold parameter currently used by the cache device is reduced by a first target value to obtain a target transfer threshold parameter, wherein the higher the probability is, the larger the first target value is, and the cache device is configured to trigger a transfer operation when the amount of cached mapping data is greater than the transfer threshold parameter, and the transfer operation is an operation of transferring mapping data from the cache device to the storage device, and the target transfer parameter includes the target transfer threshold parameter;
[0019] The concurrency parameter currently used by the cache device is increased by a second target value to obtain a target concurrency parameter, wherein the higher the possibility is, the larger the second target value is, and the concurrency parameter is the maximum amount of data allowed for a single transfer during a transfer operation, and the transfer operation is an operation of transferring the mapped data from the cache device to the storage device, and the target transfer parameter includes the target concurrency parameter.
[0020] Optionally, after collecting the current mapping data usage parameters and mapping data cache parameters of the storage server, the method further includes:
[0021] detecting, based on the mapping data usage parameter and the mapping data cache parameter, an abnormal possibility that the storage server is in an abnormal state after a second period of time;
[0022] When it is detected that the abnormality possibility is greater than the target abnormality possibility, the mapping data cached in the cache device is immediately transferred to the storage device.
[0023] Optionally, a data input / output software stack and a thin volume are running on the processor, the storage server performs the input / output task through the data input / output software stack, the thin volume is used to provide the logical address for the data input / output software stack to access the data actually stored in the physical address when performing the input / output task, and the collecting of the current mapping data usage parameters and mapping data cache parameters of the storage server includes:
[0024] In the process of the data input and output software stack executing the input and output task, the current mapping data usage parameters and mapping data cache parameters of the storage server are collected through the thin volume.
[0025] Optionally, collecting the current mapping data usage parameters and mapping data cache parameters of the storage server through the thin volume includes:
[0026] The storage server's current mapping data storage parameters, mapping data time parameters, mapping data level parameters, mapping data call parameters, mapping data disk reading parameters, and mapping data access parameters are collected through the thin volume, and the mapping data storage parameters, the mapping data time parameters, the mapping data level parameters, the mapping data call parameters, the mapping data disk reading parameters, and the mapping data access parameters are determined as the mapping data usage parameters, wherein the mapping data storage parameters are used to indicate whether the mapping data used in the process of the storage server currently executing the input and output tasks is in the cache device, and the mapping data time parameters are used to indicate whether the mapping data used in the process of the storage server currently executing the input and output tasks is in the cache device. The last usage time, the mapping data level parameter is used to indicate the level of the mapping data on the B+ tree used by the storage server in the process of currently executing the input and output task, the mapping data call parameter is used to indicate the number of times the mapping data used by the storage server in the process of currently executing the input and output task is called, the mapping data disk read parameter is used to indicate that the mapping data used by the storage server in the process of currently executing the input and output task is obtained by reading the disk from the storage device and the number of disk reads is the target number, and the mapping data access parameter is used to indicate that the mapping data used by the storage server in the process of currently executing the input and output task is obtained by reading the disk from the storage device and the access time of the disk read is the third time length;
[0027] The current cache usage parameter, resource application time parameter, resource application quantity parameter, transfer threshold parameter, transfer delay parameter and concurrency parameter of the storage server are collected through the thin volume, and the cache usage parameter, the resource application time parameter, the resource application quantity parameter, the transfer threshold parameter, the transfer delay parameter and the concurrency parameter are determined as the mapping data cache parameter, wherein the cache usage parameter is used to indicate the amount of mapping data currently cached by the cache device, the resource application time parameter is used to indicate the time consumed by the cache device to apply for resources when currently caching the mapping data, the resource application quantity parameter is used to indicate the amount of resources applied by the cache device when currently caching the mapping data, the cache device is configured to trigger a transfer operation when the amount of cached mapping data is greater than the transfer threshold parameter, the transfer operation is an operation of transferring mapping data from the cache device to the storage device, the transfer delay parameter is used to indicate the time delay of the cache device currently performing the transfer operation on the mapping data, and the concurrency parameter is the maximum amount of data allowed to be transferred at a single time during the transfer operation.
[0028] According to another embodiment of the embodiment of the present application, a mapping data transfer control device is further provided. A processor, a cache device and a storage device are deployed in a storage server. The cache device caches mapping data. The mapping data is used to provide a mapping relationship between a logical address of a logical space and a physical address of a physical space when the storage server performs a data input and output task. The logical space is a space that allows users to access, and the physical space is a space that actually stores data. The device is applied to the processor, and the device includes:
[0029] A collection module, used to collect the current mapping data usage parameters and mapping data cache parameters of the storage server, wherein the mapping data usage parameters are used to indicate the current usage of the mapping data by the storage server, and the mapping data cache parameters are used to indicate the current cache status of the mapping data by the cache device;
[0030] a prediction module, configured to predict a task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter, wherein the task load state is used to indicate a possibility that a task load pressure of the storage server performing the data input and output task after a first time period is greater than a target pressure threshold;
[0031] A generating module, configured to generate a target transfer parameter matching the task load state when the possibility indicated by the task load state is greater than a target possibility, wherein the target transfer parameter is used to accelerate the transfer of the mapping data in the cache device to the storage device before the first duration is reached;
[0032] The transfer module is used to control the cache device to transfer the mapping data to the storage device according to the target transfer parameter.
[0033] According to another embodiment of the present application, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to perform the steps in any of the above method embodiments.
[0034] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0035] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0036] In an embodiment of the present application, the present application proposes a method for controlling the transfer of mapping data. A processor, a cache device and a storage device are deployed in a storage server. The mapping data is cached in the cache device. The mapping data is used to provide a mapping relationship between a logical address of a logical space and a physical address of a physical space when the storage server performs data input and output tasks. The logical space is a space that allows users to access, and the physical space is a space that actually stores data. The processor first collects the current mapping data usage parameters and mapping data cache parameters of the storage server. Since the mapping data usage parameters can indicate the current usage of the mapping data by the storage server, and the mapping data cache parameters can indicate the current caching of the mapping data by the cache device; therefore, the processor can predict the task load status of the storage server based on the mapping data usage parameters and the mapping data cache parameters, and indicates through the task load status that the task load pressure of the storage server to perform the data input and output tasks after the first period of time is greater than the target The possibility of the pressure threshold; and then, when the possibility indicated by the task load state is greater than the target possibility, the processor generates a target transfer parameter matching the task load state, wherein the target transfer parameter is used to accelerate the transfer of the mapping data in the cache device to the storage device before the first duration is reached; finally, the processor controls the cache device to transfer the mapping data to the storage device according to the target transfer parameter, and the target transfer parameter generated in the above manner is generated based on the task load state, so the cache device is controlled to transfer the mapping data to the storage device according to the target transfer parameter, which can ensure that before the task load pressure of the data input and output task is greater than the target pressure threshold, the mapping data in the cache device is accelerated to be transferred to the storage device in advance, which not only avoids the loss of mapping data, but also avoids the problem of further increase in task load pressure caused by transferring mapping data only when the task load pressure of the data input and output task is greater than the target pressure threshold. The above technical solution solves the problem that the task load pressure of the storage server performing the data input and output task is low in matching with the transfer parameters used in the related technology, and achieves the technical effect of improving the matching degree between the task load pressure of the storage server performing the data input and output task and the transfer parameters used. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a hardware structure block diagram of a computer device of a mapping data transfer control method according to an embodiment of the present application;
[0038] Figure 2 is a flow chart of a method for controlling the transfer of mapping data according to an embodiment of the present application;
[0039] Figure 3 is a schematic diagram of a storage server according to an embodiment of the present application;
[0040] Figure 4 is a schematic diagram of a target state prediction model and a target parameter generation model according to an embodiment of the present application;
[0041] Figure 5 is a schematic diagram of a target model according to an embodiment of the present application;
[0042] Figure 6 is a schematic diagram of integration of a target model and a storage system according to an embodiment of the present application;
[0043] Figure 7 is a structural block diagram of a mapping data transfer control device according to an embodiment of the present application;
[0044] Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0045] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0046] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0047] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a computer device of a mapping data transfer control method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0048] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the transfer control method of mapping data in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0049] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0050] In this embodiment, a method for controlling the transfer of mapping data is provided. Figure 2 is a flow chart of a method for controlling the transfer of mapping data according to an embodiment of the present application. Figure 2 As shown, a processor, a cache device and a storage device are deployed in the storage server, and mapping data is cached in the cache device. The mapping data is used to provide a mapping relationship between a logical address of a logical space and a physical address of a physical space when the storage server performs a data input and output task. The logical space is a space that allows users to access, and the physical space is a space that actually stores data. The method is applied to the processor, and the process includes the following steps:
[0051] Step S12, collecting the current mapping data usage parameters and mapping data cache parameters of the storage server, wherein the mapping data usage parameters are used to indicate the current usage of the mapping data by the storage server, and the mapping data cache parameters are used to indicate the current cache status of the mapping data by the cache device;
[0052] Step S14, predicting a task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter, wherein the task load state is used to indicate a possibility that a task load pressure of the storage server performing the data input and output task after a first time period is greater than a target pressure threshold;
[0053] Step S16, generating a target transfer parameter matching the task load state when the possibility indicated by the task load state is greater than the target possibility, wherein the target transfer parameter is used to accelerate the transfer of the mapping data in the cache device to the storage device before the first duration is reached;
[0054] Step S18: controlling the cache device to transfer the mapping data to the storage device according to the target transfer parameter.
[0055] Optionally, in this embodiment, Figure 3 is a schematic diagram of a storage server according to an embodiment of the present application, such as Figure 3 As shown, a processor, a cache device and a storage device are deployed in the storage server. The mapping data is cached in the cache device. The mapping data can be but is not limited to metadata. The mapping data is used to provide a mapping relationship between a logical address of a logical space and a physical address of a physical space when the storage server performs a data input and output task. The logical address is provided to the user through a thin volume. The thin volume is a part of the storage system. The storage system runs on the processor of the storage server. The thin volume is used to provide the logical address to access the data actually stored in the physical address when the data input and output software stack (IO software stack) performs the input and output task (IO task (IO, Input / Output)). The thin volume can dynamically increase the storage space according to the actual capacity used by the user. In addition to storing user data, the thin volume also requires metadata to realize address mapping. Fast access to metadata is crucial to performance. To prevent performance bottlenecks, frequently used metadata is cached in the memory (equivalent to the above-mentioned cache device), which is called metadata cache. However, due to the limited and volatile memory capacity, the metadata in the memory needs to be written to the hard disk and eliminated in a timely manner. This process is called metadata flushing (equivalent to the above-mentioned transfer) and elimination (an operation to delete metadata in the cache device). Metadata caching can improve access speed and reduce the time consumed by hard disk access. However, when there is too much metadata cached in the memory, it is necessary to apply for new memory to store metadata, which requires flushing and eliminating the existing metadata first, increasing IO waiting time and reducing performance. Therefore, metadata flushing and elimination strategies become particularly important, but these strategies usually rely on experience and lack fixed patterns.
[0056] In the related art, the cache management of metadata in the storage system mainly adopts the cache water level-based flushing algorithm and the time delay-based flushing concurrency control algorithm. The cache water level flushing algorithm dynamically adjusts the update frequency according to the cache usage, while the time delay flushing concurrency control optimizes the cache data flushing operation by calculating the average completion time delay of the flushing task to reduce the I / O bottleneck.
[0057] The limitations of related technologies are: 1. Limitations of static thresholds: Relying on preset thresholds, it may not be suitable for all situations, and the optimal threshold changes with system load and task requirements. 2. Unable to adapt to system changes in real time: Fixed thresholds or empirical values cannot respond to system load fluctuations, which may lead to unnecessary flushing operations or low cache utilization. 3. Lack of sensitivity to I / O behavior: Failure to consider I / O behavior may lead to increased burden under high pressure or miss the best flushing time under low pressure. 4. Difficult to tune: Appropriate thresholds or empirical values require repeated trials and continuous monitoring and adjustment, which is challenging in a production environment.
[0058] In view of the above problems existing in the related art, the present application proposes a mapping data transfer control method, which predicts the task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter, and generates a target transfer parameter matching the task load state when the possibility indicated by the task load state is greater than the target possibility. Since the target transfer parameter generated in the above manner is generated based on the task load state, the cache device is controlled to transfer the mapping data to the storage device according to the target transfer parameter, which can ensure that before the task load pressure of the data input and output task is greater than the target pressure threshold, the mapping data in the cache device is accelerated to be transferred to the storage device in advance, which not only avoids the loss of mapping data, but also avoids the problem of further increase in task load pressure caused by transferring mapping data only when the task load pressure of the data input and output task is greater than the target pressure threshold. The above technical solution solves the problem that the task load pressure of the storage server performing the data input and output task is low in matching with the transfer parameters used in the related art, and achieves the technical effect of improving the matching degree between the task load pressure of the storage server performing the data input and output task and the transfer parameters used.
[0059] As an optional solution, predicting the task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter includes:
[0060] S21, inputting the mapping data usage parameter and the mapping data cache parameter into a target state prediction model, wherein the target state prediction model is obtained by training an initial state prediction model using target training samples annotated with probability labels, the target training samples include mapping data usage parameter samples and mapping data cache parameter samples, and the probability labels are used to indicate the possibility that the task load pressure of the storage server performing the data input and output task after the first duration under the corresponding mapping data usage parameter samples and mapping data cache parameter samples is greater than the target pressure threshold;
[0061] S22, generating the task load state according to the prediction probability output by the target state prediction model.
[0062] Optionally, in this embodiment, the task load state in this application is predicted based on the mapping data usage parameters and the mapping data cache parameters, and the target state prediction model performs the prediction task. The target state prediction model can be but is not limited to a model with powerful data analysis, prediction and problem-solving capabilities. This application integrates the target state prediction model into the storage system, and the target state prediction model is deployed locally to meet the high real-time requirements of the storage system.
[0063] Optionally, in this embodiment, the target state prediction model can be, but is not limited to, obtained by specialized training and fine-tuning of models such as Gemma2-9B, Qwen2-7B, GLM-4-9B, and CPM-Bee-10B.
[0064] As an optional solution, generating a target transfer parameter matching the task load state includes:
[0065] S31, inputting the task load state into a target parameter generation model, wherein the target parameter generation model is obtained by training an initial parameter generation model using task load state samples annotated with transfer parameter labels, and the higher the probability indicated by the task load state samples, the faster the corresponding transfer parameter labels are used to transfer the mapping data in the cache device to the storage device;
[0066] S32, determining the transfer parameter output by the target parameter generation model as the target transfer parameter.
[0067] Optionally, in this embodiment, the target transfer parameters in this application are generated based on the task load status, and the target parameter generation model executes the generation task. The target parameter generation model can be but is not limited to a model with powerful data analysis, prediction and problem-solving capabilities. This application integrates the target parameter generation model into the storage system, and the target parameter generation model is deployed locally to meet the higher real-time requirements of the storage system.
[0068] Optionally, in this embodiment, the target parameter generation model can be, but is not limited to, obtained by specialized training and fine-tuning of models such as Gemma2-9B, Qwen2-7B, GLM-4-9B, and CPM-Bee-10B.
[0069] Optionally, in this embodiment, Figure 4 is a schematic diagram of a target state prediction model and a target parameter generation model according to an embodiment of the present application, such as Figure 4 As shown, the above S21 to S21 record a method of predicting the task load state of the storage server according to the mapping data usage parameters and the mapping data cache parameters through the target state prediction model, and the above S31 to S31 record a method of generating target transfer parameters according to the task load state output by the target state prediction model through the target parameter generation model. Figure 5 is a schematic diagram of a target model according to an embodiment of the present application, such as Figure 5 As shown, another method is to directly input the mapping data usage parameter and the mapping data cache parameter into the target model to obtain the target transfer parameter output by the target model, wherein the target model is obtained by training the initial model using a reference training sample labeled with a transfer parameter label, and the reference training sample includes a mapping data usage parameter sample and a mapping data cache parameter sample, that is, the target model directly provides the target transfer parameter, and does not first provide the task load status and then generate the target transfer parameter based on the task load status. In the case of using the target model to generate the target transfer parameter, Figure 4 The target state prediction model and target parameter generation model in are equivalent to two sub-models of the target model, or two network layers of the target model. The target transfer parameters can be generated by the above two methods, which increases the flexibility of generating target transfer parameters.
[0070] As an optional solution, generating a target transfer parameter matching the task load state includes at least one of the following:
[0071] S41, reducing the transfer threshold parameter currently used by the cache device by a first target value to obtain a target transfer threshold parameter, wherein the higher the probability, the larger the first target value, the cache device is configured to trigger a transfer operation when the amount of cached mapping data is greater than the transfer threshold parameter, the transfer operation is an operation of transferring mapping data from the cache device to the storage device, and the target transfer parameter includes the target transfer threshold parameter;
[0072] S42, increase the concurrency parameter currently used by the cache device by a second target value to obtain a target concurrency parameter, wherein the higher the possibility, the larger the second target value, and the concurrency parameter is the maximum amount of data allowed for a single transfer during the transfer operation, and the transfer operation is an operation of transferring the mapped data from the cache device to the storage device, and the target transfer parameter includes the target concurrency parameter.
[0073] Optionally, in this embodiment, the target transfer parameter may include, but is not limited to, a target transfer threshold parameter and / or a target concurrency parameter. The above S31 to S31 record the method of generating the target transfer parameter by the target parameter generation model according to the task load state output by the target state prediction model. The transfer threshold parameter and concurrency parameter currently used by the cache device may also be adjusted by an algorithm to obtain the target transfer threshold parameter and the target concurrency parameter.
[0074] As an optional solution, after collecting the current mapping data usage parameters and mapping data cache parameters of the storage server, the method further includes:
[0075] S51, detecting the possibility that the storage server is in an abnormal state after a second period of time according to the mapping data usage parameter and the mapping data cache parameter;
[0076] S52: When it is found that the abnormality possibility is greater than the target abnormality possibility, the mapping data cached in the cache device is immediately transferred to the storage device.
[0077] Optionally, in this embodiment, the task load state can be predicted based on the mapping data usage parameters and mapping data cache parameters through the target state prediction model, but not limited to. When the task load state is greater than a certain threshold, it can be determined that the storage server will be in an abnormal state after the second time period. Since the cache device is a volatile storage device, when the storage server is powered off / abnormal, the mapping data in the cache device may be lost, so it is necessary to immediately transfer the mapping data cached in the cache device to the storage device. The storage device is a non-volatile storage device, and the data stored therein will not be lost even when the storage server is powered off / abnormal.
[0078] As an optional solution, a data input / output software stack and a thin volume are run on the processor, the storage server performs the input / output task through the data input / output software stack, the thin volume is used to provide the logical address for the data input / output software stack to access the data actually stored in the physical address when performing the input / output task, and the collecting of the current mapping data usage parameters and mapping data cache parameters of the storage server includes:
[0079] S61, in the process of the data input and output software stack executing the input and output task, collecting the current mapping data usage parameters and mapping data cache parameters of the storage server through the thin volume.
[0080] Optionally, in this embodiment, Figure 6 is a schematic diagram of integrating a target model with a storage system according to an embodiment of the present application, such as Figure 6 As shown, processors, cache devices and storage devices are deployed in the storage server. A storage system runs on the processor. The storage system includes a data input and output software stack (IO software stack) and a thin volume. The storage system performs input and output tasks through the data input and output software stack. During this process, the thin volume provides the logical address to access the data actually stored in the physical address. The thin volume stores logical addresses, and the hard disk (storage device) stores physical space. The data input and output software stack needs to obtain the mapping relationship between the logical address and the physical address of the physical space to perform input and output tasks. The mapping relationship is indicated by metadata. This solution integrates the model (target model, or target state prediction model + target parameter generation model) into the storage system, and also loads the model into the memory and initializes it when the storage system is started and initialized; the relationship between the storage system's IO software stack and the model is as shown in the figure. Figure 6 As shown in the figure, the model is independent of the IO software stack. The purpose is to reduce the impact on basic IO functions and to facilitate subsequent upgrades of the model itself. Each part of the IO software stack communicates with the model through the message mechanism of the storage system. The IO software stack can package the current internal statistical information and resource usage status (the current mapping data usage parameters and mapping data cache parameters of the storage server) and send them to the model through messages. The model uses the message as the model input, then runs the inference to generate output, and then returns the result to the IO module through the message (target transfer parameter). If the CPU is used for model inference, it will consume a lot of CPU computing power and seriously affect IO performance. In addition, the CPU is not efficient for inference, so it is necessary to add a dedicated NPU or GPU module to the system to perform model inference tasks.
[0081] As an optional solution, collecting the current mapping data usage parameters and mapping data cache parameters of the storage server through the thin volume includes:
[0082] S71, collecting the current mapping data storage parameters, mapping data time parameters, mapping data level parameters, mapping data call parameters, mapping data disk reading parameters and mapping data access parameters of the storage server through the thin volume, and determining the mapping data storage parameters, the mapping data time parameters, the mapping data level parameters, the mapping data call parameters, the mapping data disk reading parameters and the mapping data access parameters as the mapping data usage parameters, wherein the mapping data storage parameters are used to indicate whether the mapping data used in the process of the storage server currently executing the input and output tasks is in the cache device, and the mapping data time parameters are used to indicate whether the mapping data used in the process of the storage server currently executing the input and output tasks is in the cache device. The last time the data was used, the mapping data level parameter is used to indicate the level of the mapping data on the B+ tree used by the storage server in the process of currently executing the input and output task, the mapping data call parameter is used to indicate the number of times the mapping data used by the storage server in the process of currently executing the input and output task is called, the mapping data disk read parameter is used to indicate that the mapping data used by the storage server in the process of currently executing the input and output task is obtained by reading the disk from the storage device and the number of disk reads is the target number, and the mapping data access parameter is used to indicate that the mapping data used by the storage server in the process of currently executing the input and output task is obtained by reading the disk from the storage device and the access time of the disk read is the third time length;
[0083] S72, collecting the current cache usage parameter, resource application time parameter, resource application quantity parameter, transfer threshold parameter, transfer delay parameter and concurrency parameter of the storage server through the thin volume, and determining the cache usage parameter, the resource application time parameter, the resource application quantity parameter, the transfer threshold parameter, the transfer delay parameter and the concurrency parameter as the mapping data cache parameter, wherein the cache usage parameter is used to indicate the amount of mapping data currently cached by the cache device, the resource application time parameter is used to indicate the time consumed by the cache device to apply for resources when currently caching the mapping data, the resource application quantity parameter is used to indicate the amount of resources applied by the cache device when currently caching the mapping data, the cache device is configured to trigger a transfer operation when the amount of cached mapping data is greater than the transfer threshold parameter, the transfer operation is an operation of transferring mapping data from the cache device to the storage device, the transfer delay parameter is used to indicate the time delay of the cache device currently performing the transfer operation on the mapping data, and the concurrency parameter is the maximum amount of data allowed for a single transfer during the execution of the transfer operation.
[0084] Optionally, in this embodiment, during the training / use phase of the model (target state prediction model / target model), it is necessary to collect data of the storage system on the storage server (mapping data usage parameters and mapping data cache parameters). The model trained using these data can learn the relationship between the current usage of mapping data by the storage server, the current caching of mapping data by the cache device, and the transfer parameters.
[0085] The data that needs to be collected should include the load pressure of IO tasks, bandwidth, time delay, metadata cache usage in the storage system, metadata usage distribution, the correspondence between IO addresses and metadata, metadata refresh threshold, metadata refresh concurrency, refresh time delay, etc.
[0086] Data (mapping data usage parameters and mapping data cache parameters) collection method: add the required data statistics function inside the corresponding module, collect relevant information and send it to the performance statistics module to record it. For example, the statistics module that adds data statistics function in the thin volume module can know the read and write type, size, IO task address, etc. of the IO task when receiving the IO task; after operating the metadata inside the thin volume, it can know the metadata address corresponding to the IO task address, whether the metadata is in the cache (mapping data storage parameter), the last time the metadata was used (mapping data time parameter), the level of the metadata on the B+ tree (mapping data level parameter), the number of times the metadata is used (mapping data call parameter), if the metadata is read from the disk, it is necessary to record the number of disk reads (mapping data disk read parameters), the access time of disk reads (mapping data access parameters), etc.; it is also necessary to record the current system metadata cache usage (cache usage parameter), the average waiting time for metadata resource application (resource application time parameter), the number of resource application waiting (resource application number parameter), the metadata flush threshold (transfer threshold parameter), the current metadata flush time delay (transfer delay parameter) and the concurrency (concurrency parameter). After the IO is processed internally in the thin volume module, it is sent to the lower-level module until it is returned to the disk. The time delay from the IO being sent to the IO being returned needs to be recorded. The number of IOs reaching the thin volume and the total bandwidth need to be counted in seconds.
[0087] After the statistics are completed, the corresponding data can be compressed and packaged in a specific format and temporarily stored in the memory and written to the file at regular intervals. The statistical module is run to collect statistical data to train and fine-tune the model to obtain the target state prediction model / target model. The statistical module can also be used to collect the current data of the storage server to predict the task load status in real time and generate target transfer parameters.
[0088] It should be noted that the mapping data transfer control method proposed in the present application is executed by the processor in the storage server, and the dynamic flush control of the metadata cache is realized by means of the model (target model, or target state prediction model + target parameter generation model). The thin volume module sends the statistical IO information, metadata information, metadata resource usage, current metadata flush time delay, etc. (equivalent to the current mapping data usage parameters and mapping data cache parameters of the storage server) to the model. After the model is inferred, the prediction result (task load status) of the next IO behavior and system load is obtained and sent to the thin volume module. The thin volume module can dynamically adjust the metadata flush strategy (generate a target transfer parameter matching the task load status):
[0089] 1) Adjust the flush threshold (i.e., the transfer threshold parameter) according to the next task load state of the storage system. If the model predicts that the system is about to enter a high load state, reduce the flush threshold (i.e., reduce the transfer threshold parameter currently used by the cache device by a first target value to obtain a target transfer threshold parameter) so that the metadata cache is written to the disk as soon as possible to reserve more free space in the memory; conversely, if the next task load is still low, increase the flush threshold so that more metadata can be stored in the memory for quick access next time;
[0090] 2) Selecting an appropriate flush concurrency (i.e., concurrency parameter) based on the model prediction result. This requires increasing the flush concurrency when the system is not busy (i.e., increasing the concurrency parameter currently used by the cache device by a second target value to obtain a target concurrency parameter) based on the storage load and latency, the frequency of metadata use, the subsequent data access pattern, etc.;
[0091] 3) Pre-read metadata based on the next IO behavior predicted by the model. If there is an IO access to data in a certain storage space area, the metadata corresponding to this storage space area can be found in advance and saved in the metadata cache, thereby improving the cache hit rate and reducing the IO delay caused by metadata reading;
[0092] Through the above-mentioned method, the artificial intelligence big model is integrated into the storage system, and the storage is added with the ability to use the big model for optimization and problem solving. The present application involves model selection, data collection and model training, and integration of models and storage systems, so that all modules in the entire storage system can use model capabilities for business optimization. The technical solution proposed in the present application is aimed at the specific scenario of thin volume metadata cache flushing and elimination. The model capability is used to solve the problems that the traditional metadata cache flushing depends on static thresholds and cannot be adjusted adaptively, and the flushing concurrency cannot be adjusted based on IO behavior (task load status). The mapping data transfer control method proposed in the present application can dynamically adjust the flushing threshold and concurrency (transfer parameters) according to the system load and IO behavior (the current usage of the mapping data by the storage server, and the current caching of the mapping data by the cache device). In addition, metadata pre-reading can be performed according to IO behavior to improve the system response speed, and metadata can be saved on the disk in advance before the system abnormality occurs.
[0093] It should be noted that the method of using big model technology to optimize metadata cache refresh scenarios in this application is also applicable to data cache management; in addition, it can be used as a reference for other modules in the storage system, and the predictive capabilities of the big model can also be used to improve the business of this module.
[0094] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0095] In the present embodiment, a mapping data transfer control device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.
[0096] Figure 7 is a structural block diagram of a mapping data transfer control device according to an embodiment of the present application; Figure 7 As shown, a processor, a cache device and a storage device are deployed in the storage server, and mapping data is cached in the cache device. The mapping data is used to provide a mapping relationship between a logical address of a logical space and a physical address of a physical space when the storage server performs a data input and output task. The logical space is a space that allows users to access, and the physical space is a space that actually stores data. The device is applied to the processor, and the device includes:
[0097] A collection module 702 is used to collect the current mapping data usage parameters and mapping data cache parameters of the storage server, wherein the mapping data usage parameters are used to indicate the current usage of the mapping data by the storage server, and the mapping data cache parameters are used to indicate the current cache status of the mapping data by the cache device;
[0098] A prediction module 704 is used to predict the task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter, wherein the task load state is used to indicate the possibility that the task load pressure of the storage server performing the data input and output task after the first time period is greater than a target pressure threshold;
[0099] A generating module 706, configured to generate a target transfer parameter matching the task load state when the possibility indicated by the task load state is greater than a target possibility, wherein the target transfer parameter is used to accelerate the transfer of the mapping data in the cache device to the storage device before the first duration is reached;
[0100] The transfer module 708 is used to control the cache device to transfer the mapping data to the storage device according to the target transfer parameter.
[0101] In an exemplary embodiment, the prediction module comprises:
[0102] A first input unit is used to input the mapping data usage parameter and the mapping data cache parameter into a target state prediction model, wherein the target state prediction model is obtained by training an initial state prediction model using target training samples annotated with probability labels, the target training samples include mapping data usage parameter samples and mapping data cache parameter samples, and the probability labels are used to indicate the possibility that the task load pressure of the storage server performing the data input and output task after the first duration under the corresponding mapping data usage parameter samples and mapping data cache parameter samples is greater than the target pressure threshold;
[0103] A generating unit is used to generate the task load state according to the predicted probability output by the target state prediction model.
[0104] In an exemplary embodiment, the generating module comprises:
[0105] A second input unit is used to input the task load state into a target parameter generation model, wherein the target parameter generation model is obtained by training an initial parameter generation model using task load state samples annotated with transfer parameter labels, and the higher the possibility indicated by the task load state samples, the faster the corresponding transfer parameter labels are used to transfer the mapping data in the cache device to the storage device;
[0106] A determination unit is used to determine the transfer parameter output by the target parameter generation model as the target transfer parameter.
[0107] In an exemplary embodiment, the generating module includes at least one of the following:
[0108] a reducing unit, configured to reduce a transfer threshold parameter currently used by the cache device by a first target value to obtain a target transfer threshold parameter, wherein the higher the probability is, the larger the first target value is, and the cache device is configured to trigger a transfer operation when the amount of cached mapping data is greater than the transfer threshold parameter, and the transfer operation is an operation of transferring mapping data from the cache device to the storage device, and the target transfer parameter includes the target transfer threshold parameter;
[0109] An increasing unit is used to increase the concurrency parameter currently used by the cache device by a second target value to obtain a target concurrency parameter, wherein the higher the possibility, the larger the second target value, and the concurrency parameter is the maximum amount of data allowed for a single transfer during the transfer operation. The transfer operation is an operation of transferring the mapped data from the cache device to the storage device, and the target transfer parameter includes the target concurrency parameter.
[0110] In an exemplary embodiment, the apparatus further comprises:
[0111] a detection unit, configured to detect, after collecting the current mapping data usage parameters and mapping data cache parameters of the storage server, the possibility that the storage server is in an abnormal state after a second period of time according to the mapping data usage parameters and mapping data cache parameters;
[0112] The transfer unit is used to immediately transfer the mapping data cached in the cache device to the storage device when it is detected that the abnormality possibility is greater than the target abnormality possibility.
[0113] In an exemplary embodiment, a data input / output software stack and a thin volume are running on the processor, the storage server executes the input / output task through the data input / output software stack, the thin volume is used to provide the logical address for the data input / output software stack to access the data actually stored in the physical address when executing the input / output task, and the acquisition module includes:
[0114] A mapping unit is used to collect the current mapping data usage parameters and mapping data cache parameters of the storage server through the thin volume during the process of the data input and output software stack executing the input and output task.
[0115] In an exemplary embodiment, the mapping unit includes:
[0116] The storage server's current mapping data storage parameters, mapping data time parameters, mapping data level parameters, mapping data call parameters, mapping data disk reading parameters, and mapping data access parameters are collected through the thin volume, and the mapping data storage parameters, the mapping data time parameters, the mapping data level parameters, the mapping data call parameters, the mapping data disk reading parameters, and the mapping data access parameters are determined as the mapping data usage parameters, wherein the mapping data storage parameters are used to indicate whether the mapping data used in the process of the storage server currently executing the input and output tasks is in the cache device, and the mapping data time parameters are used to indicate whether the mapping data used in the process of the storage server currently executing the input and output tasks is in the cache device. The last usage time, the mapping data level parameter is used to indicate the level of the mapping data on the B+ tree used by the storage server in the process of currently executing the input and output task, the mapping data call parameter is used to indicate the number of times the mapping data used by the storage server in the process of currently executing the input and output task is called, the mapping data disk read parameter is used to indicate that the mapping data used by the storage server in the process of currently executing the input and output task is obtained by reading the disk from the storage device and the number of disk reads is the target number, and the mapping data access parameter is used to indicate that the mapping data used by the storage server in the process of currently executing the input and output task is obtained by reading the disk from the storage device and the access time of the disk read is the third time length;
[0117] The current cache usage parameter, resource application time parameter, resource application quantity parameter, transfer threshold parameter, transfer delay parameter and concurrency parameter of the storage server are collected through the thin volume, and the cache usage parameter, the resource application time parameter, the resource application quantity parameter, the transfer threshold parameter, the transfer delay parameter and the concurrency parameter are determined as the mapping data cache parameter, wherein the cache usage parameter is used to indicate the amount of mapping data currently cached by the cache device, the resource application time parameter is used to indicate the time consumed by the cache device to apply for resources when currently caching the mapping data, the resource application quantity parameter is used to indicate the amount of resources applied by the cache device when currently caching the mapping data, the cache device is configured to trigger a transfer operation when the amount of cached mapping data is greater than the transfer threshold parameter, the transfer operation is an operation of transferring mapping data from the cache device to the storage device, the transfer delay parameter is used to indicate the time delay of the cache device currently performing the transfer operation on the mapping data, and the concurrency parameter is the maximum amount of data allowed to be transferred at a single time during the transfer operation.
[0118] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0119] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method described in each embodiment of the present application; the computer program product also includes a non-volatile computer-readable storage medium, which stores the computer program, and when executed by a processor, implements the steps of the method described in each embodiment of the present application.
[0120] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0121] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0122] An embodiment of the present application further provides an electronic device, Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present application, such as Figure 8 As shown, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0123] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0124] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0125] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0126] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling the transfer of mapping data, characterized in that: A processor, a cache device and a storage device are deployed in the storage server. The cache device caches mapping data. The mapping data is used to provide a mapping relationship between a logical address of a logical space and a physical address of a physical space when the storage server performs a data input and output task. The logical space is a space that allows users to access, and the physical space is a space that actually stores data. The method is applied to the processor, and the method includes: Collecting the current mapping data usage parameters and mapping data cache parameters of the storage server, wherein the mapping data usage parameters are used to indicate the current usage of the mapping data by the storage server, and the mapping data cache parameters are used to indicate the current cache status of the mapping data by the cache device; Predicting a task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter, wherein the task load state is used to indicate a possibility that a task load pressure of the storage server performing the data input and output task after a first time period is greater than a target pressure threshold; In a case where the possibility indicated by the task load state is greater than a target possibility, generating a target transfer parameter matching the task load state, wherein the target transfer parameter is used to accelerate the transfer of the mapping data in the cache device to the storage device before the first duration is reached; The cache device is controlled to transfer the mapping data to the storage device according to the target transfer parameter.
2. The method according to claim 1, characterized in that The predicting the task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter includes: Inputting the mapping data usage parameter and the mapping data cache parameter into a target state prediction model, wherein the target state prediction model is obtained by training an initial state prediction model using target training samples annotated with probability labels, the target training samples include mapping data usage parameter samples and mapping data cache parameter samples, and the probability labels are used to indicate the possibility that the task load pressure of the storage server performing the data input and output task after the first duration under the corresponding mapping data usage parameter samples and mapping data cache parameter samples is greater than the target pressure threshold; The task load state is generated according to the predicted probability output by the target state prediction model.
3. The method according to claim 1, characterized in that The generating of the target transfer parameter matching the task load state includes: The task load state is input into a target parameter generation model, wherein the target parameter generation model is obtained by training an initial parameter generation model using a task load state sample annotated with a transfer parameter label, and the higher the probability indicated by the task load state sample, the faster the corresponding transfer parameter label is used to transfer the mapping data in the cache device to the storage device; The transfer parameter output by the target parameter generation model is determined as the target transfer parameter.
4. The method according to claim 1, characterized in that The generating of the target transfer parameter matching the task load state includes at least one of the following: The transfer threshold parameter currently used by the cache device is reduced by a first target value to obtain a target transfer threshold parameter, wherein the higher the probability is, the larger the first target value is, and the cache device is configured to trigger a transfer operation when the amount of cached mapping data is greater than the transfer threshold parameter, and the transfer operation is an operation of transferring mapping data from the cache device to the storage device, and the target transfer parameter includes the target transfer threshold parameter; The concurrency parameter currently used by the cache device is increased by a second target value to obtain a target concurrency parameter, wherein the higher the possibility is, the larger the second target value is, and the concurrency parameter is the maximum amount of data allowed for a single transfer during a transfer operation, and the transfer operation is an operation of transferring the mapped data from the cache device to the storage device, and the target transfer parameter includes the target concurrency parameter.
5. The method according to claim 1, characterized in that After collecting the current mapping data usage parameters and mapping data cache parameters of the storage server, the method further includes: detecting, based on the mapping data usage parameter and the mapping data cache parameter, an abnormal possibility that the storage server is in an abnormal state after a second period of time; When it is detected that the abnormality possibility is greater than the target abnormality possibility, the mapping data cached in the cache device is immediately transferred to the storage device.
6. The method according to claim 1, characterized in that The processor runs a data input / output software stack and a thin volume, the storage server executes the input / output task through the data input / output software stack, the thin volume is used to provide the logical address for the data input / output software stack to access the data actually stored in the physical address when executing the input / output task, and the current mapping data usage parameter and mapping data cache parameter of the storage server are collected, including: In the process of the data input and output software stack executing the input and output task, the current mapping data usage parameters and mapping data cache parameters of the storage server are collected through the thin volume.
7. The method according to claim 6, characterized in that The collecting the current mapping data usage parameters and mapping data cache parameters of the storage server through the thin volume includes: The storage server's current mapping data storage parameters, mapping data time parameters, mapping data level parameters, mapping data call parameters, mapping data disk reading parameters, and mapping data access parameters are collected through the thin volume, and the mapping data storage parameters, the mapping data time parameters, the mapping data level parameters, the mapping data call parameters, the mapping data disk reading parameters, and the mapping data access parameters are determined as the mapping data usage parameters, wherein the mapping data storage parameters are used to indicate whether the mapping data used in the process of the storage server currently executing the input and output tasks is in the cache device, and the mapping data time parameters are used to indicate whether the mapping data used in the process of the storage server currently executing the input and output tasks is in the cache device. The last usage time, the mapping data level parameter is used to indicate the level of the mapping data on the B+ tree used by the storage server in the process of currently executing the input and output task, the mapping data call parameter is used to indicate the number of times the mapping data used by the storage server in the process of currently executing the input and output task is called, the mapping data disk read parameter is used to indicate that the mapping data used by the storage server in the process of currently executing the input and output task is obtained by reading the disk from the storage device and the number of disk reads is the target number, and the mapping data access parameter is used to indicate that the mapping data used by the storage server in the process of currently executing the input and output task is obtained by reading the disk from the storage device and the access time of the disk read is the third time length; The current cache usage parameter, resource application time parameter, resource application quantity parameter, transfer threshold parameter, transfer delay parameter and concurrency parameter of the storage server are collected through the thin volume, and the cache usage parameter, the resource application time parameter, the resource application quantity parameter, the transfer threshold parameter, the transfer delay parameter and the concurrency parameter are determined as the mapping data cache parameter, wherein the cache usage parameter is used to indicate the amount of mapping data currently cached by the cache device, the resource application time parameter is used to indicate the time consumed by the cache device to apply for resources when currently caching the mapping data, the resource application quantity parameter is used to indicate the amount of resources applied by the cache device when currently caching the mapping data, the cache device is configured to trigger a transfer operation when the amount of cached mapping data is greater than the transfer threshold parameter, the transfer operation is an operation of transferring mapping data from the cache device to the storage device, the transfer delay parameter is used to indicate the time delay of the cache device currently performing the transfer operation on the mapping data, and the concurrency parameter is the maximum amount of data allowed to be transferred at a single time during the transfer operation.
8. A mapping data transfer control device, characterized in that: A processor, a cache device and a storage device are deployed in the storage server. The cache device caches mapping data. The mapping data is used to provide a mapping relationship between a logical address of a logical space and a physical address of a physical space when the storage server performs a data input and output task. The logical space is a space that allows users to access, and the physical space is a space that actually stores data. The device is applied to the processor, and the device includes: A collection module, used to collect the current mapping data usage parameters and mapping data cache parameters of the storage server, wherein the mapping data usage parameters are used to indicate the current usage of the mapping data by the storage server, and the mapping data cache parameters are used to indicate the current cache status of the mapping data by the cache device; a prediction module, configured to predict a task load state of the storage server according to the mapping data usage parameter and the mapping data cache parameter, wherein the task load state is used to indicate a possibility that a task load pressure of the storage server performing the data input and output task after a first time period is greater than a target pressure threshold; A generating module, configured to generate a target transfer parameter matching the task load state when the possibility indicated by the task load state is greater than a target possibility, wherein the target transfer parameter is used to accelerate the transfer of the mapping data in the cache device to the storage device before the first duration is reached; The transfer module is used to control the cache device to transfer the mapping data to the storage device according to the target transfer parameter.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
