Method, electronic device and computer program product for processing input and output requests
By dynamically adjusting the storage location of data according to its frequency of use in the storage system, it solves the problems of low priority of traditional relocation functions and the inability to respond to real-time requests, achieving more efficient storage performance and cost reduction.
Patent Information
- Application Number
- CN202010757454.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-07-31
AI Technical Summary
The traditional relocation function has a low priority, is easily disabled due to high usage of storage devices in the storage system, cannot effectively respond to real-time input and output requests, and cannot meet the needs of high-quality data storage.
By receiving input and output requests for data, determining its usage frequency, and when specific conditions are met, high-frequency data is moved from a slower storage device to a faster storage device, or is written directly to a faster storage device Update data to improve storage system performance.
Without affecting the input and output traffic, the storage performance of the storage system is improved, the operating cost is reduced, and the user experience is improved.
Smart Images

Figure CN114063880B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to the field of data storage, and more particularly to a method, an electronic device, and a computer program product for processing input and output requests. Background Art
[0002] The data storage system may have a relocation function for the stored data. The relocation function is used to move data between storage devices with different access speeds in the storage system according to the usage frequency or temperature information of the data stored in the storage system, wherein the access speed may also be referred to as the input-output speed. Generally, the cost of a storage device with a faster access speed is higher, such storage device includes, for example, flash memory; the cost of a storage device with a moderate access speed is moderate, such storage device includes, for example, a serial-attached small computer system interface (SAS) memory; the cost of a storage device with a slower access speed is lower, such storage device includes, for example, a limited serial-attached small computer system interface (NL SAS) memory, which uses a SAS interface but the disk performance does not meet the SAS standard. Therefore, storing data with a higher frequency of use in a storage device with a faster access speed can improve the access efficiency of the storage system. The relocation function may include, for example, a fully automated tiering of virtual pools (FAST VP) function, which is used to monitor the data access pattern in a storage pool composed of multiple storage devices on the system, and make decisions to move data across multiple storage devices in the storage pool, thereby maximizing the performance of the storage pool and efficiently utilizing the storage space in the storage pool. With fully automated virtual pool tiering, the most frequently accessed data is automatically moved to faster storage devices, and less frequently accessed data is automatically moved to slower storage devices.
[0003] However, the traditional relocation function has a low priority, can be easily disabled due to high utilization of any storage device in the storage system, and cannot cope with the scenario that requires real-time processing of input and output requests. Summary of the invention
[0004] Embodiments of the present disclosure provide a method, an electronic device, and a computer program product for processing an input / output request.
[0005] In a first aspect of the present disclosure, a method for processing an input / output request is provided. The method includes: receiving an input / output request for data stored in a second storage device of a storage system; determining a usage frequency of the data; if it is determined that the usage frequency is higher than a threshold frequency and the input / output request is a read request, moving the data from the second storage device to a first storage device in the storage system, the input / output speed of the first storage device being higher than the input / output speed of the second storage device; and if it is determined that the usage frequency is higher than the threshold frequency and the input / output request is a write request including update data, writing the update data as the data into the first storage device.
[0006] In a second aspect of the present disclosure, an electronic device is provided. The device includes: at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, cause the device to perform an action, the action comprising: receiving an input / output request for data stored in a second storage device of a storage system; determining a usage frequency of the data; if it is determined that the usage frequency is higher than a threshold frequency and the input / output request is a read request, moving the data from the second storage device to a first storage device in the storage system, the input / output speed of the first storage device being higher than the input / output speed of the second storage device; and if it is determined that the usage frequency is higher than a threshold frequency and the input / output request is a write request including update data, writing the update data as the data into the first storage device.
[0007] In a third aspect of the present disclosure, a computer program product is provided. The computer program product is tangibly stored on a non-transitory computer readable medium and includes machine executable instructions, which, when executed, cause a machine to perform any step of the method described according to the first aspect of the present disclosure.
[0008] The Summary is provided to introduce a selection of concepts in a simplified form that are further described in the Detailed Description below. The Summary is not intended to identify key features or essential features of the embodiments of the present disclosure, nor is it intended to limit the scope of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other objects, features and advantages of the present disclosure will become more apparent through a more detailed description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, wherein like reference numerals generally represent like components throughout the exemplary embodiments of the present disclosure.
[0010] Figure 1 A schematic diagram of a data storage environment 100 is shown in which the method for processing input and output requests in some embodiments of the present disclosure can be implemented;
[0011] Figure 2 A flowchart of a method 200 for processing an input / output request according to an embodiment of the present disclosure is shown;
[0012] Figure 3 A flowchart showing a method 300 for processing an input / output request according to an embodiment of the present disclosure; and
[0013] Figure 4 A schematic block diagram of an example device 400 that may be used to implement embodiments of the present disclosure is shown.
[0014] In the various drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0015] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0016] As used herein, the term "including" and its variations represent open inclusion, for example, "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0017] As described above in the background art, the traditional relocation function has a low priority and can be easily disabled due to high usage of any storage device in the storage system, and cannot cope with the scenario where input and output requests need to be processed in real time.
[0018] Specifically, since the traditional relocation function cannot be executed while performing input and output operations, when the storage system needs to process a large number of input and output operations or needs to process input and output operations frequently, the traditional relocation function is likely to be executed only very slowly or even completely disabled.
[0019] In addition, when the conventional relocation function is executed, it is necessary to evaluate the usage of the storage device, and the usage of all the storage devices included in the storage system is used for evaluation. For example, if most of the data in the storage system is stored in the SAS memory with a moderate access speed, and a small part of the data is stored in the flash memory with a faster access speed, for example, 70% of the data is stored in the SAS memory and 30% of the data is stored in the flash memory. At this time, when the storage system receives input and output requests for the data stored by the storage system, most of these requests will be located to the SAS memory, so the SAS memory will easily reach its performance peak. Since the conventional relocation function uses the usage of all the storage devices included in the storage system for evaluation, it will find that the SAS memory is about to reach its performance peak, and will choose to disable the relocation function, even if there is a large amount of available storage space in the flash memory and it is far from reaching its performance peak, resulting in the storage system being unable to perform the relocation function.
[0020] The inventor has tested and analyzed the relocation function by taking a storage pool with a specific number of flash memory, SAS memory and limited SAS memory as an example. In this example test analysis, three flash memories with a total storage space of 5.7TB and an available storage space of 1.2TB are used; five SAS memories with a total storage space of 6.4TB and an available storage space of 2.6TB; and six limited SAS memories with a total storage space of 14.3TB and an available storage space of 14.3TB. In the storage pool of this example test analysis, 26% of the data related to the input and output requests is stored in the flash memory and 74% is stored in the SAS memory. In this example test analysis, the data used for the test only occupies 400GB, and there is 1.2TB of available storage space in the flash memory. When the test starts, since 74% of the data related to the input and output requests is stored in the SAS memory, most of the input and output requests are located in the SAS memory. Thus, when examining the performance statistics, it was found that each SAS memory had about 400 IOPS, and each flash memory had only about 30 IOPS. When the test lasted 20 hours, it was found that the pool had only 1k IOPS, but based on the storage devices in the pool, the expected IOPS should be 70k. Upon further analysis, it was found that due to the high volume of IOPS that the SAS memory had to handle, the relocation function was disabled several times or even stopped altogether.
[0021] It can be seen that the traditional relocation function has functional defects and cannot meet users' high-quality requirements for data storage.
[0022] In order to at least partially solve one or more of the above problems and other potential problems, an embodiment of the present disclosure proposes a method for processing input and output requests. Using this method, a storage system can achieve relocation of data related to the input and output requests in different storage devices of the storage system when processing the input and output requests. For example, when the storage system processes a data read request, if the read frequency of the data to be read is high, the storage system can move this data to a storage device with a faster access speed after completing the read request, so that the subsequent reading speed for this data is accelerated. At the same time, when the storage system processes a data write request including updated data, if the frequency of this data being written is high, the storage system can directly write the updated data to a storage device with a faster speed, so that the subsequent data write speed for this data is accelerated.
[0023] Compared with the traditional relocation function, the above method can improve the storage performance of the storage system without affecting the input and output traffic.
[0024] Figure 1 A schematic diagram of a data storage environment 100 in which the method for processing input and output requests in certain embodiments of the present disclosure can be implemented is shown. According to an embodiment of the present disclosure, the data storage environment 100 may be a cloud environment. Figure 1 As shown in the figure, the data storage environment 100 includes a client 110 and a storage system 120. The storage system 120 includes a first storage device 121, a second storage device 122, a third storage device 123 and a management device 124. The first storage device 121, the second storage device 122 and the third storage device 123 can constitute a storage pool for the storage system 120.
[0025] It should be understood that the data storage environment 100 is merely illustrative and not restrictive, and is expandable, and may include more clients and storage systems, and the storage system may include more first storage devices, second storage devices, third storage devices, and management devices, so that more users can simultaneously utilize the client to interact with the storage system to perform input and output operations.
[0026] According to an embodiment of the present disclosure, in the storage system 120, the first storage device 121 is a storage device with a faster access speed, such as a flash memory, the second storage device 122 is a storage device with a moderate access speed, such as a serial small computer system interface memory, and the third storage device 123 is a storage device with a slower access speed, such as a limited serial small computer system interface memory. The first storage device 121, the second storage device 122, and the third storage device 123 are respectively used to store data related to input and output requests issued by the user to the storage system 120 through the client 110. Since the first storage device 121 has the fastest access speed in the storage system 120, storing the data with a higher frequency of use or hot data in the first storage device 121 can improve the data access efficiency of the storage system 120.
[0027] According to an embodiment of the present disclosure, when a user sends an input / output request for writing specific data for the first time to the storage system 120 through the client 110, it can be considered that the usage frequency of the specific data is very low or it is cold data. Therefore, the storage system 120 can perform input / output operations by storing the specific data in the third storage device 123 with the slowest access speed by the management device 124.
[0028] When a user issues a read request for reading specific data already stored in the storage system 120 or a write request for updating the specific data to the storage system 120 through the client 110, the storage system 120 can increase the usage frequency data or temperature data recorded in the storage system for the specific data by the management device 124 after performing the corresponding input and output operations, wherein the usage frequency data can directly indicate the usage frequency of the specific data, the temperature information can indicate the heat of the specific data, and the heat can indicate the usage frequency of the specific data. According to an embodiment of the present disclosure, the usage frequency data or temperature information for the data stored in the storage system 120 can be stored in a usage frequency database or a temperature database in the storage system 120.
[0029] When no input / output operation is performed and a preset condition is satisfied, the relocation function may be enabled to relocate data among the first storage device 121, the second storage device 122, and the third storage device 123 according to the usage frequency or temperature of the data stored in the storage system 120. Therefore, in a normal state, the third storage device 123 stores cold data with a low usage frequency, while the first storage device 121 and the second storage device 122 store hot data with a high usage frequency and different temperatures, wherein the first storage device 121 stores data with a higher usage frequency or a higher temperature.
[0030] According to an embodiment of the present disclosure, in order to achieve maximum efficiency improvement at the lowest cost, the storage system 120 is mainly used for the management device 124 to move hot data stored in the second storage device 122 to the first storage device 121 when specific conditions are met, thereby making it possible to most efficiently improve the storage performance of the storage system 120.
[0031] According to an embodiment of the present disclosure, the management device 124 in the storage system 120 may be used to process input and output requests received from the client 110, and to move data between the first storage device 121, the second storage device 122, and the third storage device 123. Figure 1 In the data storage environment 100 shown, the interaction between the client 110 and the storage system 120 may be performed through a network.
[0032] Figure 2A flow chart of a method 200 for processing an input / output request according to an embodiment of the present disclosure is shown. The method 200 may be implemented by the management device 124 in the storage system 120 in the data storage environment 100, or may be implemented by other appropriate devices. It should be understood that the method 200 for processing an input / output request may further include additional steps not shown and / or may omit the steps shown, and the scope of the embodiments of the present disclosure is not limited in this respect.
[0033] In block 202 , the management device 124 receives an input / output request for data stored in the second storage device 122 of the storage system 120 , which is sent by a user through the client 110 .
[0034] According to an embodiment of the present disclosure, if the input / output request is for cold data with low usage frequency stored in the third storage device 123, there is no need to move this data to other storage devices, because a single input / output request for cold data cannot determine whether this data will become hot data with high usage frequency. If this data is moved to other storage devices at this time, it will cause the need to frequently move data in the storage system 120, which not only requires the processing overhead required to move data, but also may cause the storage space of the first storage device 121 and the second storage device 122 to decrease rapidly. In addition, if the input / output request is for hot data with the highest usage frequency stored in the first storage device 121, since this data has been stored in the first storage device 121 with the fastest access speed, there is no need to move this data to other storage devices.
[0035] At block 204 , the management device 124 determines the usage frequency of the data stored in the second storage device 122 for which the input / output request received at block 202 is directed.
[0036] According to an embodiment of the present disclosure, for hot data stored in the second storage device 122, the management device 124 decides whether to move it to the first storage device 121 according to the usage frequency of the hot data. Therefore, the management device 124 first needs to determine the usage frequency of the hot data.
[0037] According to another embodiment of the present disclosure, determining the usage frequency of the data stored in the second storage device 122 for which the input / output request received in block 202 is directed may include obtaining temperature information about the data by the management device 124, the temperature information indicating the heat of the data, and the heat indicating the usage frequency of the data. According to an embodiment of the present disclosure, the usage frequency data or temperature information for the data stored in the storage system 120 may be stored in a usage frequency database or a temperature database in the storage system 120.
[0038] At block 206 , the management device 124 determines whether the usage frequency determined at block 204 for the data stored in the second storage device 122 for which the input / output request received at block 202 is targeted is higher than a threshold frequency.
[0039] According to an embodiment of the present disclosure, for the hot data stored in the second storage device 122, only when the usage frequency of the hot data is higher than a preset threshold frequency, it will be moved to the first storage device 121. If the usage frequency of the hot data is not higher than the preset threshold frequency, the management device 124 can perform an input / output operation according to the received input / output request, increase the usage frequency or heat recorded for the hot data, and store the updated usage frequency or heat in the usage frequency database or temperature database in the storage system 120.
[0040] Therefore, in block 206 , when the management device 124 determines that the usage frequency of the data stored in the second storage device 122 targeted by the input / output request received in block 202 is higher than the threshold frequency, the process proceeds to block 208 .
[0041] In block 208, the management device 124 determines whether the input / output request received in block 202 is a read request or a write request including update data. According to an embodiment of the present disclosure, a read request is, for example, to read data stored in the second storage device 122 without changing the data itself. A write request including update data is, for example, to write the data in the form of update data, and after this write operation is performed, the data stored in the second storage device 122 is updated.
[0042] In box 208 , when the management device 124 determines that the input / output request received in box 202 is a read request, the process proceeds to box 210 ; when the management device 124 determines that the input / output request received in box 202 is a write request including update data, the process proceeds to box 212 .
[0043] In block 210 , the management device 124 performs an I / O operation corresponding to the I / O request received in block 202 , that is, a read operation, and moves the data stored in the second storage device 122 targeted by the I / O request to the first storage device 121 .
[0044] In block 212, the management device 124 writes the updated data as the data stored in the second storage device 122 targeted by the write request received in block 202 into the first storage device 121. According to an embodiment of the present disclosure, after writing the updated data into the first storage device 121, the management device 124 may, for example, modify the data index in the storage system 120 so that subsequent input / output requests for the data stored in the second storage device 122 targeted by the write request are located at the updated data written into the first storage device 121.
[0045] According to an embodiment of the present disclosure, the input / output speed of the first storage device 121 is higher than the input / output speed of the second storage device 122. Therefore, after the corresponding operation in block 210 or block 212 is executed, the subsequent input / output operation corresponding to the input / output request for the data will be located in the first storage device 121, so that the input / output operation according to the data can be executed faster, thereby improving the input / output efficiency of the storage system 120.
[0046] It should be pointed out that in the implementation Figure 2 When the method 200 shown in FIG. 2 is illustrated, it is not necessary to consider the contents related to the traditional repositioning function.
[0047] Figure 3 A flow chart of a method 300 for processing an input / output request according to an embodiment of the present disclosure is shown. The method 300 can also be implemented by the management device 124 in the storage system 120 in the data storage environment 100, or by other appropriate devices. It should be understood that the method 300 can also include additional steps not shown and / or can omit the steps shown, and the scope of the present disclosure is not limited in this respect. The method 300 for processing an input / output request is a specific implementation of the method 200 for processing an input / output request.
[0048] It should be pointed out that in the implementation Figure 3 When illustrating the method 300 shown in FIG. 3 , aspects related to conventional repositioning functions may be considered.
[0049] In block 302, the management device 124 determines whether a predetermined condition related to the storage system 120 is satisfied. According to an embodiment of the present disclosure, it can be determined that the predetermined condition is satisfied in at least one of the following situations:
[0050] The relocation function for the storage system 120 has been disabled. At this time, since the relocation function can no longer be used to move data between different storage devices according to the usage frequency or popularity of the data stored in the storage system 120, the method 300 is needed to assist in moving data.
[0051] A time period for executing the relocation function in the storage system 120 has been entered. According to an embodiment of the present disclosure, the method 300 may be allowed to be used only during a specific time period. Therefore, the method 300 is allowed to be used only when it is determined that a time period for executing the relocation function in the storage system 120 has been entered.
[0052] There is no fault in the first storage device 121 and the second storage device 122. According to an embodiment of the present disclosure, when at least one of the first storage device 121 and the second storage device 122 is faulty, data movement will fail. Therefore, the fact that there is no fault in the first storage device 121 and the second storage device 122 is a prerequisite for correctly moving data.
[0053] The first storage device 121 and the second storage device 122 are not in the data reconstruction period. According to an embodiment of the present disclosure, when at least one of the first storage device 121 and the second storage device 122 fails and the failure is eliminated, the data reconstruction period will be entered. During the data reconstruction period, the data originally stored in the first storage device 121 and the second storage device 122 will be reconstructed, and moving data at this time may cause errors and failures.
[0054] The remaining life cycle of the first storage device 121 is longer than the threshold life cycle. According to an embodiment of the present disclosure, when the life cycle of a storage device expires, the storage device needs to be replaced. Therefore, moving data to a storage device whose life cycle is about to expire does not significantly improve the performance of the storage system 120. At the same time, if the life cycle of the first storage device 121 expires during the data movement process, it may also cause errors or failures in the data movement.
[0055] The remaining storage space of the first storage device 121 is greater than the threshold space. According to an embodiment of the present disclosure, in order to avoid excessive data input and output burden on the first storage device 121, it can be set that only when the remaining storage space of the first storage device 121 is greater than the threshold space, data is considered to be moved to the first storage device 121.
[0056] The number of input and output times per second of the first storage device 121 is less than the threshold number of input and output times. According to an embodiment of the present disclosure, in order to avoid excessive data input and output burden on the first storage device 121, it can be set that only when the number of input and output times per second of the first storage device 121 is less than the threshold number of input and output times, data is considered to be moved to the first storage device 121.
[0057] The CPU usage rate of the storage system 120 is lower than the threshold usage rate. According to an embodiment of the present disclosure, in order to avoid excessive processing burden on the storage system 120 due to moving data, it can be set that only when the CPU usage rate of the storage system 120 is lower than the threshold usage rate, data is considered to be moved to the first storage device 121.
[0058] The total remaining storage space of the storage system 120 is greater than the threshold total remaining storage space. According to an embodiment of the present disclosure, when the total remaining storage space in the storage system 120 is too small, moving data may cause a decrease in the data input and output performance of the storage system 120. Therefore, it can be set that only when the total remaining storage space of the storage system 120 is greater than the threshold total remaining storage space, consider moving data to the first storage device 121.
[0059] According to some embodiments of the present disclosure, the management device 124 may determine that the predetermined condition related to the storage system 120 is satisfied when all of the above situations occur. According to other embodiments of the present disclosure, the management device 124 may determine that the predetermined condition related to the storage system 120 is satisfied when a preselected situation among the above situations occurs.
[0060] In block 302 , when the management device 124 determines that a predetermined condition related to the storage system 120 is satisfied, the process proceeds to block 304 .
[0061] In block 304, the management device 124 receives an input / output request for data stored in the second storage device 122 of the storage system 120, sent by the user through the client 110. The specific content of this step is the same as the step described in block 202, and will not be repeated here.
[0062] In block 306, the management device 124 determines the usage frequency of the data stored in the second storage device 122 for the input / output request received in block 304. The specific content of this step is the same as the step described in block 204, and will not be repeated here.
[0063] In block 308, the management device 124 determines whether the usage frequency of the data stored in the second storage device 122 targeted by the input / output request received in block 304, determined in block 306, is higher than the threshold frequency. In block 308, when the management device 124 determines that the usage frequency of the data stored in the second storage device 122 targeted by the input / output request received in block 304 is higher than the threshold frequency, the process proceeds to block 310. The specific content of this step is the same as the step described in block 206, and will not be repeated here.
[0064] In block 310, the management device 124 determines whether the input / output request received in block 304 is a read request or a write request including update data. When the management device 124 determines that the input / output request received in block 304 is a read request, the process proceeds to block 312; when the management device 124 determines that the input / output request received in block 304 is a write request including update data, the process proceeds to block 314. The specific content of this step is the same as the step described in block 208, and will not be repeated here.
[0065] In block 312, the management device 124 performs an input / output operation corresponding to the input / output request received in block 304, i.e., a read operation, and moves the data stored in the second storage device 122 targeted by the input / output request to the first storage device 121. The specific content of this step is the same as the step described in block 210, and will not be repeated here.
[0066] In block 314, the management device 124 writes the update data as the data stored in the second storage device 122 targeted by the write request to the first storage device 121 based on the write request including the update data received in block 304. The specific content of this step is the same as the step recorded in block 212, and will not be repeated here.
[0067] In block 316, the management device 124 sets the address of the second storage device 122 for storing the data targeted by the write request to be writable, or deletes the data from the second storage device 122. According to an embodiment of the present disclosure, although subsequent input / output requests for the data stored in the second storage device 122 targeted by the write request can be located at the updated data written to the first storage device 121, for reasons such as reducing redundant data, the storage space in the original second storage device 122 for storing the data targeted by the write request can be used for writing other data, which can be achieved by setting the address of the data to be writable or deleting the data.
[0068] References Figures 1 to 3 The data storage environment 100 in which the method for processing input and output requests in some embodiments of the present disclosure can be implemented, the method 200 for processing input and output requests according to an embodiment of the present disclosure, and the method 300 for processing input and output requests according to an embodiment of the present disclosure are described. It should be understood that the above description is for better illustrating the contents recorded in the embodiments of the present disclosure, and is not intended to be limiting in any way.
[0069] It should be understood that the numbers and sizes of various elements used in the embodiments of the present disclosure and in the various drawings are only examples, and are not intended to limit the protection scope of the embodiments of the present disclosure. The above numbers and sizes can be arbitrarily set as needed without affecting the normal implementation of the embodiments of the present disclosure.
[0070] Through the above reference Figures 1 to 3 According to the description, the technical solution according to the embodiment of the present disclosure has many advantages over the traditional solution. For example, the technical solution of the present disclosure can improve the storage performance of the storage system without affecting the input and output traffic of the customer, which can not only reduce the operating cost of the storage system, but also improve the user experience of the users who use the storage system.
[0071] Figure 4 FIG. 4 shows a schematic block diagram of an example device 400 that can be used to implement an embodiment of the present disclosure. According to an embodiment of the present disclosure, Figure 1 The management device 124 shown in the figure can be implemented as an example device 400. As shown, the device 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 402 or loaded from a storage unit 408 into a random access memory (RAM) 403. In RAM 403, various programs and data required for the operation of the device 400 can also be stored. CPU 401, ROM 402 and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0072] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0073] The various processes and processing described above, such as method 200 and method 300, may be performed by processing unit 401. For example, in some embodiments, method 200 and method 300 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by CPU 401, one or more actions of method 200 and method 300 described above may be performed.
[0074] Embodiments of the present disclosure may be directed to methods, devices, systems and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the embodiments of the present disclosure.
[0075] Computer readable storage medium can be a tangible device that can keep and store the instructions used by the instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples of computer readable storage medium as a non-exhaustive list include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as an instantaneous signal itself, such as a radio wave or other freely propagating electromagnetic waves, for example, an electromagnetic wave propagated by a waveguide or other transmission medium of a light pulse of an optical fiber cable, or an electrical signal transmitted by a wire.
[0076] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0077] The computer program instructions for performing the operation of the embodiments of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer via an Internet connection, for example, using an Internet service provider. In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the embodiments of the present disclosure.
[0078] Various aspects of the embodiments of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices / systems, and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0079] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0080] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0081] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0082] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for processing an input and output request, comprising: receiving an input / output request for data stored in a second storage device of the storage system; Determine how often the data is used; determining whether a predetermined condition is satisfied, wherein the predetermined condition is determined to be satisfied when a relocation function for the storage system has been disabled, wherein the relocation function is used to move the data stored in the storage system between different storage devices according to the usage frequency of the data; In response to the predetermined condition being satisfied, if it is determined that the usage frequency is higher than a threshold frequency and the input / output request is a read request, moving the data from the second storage device to a first storage device in the storage system, the input / output speed of the first storage device being higher than the input / output speed of the second storage device; as well as If it is determined that the usage frequency is higher than the threshold frequency and the input / output request is a write request including update data, the update data is written as the data into the first storage device.
2. The method according to claim 1, wherein writing the update data into the first storage device comprises: If it is determined that a predetermined condition related to the storage system is satisfied, the update data is written to the first storage device.
3. The method according to claim 2, wherein the predetermined condition is determined to be satisfied if at least one of the following conditions is additionally satisfied: a time period for performing the relocation function in the storage system has been entered; There is no failure in the first storage device and the second storage device; The first storage device and the second storage device are not in a data reconstruction period; The remaining life cycle of the first storage device is longer than a threshold life cycle; The remaining storage space of the first storage device is greater than a threshold space; The number of input and output times per second of the first storage device is less than a threshold number of input and output times; The central processing unit usage rate of the storage system is lower than a threshold usage rate; as well as The total remaining storage space of the storage system is greater than a threshold total remaining storage space.
4. The method of claim 1 , wherein determining the usage frequency of the data comprises: Temperature information about the data is obtained, the temperature information indicating the heat of the data, the heat indicating the usage frequency.
5. The method according to claim 1, further comprising: If it is determined that the usage frequency of the data is higher than the threshold frequency and the input / output request is a write request including update data, setting the address for storing the data in the second storage device to be writable; or The data is deleted from the second storage device.
6. An electronic device comprising: at least one processing unit; as well as at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the apparatus to perform actions comprising: receiving an input / output request for data stored in a second storage device of the storage system; Determine how often the data is used; determining whether a predetermined condition is satisfied, wherein the predetermined condition is determined to be satisfied when a relocation function for the storage system has been disabled, wherein the relocation function is used to move the data stored in the storage system between different storage devices according to the usage frequency of the data; In response to the predetermined condition being satisfied, if it is determined that the usage frequency is higher than a threshold frequency and the input / output request is a read request, moving the data from the second storage device to a first storage device in the storage system, the input / output speed of the first storage device being higher than the input / output speed of the second storage device; and If it is determined that the usage frequency is higher than the threshold frequency and the input / output request is a write request including update data, the update data is written as the data into the first storage device.
7. The apparatus of claim 6, wherein writing the update data into the first storage device comprises: If it is determined that a predetermined condition related to the storage system is satisfied, the update data is written to the first storage device.
8. The apparatus of claim 7, wherein the predetermined condition is determined to be satisfied if at least one of the following conditions is additionally satisfied: a time period for performing the repositioning function in the storage system has been entered; There is no failure in the first storage device and the second storage device; The first storage device and the second storage device are not in a data reconstruction period; The remaining life cycle of the first storage device is longer than a threshold life cycle; The remaining storage space of the first storage device is greater than a threshold space; The number of input and output times per second of the first storage device is less than a threshold number of input and output times; The central processing unit usage rate of the storage system is lower than a threshold usage rate; as well as The total remaining storage space of the storage system is greater than a threshold total remaining storage space.
9. The apparatus of claim 6, wherein determining the usage frequency of the data comprises: Temperature information about the data is obtained, the temperature information indicating the heat of the data, the heat indicating the usage frequency.
10. The apparatus of claim 6, wherein the actions further comprise: If it is determined that the usage frequency of the data is higher than the threshold frequency and the input / output request is a write request including update data, Setting the address for storing the data in the second storage device to be writable; or The data is deleted from the second storage device.
11. A computer program product tangibly stored on a non-transitory computer readable medium and comprising machine executable instructions which, when executed, cause a machine to perform the steps of the method according to any one of claims 1 to 5.
