Energy consumption control method, system, device, medium and program product of storage system

By dividing the storage system and dividing the energy consumption control level, corresponding energy consumption control strategies are formulated for hot data, cold data and standby hard disk collections, which solves the problem that the existing technology is difficult to adapt to complex business scenarios and refined energy consumption control, and realizes multi-dimensional energy consumption management and energy consumption reduction of the storage system.

CN119645318BActive Publication Date: 2025-05-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510157273.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-05-13
Estimated Expiration
2045-02-13

AI Technical Summary

Technical Problem

The existing technology is relatively single in terms of energy consumption control of storage systems, and it is difficult to adapt to complex business scenarios and refined energy consumption control needs.

Method used

By dividing the storage system, a hot data hard disk set, a cold data hard disk set and a standby hard disk set are obtained, and the corresponding energy consumption control strategies are determined based on different energy consumption control levels, and each hard disk set is refined to manage energy consumption.

Benefits of technology

Multi-dimensional, fine-grained energy consumption control of the storage system is realized, overall energy consumption is reduced, and the flexibility and adaptability of energy consumption control strategies are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119645318B_ABST
    Figure CN119645318B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system, device, medium and program product for energy consumption control of a storage system. The method comprises: dividing the storage system to obtain a hot data hard disk set, a cold data hard disk set and a standby hard disk set, wherein the hot data hard disk set is used to process the reading and writing of hot data, the cold data hard disk set is used to process the batch flushing of cold data, and the standby hard disk set is used to provide a spare hard disk for the hot data hard disk set; determining a first energy consumption control strategy, a second energy consumption control strategy and a third energy consumption control strategy respectively based on the energy consumption control level, wherein the control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy are determined according to the energy consumption control level; performing energy consumption control on the hot data hard disk set based on the first energy consumption control strategy; performing energy consumption control on the cold data hard disk set based on the second energy consumption control strategy; and performing energy consumption control on the standby hard disk set based on the third energy consumption control strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer technology and storage technology, and more specifically, to an energy consumption control method, system, device, medium and program product for a storage system. Background Art

[0002] With the rapid development of information technology and the explosive growth of data, the energy consumption problem of storage systems has become increasingly serious. Excessive energy consumption not only increases operating costs and puts great pressure on the environment, but also may make the hard disks in the storage system prone to failure, resulting in data loss or damage.

[0003] In the process of implementing the concept of the present invention, the inventors found that the relevant energy consumption control methods for storage systems are relatively simple and difficult to adapt to more sophisticated business scenarios and energy consumption control requirements. Summary of the invention

[0004] In view of the above problems, the present invention provides a method, system, device, equipment, medium and program product for controlling energy consumption of a storage system.

[0005] According to one aspect of the present invention, there is provided a method for controlling energy consumption of a storage system, comprising: dividing the storage system to obtain a hot data hard disk set, a cold data hard disk set and a standby hard disk set, wherein the hot data hard disk set is used to process the reading and writing of hot data, the cold data hard disk set is used to process batch refreshing of cold data, and the standby hard disk set is used to provide spare hard disks for the hot data hard disk set; determining a first energy consumption control strategy, a second energy consumption control strategy and a third energy consumption control strategy based on energy consumption control levels, wherein control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy are determined according to the energy consumption control level; performing energy consumption control on the hot data hard disk set based on the first energy consumption control strategy; performing energy consumption control on the cold data hard disk set based on the second energy consumption control strategy; and performing energy consumption control on the standby hard disk set based on the third energy consumption control strategy.

[0006] Another aspect of the present invention provides an energy consumption control system for a storage system, comprising: a monitoring module, the monitoring module is used to monitor the status information of the storage system; and an energy consumption control module, the energy consumption control module is used to control the energy consumption of the storage system according to the method as described above based on the status information of the storage system.

[0007] Another aspect of the present invention provides an energy consumption control device for a storage system, comprising: a division module, used to divide the storage system to obtain a hot data hard disk set, a cold data hard disk set and a standby hard disk set, wherein the hot data hard disk set is used to process the reading and writing of hot data, the cold data hard disk set is used to process the batch refresh of cold data, and the standby hard disk set is used to provide spare hard disks for the hot data hard disk set; a determination module, used to determine a first energy consumption control strategy, a second energy consumption control strategy and a third energy consumption control strategy based on the energy consumption control level, wherein the control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy are determined according to the energy consumption control level; a first energy consumption control module, used to perform energy consumption control on the hot data hard disk set based on the first energy consumption control strategy; a second energy consumption control module, used to perform energy consumption control on the cold data hard disk set based on the second energy consumption control strategy; and a third energy consumption control module, used to perform energy consumption control on the standby hard disk set based on the third energy consumption control strategy.

[0008] Another aspect of the present invention provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0009] Another aspect of the present invention further provides a computer-readable storage medium having a computer program or instructions stored thereon, wherein the computer program or instructions implement the steps of the above method when executed by a processor.

[0010] Another aspect of the present invention further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above contents and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:

[0012] Figure 1 A schematic diagram of an application scenario of a method, system, device, medium, and program product for controlling energy consumption of a storage system according to an embodiment of the present invention is shown;

[0013] Figure 2 A flow chart schematically shows a method for controlling energy consumption of a storage system according to an embodiment of the present invention;

[0014] Figure 3 A schematic diagram of a structure of an energy consumption control system for a storage system according to an embodiment of the present invention is shown;

[0015] Figure 4A schematic diagram shows a structural block diagram of an energy consumption control device for a storage system according to an embodiment of the present invention; and

[0016] Figure 5 A block diagram of an electronic device suitable for implementing an energy consumption control method for a storage system according to an embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0017] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.

[0018] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0019] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0020] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0021] In the technical solution of the present invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0022] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some blocks or combinations thereof in the block diagrams and / or flow charts may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions, when executed by the processor, may create a device for implementing the functions / operations described in these block diagrams and / or flow charts.

[0023] Therefore, the technology of the present invention can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the technology of the present invention can take the form of a computer program product on a computer-readable medium storing instructions, which can be used by an instruction execution system or in combination with an instruction execution system. In the context of the present invention, a computer-readable medium can be any medium that can contain, store, transmit, propagate or transmit instructions. For example, a computer-readable medium can include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium. Specific examples of computer-readable media include: magnetic storage devices, such as magnetic tape or hard disk (HDD); optical storage devices, such as compact disk (CD-ROM); memory, such as random access memory (RAM) or flash memory; and / or wired / wireless communication links.

[0024] With the rapid development of information technology and the explosive growth of data, the energy consumption problem of storage systems has become increasingly serious. Excessive energy consumption not only increases operating costs and puts great pressure on the environment, but also may make the hard disks in the storage system prone to failure, resulting in data loss or damage.

[0025] According to an embodiment of the present invention, by effectively controlling the energy consumption management of the storage system, the power consumption of the storage system can be reduced, its operating costs can be reduced, the pressure on the environment can be reduced, green and sustainable development can be achieved, the load and temperature of the hard disk can be reduced, and the reliability and security of the data can be improved.

[0026] In the process of implementing the concept of the present invention, the inventors found that the relevant energy consumption control methods for storage systems are relatively simple and difficult to adapt to more sophisticated business scenarios and energy consumption control requirements.

[0027] According to one embodiment of the present invention, the relevant energy consumption control method for the storage system mainly relies on the unified overall speed control of the hard disk rotation speed of the hard disk in the storage system, lacks other energy consumption control means except hard disk rotation speed control, and lacks energy consumption control methods for complex business scenarios and refined energy consumption control needs.

[0028] The embodiments of the present invention provide a method, system, device, equipment, medium and program product for energy consumption control of a storage system. The method includes: dividing the storage system to obtain a hot data hard disk set, a cold data hard disk set and a standby hard disk set, wherein the hot data hard disk set is used to process the reading and writing of hot data, the cold data hard disk set is used to process the batch flushing of cold data, and the standby hard disk set is used to provide a spare hard disk for the hot data hard disk set; determining a first energy consumption control strategy, a second energy consumption control strategy and a third energy consumption control strategy based on the energy consumption control level, wherein the control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy are determined according to the energy consumption control level; performing energy consumption control on the hot data hard disk set based on the first energy consumption control strategy; performing energy consumption control on the cold data hard disk set based on the second energy consumption control strategy; and performing energy consumption control on the standby hard disk set based on the third energy consumption control strategy.

[0029] It should be noted that the method provided in the embodiment of the present invention can be applied to a distributed storage system or a centralized storage system, and is not limited here.

[0030] Figure 1 A system architecture diagram schematically illustrates an energy consumption control method, system, device, medium, and program product for a storage system according to an embodiment of the present invention.

[0031] like Figure 1 As shown, a system architecture 100 is provided, which is an example of an application scenario of a distributed storage system. The system architecture 100 includes a computing cluster 110 and a storage system 120, and the computing cluster 110 and the storage system 120 communicate with each other.

[0032] According to an embodiment of the present invention, the computing cluster 110 may include a plurality of computing nodes (CN). The forms of computing nodes include a variety of situations. For example, the computing node is a host, a server, a personal computer or other device with computing processing capabilities. For example, the computing cluster 110 may include a host 110a and a host 110b. For example, the host 110a is an example of a computing node, and the host 110a may include an application 111 and a client 112. Different computing nodes in the computing cluster 110 are connected via a wired network or a wireless network. Different computing nodes in the computing cluster 110 may be distributed in different or the same locations.

[0033] According to an embodiment of the present invention, the storage system 120 includes a plurality of storage nodes (Date Node, DN). For example, the storage system 120 may include a storage node 120a, a storage node 120b, and a storage node 120c. Different storage nodes in the storage system 120 may be distributed in different or the same locations. Different storage nodes in the storage system 120 are interconnected via a high-speed network.

[0034] According to an embodiment of the present invention, a storage system includes multiple hard disks. The hard disks include but are not limited to solid state drives (SSDs), hard disk drives (HDDs), etc., and this embodiment does not limit the specific type of hard disks. For example, storage node 120a is an example of a storage system, and storage node 120a may include a hard disk 121, a controller 122, a network card 123, a processor 124, a memory 125, a power supply 126, and a fan 127, wherein hard disk 121 is an example of a hard disk in the storage system.

[0035] According to an embodiment of the present invention, a storage node is used to carry storage services applied in a computing node and respond to IO (Input / Output) requests of the computing node. For example, when a computing node wants to access business data stored on a storage node, the computing node sends a read request to the storage node, and the storage node responds to the read request, reads the business data from the hard disk, and sends the business data to the computing node. For example, when a computing node wants to save business data, the computing node sends a write request to the storage node, and the storage node responds to the write request and saves the business data to the hard disk.

[0036] Optionally, the computing cluster can be integrated with the storage system, that is, the computing nodes and the storage nodes are integrated, and one physical node includes both computing nodes and storage nodes.

[0037] In a distributed storage system scenario, the storage system may also include a controller for managing storage resources. The specific implementation may be implemented by a device running corresponding software, which may be a storage node.

[0038] According to an embodiment of the present invention, in an application scenario of a centralized storage system, the centralized storage system may be, for example, a storage array. The centralized storage system may include one or more controllers and one or more hard disks. The controller in the storage system is also called a storage array controller. The centralized storage system communicates with a host.

[0039] It should be understood that Figure 1 The number of hosts, storage nodes, and hard disks in the example is only for illustration purposes. Any number of hosts, storage nodes, and hard disks may be provided as required.

[0040] Figure 2 The flowchart of the energy consumption control method for a storage system according to an embodiment of the present invention is schematically shown.

[0041] like Figure 2 As shown, the method 200 includes operations S210 to S250.

[0042] In operation S210, the storage system is divided into a hot data hard disk set, a cold data hard disk set and a standby hard disk set, wherein the hot data hard disk set is used to process the reading and writing of hot data, the cold data hard disk set is used to process batch flushing of cold data, and the standby hard disk set is used to provide a spare hard disk for the hot data hard disk set.

[0043] In operation S220, a first energy consumption control strategy, a second energy consumption control strategy and a third energy consumption control strategy are respectively determined based on the energy consumption control level, wherein control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy are respectively determined according to the energy consumption control level.

[0044] In operation S230 , energy consumption of the hot data hard disk set is controlled based on a first energy consumption control policy.

[0045] In operation S240 , energy consumption of the cold data hard disk set is controlled based on the second energy consumption control strategy.

[0046] In operation S250 , power consumption of the standby hard disk set is controlled based on the third power consumption control policy.

[0047] According to an embodiment of the present invention, a storage system may include multiple hard disks, and the storage system may be divided according to the access frequency and importance of data, and the hard disks in the storage system may be divided into a hot data hard disk set, a cold data hard disk set, and a standby hard disk set. Exemplarily, the hot data hard disk set may be used to process the reading and writing of hot data, the cold data hard disk set may be used to process the batch flushing of cold data, and the standby hard disk set may provide a spare hard disk for the hot data hard disk set.

[0048] According to the embodiments of the present invention, hot data can be understood as data that is frequently accessed and used, which needs to be read and written quickly to meet real-time requirements, and has a greater impact on performance and energy consumption. Cold data can be understood as data that is not frequently accessed and used, which needs to ensure data integrity and persistence, and has a smaller impact on performance and energy consumption.

[0049] Exemplarily, the working modes of the hard disk may include read / write, idle and standby, and the energy consumption of the hard disk in different working modes is different. For example, in the read / write working mode, the hard disk platter rotates at full speed and performs seek and data transmission, and the energy consumption is relatively high. For example, in the idle working mode, the hard disk platter rotates at full speed, but stops seek and data transmission, and the energy consumption is relatively low. For example, in the standby working mode, the hard disk platter stops rotating, and the energy consumption is the lowest.

[0050] According to an embodiment of the present invention, the number of hard disks in the hot data hard disk set, the cold data hard disk set and the standby hard disk set can be reasonably allocated according to the actual business scenarios, performance requirements and load conditions of the storage system, and no specific restrictions are made here.

[0051] According to an embodiment of the present invention, targeted energy consumption management strategies can be formulated for hot data hard disk sets, cold data hard disk sets and standby hard disk sets respectively to achieve more refined energy consumption control, and optimize the energy consumption distribution between different hard disk groups, which is beneficial to reducing the overall energy consumption of the storage system.

[0052] According to an embodiment of the present invention, the energy consumption control level can characterize the strictness of energy consumption control of the storage system and the expected energy saving effect. By defining different energy consumption control levels, the energy consumption of the storage system can be controlled more flexibly and finely to ensure that the storage system can effectively control and optimize energy consumption while meeting the needs of business scenarios.

[0053] According to an embodiment of the present invention, an energy consumption control strategy corresponding to the energy consumption control level can be determined based on the energy consumption control level, and the control parameters of the energy consumption control strategy are determined according to the energy consumption control level. Energy consumption control strategies under different energy consumption control levels correspond to different control parameter settings, and the energy consumption control level of the storage system can be flexibly adjusted according to the business scenario and actual energy consumption control requirements to determine the control parameters of the energy consumption control strategy for the storage system, so that the storage system can achieve a balance between performance and energy consumption, effectively improve the flexibility and adaptability of the energy consumption control strategy, and thus achieve more refined energy consumption control.

[0054] According to an embodiment of the present invention, the energy consumption control strategy may include a first energy consumption control strategy, a second energy consumption control strategy and a third energy consumption control strategy. The energy consumption of a hot data hard disk set may be controlled based on the first energy consumption control strategy, the energy consumption of a cold data hard disk set may be controlled based on the second energy consumption control strategy, and the energy consumption of a standby hard disk set may be controlled based on the third energy consumption control strategy.

[0055] According to an embodiment of the present invention, by dividing the hard disks in the storage system into a hot data hard disk set, a cold data hard disk set, and a standby hard disk set according to the access frequency and importance of the data, targeted energy consumption management strategies can be formulated for the hot data hard disk set, the cold data hard disk set, and the standby hard disk set, respectively, to achieve more refined energy consumption control, and to optimize the energy consumption distribution between different hard disk groups, thereby helping to reduce the overall energy consumption of the storage system. By setting the energy consumption control level, and making the energy consumption control strategies under different energy consumption control levels correspond to different control parameter settings, the energy consumption control level of the storage system can be flexibly adjusted according to the business scenario and the actual energy consumption control requirements, to determine the control parameters of the energy consumption control strategy for the storage system, so that the storage system can achieve a balance between performance and energy consumption, effectively improve the flexibility and adaptability of the energy consumption control strategy, and thus achieve more refined energy consumption control.

[0056] In an optional embodiment, the load of the storage system can also be predicted using a deep learning model based on the historical load of the storage system. The number of hard disks in each hard disk group can be dynamically adjusted based on the predicted load of the storage system, as well as the control parameters corresponding to each energy consumption control strategy. In this way, the energy consumption of the storage system can be more refined and more accurate, and the performance requirements can be met while controlling the energy consumption of the storage system, which is conducive to optimizing the energy consumption distribution of the storage system and improving the reliability and flexibility of the storage system.

[0057] According to an embodiment of the present invention, a hot data hard disk set includes M first hard disks, M is a positive integer, the first hard disk includes at least one storage unit, N first-type hard disk arrays are constructed based on the M first hard disks, N is a positive integer and N≤M, P storage volumes are constructed based on the N first-type hard disk arrays, P is a positive integer and P≤N, and the hot data hard disk set corresponds to a first cache space; a cold data hard disk set includes Q second hard disks, Q is a positive integer, the second hard disk includes at least one storage unit, a second-type hard disk array is constructed based on the Q second hard disks, and the cold data hard disk set corresponds to a second cache space; a standby hard disk set includes S third hard disks, S is a positive integer, the third hard disk includes at least one storage unit, and a third-type hard disk array is constructed based on the S third hard disks.

[0058] According to an embodiment of the present invention, a hard disk can be understood as the physical basis of a storage system, which is used to actually store data. For example, a hot data hard disk set can include M first hard disks, where M is a positive integer. For example, a cold data hard disk set can include Q second hard disks, where Q is a positive integer. For example, a standby hard disk set can include S third hard disks, where S is a positive integer.

[0059] According to an embodiment of the present invention, the M first hard disks may be disposed in at least one storage device, and the storage device may be, for example, a physical server, a storage cabinet, etc. For example, the storage device may include a fan for heat dissipation, and the fan may reduce the temperature of the hard disks in the storage device through air flow to prevent the hard disks from overheating.

[0060] According to an embodiment of the present invention, N first-type hard disk arrays may be constructed based on M first hard disks, where N is a positive integer and N≤M. A second-type hard disk array may be constructed based on Q second hard disks. A third-type hard disk array may be constructed based on S third hard disks.

[0061] According to an embodiment of the present invention, the first type hard disk array, the second type hard disk array and the third type hard disk array can be understood as various Raid type hard disk arrays. Raid is the abbreviation of Redundant Array of Independent Disks in English, and the Chinese is "Redundant Array of Independent Disks", referred to as disk array. The management of multiple hard disks in the storage system can be achieved through the Raid method. Exemplarily, multiple hard disks can be divided into one or more Raid groups. Multiple hard disks can be organized into Raid groups and configured according to a specific Raid type.

[0062] According to the embodiment of the present invention, Raid can be understood as combining multiple independent hard disks (physical hard disks) in different ways to form a hard disk array (logical hard disk), thereby providing higher storage performance than a single hard disk and providing data backup technology. Using this technology, data can be cut into many segments and stored on each hard disk. The disk array can also use the concept of parity check. When any hard disk in the array fails, the data can still be read out. When the data is reconstructed, the data is recalculated and re-placed into the new hard disk. Raid can have multiple types, such as Raid0 type, Raid1 type, Raid10 type, Raid5 type, etc. For example, when different Raid types manage the same number of hard disks, the Raid5 type has the highest disk rate, the highest IO concurrent processing efficiency, and the corresponding energy consumption is also the highest. The energy consumption of Raid10 is second, and the energy consumption of Raid0 is the lowest.

[0063] As an example, a hot data hard disk set can be used to process the reading and writing of hot data. The first type of hard disk array can be a Raid5 type Raid group, which has high IO parallel processing efficiency, high hard disk space utilization, and high energy consumption. As an example, a cold data hard disk set can be used to process batch refresh of cold data. The second type of hard disk array can be a Raid10 type Raid group, which has good backup capabilities and low energy consumption. As an example, a standby hard disk set can be used to manage hard disks that are not needed temporarily. It can provide spare hard disks for the hot data hard disk set. The third type of hard disk array can be a Raid0 type Raid group, which has the lowest energy consumption.

[0064] Optionally, N Raid5 type Raid groups can be constructed based on M first hard disks, and the Raid type of each Raid group is Raid5 type, but the number of hard disks in each Raid group can be different, and each Raid group can also correspond to different hard disk rotation speeds. By constructing multiple Raid5 type Raid groups based on multiple first hard disks in the hot data hard disk set, the number of hard disks and hard disk rotation speed of each Raid group can be flexibly configured according to actual needs, so as to perform more flexible and sophisticated energy consumption control on the hot data hard disk set to achieve optimal performance and storage efficiency.

[0065] According to an embodiment of the present invention, P storage volumes may be constructed based on N first-type hard disk arrays, where P is a positive integer and P≤N.

[0066] According to an embodiment of the present invention, a Raid group can be combined into a storage pool, which can be used to provide a logical storage resource pool. A storage volume can be understood as a logical storage space divided from a storage pool, and a storage volume can be mapped to a host through storage system management to implement host IO (input / output) data read and write operations.

[0067] According to an embodiment of the present invention, the first hard disk may include at least one storage unit, the second hard disk may include at least one storage unit, and the third hard disk may include at least one storage unit. The storage unit may be understood as an extent, and an extent may be understood as a continuous storage space unit on a hard disk, and the physical space of the hard disk may be divided into multiple continuous areas. The extent may be used as a basic building unit of a storage pool and a storage volume to manage the allocation and recovery of storage resources.

[0068] According to an embodiment of the present invention, the hot data hard disk set corresponds to a first cache space, and the cold data hard disk set corresponds to a second cache space.

[0069] According to an embodiment of the present invention, the first cache space and the second cache space may be understood as caches corresponding to a hot data hard disk set and a cold data hard disk set, respectively.

[0070] For example, a hot data hard disk set may correspond to a first cache space (cache1), which may be used to cache recently accessed data to quickly respond to data reads and writes, thereby reducing the number of reads and writes to the first hard disk. For example, a cold data hard disk set may correspond to a second cache space (cache2), which may be used to cache cold data to be flushed, so that the cold data may be flushed to the second hard disk in batches. For example, the cold data to be flushed may be first cached to cache2, and when cache2 is full, the cold data in cache2 may be flushed to the second hard disk in batches, thereby effectively reducing the number of reads and writes to the second hard disk and reducing energy consumption.

[0071] According to an embodiment of the present invention, determining the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy based on the energy consumption control level respectively includes: determining the control parameters of the first energy consumption control strategy based on the energy consumption control level, the control parameters of the first energy consumption control strategy include at least one of the following: at least one first hard disk rotation speed, write data merge frequency, read data hit rate threshold, hard disk array read and write load threshold, storage device hard disk temperature threshold, first cache space adjustment range, storage volume read and write load threshold; determining the control parameters of the second energy consumption control strategy based on the energy consumption control level, the control parameters of the second energy consumption control strategy include at least one of the following: second hard disk rotation speed, cold data refresh read and write latency threshold, second cache space adjustment range; and determining the control parameters of the third energy consumption control strategy based on the energy consumption control level, the control parameters of the third energy consumption control strategy include at least one of the following: third hard disk rotation speed, hot data hard disk set temperature threshold.

[0072] According to an embodiment of the present invention, control parameters of the first control strategy, control parameters of the second control strategy, and control parameters of the third control strategy may be determined respectively according to the energy consumption control level.

[0073] According to one embodiment of the present invention, the control parameters of the first control strategy may include at least one of the following: at least one first hard disk rotation speed, write data merge frequency, read data hit rate threshold, hard disk array read and write load threshold, storage device hard disk temperature threshold, first cache space adjustment range, storage volume read and write load threshold.

[0074] According to an embodiment of the present invention, at least one first hard disk rotation speed can be understood as the hard disk rotation speed corresponding to each of the N first-type hard disk arrays. For example, at least one first hard disk rotation speed can include N hard disk rotation speed gears, and the N first-type hard disk arrays can correspond to the N hard disk rotation speed gears one by one. For example, a hot data hard disk set can correspond to three Raid groups of the Raid5 type, namely Raid group a, Raid group b and Raid group c. Raid group a can correspond to hard disk rotation speed gear a, Raid group b can correspond to hard disk rotation speed gear b, and Raid group c can correspond to hard disk rotation speed gear c. The first hard disk rotation speeds corresponding to different hard disk rotation speed gears can be different.

[0075] According to an embodiment of the present invention, the write data merging frequency can be understood as the frequency of centrally writing the data to be written in an append write operation. Append write means adding new data to the end of existing data instead of overwriting or modifying existing data, which can be used in scenarios such as log files and data streams.

[0076] According to an embodiment of the present invention, the read data hit rate threshold can be understood as the success rate threshold of the data reading operation from the first cache space (cache1). For example, when the actual read data hit rate is greater than or equal to the read data hit rate threshold, it indicates that the utilization efficiency of the first cache space (cache1) is high. For example, when the actual read data hit rate is less than the read data hit rate threshold, it indicates that the utilization efficiency of the first cache space (cache1) is low, and the capacity of the first cache space (cache1) can be increased to improve the read data hit rate. The first cache space adjustment range can be understood as the range of adjusting the capacity of the first cache space (cache1). For example, the first cache space adjustment range can be set to 5%. When the actual read data hit rate is less than the read data hit rate threshold, the capacity of the first cache space (cache1) can be increased by 5%, thereby improving the read data hit rate.

[0077] According to an embodiment of the present invention, the hard disk array read / write load threshold can be understood as the IOPS (Input / Output Operations Per Second) threshold of each of the N first-type hard disk arrays. IOPS can represent the number of input / output operations that the storage system can complete in a unit of time. Exemplarily, the hard disk array read / write load threshold can be, for example, the IOPS theoretical value upper limit of each of the N first-type hard disk arrays * the proportionality coefficient K1, 0<K1<1. The storage volume read / write load threshold can be understood as the IOPS threshold of each of the P storage volumes. Exemplarily, the storage volume read / write load threshold can be, for example, the IOPS theoretical value upper limit of each of the P storage volumes * the proportionality coefficient K2, 0<K2<1.

[0078] According to an embodiment of the present invention, the storage device hard disk temperature threshold can be understood as a hard disk temperature threshold that ensures the performance of the first hard disk in the storage device. For example, when the actual temperature of the first hard disk in the storage device is greater than the temperature threshold, the performance and life of the first hard disk may be affected, and cooling measures may be taken to prevent the first hard disk from overheating and causing performance degradation or damage. Exemplarily, the storage device hard disk temperature threshold can be, for example, the theoretical upper limit value of the average temperature of the first hard disk in the storage device * the proportionality coefficient K3, 0<K3<1.

[0079] According to an embodiment of the present invention, the control parameters of the second energy consumption control strategy may include at least one of the following: a second hard disk rotation speed, a cold data flush read / write latency threshold, and a second cache space adjustment range.

[0080] According to an embodiment of the present invention, the second hard disk rotation speed can be understood as the hard disk rotation speed corresponding to the second type hard disk array. For example, the cold data hard disk set can correspond to a Raid group of Raid10 type, and the Raid group can correspond to the second hard disk rotation speed.

[0081] According to an embodiment of the present invention, the cold data read / write delay threshold can be understood as the time required to complete the batch flushing of cold data to the second hard disk. For example, when the actual cold data read / write delay is greater than the cold data read / write delay threshold, it means that the cold data cannot be written to the disk in time, and the capacity of the second cache space (cache2) can be reduced to speed up the data landing, reduce the cold data read / write delay, and thus reduce energy consumption. The second cache space adjustment range can be understood as the range of adjustment of the capacity of the second cache space (cache2). For example, the second cache space adjustment range can be set to 5%. When the actual cold data read / write delay is greater than the cold data read / write delay threshold, the capacity of the second cache space (cache2) can be reduced by 5%, thereby speeding up the cold data landing.

[0082] According to an embodiment of the present invention, the control parameters of the third energy consumption control strategy include at least one of the following: a third hard disk rotation speed, and a temperature threshold of a hot data hard disk set.

[0083] According to an embodiment of the present invention, the third hard disk rotation speed can be understood as the hard disk rotation speed corresponding to the third type hard disk array. The hot data hard disk set temperature threshold can be understood as the hard disk temperature threshold that ensures the performance of the first hard disk in the hot data hard disk set. The hot data hard disk set temperature threshold can be, for example, the theoretical upper limit value of the average temperature of the first hard disk in the hot data hard disk set * the proportionality coefficient K4, 0<K4<1.

[0084] For example, different Raid types of hard disks have different hard disk rotation speeds. The first type of hard disk array has the highest hard disk rotation speed, the second type of hard disk array has the second lowest hard disk rotation speed. For example, the first hard disk rotation speed> the second hard disk rotation speed> the third hard disk rotation speed.

[0085] It should be noted that the control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy can be preset parameters, and those skilled in the art can reasonably set the values ​​of the various control parameters according to actual needs, which is not specifically limited here. The control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy can be adjusted, for example, through a serial port module, which is not limited here.

[0086] According to an embodiment of the present invention, by setting the above control parameters for the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy respectively, multi-dimensional and fine-grained energy consumption control management of read data, write data, read and write load, first cache space capacity, second cache space capacity, hard disk rotation speed, hard disk temperature and other aspects can be achieved, thereby effectively improving the flexibility and adaptability of the energy consumption control strategy, thereby achieving more refined energy consumption control.

[0087] According to an embodiment of the present invention, the energy consumption control level includes a basic energy consumption control level, a first energy consumption control level and a second energy consumption control level, wherein the method includes: when the energy consumption control level is the first energy consumption control level, based on the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the basic energy consumption control level, determining the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the first energy consumption control level; when the energy consumption control level is the second energy consumption control level, based on the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the basic energy consumption control level, determining the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the second energy consumption control level.

[0088] According to an embodiment of the present invention, the storage system generally has different emphases on the performance and energy consumption of the storage system in different business application scenarios, so the corresponding energy consumption control requirements will also be different. For example, in some business scenarios, the storage system needs to have lower energy consumption, so a stronger energy consumption control can be adopted for the storage system to minimize the energy consumption of the storage system. For example, in some business scenarios, the storage system needs to have higher performance, so a weaker energy consumption control can be adopted for the storage system to maximize the performance of the storage system.

[0089] According to an embodiment of the present invention, the normal energy consumption control level may correspond to a relatively moderate energy consumption control requirement, and the performance and energy consumption of the storage system are relatively moderate. The first energy consumption control level may correspond to a relatively strong energy consumption control requirement, and the performance and energy consumption of the storage system are relatively low. The second energy consumption control level may correspond to a relatively weak energy consumption control requirement, and the performance and energy consumption of the storage system are relatively high.

[0090] According to one embodiment of the present invention, when energy consumption control is performed on a storage system, the energy consumption control level can be initially defaulted to a normal energy consumption control level, the control parameter setting corresponding to the normal energy consumption control level can be used as a reference benchmark, and the control parameters corresponding to other energy consumption control levels can be determined by adjusting the control parameters corresponding to the normal energy consumption control level.

[0091] As an example, the control parameters corresponding to the normal energy consumption control level can be adjusted to obtain the control parameters corresponding to the first energy consumption control level. Under the first energy consumption control level, more attention will be paid to the energy consumption of the storage system, and the energy consumption control of the storage system will be stronger. Among them:

[0092] The write data merging frequency, the first cache space adjustment range, and the second cache space adjustment range corresponding to the first energy consumption control level are respectively higher than the write data merging frequency, the first cache space adjustment range, and the second cache space adjustment range corresponding to the basic energy consumption control level; and

[0093] The hard disk array read and write load threshold, storage volume read and write load threshold, storage device hard disk temperature threshold, and hot data hard disk set temperature threshold corresponding to the first energy consumption control level are respectively lower than the hard disk array read and write load threshold, storage volume read and write load threshold, storage device hard disk temperature threshold, and hot data hard disk set temperature threshold corresponding to the basic energy consumption control level.

[0094] As another example, the control parameters corresponding to the normal energy consumption control level may be adjusted to obtain the control parameters corresponding to the second energy consumption control level. At the second energy consumption control level, more attention will be paid to the performance of the storage system, and the energy consumption control of the storage system will be weaker. Among them:

[0095] The write data merging frequency, the first cache space adjustment range, and the second cache space adjustment range corresponding to the second energy consumption control level are respectively lower than the write data merging frequency, the first cache space adjustment range, and the second cache space adjustment range corresponding to the basic energy consumption control level; and

[0096] The hard disk array read and write load threshold, storage volume read and write load threshold, storage device hard disk temperature threshold, and hot data hard disk set temperature threshold corresponding to the second energy consumption control level are respectively higher than the hard disk array read and write load threshold, storage volume read and write load threshold, storage device hard disk temperature threshold, and hot data hard disk set temperature threshold corresponding to the basic energy consumption control level.

[0097] According to an embodiment of the present invention, by numerically adjusting the control parameters corresponding to the ordinary energy consumption control level, the control parameters corresponding to the first energy consumption control level and / or the second energy consumption control level can be obtained, so that the control parameters of each energy consumption control strategy can be quickly and flexibly adjusted according to business scenarios and actual energy consumption requirements. It has the advantages of simplicity, speed, high flexibility, high environmental adaptability, etc., and can achieve more refined energy consumption control of the storage system.

[0098] According to an embodiment of the present invention, the first energy consumption control strategy includes at least one of the following: a write data energy consumption control sub-strategy, wherein the control parameters of the write data energy consumption control sub-strategy include the write data merge frequency; a read data energy consumption control sub-strategy, wherein the control parameters of the read data energy consumption control sub-strategy include the read data hit threshold; a disk array energy consumption control sub-strategy, wherein the control parameters of the disk array energy consumption control sub-strategy include the first hard disk rotation speed, the hard disk array read and write load threshold, the storage device hard disk temperature threshold, and the first cache space adjustment range; a storage unit energy consumption control sub-strategy, wherein the control parameters of the storage unit energy consumption control sub-strategy include: the hard disk array read and write load threshold, and the storage volume read and write load threshold.

[0099] According to an embodiment of the present invention, a multi-dimensional energy consumption control strategy may be adopted for a hot data hard disk set, for example, it may include at least one of the following: write IO management dimension, read IO management dimension, Raid group management dimension, and extent data management dimension.

[0100] According to an embodiment of the present invention, the write data energy consumption control sub-strategy can control the energy consumption of the hot data hard disk set from the write IO management dimension. Exemplarily, the control parameters of the write data energy consumption control sub-strategy can include the write data merge frequency.

[0101] According to an embodiment of the present invention, the read data energy consumption control sub-strategy can control the energy consumption of the hot data hard disk set from the read IO management dimension. Exemplarily, the control parameters of the read data energy consumption control sub-strategy can include a read data hit threshold.

[0102] According to an embodiment of the present invention, the disk array energy consumption control sub-strategy can control the energy consumption of the hot data hard disk set from the Raid group management dimension. Exemplarily, the control parameters of the disk array energy consumption control sub-strategy may include at least one of the following: the first hard disk rotation speed, the hard disk array read and write load threshold, the storage device hard disk temperature threshold, and the first cache space adjustment range.

[0103] According to an embodiment of the present invention, the storage unit energy consumption control sub-strategy can control the energy consumption of the hot data hard disk set from the extent data management dimension. Exemplarily, the control parameters of the storage unit energy consumption control sub-strategy include at least one of the following: hard disk array read / write load threshold, storage volume read / write load threshold.

[0104] According to an embodiment of the present invention, for a hot data hard disk collection, energy consumption control can be performed on write IO based on the write data energy consumption control sub-strategy, energy consumption control can be performed on read IO based on the read data energy consumption control sub-strategy, energy consumption control can be performed on Raid group based on disk array energy consumption control sub-strategy, and energy consumption control can be performed on multiple extents in a storage volume based on the storage unit energy consumption control sub-strategy. In this way, multi-dimensional, fine-grained, and refined energy consumption control can be performed on the hot data hard disk collection, thereby effectively reducing the energy consumption of the hot data hard disk collection, which in turn can help reduce the overall energy consumption of the storage system.

[0105] According to an embodiment of the present invention, the write data energy consumption control sub-strategy includes, based on the write data merging frequency, repeatedly performing the following operations: determining the distribution information of the storage units corresponding to each of the P storage volumes in the M first hard disks based on the usage information of at least one storage unit of each of the M first hard disks; determining the number of available storage units of each of the M first hard disks based on the distribution information of the storage units corresponding to each of the P storage volumes in the M first hard disks; determining the target first hard disk based on the number of available storage units of each of the M first hard disks and the write data demand information of each of the P storage volumes; and writing the data to be written into the target first hard disk.

[0106] According to one embodiment of the present invention, in an append-write log architecture, when writing IO addressing, the distribution information of the extents corresponding to each of the P storage volumes in the M first hard disks can be determined based on the usage information of the extents of each of the M first hard disks, and then the number of available extents of each of the M first hard disks can be determined.

[0107] According to one embodiment of the present invention, the write data demand information of each of the P storage volumes can be understood as the free hard disk capacity required for the data to be written to each of the P storage volumes. Exemplarily, the first hard disk that can meet the free hard disk capacity required by the P storage volumes at one time and has the least number of available extents can be determined as the target first hard disk. The write IO data in the P storage volumes can be written to the target first hard disk to reduce the number of read and write times of other first hard disks, thereby reducing the total number of hard disk read and write times, thereby reducing energy consumption. Optionally, the above operation of writing the write IO data to the target first hard disk can be performed according to the write data merging frequency (times / h).

[0108] As an example, as shown in Table 1 and Table 2, 7 hard disks are used to construct 5 storage volumes. The selected boxes in Table 1 represent the distribution information of the extents corresponding to Volume 1 to Volume 5 in Hard Disk 1 to Hard Disk 7. For example, ■ represents that the extents corresponding to the storage volume are distributed on the hard disk, and □ represents that the extents corresponding to the storage volume are not distributed on the hard disk. For example, Volume 1 is constructed based on Hard Disk 1 to Hard Disk 7, Volume 2 is constructed based on Hard Disk 1 to Hard Disk 6, Volume 3 is constructed based on Hard Disk 1 to Hard Disk 5, Volume 4 is constructed based on Hard Disk 1 to Hard Disk 5, and Volume 5 is constructed based on Hard Disk 1 to Hard Disk 5. The number of available extents of Hard Disk 1 to Hard Disk 7 is 50, 1000, 1500, 2000, 300, 1200, and 50, respectively.

[0109] For example, the number of free extents required for the data to be written to Volume 1-Volume 5 is 30, 100, 200, 300, and 20 respectively, and the total number of free extents required for the data to be written to Volume 1-Volume 5 is 650. Hard disk 2, which can meet the free hard disk capacity required by Volume 1-Volume 5 at one time and has the least number of available extents, can be determined as the target hard disk, and the data to be written to Volume 1-Volume 5 can be written to Hard disk 2 in a centralized manner to reduce the read and write times of other hard disks, thereby reducing the total hard disk read and write times, thereby reducing energy consumption.

[0110]

[0111] Table 1

[0112]

[0113] Table 2

[0114] According to an embodiment of the present invention, by writing write IO data centrally to a target first hard disk that can meet the free hard disk capacity required by P storage volumes at one time and has the least number of available extents, the read and write times of other first hard disks can be significantly reduced, and the total hard disk read and write times can be reduced, thereby effectively reducing the energy consumption of the hot data hard disk set, which is beneficial to the overall energy consumption of the storage system.

[0115] According to an embodiment of the present invention, the read data energy consumption control sub-strategy includes: when the target data is not read from the first cache space, reading the target data from M first hard disks and writing the read target data into the first cache space; monitoring the read data hit rate of the first cache space; when the read data hit rate of the first cache space meets a first preset condition, increasing the capacity of the first cache space based on an adjustment range of the first cache space; wherein the first preset condition includes: within a first preset period, the read data hit rate of the first cache space is less than or equal to a read data hit rate threshold.

[0116] According to one embodiment of the present invention, when reading IO, the target data can be preferentially addressed from the first cache space (cache1). If the target data is read in cache1, the target data is returned to the host. If the target data is not read in cache1, the target data is addressed from the first hard disk, and after the target data is read from the first hard disk, the target data is written to cache1, and cache1 is updated through the LRU (Least Recently Used) algorithm.

[0117] According to an embodiment of the present invention, the read IO hit rate of cache1 can be monitored. Within a first preset period, if the read IO hit rate of cache1 is less than or equal to the read data hit rate threshold, the capacity of cache1 can be increased based on the adjustment range of the first cache space (such as 5%). By increasing the capacity of the first cache space (cache1), the read data hit rate of the first cache space can be improved, thereby reducing the number of read and write times of the first hard disk, and further reducing energy consumption.

[0118] It should be noted that those skilled in the art can reasonably set the first preset period according to actual needs, for example, it can be 10 days, and there is no limitation here.

[0119] According to an embodiment of the present invention, the disk array energy consumption control sub-strategy includes: determining the hard disk rotation speed of the first hard disk corresponding to each of the N first-type hard disk arrays based on the business type carried by each of the N first-type hard disk arrays and at least one first hard disk rotation speed; monitoring the read and write load of each of the N first-type hard disk arrays and the temperature of each of the M first hard disks; adjusting the hard disk rotation speed of the first hard disk corresponding to each of the N first-type hard disk arrays based on the hard disk array read and write load threshold and the read and write load of each of the N first-type hard disk arrays; adjusting the fan rotation speed of the storage device where each of the M first hard disks is located based on the storage device hard disk temperature threshold and the temperature of each of the M first hard disks.

[0120] According to one embodiment of the present invention, N Raid5 type Raid groups can be constructed based on M first hard disks, different Raid groups can be assigned different host services, and different Raid groups carry different business pressures. The first hard disk speed corresponding to each Raid group can be determined according to the business pressure borne by each Raid group and at least one preset first hard disk speed. For example, the greater the business pressure borne by the Raid group, the greater the first hard disk speed corresponding to the Raid group.

[0121] According to one embodiment of the present invention, the number of hard disks in each Raid group can be different. Although the above-mentioned Raid groups are all Raid5 types, the number of hard disks in each Raid group is different. When writing the same amount of data, the number of read and write times of each hard disk in different Raid groups is different. For example, for a Raid group with a large number of hard disks, when writing the same amount of data, the load of each hard disk is more dispersed and the number of read and write times is less, so that a lower hard disk rotation speed can meet the performance requirements of data writing, thereby reducing the energy consumption of each hard disk.

[0122] As an example, as shown in Table 2, 5 Raid5 type Raid groups can be constructed based on 25 first hard disks, namely Raid Group 1, Raid Group 2, Raid Group 3, Raid Group 4 and Raid Group 5. Among them, Raid Group 1, Raid Group 2, Raid Group 3, Raid Group 4 and Raid Group 5 correspond to hard disk speed 1, hard disk speed 2, hard disk speed 3, hard disk speed 4 and hard disk speed 5 respectively. The business pressure borne by Raid Group 1, Raid Group 2, Raid Group 3, Raid Group 4 and Raid Group 5 gradually decreases, and the corresponding hard disk speed 1, hard disk speed 2, hard disk speed 3, hard disk speed 4 and hard disk speed 5 gradually decrease.

[0123] As an example, as shown in Table 3, hard disks 1 to 7 corresponding to Raid group 1 and Raid group 2 are set in storage device 1, and the fan speed corresponding to storage device 1 is A1. Hard disks 8 to 18 corresponding to Raid group 3 and Raid group 4 are set in storage device 2, and the fan speed corresponding to storage device 2 is A2. Hard disks 19 to 25 corresponding to Raid group 5 are set in storage device 3, and the fan speed corresponding to storage device 3 is A3.

[0124]

[0125] Table 3

[0126] According to one embodiment of the present invention, the IOPS of each Raid group and the hard disk temperature of each first hard disk can be monitored. For example, after a preset period of time, if the IOPS of a Raid group is greater than the theoretical upper limit of the IOPS of the Raid group * 90%, the speed of the first hard disk corresponding to the Raid group can be increased. For example, after a preset period of time, if the IOPS of a Raid group is less than the theoretical upper limit of the IOPS of the Raid group * 50%, the speed of the first hard disk corresponding to the Raid group can be reduced. For example, after a preset period of time, if the average temperature of the first hard disk in a storage device is greater than the theoretical upper limit of the average temperature of the first hard disk in the storage device * 90%, the speed of the fan corresponding to the storage device can be increased. For example, after a preset period of time, if the average temperature of the first hard disk in a storage device is less than the theoretical upper limit of the average temperature of the first hard disk in the storage device * 50%, the speed of the fan corresponding to the storage device can be reduced.

[0127] It should be noted that those skilled in the art can reasonably set the preset duration according to actual needs, for example, it can be 30 minutes, and there is no limitation here.

[0128] According to an embodiment of the present invention, a storage unit energy consumption control sub-strategy includes: monitoring the read and write loads of each of P storage volumes, and the read and write loads of the disk arrays corresponding to the P storage volumes; when the read and write loads of the storage volumes and the read and write loads of the disk arrays corresponding to the storage volumes meet a second preset condition, determining the data storage unit to be migrated out of the disk array for data to be migrated out, and the data storage unit to be migrated into the disk array for data to be migrated in from the disk arrays corresponding to the storage volumes; migrating the data to be migrated stored in the data storage unit to be migrated out to the data storage unit to be migrated in; wherein the second preset condition includes: the read and write load of the storage volume is less than or equal to the storage volume read and write load threshold, and the read and write load of the disk array for data to be migrated out is greater than the hard disk array read and write load threshold, and the read and write load of the disk array for data to be migrated in is less than the hard disk array read and write load threshold.

[0129] According to an embodiment of the present invention, the IOPS of each storage volume and the IOPS of each Raid group corresponding to each storage volume may be monitored.

[0130] As an example, as shown in Table 4 and Table 5, volume 1 includes Raid group 1 and Raid group 2, Raid group 1 corresponds to extent1-extent3, and Raid group 2 corresponds to extent4-extent6. For example, the IOPS of volume 1 and the IOPS of Raid group 1 and Raid group 2 can be monitored. In the second preset cycle, if the IOPS value of volume 1 is less than or equal to the storage volume read and write load threshold of the volume, but the IOPS value of Raid group 1 is greater than the hard disk array read and write load threshold of the Raid group, and the IOPS value of Raid group 2 is less than the hard disk array read and write load threshold of the Raid group, the data stored in extent3 can be migrated to extent4.

[0131]

[0132] Table 4

[0133]

[0134] Table 5

[0135] It should be noted that those skilled in the art can reasonably set the second preset period according to actual needs, for example, it can be 1 day, and there is no limitation here.

[0136] According to an embodiment of the present invention, the second energy consumption control strategy includes: determining the hard disk rotation speed of each of the Q second hard disks as the second hard disk rotation speed; monitoring the cold data refresh delay of each of the Q second hard disks; when the cold data refresh delay of each of the Q second hard disks meets the third preset condition, reducing the capacity of the second cache space based on the second cache space adjustment amplitude; wherein the third preset condition includes: within the third preset period, the cold data refresh delay of each of the Q second hard disks is greater than the cold data refresh read and write delay threshold.

[0137] According to one embodiment of the present invention, when flushing cold data, the cold data to be flushed can be cached in cache2 first, and when cache2 is full, the cold data in cache2 can be flushed in batches to the second hard disk, thereby effectively reducing the number of read and write times of the second hard disk and reducing energy consumption.

[0138] According to an embodiment of the present invention, the cold data refresh delay of each of the Q second hard disks can be monitored. Within the third preset period, if the cold data refresh delay of each of the Q second hard disks is greater than the cold data refresh read and write delay threshold, it means that the current energy consumption control is too low and cannot meet the system performance requirements. Then, the capacity of the second cache space (cache2) can be reduced based on the second cache space adjustment range (such as 5%). By reducing the capacity of the second cache space (cache2), the cold data can be accelerated to disk, thereby reducing the cold data refresh delay, and further reducing energy consumption.

[0139] It should be noted that those skilled in the art can reasonably set the third preset period according to actual needs, for example, it can be 30 minutes, and there is no limitation here.

[0140] According to an embodiment of the present invention, the third energy consumption control strategy includes: determining the hard disk rotation speed of each of the S third hard disks as the third hard disk rotation speed; monitoring the temperature of the hot data hard disk collection; when the temperature of the hot data hard disk collection meets the fourth preset condition, switching at least one of the S third hard disks to the first hard disk; wherein the fourth preset condition includes: within a fourth preset period, the temperature of the hot data hard disk collection is greater than the hot data hard disk collection temperature threshold.

[0141] According to an embodiment of the present invention, the third hard disk rotation speed may be set to 0, for example, thereby significantly reducing the overall energy consumption of the storage system.

[0142] According to one embodiment of the present invention, the hard disk temperature of each first hard disk in the hot data hard disk set can be monitored. Within the fourth preset period, if the average temperature of each first hard disk in the hot data hard disk set is greater than the temperature threshold of the hot data hard disk set, a hard disk can be awakened from the standby area and supplemented to the Raid group with the largest IOPS value in the hot data hard disk set. The number of first hard disks in the Raid group increases, and when processing the same business volume, the number of IO operations of each first hard disk will be reduced, thereby achieving temperature control.

[0143] The energy consumption control method for a storage system provided by an embodiment of the present invention divides the hard disks in the storage system into a hot data hard disk set, a cold data hard disk set and a standby hard disk set according to the access frequency and importance of the data, and can formulate targeted energy consumption management strategies for the hot data hard disk set, the cold data hard disk set and the standby hard disk set respectively, so as to achieve more refined energy consumption control, and can optimize the energy consumption distribution between different hard disk groups, thereby helping to reduce the overall energy consumption of the storage system. Among them, for the hot data hard disk set, by writing the write IO data to the target first hard disk, the number of read and write times of other hard disks can be reduced; by monitoring the cache1 hit rate, increasing the cache1 capacity to improve the read IO hit rate when the first preset condition is met, the number of read and write times of the hard disk can be reduced. By constructing multiple Raid groups, the hard disk speed management of the Raid group dimension under multiple volumes and multiple disks and the extent data migration of single volume and multiple Raid groups can be realized. For the cold data hard disk set, the read and write data can be cached through the large-capacity cache2. After the cache2 is full, the hard disk read and write operations are performed in batches, which can reduce the number of read and write operations on the second hard disk; by monitoring the cold data refresh delay, reducing the cache2 capacity to speed up the data drop to the disk when the third preset condition is met, the cold data refresh delay can be reduced. For the standby hard disk set, the power consumption can be minimized by setting the third hard disk speed to 0; by monitoring the average hard disk temperature of the hot data hard disk set, when the fourth preset condition is met, a hard disk can be awakened from the standby area and supplemented to the Raid group with the largest IOPS value in the hot data hard disk set.

[0144] According to an embodiment of the present invention, by setting the energy consumption control level and making the energy consumption control strategies under different energy consumption control levels correspond to different control parameter settings, the energy consumption control level of the storage system can be flexibly adjusted according to the business scenario and actual energy consumption control requirements to determine the control parameters of the energy consumption control strategy used for the storage system, so that the storage system can achieve a balance between performance and energy consumption, effectively improve the flexibility and adaptability of the energy consumption control strategy, and thus achieve more refined energy consumption control.

[0145] Figure 3 The structure block diagram of the energy consumption control system for a storage system according to an embodiment of the present invention is schematically shown.

[0146] like Figure 3 As shown, the system includes a monitoring module and an energy consumption control module.

[0147] The monitoring module is used to monitor the status information of the storage system. Exemplarily, the status information of the storage system may include at least one of the following: the read data hit rate of the first cache space, the read and write load of each of the N first-type hard disk arrays, the temperature of each of the M first hard disks, the read and write load of each of the P storage volumes, the cold data refresh latency of each of the Q second hard disks, and the temperature of the hot data hard disk set.

[0148] The energy consumption control module is used to control the energy consumption of the storage system according to the above method based on the status information of the storage system.

[0149] Figure 4 The structure block diagram of the energy consumption control device for a storage system according to an embodiment of the present invention is schematically shown.

[0150] like Figure 4 As shown, the device 400 includes a division module 410 , a determination module 420 , a first energy consumption control module 430 , a second energy consumption control module 440 and a third energy consumption control module 450 .

[0151] The partitioning module 410 is used to partition the storage system into a hot data hard disk set, a cold data hard disk set and a standby hard disk set, wherein the hot data hard disk set is used to process the reading and writing of hot data, the cold data hard disk set is used to process the batch flushing of cold data, and the standby hard disk set is used to provide a spare hard disk for the hot data hard disk set.

[0152] The determination module 420 is used to determine the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy based on the energy consumption control level, wherein the control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy are determined according to the energy consumption control level.

[0153] The first energy consumption control module 430 is used to control the energy consumption of the hot data hard disk set based on the first energy consumption control strategy.

[0154] The second energy consumption control module 440 is used to control the energy consumption of the cold data hard disk set based on the second energy consumption control strategy.

[0155] The third energy consumption control module 450 is used to control the energy consumption of the standby hard disk set based on a third energy consumption control strategy.

[0156] According to an embodiment of the present invention, the determination module may include a first control parameter determination submodule, a second control parameter determination submodule, and a third control parameter determination submodule.

[0157] The first control parameter determination submodule is used to determine the control parameters of the first energy consumption control strategy based on the energy consumption control level. The control parameters of the first energy consumption control strategy include at least one of the following: at least one first hard disk rotation speed, write data merge frequency, read data hit rate threshold, hard disk array read and write load threshold, storage device hard disk temperature threshold, first cache space adjustment range, storage volume read and write load threshold.

[0158] The second control parameter determination submodule is used to determine the control parameters of the second energy consumption control strategy based on the energy consumption control level. The control parameters of the second energy consumption control strategy include at least one of the following: the second hard disk rotation speed, the cold data read and write delay threshold, and the second cache space adjustment range.

[0159] The third control parameter determination submodule is used to determine the control parameters of the third energy consumption control strategy based on the energy consumption control level. The control parameters of the third energy consumption control strategy include at least one of the following: a third hard disk rotation speed and a hot data hard disk set temperature threshold.

[0160] According to an embodiment of the present invention, the energy consumption control level includes a basic energy consumption control level, a first energy consumption control level and a second energy consumption control level. The device may also include a first energy consumption control level module and a second energy consumption control level module.

[0161] The first energy consumption control level module is used to determine the control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the first energy consumption control level based on the control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the basic energy consumption control level when the energy consumption control level is the first energy consumption control level.

[0162] The second energy consumption control level module is used to determine the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the second energy consumption control level based on the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the basic energy consumption control level when the energy consumption control level is the second energy consumption control level.

[0163] According to an embodiment of the present invention, any multiple modules of the partitioning module 410, the determination module 420, the first energy consumption control module 430, the second energy consumption control module 440 and the third energy consumption control module 450 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the partitioning module 410, the determination module 420, the first energy consumption control module 430, the second energy consumption control module 440 and the third energy consumption control module 450 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the division module 410, the determination module 420, the first energy consumption control module 430, the second energy consumption control module 440 and the third energy consumption control module 450 can be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function can be executed.

[0164] It should be noted that the energy consumption control device part for the storage system in the embodiment of the present invention corresponds to the energy consumption control method part for the storage system in the embodiment of the present invention. The description of the energy consumption control device part for the storage system specifically refers to the energy consumption control method part for the storage system, which will not be repeated here.

[0165] Figure 5 A block diagram of an electronic device suitable for implementing an energy consumption control method for a storage system according to an embodiment of the present invention is schematically shown.

[0166] like Figure 5 As shown, the electronic device 500 according to an embodiment of the present invention includes a processor 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 to a random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.

[0167] In RAM 503, various programs and data required for the operation of electronic device 500 are stored. Processor 501, ROM 502 and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations of the method flow according to the embodiment of the present invention by executing the program in ROM 502 and / or RAM 503. It should be noted that the program can also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 can also perform various operations of the method flow according to the embodiment of the present invention by executing the program stored in the one or more memories.

[0168] According to an embodiment of the present invention, the electronic device 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The electronic device 500 may further include one or more of the following components connected to the input / output (I / O) interface 505: an input portion 506 including a keyboard, a mouse, etc.; an output portion 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 508 including a hard disk, etc.; and a communication portion 509 including a network interface card such as a LAN card, a modem, etc. The communication portion 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the input / output (I / O) interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that the computer program read therefrom is installed into the storage portion 508 as needed.

[0169] The present invention also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiment; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.

[0170] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: 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 portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.

[0171] The embodiment of the present invention also includes a computer program product, which includes a computer program, and the computer program includes a program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the energy consumption control method for a storage system provided by the embodiment of the present invention.

[0172] The computer program executes the above functions defined in the system / device of the embodiment of the present invention when it is executed by the processor 501. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0173] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 509, and / or installed from the removable medium 511. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0174] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above functions defined in the system of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0175] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0176] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0177] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present invention may be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present invention. In particular, without departing from the spirit and teachings of the present invention, the features described in the various embodiments of the present invention may be combined and / or combined in various ways. All of these combinations and / or combinations fall within the scope of the present invention.

[0178] The embodiments of the present invention are described above. However, these embodiments are only for the purpose of illustration, and are not intended to limit the scope of the present invention. Although each embodiment is described above, it does not mean that the measures in each embodiment cannot be used in combination advantageously. Without departing from the scope of the present invention, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.

Claims

1. A method for controlling energy consumption of a storage system, characterized in that: The method comprises: The storage system is divided into a hot data hard disk set, a cold data hard disk set and a standby hard disk set, wherein the hot data hard disk set is used to process the reading and writing of hot data, the cold data hard disk set is used to process the batch flushing of cold data, and the standby hard disk set is used to provide a spare hard disk for the hot data hard disk set; Determine the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy respectively based on the energy consumption control level, wherein the energy consumption control level includes a basic energy consumption control level, a first energy consumption control level and a second energy consumption control level, and when the energy consumption control level is the first energy consumption control level, based on the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the basic energy consumption control level, determine the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the first energy consumption control level; when the energy consumption control level is the second energy consumption control level, based on the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the basic energy consumption control level, determine the respective control parameters of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy corresponding to the second energy consumption control level; Performing energy consumption control on the hot data hard disk set based on the first energy consumption control strategy; Performing energy consumption control on the cold data hard disk set based on the second energy consumption control strategy; and The energy consumption of the standby hard disk set is controlled based on the third energy consumption control strategy.

2. The method according to claim 1, characterized in that The hot data hard disk set includes M first hard disks, M is a positive integer, the first hard disk includes at least one storage unit, N first-type hard disk arrays are constructed based on the M first hard disks, N is a positive integer and N≤M, P storage volumes are constructed based on the N first-type hard disk arrays, P is a positive integer and P≤N, and the hot data hard disk set corresponds to a first cache space; The cold data hard disk set includes Q second hard disks, Q is a positive integer, the second hard disk includes at least one storage unit, a second type hard disk array is constructed based on the Q second hard disks, and the cold data hard disk set corresponds to a second cache space; The standby hard disk set includes S third hard disks, where S is a positive integer. The third hard disks include at least one storage unit, and a third type of hard disk array is constructed based on the S third hard disks.

3. The method according to claim 2, characterized in that The determining of the first energy consumption control strategy, the second energy consumption control strategy and the third energy consumption control strategy based on the energy consumption control level includes: Based on the energy consumption control level, determining control parameters of the first energy consumption control strategy, the control parameters of the first energy consumption control strategy including at least one of the following: at least one first hard disk rotation speed, write data merge frequency, read data hit rate threshold, hard disk array read and write load threshold, storage device hard disk temperature threshold, first cache space adjustment amplitude, storage volume read and write load threshold; Based on the energy consumption control level, determining control parameters of the second energy consumption control strategy, the control parameters of the second energy consumption control strategy including at least one of the following: a second hard disk rotation speed, a cold data read / write latency threshold, and a second cache space adjustment range; and Based on the energy consumption control level, control parameters of the third energy consumption control strategy are determined, and the control parameters of the third energy consumption control strategy include at least one of the following: a third hard disk rotation speed and a temperature threshold of a hot data hard disk set.

4. The method according to claim 3, characterized in that: The write data merging frequency, the first cache space adjustment amplitude, and the second cache space adjustment amplitude corresponding to the first energy consumption control level are respectively greater than the write data merging frequency, the first cache space adjustment amplitude, and the second cache space adjustment amplitude corresponding to the basic energy consumption control level; the hard disk array read and write load threshold, the storage volume read and write load threshold, the storage device hard disk temperature threshold, and the hot data hard disk set temperature threshold corresponding to the first energy consumption control level are respectively less than the hard disk array read and write load threshold, the storage volume read and write load threshold, the storage device hard disk temperature threshold, and the hot data hard disk set temperature threshold corresponding to the basic energy consumption control level; The write data merging frequency, the first cache space adjustment amplitude, and the second cache space adjustment amplitude corresponding to the second energy consumption control level are respectively smaller than the write data merging frequency, the first cache space adjustment amplitude, and the second cache space adjustment amplitude corresponding to the basic energy consumption control level; the hard disk array read and write load threshold, the storage volume read and write load threshold, the storage device hard disk temperature threshold, and the hot data hard disk collection temperature threshold corresponding to the second energy consumption control level are respectively larger than the hard disk array read and write load threshold, the storage volume read and write load threshold, the storage device hard disk temperature threshold, and the hot data hard disk collection temperature threshold corresponding to the basic energy consumption control level.

5. The method according to claim 3, characterized in that: The first energy consumption control strategy includes at least one of the following: A data writing energy consumption control sub-strategy, wherein the control parameters of the data writing energy consumption control sub-strategy include a data writing merge frequency; A data read energy consumption control sub-strategy, wherein the control parameters of the data read energy consumption control sub-strategy include a data read hit threshold; A disk array energy consumption control sub-strategy, wherein the control parameters of the disk array energy consumption control sub-strategy include a first hard disk rotation speed, a hard disk array read / write load threshold, a storage device hard disk temperature threshold, and a first cache space adjustment range; A storage unit energy consumption control sub-strategy, wherein the control parameters of the storage unit energy consumption control sub-strategy include: a hard disk array read / write load threshold, and a storage volume read / write load threshold.

6. The method according to claim 5, characterized in that The data writing energy consumption control sub-strategy includes, based on the data writing merge frequency, repeatedly performing the following operations: Determine, based on usage information of at least one storage unit of each of the M first hard disks, distribution information of storage units corresponding to each of the P storage volumes in the M first hard disks; Determine the number of available storage units of each of the M first hard disks based on distribution information of the storage units corresponding to each of the P storage volumes in the M first hard disks; Determining a target first hard disk based on the number of available storage units of each of the M first hard disks and the write data requirement information of each of the P storage volumes; The data set to be written is centrally written into the target first hard disk.

7. The method according to claim 5, characterized in that The data reading energy consumption control sub-strategy includes: If the target data is not read from the first cache space, read the target data from the M first hard disks, and write the read target data into the first cache space; Monitoring a read data hit rate of the first cache space; When a read data hit rate of the first cache space satisfies a first preset condition, increasing the capacity of the first cache space based on an adjustment range of the first cache space; The first preset condition includes: within a first preset period, a read data hit rate of the first cache space is less than or equal to a read data hit rate threshold.

8. The method according to claim 5, characterized in that The disk array energy consumption control sub-strategy includes: Determine the hard disk rotation speed of the first hard disk corresponding to each of the N first-type hard disk arrays based on the service type carried by each of the N first-type hard disk arrays and the at least one first hard disk rotation speed; Monitoring the read and write load of each of the N first-type hard disk arrays and the temperature of each of the M first hard disks; Based on the hard disk array read / write load threshold and the read / write load of each of the N first-type hard disk arrays, adjusting the hard disk rotation speed of each of the first hard disks corresponding to each of the N first-type hard disk arrays; Based on the storage device hard disk temperature threshold and the respective temperatures of the M first hard disks, the fan speeds of the storage devices where the M first hard disks are respectively located are adjusted.

9. The method according to claim 5, characterized in that The storage unit energy consumption control sub-strategy includes: Monitoring the read and write load of each of the P storage volumes and the read and write load of the disk arrays corresponding to each of the P storage volumes; When the read / write load of the storage volume and the read / write load of the disk array corresponding to the storage volume meet a second preset condition, determining a data storage unit to be migrated out of the disk array for data to be migrated out and a data storage unit to be migrated into of the disk array for data to be migrated in from the disk array corresponding to the storage volume; Migrating the data to be migrated stored in the data storage unit to be migrated out to the data storage unit to be migrated in; Among them, the second preset condition includes: within the second preset period, the read and write load of the storage volume is less than or equal to the storage volume read and write load threshold, and the read and write load of the disk array of data to be migrated out is greater than the hard disk array read and write load threshold, and the read and write load of the disk array of data to be migrated in is less than the hard disk array read and write load threshold.

10. The method according to claim 3, characterized in that: The second energy consumption control strategy includes: Determine the hard disk rotation speed of each of the Q second hard disks as the second hard disk rotation speed; Monitoring the cold data refresh latency of each of the Q second hard disks; When the cold data refresh delay of each of the Q second hard disks meets a third preset condition, reducing the capacity of the second cache space based on the adjustment amplitude of the second cache space; The third preset condition includes: within a third preset period, the cold data refresh delay of each of the Q second hard disks is greater than the cold data refresh read and write delay threshold.

11. The method according to claim 3, characterized in that The third energy consumption control strategy includes: Determine the hard disk rotation speed of each of the S third hard disks as the third hard disk rotation speed; Monitoring the temperature of the hot data hard disk set; When the temperature of the hot data hard disk set meets a fourth preset condition, switching at least one of the S third hard disks to the first hard disk; The fourth preset condition includes: within a fourth preset period, the temperature of the hot data hard disk set is greater than the hot data hard disk set temperature threshold.

12. An energy consumption control system for a storage system, characterized in that: include: A monitoring module, wherein the monitoring module is used to monitor the status information of the storage system; as well as An energy consumption control module, wherein the energy consumption control module is used to control the energy consumption of the storage system based on the status information of the storage system according to the method according to any one of claims 1-11.

13. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 11.

14. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.

15. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Storage system and energy-saving control method

    CN113867617A