A cache mode management method, system and device

By using programmable logic devices in multi-control array storage to manage the cache mode of each storage module during data transmission, the problem of performance inconsistency caused by turning off the cache mode is solved and the availability of the entire system is improved.

CN114879914BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210611334.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2024-10-22
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

In multi-control array storage, when the cache mode is turned off, the performance of storage features such as RAID is inconsistent during operation. In severe cases, the multi-control array storage cannot properly handle front-end services, reducing the availability of the entire system.

Method used

The cache mode of each storage module during the data transmission process is managed through programmable logic devices, and the appropriate cache mode is determined according to the business model of the data to be transmitted, ensuring that the cache is always open and avoiding performance inconsistency issues.

Benefits of technology

It effectively avoids the problem of inconsistent performance during RAID operation, enables the storage module to normally undertake front-end services, and improves the availability of the entire system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114879914B_ABST
    Figure CN114879914B_ABST
Patent Text Reader

Abstract

The present application discloses a cache mode management method, system and device. The scheme is applied to the field of data cache technology. A programmable logic device receives a business model of data to be transmitted determined by a CPU module. The business model includes the size of the data to be transmitted, the transmission order of the address and the read-write type; each storage module and the corresponding cache mode are determined according to the business model and the model-storage correspondence; and the cache mode of each determined storage module is changed to the determined cache mode. The programmable logic device is used to manage the storage modules and cache modes required for transmitting the data to be transmitted according to the business model of the data to be transmitted, which can ensure that the caches required during the data transmission process are in the open mode, thereby avoiding some storage characteristics such as inconsistent performance during RAID operation, so that the storage module can normally undertake the front-end business and improve the availability of the whole system to which the storage module belongs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data cache, and in particular to a cache mode management method, system and device. Background Art

[0002] At present, various types of caches are widely used in multi-controller array storage to accelerate front-end business. Taking the common SAS link as an example, the host business is finally stored in the disk array (that is, stored on the disk) via the front-end FC. During this period, FC controller cache, CPU L1 / L2 / L3 and other caches, memory, SAS controller cache, SAS expander cache, hard disk DRAM (some enterprise disks also have a small amount of SLC NAND involved in the cache), etc. are involved. When the cache mode of some of the above caches is in the closed mode, it is easy to cause some storage characteristics such as inconsistent performance during RAID operation. In severe cases, the multi-controller array storage cannot normally undertake the front-end business, thereby reducing the availability of the entire system to which the multi-controller array storage belongs. Summary of the invention

[0003] The purpose of the present application is to provide a cache mode management method, system and device. The solution is applied to the field of data cache technology. Through programmable logic devices, the storage modules and cache modes required for transmitting the data to be transmitted are managed according to the business model of the data to be transmitted. It can ensure that the caches required during the data transmission process are in an open mode, thereby avoiding some storage characteristics such as inconsistent performance during RAID operation, so that the storage module can normally undertake the front-end business and improve the availability of the entire system to which the storage module belongs.

[0004] To solve the above technical problems, the present application provides a cache mode management method, which is applied to a programmable logic device, including:

[0005] Receive a business model of the data to be transmitted determined by the CPU module, wherein the business model includes the size of the data to be transmitted, the transmission order of the address, and the read / write type;

[0006] Determine each storage module and a corresponding cache mode according to the business model and the model-storage correspondence, wherein the cache mode is a write cache on mode, a write cache off mode, a read cache on mode or a read cache off mode;

[0007] The determined cache mode of each of the storage modules is changed to the determined cache mode.

[0008] Preferably, each storage module includes the CPU module, the cache module, the back-end main control module and the disk array module, or includes the CPU module, the back-end main control module and the disk array module.

[0009] Preferably, it also includes:

[0010] Data exchange with the control system is carried out through the serial port module.

[0011] Preferably, after changing the determined cache mode of each storage module to the determined cache mode, the method further includes:

[0012] Monitoring performance data generated by the data to be transmitted through each of the storage modules, the performance data including IOPS and / or bandwidth and / or latency;

[0013] Determine theoretical data corresponding to the performance data of each storage module in a preset transmission mode, wherein the preset transmission mode is a normal mode or a high-performance mode, and the power consumption and transmission efficiency of the high-performance mode are both higher than those of the normal mode;

[0014] When the absolute value of the difference between any of the performance data and the corresponding theoretical data is always greater than a preset threshold within a preset time period, an alarm message is sent.

[0015] Preferably, when the absolute value of the difference between any of the performance data and the corresponding theoretical data is always greater than a preset threshold value within a preset time period, after sending the alarm information, the method further includes:

[0016] When the preset transmission mode is the normal mode:

[0017] When any of the performance data is greater than the corresponding theoretical data in the normal mode, sending to the user end a pending confirmation message on whether to update the theoretical data to the performance data, and updating the theoretical data to the performance data after receiving an affirmative response from the user end;

[0018] When any of the performance data is less than the corresponding theoretical data in the normal mode, a confirmation message is sent to the user terminal on whether to switch the normal mode to the high-performance mode, and the normal mode is switched to the high-performance mode after receiving an affirmative reply from the user terminal.

[0019] Preferably, when the absolute value of the difference between any of the performance data and the corresponding theoretical data is always greater than a preset threshold value within a preset time period, after sending the alarm information, the method further includes:

[0020] When the preset transmission mode is the high performance mode:

[0021] When any of the performance data is greater than the corresponding theoretical data in the high-performance mode, sending to the user end a pending confirmation message on whether to update the theoretical data to the performance data, and updating the theoretical data to the performance data after receiving an affirmative response from the user end;

[0022] When any of the performance data is less than the corresponding theoretical data in the high-performance mode, the cache mode of each storage module is changed until the absolute value of the difference between all the performance data and the corresponding theoretical data is always less than or equal to a preset threshold within a preset time period.

[0023] Preferably, when any of the performance data is less than the theoretical data corresponding to the normal mode, a confirmation message is sent to the user terminal on whether to switch the normal mode to the high-performance mode, and after receiving an affirmative reply from the user terminal, the normal mode is switched to the high-performance mode, and the method further includes:

[0024] When the demand information of the normal mode sent by the user terminal is received, the high performance mode is switched to the normal mode.

[0025] Preferably, when any of the performance data is less than the corresponding theoretical data in the high-performance mode, the cache mode of each of the storage modules is changed until the absolute value of the difference between all the performance data and the corresponding theoretical data is always less than or equal to a preset threshold within a preset time period, including:

[0026] Sort the storage modules to which the performance data smaller than the corresponding theoretical data in the high-performance mode belongs and the absolute values ​​of the differences between the performance data of all the storage modules through which the data to be transmitted has passed and the corresponding theoretical data from large to small;

[0027] Arrange and combine the storage modules that have completed sorting;

[0028] The cache mode of the storage module in each permutation combination is changed in turn until the absolute value of the difference between all the performance data and the corresponding theoretical data is always less than or equal to a preset threshold within a preset time period, and the change of the cache mode is a change between a write cache on mode and a write cache off mode, or a change between a read cache on mode and a read cache off mode.

[0029] To solve the above technical problems, the present application also provides a cache mode management system, including:

[0030] A business model receiving unit, used to receive the business model of the data to be transmitted determined by the CPU module, wherein the business model includes the size of the data to be transmitted, the transmission order of the address, and the read / write type;

[0031] A storage module and cache mode determination unit, used to determine each storage module and a corresponding cache mode according to the business model and the model-storage correspondence relationship, wherein the cache mode is a write cache on mode, a write cache off mode, a read cache on mode or a read cache off mode;

[0032] The cache mode changing unit is used to change the determined cache mode of each storage module to the determined cache mode.

[0033] To solve the above technical problems, the present application also provides a cache mode management device, including:

[0034] Memory for storing computer programs;

[0035] A programmable logic device is used to execute the computer program to implement the steps of the cache mode management method.

[0036] The present application provides a cache mode management method, system and device, which is applied to the field of data cache technology. A programmable logic device receives a business model of data to be transmitted determined by a CPU module, and the business model includes the size of the data to be transmitted, the transmission order of the address and the read-write type; each storage module and the corresponding cache mode are determined according to the business model and the model-storage correspondence; and the cache mode of each determined storage module is changed to the determined cache mode. Through a programmable logic device, it is possible to manage the storage modules and cache modes required for transmitting the data to be transmitted according to the business model of the data to be transmitted, which can ensure that the caches required during the data transmission process are in the open mode, thereby avoiding some storage characteristics such as inconsistent performance during RAID operation, so that the storage module can normally undertake the front-end business and improve the availability of the whole system to which the storage module belongs. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the prior art and the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 A flowchart of a cache mode management method provided in this application;

[0039] Figure 2 A schematic diagram of a cache management structure provided for this application;

[0040] Figure 3 A schematic diagram of the structure of a cache mode management system provided by this application;

[0041] Figure 4 A schematic diagram of the structure of a cache mode management device provided in this application. DETAILED DESCRIPTION

[0042] The core of the present application is to provide a cache mode management method, system and device. The solution is applied to the field of data cache technology. Through programmable logic devices, the storage modules and cache modes required for transmitting the data to be transmitted are managed according to the business model of the data to be transmitted. It can ensure that the caches required during the data transmission process are in the open mode, thereby avoiding some storage characteristics such as inconsistent performance during RAID operation, so that the storage module can normally undertake the front-end business and improve the availability of the whole system to which the storage module belongs.

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] Figure 1 A flow chart of a cache mode management method provided in the present application, which is applied to a programmable logic device, includes:

[0045] S11: receiving a service model of the data to be transmitted determined by the CPU module, where the service model includes the size of the data to be transmitted, the transmission order of the address, and the read / write type;

[0046] S12: Determine each storage module and a corresponding cache mode according to the business model and the model-storage correspondence relationship, where the cache mode is a write cache on mode, a write cache off mode, a read cache on mode, or a read cache off mode;

[0047] S13: Changing the determined cache mode of each storage module to the determined cache mode.

[0048] At present, various types of caches are widely used in multi-controller array storage to accelerate business. Taking the common SAS link as an example, the host business is finally stored in the disk array (that is, stored on the disk) through the front-end FC (Formatting Contexts), which involves FC controller cache, CPU L1 / L2 / L3 and other caches, memory, SAS controller cache, SAS expander cache, hard disk DRAM (some enterprise disks also have a small amount of SLC NAND involved in the cache), etc. When the cache mode of some of the above caches is in the closed mode, it is easy to cause some storage characteristics such as inconsistent performance during RAID operation. In severe cases, the multi-controller array storage cannot normally undertake the front-end business, thereby reducing the availability of the entire system to which the multi-controller array storage belongs.

[0049] To solve the above technical problems, the present invention proposes a cache mode management method to dynamically and uniformly manage the storage modules and their cache modes passed during the data transmission process. The method is controlled and executed by a programmable logic device, for example, by a CMO (Cache Mode Optimization) management module in the programmable logic device ARM.

[0050] Specifically, in S11, when reading and writing the data to be transmitted, the control unit in the CPU module can determine the business model of the data to be transmitted, wherein the size of the data to be transmitted in the business model is the size of the data block, the transmission order of the address includes random / sequential, and the read / write type includes read / write.

[0051] In S12, the storage modules and their cache modes that need to be passed in sequence on the transmission path of the data to be transmitted corresponding to each business model are pre-set and stored as a model-storage correspondence. After the CPU module determines the business model, the storage modules and their cache modes can be determined through the correspondence, thereby realizing dynamic management of each storage module according to the business model.

[0052] For writing data to be transmitted, the write cache on mode is the write-back mode, and the write cache off mode is the write-through mode; and whether it is writing or reading data to be transmitted, generally speaking (when there is a difference in data read and write speed between storage modules), turning on the cache of each storage module will accelerate the read and write speed to a certain extent, but when there is no difference in data read and write speed between storage modules (such as memory modules and high-performance NVME SSD disk array modules), turning off the cache of each storage module can bring a certain degree of performance improvement, such as reduced latency. Therefore, it is necessary to manage the cache mode of each storage module.

[0053] In S13, after determining the storage modules and cache modes that the data to be transmitted needs to pass through on the transmission path, it is necessary to change the cache mode of the corresponding storage module, so that the data to be transmitted can pass through each storage module in turn to complete the data transmission, thereby avoiding the problem that some storage characteristics such as inconsistent performance during RAID operation are caused by the storage modules that need to open the cache on the transmission path not opening the cache.

[0054] The transmission path when writing the data to be transmitted to the disk first passes through the storage unit in the CPU module, and the transmission path when reading the data to be transmitted from the disk finally passes through the storage unit in the CPU module, that is, each storage module includes a CPU module.

[0055] In summary, the present application provides a method for managing a cache mode, which is applied to the field of data cache technology. A programmable logic device receives a business model determined by a CPU module, and the business model includes the size of the data to be transmitted, the transmission order of the address, and the read-write type; each storage module and the corresponding cache mode are determined according to the business model and the model-storage correspondence; and the cache mode of each determined storage module is changed to the determined cache mode. A programmable logic device is used to manage the storage modules and cache modes required for transmitting the data to be transmitted according to the business model of the data to be transmitted, which can ensure that the caches required during the data transmission process are in the open mode, thereby avoiding problems such as inconsistent performance of some storage characteristics during RAID operation, so that the storage module can normally undertake the front-end business and improve the availability of the entire system to which the storage module belongs.

[0056] Based on the above embodiments:

[0057] As a preferred embodiment, each storage module includes a CPU module, a cache module, a backend main control module and a disk array module, or includes a CPU module, a backend main control module and a disk array module.

[0058] In this embodiment, reference can be made to Figure 2 , the data to be transmitted is read and written. Generally, it needs to pass through four cache modules in sequence, namely the CPU module, cache module, back-end main control module and disk array module. In special cases, such as when the data block of the data to be transmitted in the business model is small, the cache module can be skipped. Among them, the cache mode optimization management module is the CMO management module in the programmable logic device. The CPU module, cache module, back-end main control module, disk array module and cache mode optimization management module are all located on the board.

[0059] Specifically, the CPU module generally contains multiple levels of cache such as L1 / L2 / L3. In the case of limited interface opening, the L3 cache is generally regulated. This module can provide real-time feedback on the performance data generated by the data to be transmitted to the cache mode optimization management module in the programmable logic device; cache module: it generally contains memory and component high-speed cache, which is controlled by the cache mode optimization management module. This module can provide real-time feedback on the performance data generated by the data to be transmitted to the cache mode optimization management module in the programmable logic device. The multi-control cache modules communicate with each other through high-speed mirror links such as NTB or RoCE; back-end main control module: it is controlled by the cache mode optimization management module, generally a back-end board-level chip or port card such as SAS / SAS EXPANDER / PCIE / Ethernet, etc., and the module generally contains SRAM / DRAM units, which can provide real-time feedback on the performance data generated by the data to be transmitted to the cache mode optimization management module in the programmable logic device; disk array module: it is generally an HDD / SSD array, which is controlled by the cache mode optimization management module, and generally contains SRAM / DRAM or high-speed NAND units, which can provide real-time feedback on the performance data generated by the data to be transmitted to the cache mode optimization management module in the programmable logic device.

[0060] In summary, the cache mode optimization management module in the programmable logic device can dynamically manage the cache mode of the CPU module, cache module, back-end master control module and disk array module according to the business model, avoiding inconsistent performance without affecting the reliability of the cluster, ensuring that the storage can always normally undertake the front-end business, thereby improving the availability of the entire system.

[0061] As a preferred embodiment, it also includes:

[0062] Data exchange with the control system is carried out through the serial port module.

[0063] This embodiment can refer to Figure 2 , in addition to the serial port module, it can also include an indication module and a wireless module. Specifically, the serial port module: located on the board, through which the external control system and the cache mode optimization management module in the programmable logic device can exchange information. The preset time period, preset threshold and activation of related functions required to determine whether to issue an alarm in the following text can also be set through this module; the indication module: located on the board, directly controlled by the serial port module, indicating the real-time status of the cache mode optimization management module in the current programmable logic device to the outside world, such as the preset transmission mode in the following text; the wireless module: the signal of the serial port module can be converted into wireless signals such as WIFI, and the outside world can exchange information with the cache mode optimization management module without a physical serial port line.

[0064] In summary, the serial port module, the indication module and the wireless module can better interact with the cache mode optimization management module in the programmable logic device to understand the relevant processes and set the relevant parameters.

[0065] As a preferred embodiment, after the determined cache mode of each storage module is changed to the determined cache mode, the method further includes:

[0066] Monitor the performance data generated by the data to be transmitted through each storage module, the performance data including IOPS and / or bandwidth and / or latency;

[0067] Determine theoretical data corresponding to the performance data of each storage module in a preset transmission mode, the preset transmission mode is a normal mode or a high-performance mode, and the power consumption and transmission efficiency of the high-performance mode are higher than those of the normal mode;

[0068] When the absolute value of the difference between any performance data and the corresponding theoretical data is always greater than a preset threshold within a preset time period, an alarm message is sent.

[0069] In this embodiment, the cache mode optimization management module in the programmable logic device can monitor the performance data generated by each storage module when transmitting data, and issue an alarm when the performance data is abnormal.

[0070] Specifically, the performance data at least includes IOPS (Input / Output Operations Per Second, the number of read and write operations per second) and / or bandwidth and / or latency. IOPS, bandwidth and latency can be used simultaneously to characterize the efficiency of current data transmission. There are theoretical data for the business model of the current data to be transmitted, that is, the size of the performance data that should be achieved. When the performance data of the storage module actually obtained is significantly different from the theoretical data, that is, the performance data is abnormal, specifically, the absolute value of the difference between the performance data and the corresponding theoretical data is always greater than the preset threshold within a preset time period. At this time, it may be necessary to adjust the cache mode or theoretical data of the storage module. Therefore, an alarm message can be issued to prompt so that corresponding follow-up measures can be taken.

[0071] The preset data transmission mode is divided into a normal mode or a high-performance mode. The power consumption and transmission efficiency of the high-performance mode are higher than those of the normal mode. The preset transmission mode can be set in advance according to the actual application scenario and can be switched according to user needs during the data transmission process. The two transmission modes have their own advantages and disadvantages. When the user can accept data transmission with low transmission efficiency, there is no need to use the high-performance mode with high power consumption.

[0072] It should also be noted that alarms are required in both normal mode and high-performance mode, but the tolerance of the difference between performance data and theoretical data in the two modes is different. The high-performance mode requires higher data transmission efficiency, so the corresponding preset time period and preset threshold can be smaller. For example, the preset time period in normal mode is 15 minutes and the preset threshold is 20% of the fixed value; the preset time period in high-performance mode is 5 minutes and the preset threshold is 10% of the fixed value. Among them, the preset time period and preset threshold can be adjusted through the control system or serial port module.

[0073] In summary, by detecting the performance data of each storage module, an alarm message is issued when the performance data is abnormal, so as to facilitate dynamic adjustment of relevant information of the corresponding storage module, such as its cache mode and theoretical data.

[0074] As a preferred embodiment, when the absolute value of the difference between any performance data and the corresponding theoretical data is always greater than a preset threshold value within a preset time period, after sending the alarm information, the method further includes:

[0075] When the default transmission mode is normal mode:

[0076] When any performance data is greater than the corresponding theoretical data in the normal mode, a confirmation message is sent to the user end as to whether the theoretical data is updated to the performance data, and the theoretical data is updated to the performance data after receiving an affirmative response from the user end;

[0077] When any performance data is less than the corresponding theoretical data in the normal mode, a confirmation message is sent to the user end to determine whether to switch the normal mode to the high performance mode, and the normal mode is switched to the high performance mode after receiving an affirmative reply from the user end.

[0078] There are two reasons for issuing an alarm: one is that the difference between the performance data and the corresponding theoretical data is always greater than the preset threshold within the preset time period; the other is that the difference between the theoretical data and the performance data is always greater than the preset threshold within the preset time period. Therefore, after issuing an alarm, it is necessary to judge the above two situations and take corresponding measures according to the judgment results.

[0079] Specifically, in this embodiment, considering the case where the preset transmission mode is the normal mode, when any performance data is greater than the corresponding theoretical data in the normal mode, the performance data at this time is data that is found to be better than the theoretical data during actual application, and the theoretical data can be updated to the performance data. Whether to update needs to be reported to the user end, and the theoretical data is updated when the user considers the need to update the theoretical data; when any performance data is less than the corresponding theoretical data in the normal mode, the performance data at this time is small, and the data transmission efficiency is low. The data transmission efficiency can be improved, that is, switching to high-performance mode. Whether to switch needs to be reported to the user end, and when the user considers the need to switch, that is, when the user chooses to exchange high transmission efficiency at the cost of high power consumption, switch to high-performance mode.

[0080] In summary, when the preset transmission mode is the normal mode, the above measures can be taken to adjust data transmission after the alarm information is issued.

[0081] As a preferred embodiment, when the absolute value of the difference between any performance data and the corresponding theoretical data is always greater than a preset threshold value within a preset time period, after sending the alarm information, the method further includes:

[0082] When the preset transmission mode is high performance mode:

[0083] When any performance data is greater than the corresponding theoretical data in the high performance mode, a confirmation message is sent to the user end as to whether the theoretical data is updated to the performance data, and the theoretical data is updated to the performance data after receiving an affirmative response from the user end;

[0084] When any performance data is less than the corresponding theoretical data in the high performance mode, the cache mode of each storage module is changed until the absolute value of the difference between all performance data and the corresponding theoretical data is always less than or equal to the preset threshold within a preset time period.

[0085] There are two reasons for issuing an alarm: one is that the difference between the performance data and the corresponding theoretical data is always greater than the preset threshold within the preset time period; the other is that the difference between the theoretical data and the performance data is always greater than the preset threshold within the preset time period. Therefore, after issuing an alarm, it is necessary to judge the above two situations and take corresponding measures according to the judgment results.

[0086] Specifically, in this embodiment, considering the case where the preset transmission mode is the high-performance mode, when any performance data is greater than the corresponding theoretical data in the high-performance mode, the performance data at this time is data that is found to be better than the theoretical data during actual application, and the theoretical data can be updated to the performance data. Whether to update it needs to be reported to the user end, and the theoretical data is updated when the user believes that the theoretical data needs to be updated; when any performance data is less than the corresponding theoretical data in the high-performance mode, the performance data at this time is small, and the data transmission efficiency is low. The data transmission efficiency can be improved, but there is no mode with higher transmission efficiency to switch. Therefore, it is necessary to optimize the cache mode of each storage module at this time until the alarm information is no longer issued, that is, the absolute value of the difference between all performance data and the corresponding theoretical data is always less than or equal to the preset threshold within the preset time period.

[0087] In summary, when the preset transmission mode is the high-performance mode, the above measures can be taken to adjust data transmission after the alarm information is issued.

[0088] As a preferred embodiment, when any performance data is less than the corresponding theoretical data in the normal mode, a confirmation message is sent to the user terminal whether to switch the normal mode to the high-performance mode, and after receiving an affirmative reply from the user terminal, the normal mode is switched to the high-performance mode, and the method further includes:

[0089] When the normal mode requirement information sent by the user end is received, the high performance mode is switched to the normal mode.

[0090] In this embodiment, after switching to the high-performance mode, it will no longer automatically determine whether to restore to the normal mode, but will only be adjusted according to the user's needs, that is, it will only switch to the normal mode when the user terminal sends a demand information for the normal mode.

[0091] As a preferred embodiment, when any performance data is less than the corresponding theoretical data in the high performance mode, the cache mode of each storage module is changed until the absolute value of the difference between all performance data and the corresponding theoretical data is always less than or equal to the preset threshold within a preset time period, including:

[0092] Sort the storage modules to which the performance data smaller than the corresponding theoretical data in the high-performance mode belongs and the absolute values ​​of the differences between the performance data of all the storage modules through which the data to be transmitted has passed and the corresponding theoretical data from large to small;

[0093] Arrange and combine the sorted storage modules;

[0094] The cache mode of the storage module in each arrangement combination is changed in turn until the absolute value of the difference between all performance data and the corresponding theoretical data is always less than or equal to the preset threshold within a preset time period, and the change of the cache mode is a change between a write cache on mode and a write cache off mode, or a change between a read cache on mode and a read cache off mode.

[0095] In this embodiment, it is specified how to optimize the cache mode of each storage module until no alarm information is issued.

[0096] Specifically, taking the example that the storage modules are CPU module, cache module, back-end main control module and disk array module in sequence, the data is transmitted through the above four storage modules in sequence. When the performance data of the back-end main control module is less than the corresponding theoretical data in the high-performance mode, the absolute values ​​of the differences between the performance data of the back-end main control module and the CPU module and cache module that have passed and the corresponding theoretical data are sorted from large to small, for example, the back-end main control module, CPU module, cache module.

[0097] Then the above three storage modules are arranged and combined in order: back-end main control module; CPU module; cache module; back-end main control module, CPU module; back-end main control module, cache module; CPU module, cache module; back-end main control module, CPU module, cache module.

[0098] Finally, the cache mode of all storage modules in each of the above permutations is changed. If the original cache mode is write cache on mode, it is changed to write cache off mode; if the original cache mode is read cache on mode, it is changed to read cache off mode. Each permutation is changed in turn until no alarm information is issued, and the cache mode of each storage module is optimized.

[0099] In addition, the consistency of performance must be ensured within each storage module, especially the backend master control module and disk array module. On the entire data transmission path, the cache mode optimization management module in the programmable logic device dynamically adjusts the cache mode of the CPU module, cache module, backend master control module and disk array module in real time, thereby forming the maximum four-fold optimization. In particular, the four-fold cache mode optimization is performed in the high-performance mode to avoid inconsistent performance without affecting the reliability of the cluster, ensuring that the storage can always normally undertake the front-end business, thereby improving the availability of the entire system.

[0100] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a cache mode management system provided in this application includes:

[0101] The business model receiving unit 21 is used to receive the business model of the data to be transmitted determined by the CPU module, where the business model includes the size of the data to be transmitted, the transmission order of the address, and the read / write type;

[0102] A storage module and cache mode determination unit 22, used to determine each storage module and a corresponding cache mode according to the business model and the model-storage correspondence relationship, the cache mode being a write cache on mode, a write cache off mode, a read cache on mode or a read cache off mode;

[0103] The cache mode changing unit 23 is used to change the determined cache mode of each storage module to a determined cache mode.

[0104] For an introduction to a cache mode management system provided in the present application, please refer to the above-mentioned embodiment, and the present application will not go into details here.

[0105] As a preferred embodiment, each storage module includes a CPU module, a cache module, a backend main control module and a disk array module, or includes a CPU module, a backend main control module and a disk array module.

[0106] As a preferred embodiment, it also includes:

[0107] The interaction unit is used to exchange data with the control system through the serial port module.

[0108] As a preferred embodiment, it also includes:

[0109] A monitoring unit, used for monitoring the performance data generated by the data to be transmitted through each storage module after the cache mode changing unit 23, the performance data including IOPS and / or bandwidth and / or latency;

[0110] A theoretical data determination unit, used to determine theoretical data corresponding to the performance data of each storage module under a preset transmission mode, wherein the preset transmission mode is a normal mode or a high-performance mode, and the power consumption and transmission efficiency of the high-performance mode are both higher than those of the normal mode;

[0111] The alarm unit is used to send an alarm message when the absolute value of the difference between any performance data and the corresponding theoretical data is always greater than a preset threshold within a preset time period.

[0112] As a preferred embodiment, it also includes:

[0113] When the default transmission mode is normal mode:

[0114] A first updating unit is used for, after the alarm unit, sending to the user end a pending confirmation message on whether to update the theoretical data to the performance data when any performance data is greater than the corresponding theoretical data in the normal mode, and updating the theoretical data to the performance data after receiving an affirmative reply from the user end;

[0115] The high-performance mode switching unit is used to send confirmation information to the user end on whether to switch the normal mode to the high-performance mode when any performance data is less than the corresponding theoretical data in the normal mode, and switch the normal mode to the high-performance mode after receiving an affirmative reply from the user end.

[0116] As a preferred embodiment, it also includes:

[0117] When the preset transmission mode is high performance mode:

[0118] A second updating unit is used for, after the alarm unit, sending to the user end a pending confirmation message on whether to update the theoretical data to the performance data when any performance data is greater than the corresponding theoretical data in the high performance mode, and updating the theoretical data to the performance data after receiving an affirmative reply from the user end;

[0119] The cache mode changing unit is used to change the cache mode of each storage module when any performance data is less than the corresponding theoretical data in the high-performance mode until the absolute value of the difference between all performance data and the corresponding theoretical data is always less than or equal to a preset threshold within a preset time period.

[0120] As a preferred embodiment, it also includes:

[0121] The common mode switching unit is used to switch the high-performance mode to the common mode after the high-performance mode switching unit, upon receiving the common mode demand information sent by the user end.

[0122] As a preferred embodiment, the cache mode changing unit includes:

[0123] A sorting unit, used to sort the absolute values ​​of the differences between the storage modules to which the performance data smaller than the corresponding theoretical data in the high-performance mode belongs and the performance data of all the storage modules through which the data to be transmitted has passed and the corresponding theoretical data from large to small;

[0124] An arrangement and combination unit, used for arranging and combining the sorted storage modules;

[0125] A changing unit is used to change the cache mode of the storage module in each arrangement combination in turn until the absolute value of the difference between all performance data and the corresponding theoretical data is always less than or equal to a preset threshold within a preset time period, and the change of the cache mode is a change between a write cache on mode and a write cache off mode, or a change between a read cache on mode and a read cache off mode.

[0126] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of a cache mode management device provided in this application includes:

[0127] A memory 31, used for storing computer programs;

[0128] The programmable logic device 32 is used to execute a computer program to implement the steps of the cache mode management method.

[0129] For an introduction to a cache mode management device provided in the present application, please refer to the above-mentioned embodiment, and the present application will not go into details here.

[0130] The programmable logic device 32 may be an ARM, which is not specifically limited here.

[0131] It should be noted that, in this specification, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0132] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A cache mode management method, characterized in that: Applications in programmable logic devices, including: Receive a business model of the data to be transmitted determined by the CPU module, wherein the business model includes the size of the data to be transmitted, the transmission order of the address, and the read / write type; Determine each storage module and a corresponding cache mode according to the business model and the model-storage correspondence, wherein the cache mode is a write cache on mode, a write cache off mode, a read cache on mode or a read cache off mode; Changing the determined cache mode of each of the storage modules to the determined cache mode; Monitoring performance data generated by the data to be transmitted through each of the storage modules, the performance data including IOPS and / or bandwidth and / or latency; Determine theoretical data corresponding to the performance data of each storage module in a preset transmission mode, wherein the preset transmission mode is a normal mode or a high-performance mode, and the power consumption and transmission efficiency of the high-performance mode are both higher than those of the normal mode; When the absolute value of the difference between any of the performance data and the corresponding theoretical data is always greater than a preset threshold within a preset time period, an alarm message is sent.

2. The cache mode management method according to claim 1, characterized in that: Each storage module includes the CPU module, the cache module, the back-end main control module and the disk array module, or includes the CPU module, the back-end main control module and the disk array module.

3. The cache mode management method according to claim 1, characterized in that: Also includes: Data exchange with the control system is carried out through the serial port module.

4. The cache mode management method according to claim 1, characterized in that: When the absolute value of the difference between any of the performance data and the corresponding theoretical data is always greater than a preset threshold value within a preset time period, after sending the alarm information, the method further includes: When the preset transmission mode is the normal mode: When any of the performance data is greater than the corresponding theoretical data in the normal mode, sending to the user end a pending confirmation message on whether to update the theoretical data to the performance data, and updating the theoretical data to the performance data after receiving an affirmative response from the user end; When any of the performance data is less than the corresponding theoretical data in the normal mode, a confirmation message is sent to the user terminal on whether to switch the normal mode to the high-performance mode, and the normal mode is switched to the high-performance mode after receiving an affirmative reply from the user terminal.

5. The cache mode management method according to claim 1, characterized in that: When the absolute value of the difference between any of the performance data and the corresponding theoretical data is always greater than a preset threshold value within a preset time period, after sending the alarm information, the method further includes: When the preset transmission mode is the high performance mode: When any of the performance data is greater than the corresponding theoretical data in the high-performance mode, sending to the user end a pending confirmation message on whether to update the theoretical data to the performance data, and updating the theoretical data to the performance data after receiving an affirmative response from the user end; When any of the performance data is less than the corresponding theoretical data in the high-performance mode, the cache mode of each storage module is changed until the absolute value of the difference between all the performance data and the corresponding theoretical data is always less than or equal to a preset threshold within a preset time period.

6. The cache mode management method according to claim 4, characterized in that: When any of the performance data is less than the theoretical data corresponding to the normal mode, a confirmation message is sent to the user terminal on whether to switch the normal mode to the high-performance mode, and after receiving an affirmative reply from the user terminal, the normal mode is switched to the high-performance mode, further comprising: When the demand information of the normal mode sent by the user terminal is received, the high performance mode is switched to the normal mode.

7. The cache mode management method according to claim 5, characterized in that: When any of the performance data is less than the corresponding theoretical data in the high performance mode, changing the cache mode of each of the storage modules until the absolute value of the difference between all the performance data and the corresponding theoretical data is always less than or equal to a preset threshold within a preset time period, including: Sort the storage modules to which the performance data smaller than the corresponding theoretical data in the high-performance mode belongs and the absolute values ​​of the differences between the performance data of all the storage modules through which the data to be transmitted has passed and the corresponding theoretical data from large to small; Arrange and combine the storage modules that have completed sorting; The cache mode of the storage module in each permutation combination is changed in turn until the absolute value of the difference between all the performance data and the corresponding theoretical data is always less than or equal to a preset threshold within a preset time period, and the change of the cache mode is a change between a write cache on mode and a write cache off mode, or a change between a read cache on mode and a read cache off mode.

8. A cache mode management system, characterized in that: include: A business model receiving unit, used to receive the business model of the data to be transmitted determined by the CPU module, wherein the business model includes the size of the data to be transmitted, the transmission order of the address, and the read / write type; A storage module and cache mode determination unit, used to determine each storage module and a corresponding cache mode according to the business model and the model-storage correspondence relationship, wherein the cache mode is a write cache on mode, a write cache off mode, a read cache on mode or a read cache off mode; A cache mode changing unit, used for changing the determined cache mode of each of the storage modules to the determined cache mode; A monitoring unit, configured to monitor, after the cache mode changing unit, performance data generated by the data to be transmitted through each of the storage modules, the performance data including IOPS and / or bandwidth and / or latency; A theoretical data determination unit, used to determine theoretical data corresponding to the performance data of each storage module under a preset transmission mode, wherein the preset transmission mode is a normal mode or a high-performance mode, and the power consumption and transmission efficiency of the high-performance mode are both higher than those of the normal mode; The alarm unit is used to send an alarm message when the absolute value of the difference between any of the performance data and the corresponding theoretical data is always greater than a preset threshold within a preset time period.

9. A cache mode management device, characterized in that: include: Memory for storing computer programs; A programmable logic device, used for executing the computer program to implement the steps of the cache mode management method according to any one of claims 1 to 7.