A bandwidth compensation method, device, equipment and computer readable storage medium

By constructing a probability distribution model of bandwidth limitations and business relationships, we identify and compensate for central processors that reduce bandwidth, solving the problem of data channel bandwidth reduction caused by high processor processing workload in low-end dual-channel storage devices and ensuring stable performance of storage devices.

CN118337733BActive Publication Date: 2024-09-20INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410760979.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-20
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

When the CPU processing workload of low-end dual-channel storage devices is high, the bandwidth of the data channel may be reduced, resulting in a decrease in the overall performance of the storage device.

Method used

By obtaining the business status of the central processor, predicting the future data traffic of the data channel, building a probability distribution model of bandwidth limitations and business relationships, identifying processors with a high probability of bandwidth reduction, and using another central processor for bandwidth compensation to ensure the data channel stability.

Benefits of technology

It realizes early prediction and compensation for the reduction of central processor bandwidth, avoids the reduction of the overall performance of the storage device, and ensures the normal operation of the business.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118337733B
    Figure CN118337733B
Patent Text Reader

Abstract

The present application discloses a bandwidth compensation method, device, equipment and computer-readable storage medium, which relates to the field of computer application technology, including: obtaining the business status corresponding to each data channel in two central processors; predicting the preset traffic interval to which the data traffic value of each data channel belongs within a preset time period in the future according to each business status; extracting the impact factor packages of each first central processor corresponding to the two central processors; combining the preset traffic intervals and the impact factor packages of each first central processor to construct a probability distribution model of bandwidth limitation and business relationship; when it is determined that there is a central processor in the two central processors whose probability of reducing bandwidth of the data channel is higher than the preset value, using another central processor to perform bandwidth compensation on the central processor whose probability of reducing bandwidth of the data channel is higher than the preset value. The present application does not affect the normal operation of the business, and avoids the overall performance reduction of the storage device caused by the reduction of bandwidth of the central processor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to a bandwidth compensation method, device, equipment and computer-readable storage medium. Background Art

[0002] In the era of big data, higher requirements are placed on the reliability and efficiency of storage arrays, especially on the performance of data backup in storage systems. For this reason, storage devices are upgraded from single-channel storage to dual-channel storage, that is, one storage controller contains two central processing units (CPUs). The two CPUs work together to process data, which can efficiently perform data processing and backup tasks, thereby improving data storage efficiency.

[0003] Connecting two low-end CPUs in parallel can improve data storage efficiency and data backup efficiency. However, for low-end dual-channel storage devices, low-end CPUs with less than 6 cores are often used to save costs. When the CPU's own processing workload exceeds a certain threshold, some data channels (lanes) will have a probability of bandwidth reduction. After the bandwidth is reduced, the data processing performance of a single CPU will be greatly reduced, causing the task processing of the CPU to be lower than expected, resulting in a significant reduction in the backup capacity of the second CPU connected in parallel, which in turn causes the overall performance of the storage device to decline.

[0004] In summary, how to effectively solve the problem that when the CPU's own processing workload exceeds a certain threshold, some data channels will probabilistically reduce bandwidth, resulting in a decrease in the overall performance of the storage device, is an issue that technical personnel in this field urgently need to solve. Summary of the invention

[0005] The purpose of this application is to provide a bandwidth compensation method, which does not affect the normal operation of the business and avoids the overall performance degradation of the storage device caused by the reduction of the bandwidth of the central processing unit; another purpose of this application is to provide a bandwidth compensation device, a computer-readable storage medium and a computer program product.

[0006] In order to solve the above technical problems, this application provides the following technical solutions:

[0007] A bandwidth compensation method, comprising:

[0008] Obtain the business status corresponding to each data channel in the two central processors;

[0009] According to each service status, the preset flow range to which the data flow value of each data channel belongs within a preset time period in the future is predicted;

[0010] Respectively extracting first CPU impact factor packages corresponding to the two CPUs; wherein the first CPU impact factor packages include parameter intervals to which preset key parameters of the CPUs belong;

[0011] Combining the preset traffic interval to which each data traffic value belongs and the impact factor package of each first central processor, constructing a probability distribution model of bandwidth limitation and service relationship corresponding to the two central processors respectively;

[0012] When it is determined according to the two bandwidth limitation and service relationship probability distribution models that there is a central processor among the two central processors with a data channel bandwidth reduction probability higher than a preset value, the central processor with a data channel bandwidth reduction probability higher than the preset value is determined as the first central processor;

[0013] The bandwidth of the first central processor is compensated by using another central processor of the two central processors except the first central processor.

[0014] In a specific implementation of the present application, predicting the preset flow interval to which the data flow value of each data channel within a preset time period in the future belongs according to each service state includes:

[0015] Predicting the data flow values ​​of each data channel corresponding to each preset time period within the future preset time period according to each service status;

[0016] Obtain the preset flow interval to which each data flow value belongs;

[0017] Correspondingly, extracting the first central processing unit impact factor packages corresponding to the two central processing units respectively includes:

[0018] The first CPU impact factor packages of each CPU core of the two CPUs at each preset historical moment are respectively extracted.

[0019] In a specific implementation of the present application, a probability distribution model of bandwidth limitation and service relationship corresponding to two central processors is constructed in combination with the preset traffic interval to which each data traffic value belongs and the impact factor package of each first central processor, including:

[0020] Obtaining the preset time correspondence between each preset time period and each preset historical moment;

[0021] Constructing second CPU impact factor packages corresponding to each CPU core according to the preset traffic intervals, the first CPU impact factor packages and the preset time correspondence;

[0022] According to the Monte Carlo principle, data sampling is performed on the interval range contained in each second CPU impact factor package corresponding to each CPU core to obtain an impact factor interval data set;

[0023] Constructing each impact factor interval subset according to the impact factor interval data set;

[0024] Inputting each impact factor interval subset into a corresponding central processing unit for parameter setting, and counting the number of frequency reductions of the central processing unit;

[0025] Calculating the proportional relationship between the frequency reduction times and the number of each impact factor interval subset, and obtaining the probability of each central processing unit core having bandwidth limitation;

[0026] Constructing parameter matrices corresponding to each CPU core according to each second CPU impact factor package;

[0027] The probability distribution model of the relationship between bandwidth limitation and service is determined according to the probability of each bandwidth limitation existing and each parameter matrix.

[0028] In a specific implementation of the present application, obtaining the service status corresponding to each data channel in two central processors includes:

[0029] Sending a first service extraction signal to the front end through an external plug-in card, respectively obtaining the first service volume of each data channel in the two central processors within the same time period before the future preset time period;

[0030] Get the current transmission rate corresponding to each data channel;

[0031] Performing quotient calculations on the first traffic volume and the current transmission rate respectively to obtain estimated transmission times corresponding to the respective data channels;

[0032] The service status corresponding to each data channel is determined according to the estimated transmission time.

[0033] In a specific implementation of the present application, determining the service status corresponding to each data channel according to the estimated transmission time includes:

[0034] Determine the data channel corresponding to the expected transmission time greater than the future preset time length among the expected transmission times as a data channel in a tense state;

[0035] Determine the data channel corresponding to the expected transmission time that is less than or equal to the future preset time length among the expected transmission times as a non-status tense data channel;

[0036] Accordingly, the preset flow interval to which the data flow value of each data channel belongs within the preset time period in the future is predicted according to each service status, including

[0037] Sending a second service extraction signal to the front end through the external card to obtain the second service volume corresponding to each data channel in the future preset time period;

[0038] Summing up the first business volumes to obtain a first business total volume;

[0039] Sum up the second business volumes to obtain a second business total volume;

[0040] Calculating the difference between each pair of the first total business volume and the second total business volume to obtain a total business volume difference;

[0041] respectively obtaining the total number of data channels of the two central processing units;

[0042] Performing a quotient operation on the total service volume difference and the total number of data channels to obtain a data flow adjustment value;

[0043] Calculate the difference between the first service volume corresponding to each state tense data channel and the absolute value of the data flow adjustment value, obtain the data flow value of each state tense data channel within the future preset time period, and determine the preset flow interval to which each data flow value belongs;

[0044] The second business volume corresponding to each non-state tense data channel and the absolute value of the data flow adjustment value are respectively calculated and the data flow value of each non-state tense data channel within the future preset time period is obtained, and the preset flow interval to which each data flow value belongs is determined.

[0045] In a specific implementation manner of the present application, using another central processor of the two central processors except the first central processor to perform bandwidth compensation on the first central processor includes:

[0046] Determine another central processor of the two central processors except the first central processor as a second central processor;

[0047] Sending an alarm signal to the second central processor, so that the second central processor starts spread spectrum after receiving the alarm signal;

[0048] Obtaining a maximum amount of data that can be processed by the second central processor after spectrum spread is enabled;

[0049] Data volume is allocated to the first central processing unit and the second central processing unit according to the highest data volume.

[0050] In a specific implementation manner of the present application, allocating data volume to the first central processing unit and the second central processing unit according to the highest data volume includes:

[0051] Acquire the current processing data volume of the first central processing unit;

[0052] Calculating a ratio of the current processed data volume to the maximum data volume;

[0053] Performing a product operation on the current processing data volume and the ratio value to obtain a first to-be-processed data volume;

[0054] Calculating the difference between the currently processed data volume and the first to-be-processed data volume to obtain a second to-be-processed data volume;

[0055] The first amount of data to be processed in the first central processor is allocated to the first central processor, and the second amount of data to be processed in the first central processor is allocated to the second central processor.

[0056] In a specific implementation of the present application, allocating the first amount of data to be processed in the first central processor to the first central processor, and allocating the second amount of data to be processed in the first central processor to the second central processor includes:

[0057] Classifying the data to be processed in the first central processor by importance level to obtain an important data set and a less important data set;

[0058] Obtaining the total amount of data contained in the secondary important data set;

[0059] When the total amount of data is less than the second amount of data to be processed, performing a difference calculation between the second amount of data to be processed and the total amount of data to obtain a first difference amount of data;

[0060] Randomly acquiring the first difference data amount of to-be-processed data from the important data set to obtain a first adjusted data set;

[0061] The remaining data to be processed in the important data set except the first adjusted data set is allocated to the first central processor, and the less important data set and the first adjusted data set are allocated to the second central processor.

[0062] In a specific implementation of the present application, it also includes:

[0063] When the total amount of data is greater than the second amount of data to be processed, randomly acquiring the data to be processed of the second amount of data to be processed from the less important data set to obtain a second adjusted data set;

[0064] The remaining to-be-processed data in the less important data set except the second adjusted data set and the important data set are respectively given to the first central processor, and the second adjusted data set is allocated to the second central processor.

[0065] In a specific implementation of the present application, the data to be processed in the first central processor is classified by importance level to obtain an important data set and a less important data set, including:

[0066] Acquire the stored data from the data to be processed in the first central processor;

[0067] The stored data is determined as the secondary important data set, and the remaining data to be processed in the first central processor except the stored data is determined as the important data set.

[0068] In a specific implementation manner of the present application, using another central processor of the two central processors except the first central processor to perform bandwidth compensation on the first central processor includes:

[0069] Receiving first pressure signals respectively sent by the two central processors;

[0070] Perform load scanning according to the first pressure signal to obtain each load end cascaded with the two central processors through a high-speed signal link;

[0071] A second pressure signal is sent to each load end, so that each load end performs a read / write rate frequency increase according to each second pressure signal.

[0072] In a specific implementation of the present application, a load scan is performed according to the first pressure signal to obtain a load end cascaded with the two central processors through a high-speed signal link, including:

[0073] A load scan is performed according to the first pressure signal to obtain a load end cascaded with the two central processing units through a high-speed signal link other than a coupling link between the two central processing units.

[0074] In a specific implementation of the present application, after sending the second pressure signal to each load end, the method further includes:

[0075] Receiving response signals returned by the two central processors;

[0076] A compensation signal is sent to the two central processors and the high-speed link control chip according to the response signal, so that the high-speed link control chip converts the high-speed signal links cascaded to each other in the two central processors from a disconnected state to a conductive state, and enables the two central processors to send collaborative data packets and response packets to each other for two-way assistance.

[0077] A bandwidth compensation device, comprising:

[0078] Memory for storing computer programs;

[0079] A processor is used to implement the steps of the bandwidth compensation method as described above when executing the computer program.

[0080] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the bandwidth compensation method described above are implemented.

[0081] A computer program product comprises a computer program, which implements the steps of the bandwidth compensation method as described above when the computer program is executed by a processor.

[0082] The bandwidth compensation method provided by the present application obtains the service status corresponding to each data channel in two central processors; predicts the preset traffic interval to which the data traffic value of each data channel belongs within a preset time period in the future according to each service status; extracts the first central processor impact factor packages corresponding to the two central processors respectively; wherein the first central processor impact factor package includes the parameter interval to which each preset key parameter of the central processor belongs; constructs the bandwidth limitation and service relationship probability distribution model corresponding to the two central processors respectively in combination with the preset traffic interval to which each data traffic value belongs and the first central processor impact factor package; when it is determined according to the two bandwidth limitation and service relationship probability distribution models that there is a central processor in the two central processors whose data channel bandwidth reduction probability is higher than the preset value, the central processor whose data channel bandwidth reduction probability is higher than the preset value is determined as the first central processor; and bandwidth compensation is performed on the first central processor by using another central processor in the two central processors except the first central processor.

[0083] It can be seen from the above technical solution that by obtaining the business status corresponding to each data channel in the two central processors, the data flow value of each data channel in the future preset time period is predicted according to the business status, and the preset flow interval corresponding to each data flow value is determined. The preset key parameters of the two central processors are extracted respectively to obtain the impact factor packages of each first central processor. In combination with the preset flow interval to which each data flow value belongs and the impact factor of each first central processor, the bandwidth limitation and business relationship probability distribution model corresponding to the two central processors are constructed, so as to use the bandwidth limitation and business relationship probability distribution model corresponding to the two central processors to predict the bandwidth reduction of the data channel and obtain the probability value. When there is a first central processor whose probability of bandwidth reduction of the data channel is higher than the preset value, another central processor is used to compensate the bandwidth of the first central processor. The possibility of bandwidth reduction of the central processor is predicted in advance, and the normal operation of the business is not affected by the compensation between the two paths, which avoids the overall performance reduction of the storage device caused by the bandwidth reduction of the central processor.

[0084] Correspondingly, the present application also provides a bandwidth compensation device, a computer-readable storage medium and a computer program product corresponding to the above-mentioned bandwidth compensation method, which have the above-mentioned technical effects and are not described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS

[0085] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are 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.

[0086] Figure 1 This is a flowchart of the implementation of the first bandwidth compensation method in the embodiment of the present application;

[0087] Figure 2 A hardware topology diagram of a bandwidth compensation system in an embodiment of the present application;

[0088] Figure 3 This is a flowchart of the implementation of the second bandwidth compensation method in the embodiment of the present application;

[0089] Figure 4 This is a structural block diagram of a bandwidth compensation device in an embodiment of the present application;

[0090] Figure 5 This is a structural block diagram of a bandwidth compensation device in an embodiment of the present application;

[0091] Figure 6 A schematic diagram of the specific structure of a bandwidth compensation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0092] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0093] See also Figure 1 , Figure 1 This is a flowchart of the implementation of the first bandwidth compensation method in the embodiment of the present application. The method may include the following steps:

[0094] S101: Obtain the service status corresponding to each data channel in two central processors.

[0095] See also Figure 2 , Figure 2 The hardware topology diagram of a bandwidth compensation system in the embodiment of the present application is shown in FIG. The two central processors included in the current storage controller each include multiple data channels, and the baseboard management controller obtains the service status corresponding to each data channel in the two central processors.

[0096] For example, the monitoring unit monitors the internal state of the central processing unit and the current business state. The monitoring unit can be composed of a single chip, which contains multiple input and output devices. The status information of the central processing unit is read through a universal asynchronous receiver transmitter (UART) link, and the current front-end business status information is read through an electrically erasable programmable read-only memory (FLASH) unit connected to an external input / output (IO) card through a serial peripheral interface (SPI) signal. The collected information is provided to the baseboard management controller in real time through an inter-integrated circuit (I2C) serial communication bus between integrated circuits.

[0097] The business status may include being in a tense state or being in a non-tense state.

[0098] In a specific implementation of the present application, step S101 may include the following steps:

[0099] Step 1: Send a first service extraction signal to the front end through an external card to obtain the first service volume of each data channel in the two central processors within the same time period before the preset time period in the future;

[0100] Step 2: Obtain the current transmission rate corresponding to each data channel;

[0101] Step 3: performing quotient calculation on the first service volume and the current transmission rate respectively to obtain the estimated transmission time corresponding to each data channel;

[0102] Step 4: Determine the service status corresponding to each data channel according to the estimated transmission time.

[0103] For the convenience of description, the above four steps can be combined for explanation.

[0104] When obtaining the service status of the data channel, a first service extraction signal is sent to the front end through the external card, such as sending the first service extraction signal to the front end of the server, switch, etc. through the intermediate firmware of the external card, respectively obtaining the first service volume of each data channel in the two central processors within the same time period before the future preset time period, obtaining the current transmission rate corresponding to each data channel, respectively performing quotient calculation on the first service volume and the current transmission rate, respectively obtaining the estimated transmission time corresponding to each data channel, and determining the service status corresponding to each data channel according to the estimated transmission time. By determining the service status of the data channel according to the service volume within the preset time period before the data channel, the accidental error of obtaining the judgment result by judging the service status only according to the service situation of the data channel at the current moment is avoided, and the accuracy of the judgment result of the service status of the data channel is improved.

[0105] For example, the first service extraction information is sent to the front end such as the server end and the switch end through the firmware of the external card. If there is only one server at the front end, it is sent to the server end. If the front end is connected to multiple servers through the switch, it is sent to each server end through the switch to extract the service comprehensively. After receiving the service extraction signal, the server end provides the front-end service information volume change curve within the preset time length to the external card end. The central processor end summarizes the current transmission rate of each data channel, and sends it to the baseboard management controller after the summary is completed. The business volume of the previous same time length of the corresponding data channel at the future preset time length is divided by the current transmission rate of the data channel to obtain the expected transmission time. If the expected transmission time is greater than the preset time length, the data channel is determined to be a state-tense data channel. If the expected transmission time is less than or equal to the preset time length, the data channel is determined to be a non-state-tense data channel.

[0106] It should be noted that the future preset duration can be set and adjusted according to actual conditions. The embodiment of the present application does not limit this. For example, if it can be set to the next 24 hours, the previous same duration of the future preset duration refers to the previous 24 hours.

[0107] S102: Predicting the preset flow interval to which the data flow value of each data channel within a preset time period in the future belongs according to each service status.

[0108] After obtaining the service status of each data channel in the central processor, the preset traffic interval to which the data flow value of each data channel belongs in the future preset time period is predicted according to each service status. For example, the data flow value can be adjusted based on the service status of the data channel and the service volume of the channel in the same time period before the future preset time period, so as to obtain the data flow value of each data channel in the future preset time period. The flow interval is divided in advance, and then the preset flow interval to which each adjusted data flow value belongs is determined.

[0109] In a specific implementation of the present application, determining the service status corresponding to each data channel according to the expected transmission time may include the following steps:

[0110] Step 1: Determine the data channel corresponding to the expected transmission time greater than the future preset time length among the expected transmission times as the data channel in a tense state;

[0111] Step 2: Determine the data channel corresponding to the expected transmission time that is less than or equal to the future preset time length among the expected transmission times as a non-state-constrained data channel;

[0112] Accordingly, step S102 may include the following steps:

[0113] Step 3: Sending a second service extraction signal to the front end through the external card to obtain the second service volume corresponding to each data channel at a preset time in the future;

[0114] Step 4: Sum the first business volumes to obtain the total first business volume;

[0115] Step 5: Sum up the second business volumes to obtain the total second business volume;

[0116] Step 6: Calculate the difference between each pair of the first business total amount and the second business total amount to obtain the business total amount difference;

[0117] Step 7: Obtain the total number of data channels of the two CPUs respectively;

[0118] Step 8: Perform a quotient operation on the difference in the total volume of services and the total number of data channels to obtain a data flow adjustment value;

[0119] Step nine: Calculate the difference between the first service volume corresponding to each state tense data channel and the absolute value of the data flow adjustment value, obtain the data flow value of each state tense data channel within a preset time period in the future, and determine the preset flow interval to which each data flow value belongs;

[0120] Step 10: Calculate the sum of the second business volume corresponding to each non-state tense data channel and the absolute value of the data flow adjustment value, obtain the data flow value of each non-state tense data channel within a preset time period in the future, and determine the preset flow range to which each data flow value belongs.

[0121] For the convenience of description, the above ten steps can be combined for explanation.

[0122] After obtaining the estimated transmission time corresponding to each data channel, when the estimated transmission time is greater than the future preset time, it means that the data channel has a large amount of business in the same time period before the future preset time or the current data transmission rate is low, and the data channel corresponding to the estimated transmission time greater than the future preset time among the estimated transmission times is determined as a state-intensive data channel. When the estimated transmission time is less than or equal to the future preset time, it means that the data channel has a small amount of business in the same time period before the future preset time or the current data transmission rate is high, and the data channel corresponding to the estimated transmission time less than or equal to the future preset time among the estimated transmission times is determined as a non-state-intensive data channel.

[0123] After obtaining the service status of each data channel, a second service extraction signal is sent to the front end through the external card to obtain the second service volume corresponding to each data channel in the future preset time period. The sum of each first service volume is calculated to obtain the first service volume, that is, the total service volume of the central processor in the same time period before the future preset time period. The sum of each second service volume is calculated to obtain the second service volume, that is, the total service volume of the central processor in the future preset time period.

[0124] After obtaining the first business total amount and the second business total amount, the difference between the first business total amount and the second business total amount is calculated to obtain the business total amount difference, and the total number of data channels of the two central processors is obtained respectively. For each central processor, the quotient of the business total amount difference and the total number of data channels is calculated to obtain the data flow adjustment value. Taking the preset duration of 24 hours as an example, the calculation formula of the data flow adjustment value is as follows:

[0125] ;

[0126] The total business volume in the previous 24 hours refers to the total business volume in the previous 24 hours of the next 24 hours.

[0127] After obtaining the data flow adjustment value, the difference between the first business volume corresponding to each state tense data channel and the absolute value of the data flow adjustment value is calculated to obtain the data flow value of each state tense data channel in the future preset time length, and determine the preset flow interval to which each data flow value belongs. The sum of the second business volume corresponding to each non-state tense data channel and the absolute value of the data flow adjustment value is calculated to obtain the data flow value of each non-state tense data channel in the future preset time length, and determine the preset flow interval to which each data flow value belongs. By calculating the data flow adjustment value of the data channel according to the business volume of the central processor in the preset time length before the future preset time length, the contingency of calculating only according to the business volume of a single channel is avoided, the accuracy of the calculation result of the data flow adjustment value is improved, and then the accuracy of the prediction of the preset flow interval to which the data flow value belongs is improved.

[0128] It should be noted that the first and second of the first business extraction signals and the second business extraction signals have no difference in size or order, and are only used to distinguish the business extraction signals of the business volume within the same time period before the future preset time period and the business volume within the future preset time period.

[0129] S103: extracting first CPU impact factor packages corresponding to the two CPUs respectively.

[0130] The first CPU impact factor package includes parameter intervals to which each preset key parameter of the CPU belongs.

[0131] The first CPU impact factor packages corresponding to the two CPUs are extracted respectively, and the first CPU impact factor packages include parameter intervals to which the preset key parameters of the CPU belong respectively. The preset key parameters may include the CPU occupancy rate, frequency, temperature, etc. For example, the CPU occupancy rate interval may be divided into multiple intervals such as A (0-20%) and B (20%-40%).

[0132] It should be noted that the interval range division of the parameter interval corresponding to the preset key parameter can be set and adjusted according to actual conditions, and the embodiments of the present application do not limit this.

[0133] S104: Constructing bandwidth limitation and service relationship probability distribution models corresponding to two central processors respectively in combination with the preset traffic intervals to which each data traffic value belongs and the impact factor packages of each first central processor.

[0134] After obtaining the preset traffic interval to which each data traffic value belongs and extracting each first central processor impact factor package corresponding to the central processor, the preset traffic interval to which each data traffic value belongs and each first central processor impact factor package are combined to construct the bandwidth limitation and business relationship probability distribution model corresponding to the two central processors respectively. For example, when the central processor includes multiple cores, multiple historical moments can be selected in advance, and the first central processor impact factor package corresponding to each preset historical moment is obtained for each central processor core, and the correspondence between each preset historical moment and each time period within the future preset time length is obtained, and the preset traffic interval to which the corresponding data traffic value belongs is obtained. A parameter matrix is ​​constructed based on each first central processor impact factor package and the preset traffic interval to which each data traffic value belongs. According to the parameter matrix corresponding to multiple central processor cores, a bandwidth limitation and business relationship probability distribution model is constructed.

[0135] S105: When it is determined according to the two bandwidth limitation and service relationship probability distribution models that there is a CPU among the two CPUs whose data channel bandwidth reduction probability is higher than a preset value, the CPU whose data channel bandwidth reduction probability is higher than the preset value is determined as the first CPU.

[0136] After the bandwidth limitation and service relationship probability distribution model is constructed, it is determined whether the probability of reducing the bandwidth of the data channel of the corresponding central processor is higher than a preset value according to the bandwidth limitation and service relationship probability distribution model. When it is determined according to the two bandwidth limitation and service relationship probability distribution models that there is a central processor whose probability of reducing the bandwidth of the data channel is higher than the preset value among the two central processors, the central processor whose probability of reducing the bandwidth of the data channel is higher than the preset value is determined as the first central processor.

[0137] S106: Using another central processor of the two central processors except the first central processor to perform bandwidth compensation on the first central processor.

[0138] After determining the first CPU whose probability of bandwidth reduction in the data channel is higher than the preset value, the other CPU of the two CPUs except the first CPU is used to compensate the bandwidth of the first CPU, thereby achieving assistance between the two paths, and ensuring that the link bandwidth compensation can be carried out in time before the probability of bandwidth reduction in the data channel increases to the maximum through compensation measures, so as to realize the recovery of the bandwidth reduction of the data channel.

[0139] It can be seen from the above technical solution that by obtaining the business status corresponding to each data channel in the two central processors, the data flow value of each data channel in the future preset time period is predicted according to the business status, and the preset flow interval corresponding to each data flow value is determined. The preset key parameters of the two central processors are extracted respectively to obtain the impact factor packages of each first central processor. In combination with the preset flow interval to which each data flow value belongs and the impact factor of each first central processor, the bandwidth limit and business relationship probability distribution model corresponding to the two central processors are constructed, so as to predict the bandwidth reduction of the data channel using the bandwidth limit and business relationship probability distribution model corresponding to the two central processors, and obtain the probability value. When there is a first central processor with a data channel bandwidth reduction probability higher than the preset value, another central processor is used to compensate the bandwidth of the first central processor. The possibility of bandwidth reduction of the central processor is predicted in advance, and the reduced bandwidth is made up through compensation between the two channels. After the compensation is completed, the central processor returns to the normal working state before the bandwidth reduction, does not affect the normal progress of the business, and avoids the overall performance reduction of the storage device caused by the bandwidth reduction of the central processor.

[0140] It should be noted that, based on the above embodiments, the embodiments of the present application also provide corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiments can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.

[0141] In a specific implementation of the present application, step S106 may include the following steps:

[0142] Step 1: Determine another central processor of the two central processors except the first central processor as the second central processor;

[0143] Step 2: Sending an alarm signal to the second central processor so that the second central processor starts the spread spectrum after receiving the alarm signal;

[0144] Step 3: Obtain the maximum amount of data that can be processed by the second central processing unit after the spread spectrum is enabled;

[0145] Step 4: Allocate data volume to the first central processing unit and the second central processing unit according to the highest data volume.

[0146] For the convenience of description, the above four steps can be combined for explanation.

[0147] After determining the first central processor whose probability of data channel bandwidth reduction is higher than the preset value, the other central processor of the two central processors except the first central processor is determined as the second central processor, and an alarm signal is sent to the second central processor. The second central processor receives the alarm signal and turns on the spread spectrum. The maximum amount of data that can be processed by the second central processor after the spread spectrum is turned on is obtained, and the data amount is allocated to the first central processor and the second central processor according to the maximum amount of data. By allocating the data amount according to the maximum amount of data that can be processed by the central processor with a lower probability of data channel bandwidth reduction among the two central processors, the resources of the central processor with a lower probability of data channel bandwidth reduction are fully utilized, and the efficiency of data channel bandwidth recovery in the central processor with a higher probability of data channel bandwidth reduction is improved.

[0148] In a specific implementation of the present application, allocating data volume to the first central processing unit and the second central processing unit according to the highest data volume may include the following steps:

[0149] Step 1: Obtain the current processing data volume of the first central processing unit;

[0150] Step 2: Calculate the ratio of the current processing data volume to the maximum data volume;

[0151] Step 3: multiply the current processing data volume by the ratio value to obtain the first data volume to be processed;

[0152] Step 4: Calculate the difference between the current processing data volume and the first to-be-processed data volume to obtain the second to-be-processed data volume;

[0153] Step 5: Allocate the first amount of data to be processed in the first central processor to the first central processor, and allocate the second amount of data to be processed in the first central processor to the second central processor.

[0154] For the convenience of description, the above five steps can be combined for explanation.

[0155] After obtaining the maximum amount of data that can be processed by the second central processor with a lower probability of reducing bandwidth in the data channel after starting the spread spectrum, obtain the current amount of data processed by the first central processor with a higher probability of reducing bandwidth in the data channel, and calculate the ratio of the current amount of data processed to the maximum amount of data. Perform a product operation on the current amount of data processed and the ratio value to obtain the first amount of data to be processed, perform a difference calculation on the current amount of data processed and the first amount of data to be processed to obtain the second amount of data to be processed, allocate the first amount of data to be processed in the first central processor to the first central processor, and allocate the second amount of data to be processed in the first central processor to the second central processor. By allocating data according to the ratio of the current amount of data processed by the first central processor to the maximum amount of data that can be processed by the second central processor, while fully utilizing the resources of the second central processor, it avoids excessive data forwarding and improves the rationality of data allocation.

[0156] In a specific implementation of the present application, allocating a first amount of to-be-processed data in a first central processor to the first central processor, and allocating a second amount of to-be-processed data in the first central processor to the second central processor may include the following steps:

[0157] Step 1: classify the data to be processed in the first central processor according to their importance level to obtain important data sets and less important data sets;

[0158] Step 2: Obtain the total amount of data contained in the secondary important data set;

[0159] Step 3: When the total amount of data is less than the second amount of data to be processed, a difference calculation is performed between the second amount of data to be processed and the total amount of data to obtain a first difference amount of data;

[0160] Step 4: randomly obtaining a first difference data amount of data to be processed from the important data set to obtain a first adjusted data set;

[0161] Step 5: Allocate the remaining data to be processed in the important data set except the first adjusted data set to the first central processor, and allocate the less important data set and the first adjusted data set to the second central processor.

[0162] For the convenience of description, the above five steps can be combined for explanation.

[0163] After the data allocation between the first central processor and the second central processor is completed according to the ratio of the current processing data volume of the first central processor to the maximum data volume that can be processed by the second central processor, the importance level of the data to be processed in the first central processor is classified to obtain an important data set and a secondary important data set. The total amount of data contained in the secondary important data set is obtained, and the total amount of data contained in the secondary important data set is compared with the second amount of data to be processed that needs to be allocated to the second central processor. When it is determined that the total amount of data is less than the second amount of data to be processed, it means that in addition to allocating the secondary important data set to the second central processor, part of the data in the important data set needs to be allocated to the second central processor. The difference between the second amount of data to be processed and the total amount of data is calculated to obtain a first difference data volume. The first difference data volume of the data to be processed is randomly obtained from the important data set to obtain a first adjustment data set. The remaining data to be processed in the important data set except the first adjustment data set is allocated to the first central processor, and the secondary important data set and the first adjustment data set are allocated to the second central processor. By allocating the secondary important data set to the second central processor, the probability of data loss of important data during the migration process is reduced, and the security of important data is improved.

[0164] In a specific implementation of the present application, the method may further include the following steps:

[0165] Step 1: when the total amount of data is greater than the second amount of data to be processed, randomly obtain the second amount of data to be processed from the less important data set to obtain a second adjusted data set;

[0166] Step 2: The remaining data to be processed except the second adjusted data set in the less important data set and the important data set are respectively given to the first central processor, and the second adjusted data set is assigned to the second central processor.

[0167] For the convenience of description, the above two steps can be combined for explanation.

[0168] By comparing the total amount of data contained in the secondary important data set with the second amount of data to be processed that needs to be allocated to the second central processor, when it is determined that the total amount of data is greater than the second amount of data to be processed, it means that the amount of data in the secondary important data set is relatively large, and there will still be remaining secondary important data after the secondary important data of the second amount of data to be processed is allocated to the second central processor. The second amount of data to be processed is randomly obtained from the secondary important data set to obtain a second adjusted data set, and the remaining data to be processed and the important data set in the secondary important data set except the second adjusted data set are respectively given to the first central processor, and the second adjusted data set is allocated to the second central processor. By only allocating the secondary important data to the second central processor, the forwarding of important data is avoided, and the security of important data is improved.

[0169] In a specific implementation of the present application, classifying the data to be processed in the first central processor by importance level to obtain an important data set and a less important data set may include the following steps:

[0170] Step 1: Acquire the stored data from the data to be processed in the first central processing unit;

[0171] Step 2: Determine the stored data as a secondary important data set, and determine the remaining data to be processed in the first central processor except the stored data as an important data set.

[0172] For the convenience of description, the above two steps can be combined for explanation.

[0173] When classifying the importance level of the data to be processed in the first central processor, the stored data is obtained from the data to be processed in the first central processor. The stored data only requires a backup on the storage device, that is, this part of the data can be recovered if it is currently lost. The stored data is determined as a secondary important data set, and the remaining data to be processed in the first central processor except the stored data is determined as an important data set. After obtaining the stored data, this part of the data is marked and determined as a secondary important data set, so that in the process of transferring the data to be processed in the first central processor to the second central processor, the above-mentioned marked data is transferred first, thereby avoiding data loss and improving data integrity and data security.

[0174] In a specific implementation of the present application, step S106 may include the following steps:

[0175] Step 1: receiving first pressure signals respectively sent by two central processing units;

[0176] Step 2: Perform load scanning according to the first pressure signal to obtain each load end cascaded with two central processors through a high-speed signal link;

[0177] Step three: Send a second pressure signal to each load end, so that each load end performs a read / write rate frequency increase according to each second pressure signal.

[0178] For the convenience of description, the above three steps can be combined for explanation.

[0179] After determining the first central processor whose data channel bandwidth reduction probability is higher than the preset value, the first pressure signal is sent to the baseboard management controller through the two central processors. The baseboard management controller receives the first pressure signals sent by the two central processors respectively, and performs load scanning according to the first pressure signal to obtain each load end cascaded with the two central processors through a high-speed signal link. Each load end may include terminal loads such as servers, hard disks, and system disk units, and may also include secondary terminal units such as plug-in cards, peripheral component interconnect express (PCIE), and network switches (SWITCH), and sends a second pressure signal to each load end. Each load end performs read and write rate frequency increase according to each second pressure signal, thereby increasing the read and write rate of the current data.

[0180] In a specific implementation of the present application, performing load scanning according to the first pressure signal to obtain a load end cascaded with two central processors through a high-speed signal link may include the following steps:

[0181] A load scan is performed according to the first pressure signal to obtain a load end cascaded with the two central processors through a high-speed signal link other than a coupling link between the two central processors.

[0182] The load scanning is performed according to the first pressure signal to obtain the load end cascaded with the two central processors through the high-speed signal link other than the coupling link between the two central processors. When the total processing capacity of the central processor is constant, the pressure operation is performed on the load end cascaded with the two central processors through the high-speed signal link other than the coupling link, which greatly reduces the data pressure on the coupling link.

[0183] In a specific implementation of the present application, after sending the second pressure signal to each load end, the method may further include the following steps:

[0184] Step 1: Receive response signals returned by two central processors;

[0185] Step 2: Send compensation signals to the two central processors and the high-speed link control chip according to the response signal, so that the high-speed link control chip converts the high-speed signal links cascaded between the two central processors from a disconnected state to a conductive state, and enables the two central processors to send collaborative data packets and response packets to each other for two-way assistance.

[0186] For the convenience of description, the above two steps can be combined for explanation.

[0187] like Figure 2As shown, a high-speed link control chip is pre-set to control the on-off of the high-speed links in the two central processors that are prone to probabilistic bandwidth reduction. After sending a second pressure signal to each load end, the two central processors feedback a response signal to the baseboard management controller, and the baseboard management controller receives the response signal returned by the two central processors, and sends a compensation signal to the two central processors and the high-speed link control chip according to the response signal. The high-speed link control chip converts the high-speed signal link cascaded to each other in the two central processors from a cut-off state to a conducting state, and the two central processors send collaborative data packets and response packets to each other for two-way assistance. The repair of the probabilistic bandwidth reduction of the data channel of the central processor is achieved through the coordination of software and hardware, thereby ensuring that the link bandwidth compensation can be carried out in time before the probability of bandwidth reduction of the data channel increases to the maximum, and the recovery of bandwidth reduction of the data channel is achieved.

[0188] See also Figure 3 , Figure 3 This is a flowchart of the implementation of the second bandwidth compensation method in the embodiment of the present application. The method may include the following steps:

[0189] S301: Obtain the service status corresponding to each data channel in two central processors.

[0190] S302: predicting data flow values ​​corresponding to respective preset time periods of respective data channels within a preset time period in the future according to respective service states.

[0191] After obtaining the service status corresponding to each data channel, the data flow value corresponding to each preset time period of each data channel in the future preset time period is predicted according to each service status, thereby realizing the time period prediction of the data flow value in the future preset time period.

[0192] S303: Obtain the preset flow interval to which each data flow value belongs.

[0193] After predicting the data flow values ​​corresponding to the preset time periods of each data channel within the preset time period in the future, the preset flow intervals to which the data flow values ​​belong are obtained.

[0194] S304: extracting first CPU impact factor packages of each CPU core of the two CPUs at each preset historical moment respectively.

[0195] The first CPU impact factor package includes parameter intervals to which each preset key parameter of the CPU belongs.

[0196] The CPU may include multiple CPU cores, such as 6 CPU cores, each of which is used for its own preset key parameters, and each of the preset key parameters constitutes a first CPU impact factor package. Pre-select each preset historical moment, and extract the first CPU impact factor package of each CPU core of the two CPUs at each preset historical moment. By extracting the impact factor package according to the preset historical moment, the acquisition of excessive parameters is avoided.

[0197] S305: Obtaining a preset time correspondence relationship between each preset time period and each preset historical moment.

[0198] The time correspondence between each preset time period and each preset historical moment is preset, and after extracting the first CPU impact factor package of each CPU core at each preset historical moment, the preset time correspondence between each preset time period and each preset historical moment is obtained.

[0199] S306: Constructing second CPU impact factor packages corresponding to each CPU core according to the corresponding relationship among each preset traffic interval, each first CPU impact factor package and preset time.

[0200] After obtaining the preset time correspondences, second CPU impact factor packages corresponding to each CPU core are constructed according to the preset flow intervals to which the data flow values ​​corresponding to the multiple data channels belong, the first CPU impact factor packages and the preset time correspondences.

[0201] S307: performing data sampling on the interval ranges contained in the second CPU impact factor packages corresponding to the CPU cores respectively according to the Monte Carlo principle to obtain an impact factor interval data set.

[0202] According to the Monte Carlo principle, data sampling is performed on the interval range contained in each second central processing unit impact factor package corresponding to each central processing unit core to obtain an impact factor interval data set.

[0203] S308: Constructing each impact factor interval subset according to the impact factor interval data set.

[0204] After obtaining the impact factor interval data set, each impact factor interval subset is constructed according to the impact factor interval data set. Each impact factor interval subset includes the occupancy rate, frequency, and temperature of the CPU assigned to the current CPU core, and also includes the preset flow interval to which the data flow value predicted by each data channel belongs.

[0205] S309: Inputting each of the impact factor interval subsets into the corresponding central processing unit for parameter setting, and counting the number of frequency reductions of the central processing unit.

[0206] After constructing each of the impact factor interval subsets, each of the impact factor interval subsets is input into a corresponding central processing unit for parameter setting, and the number of frequency reductions of the central processing unit is counted.

[0207] S310: Calculate the proportional relationship between the number of frequency reductions and the number of each impact factor interval subset, and obtain the probability that each CPU core has bandwidth limitation.

[0208] After obtaining the number of frequency reductions of the CPU by statistics, the proportional relationship between the number of frequency reductions and the number of each influencing factor interval subset is calculated to obtain the probability of bandwidth limitation of each CPU core.

[0209] S311: constructing parameter matrices corresponding to respective CPU cores according to respective second CPU impact factor packages.

[0210] After the probability of each CPU core having bandwidth limitation is obtained, a parameter matrix corresponding to each CPU core is constructed according to each second CPU impact factor package.

[0211] S312: Determine a probability distribution model of the relationship between bandwidth limitation and service according to the probability of each bandwidth limitation existing and each parameter matrix.

[0212] In addition to containing all the hardware and operating system level information on the traditional acquisition server and interactive management, the baseboard management controller provided in the embodiment of the present application also needs to execute the central processing unit modeling algorithm. The baseboard management controller contains a small system for equipment life cycle management. The baseboard management controller is also cascaded with the dual-channel central processing unit on the link. The cascade link is mainly based on the Intelligent Platform Management Interface (IPMI) network link. The information at the network layer can facilitate two-way analysis between the baseboard management controller and the central processing unit, which is helpful for algorithm execution. When the baseboard management controller's own modeling capability is insufficient, the controlling central processing unit will share the computing pressure of the central processing unit and complete the modeling.

[0213] After obtaining the parameter matrices corresponding to the respective CPU cores, a probability distribution model of the relationship between bandwidth limitation and services is determined according to the probability of each bandwidth limitation existing and the parameter matrices.

[0214] Taking the parameter matrix corresponding to one of the CPU cores as the benchmark, the covariance matrices of other CPU cores and the first core matrix are listed respectively. After the number of cores is gradually increased to the maximum number of cores, the covariance matrix factor is increased on the basis of the original model for each additional CPU core. The coupling relationship between multiple cores is approximately represented by the covariance matrix.

[0215] The parameter matrix corresponding to each CPU core can be expressed by the following formula:

[0216] ;

[0217] in, Represents the influencing factor matrix of the nth core in the central processing unit. The first column in the matrix is ​​temperature information, the second column is CPU occupancy information, the third column is frequency information, the fourth column is the preset flow interval to which the predicted data flow value belongs, and the fifth column is other parameter information. Each column generally takes four intervals for calculation, and of course other numbers of intervals can also be taken. The intervals in each row are corresponding, such as the interval of temperature 1, the interval of occupancy 1, the interval of frequency 1, and the preset flow 1 to which the data flow value belongs are corresponding intervals, and the number of preset flows to which the data flow value belongs in each row is the same as the number of data channels in the central processing unit.

[0218] The covariance matrix between parameter matrices can be expressed by the following formula:

[0219] ;

[0220] in, It represents the covariance matrix constructed by the influencing factors, reflecting the relationship between the influencing factors of the nth core and the influencing factors of the n-1th core. represents a subset of the covariance matrix.

[0221] The probability of bandwidth limitation can be calculated by the following formula:

[0222] ;

[0223] in, Indicates the probability of bandwidth limitation when using an n-core CPU, where represents the probability obtained by Monte Carlo sampling.

[0224] S313: When it is determined according to the two bandwidth limitation and service relationship probability distribution models that there is a CPU among the two CPUs whose data channel bandwidth reduction probability is higher than a preset value, the CPU whose data channel bandwidth reduction probability is higher than the preset value is determined as the first CPU.

[0225] S314: Using another central processor of the two central processors except the first central processor to perform bandwidth compensation on the first central processor.

[0226] The probability distribution model of bandwidth limitation and business relationship is used to predict the possibility of bandwidth reduction in the central processor in advance, and the reduced bandwidth is made up through compensation between the two paths. After the compensation is completed, the central processor returns to the normal working state before the bandwidth reduction, does not affect the normal operation of the business, and avoids the overall performance reduction of the storage device caused by the bandwidth reduction of the central processor.

[0227] Corresponding to the above method embodiment, the present application further provides a bandwidth compensation device. The bandwidth compensation device described below and the bandwidth compensation method described above can refer to each other.

[0228] See also Figure 4 , Figure 4 This is a structural block diagram of a bandwidth compensation device in an embodiment of the present application, and the device may include:

[0229] The service status acquisition module 41 is used to acquire the service status corresponding to each data channel in the two central processors;

[0230] The flow interval prediction module 42 is used to predict the preset flow interval to which the data flow value of each data channel belongs within a preset time period in the future according to each service status;

[0231] The first impact factor package extraction module 43 is used to extract first CPU impact factor packages corresponding to the two CPUs respectively; wherein the first CPU impact factor packages include parameter intervals to which the preset key parameters of the CPUs respectively belong;

[0232] A model building module 44, for building a probability distribution model of bandwidth limitation and service relationship corresponding to two central processors respectively, combining the preset flow interval to which each data flow value belongs and each first central processor impact factor package;

[0233] A first CPU determining module 45 is configured to, when it is determined according to the two bandwidth restriction and service relationship probability distribution models that there is a CPU among the two CPUs with a probability of reducing bandwidth of the data channel higher than a preset value, determine the CPU with a probability of reducing bandwidth of the data channel higher than the preset value as the first CPU;

[0234] The bandwidth compensation module 46 is used to use another central processor of the two central processors except the first central processor to perform bandwidth compensation on the first central processor.

[0235] It can be seen from the above technical solution that by obtaining the business status corresponding to each data channel in the two central processors, the data flow value of each data channel in the future preset time period is predicted according to the business status, and the preset flow interval corresponding to each data flow value is determined. The preset key parameters of the two central processors are extracted respectively to obtain the impact factor packages of each first central processor. In combination with the preset flow interval to which each data flow value belongs and the impact factor of each first central processor, the bandwidth limitation and business relationship probability distribution model corresponding to the two central processors are constructed, so as to use the bandwidth limitation and business relationship probability distribution model corresponding to the two central processors to predict the bandwidth reduction of the data channel and obtain the probability value. When there is a first central processor whose probability of bandwidth reduction of the data channel is higher than the preset value, another central processor is used to compensate the bandwidth of the first central processor. The possibility of bandwidth reduction of the central processor is predicted in advance, and the normal operation of the business is not affected by the compensation between the two paths, which avoids the overall performance reduction of the storage device caused by the bandwidth reduction of the central processor.

[0236] In a specific implementation of the present application, the flow interval prediction module 42 includes:

[0237] The traffic value prediction submodule is used to predict the data traffic value corresponding to each preset time period of each data channel within a preset time period in the future according to each business status;

[0238] The flow interval acquisition submodule is used to obtain the preset flow interval to which each data flow value belongs;

[0239] The first impact factor package extraction module is specifically used to respectively extract the first CPU impact factor packages of each CPU core of the two CPUs at each preset historical moment.

[0240] In a specific implementation of the present application, the model building module 44 includes:

[0241] A time correspondence acquisition submodule is used to acquire a preset time correspondence between each preset time period and each preset historical moment;

[0242] A second impact factor package construction submodule, for constructing second central processing unit impact factor packages corresponding to each central processing unit core respectively according to corresponding relationships among each preset traffic interval, each first central processing unit impact factor package and preset time;

[0243] The influence factor interval data set acquisition submodule is used to sample the interval ranges contained in the second central processing unit influence factor packages corresponding to each central processing unit core according to the Monte Carlo principle to obtain the influence factor interval data set;

[0244] An impact factor interval subset construction submodule is used to construct each impact factor interval subset according to the impact factor interval data set;

[0245] The frequency reduction number statistics submodule is used to input each impact factor interval subset into the corresponding central processing unit for parameter setting, and to count the frequency reduction number of the central processing unit;

[0246] The probability acquisition submodule is used to calculate the proportional relationship between the number of frequency reductions and the number of each impact factor interval subset, and obtain the probability of each CPU core having bandwidth limitation;

[0247] A parameter matrix construction submodule is used to construct a parameter matrix corresponding to each CPU core according to each second CPU impact factor package;

[0248] The model building submodule is used to determine the probability distribution model of the relationship between bandwidth limitation and service according to the probability of each bandwidth limitation and each parameter matrix.

[0249] In a specific implementation of the present application, the service status acquisition module 41 includes:

[0250] The first business volume acquisition submodule is used to send a first business extraction signal to the front end through an external card to obtain the first business volume of each data channel in the two central processors within the same time period before the preset time period in the future;

[0251] The current transmission rate acquisition submodule is used to obtain the current transmission rate corresponding to each data channel;

[0252] The estimated transmission time obtaining submodule is used to perform quotient calculation on the first service volume and the current transmission rate respectively to obtain the estimated transmission time corresponding to each data channel;

[0253] The service status determination submodule is used to determine the service status corresponding to each data channel according to the expected transmission time.

[0254] In a specific implementation of the present application, the service status determination submodule includes:

[0255] A status-constrained channel determining unit, configured to determine a data channel corresponding to an estimated transmission time greater than a preset future time length among the estimated transmission times as a status-constrained data channel;

[0256] A non-status tight channel determining unit, configured to determine a data channel corresponding to an estimated transmission time that is less than or equal to a preset future time length among the estimated transmission times as a non-status tight data channel;

[0257] The flow interval prediction module 42 includes:

[0258] The second service volume acquisition submodule is used to send a second service extraction signal to the front end through an external card to obtain the second service volume corresponding to each data channel for a preset time period in the future;

[0259] A first business volume calculation submodule, configured to sum up each first business volume to obtain a first business volume;

[0260] A second business volume calculation submodule, configured to sum up each second business volume to obtain a second business volume;

[0261] A business volume difference obtaining submodule is used to calculate the difference between each pair of the first business volume and the second business volume to obtain the business volume difference;

[0262] The total number of data channels acquisition submodule is used to respectively acquire the total number of data channels of the two central processing units;

[0263] The traffic adjustment value obtaining submodule is used to perform a quotient operation on the difference in the total amount of services and the total number of data channels to obtain a data traffic adjustment value;

[0264] The first flow interval determination submodule is used to calculate the difference between the first business volume corresponding to each state tense data channel and the absolute value of the data flow adjustment value, obtain the data flow value of each state tense data channel within a preset time period in the future, and determine the preset flow interval to which each data flow value belongs;

[0265] The second traffic interval determination submodule is used to calculate the sum of the second business volume corresponding to each non-state tense data channel and the absolute value of the data traffic adjustment value, obtain the data traffic value of each non-state tense data channel within a preset time period in the future, and determine the preset traffic interval to which each data traffic value belongs.

[0266] In a specific implementation of the present application, the bandwidth compensation module 46 includes:

[0267] A second central processor determination submodule, used for determining another central processor of the two central processors except the first central processor as the second central processor;

[0268] The spread spectrum activation submodule is used to send an alarm signal to the second central processor, so that the second central processor activates the spread spectrum after receiving the alarm signal;

[0269] A maximum data volume acquisition submodule is used to acquire the maximum data volume that can be processed by the second central processing unit after the spread spectrum is turned on;

[0270] The data volume allocation submodule is used to allocate data volume to the first central processing unit and the second central processing unit according to the highest data volume.

[0271] In a specific implementation of the present application, the data volume allocation submodule includes:

[0272] A currently processed data volume acquisition unit, used to acquire the currently processed data volume of the first central processing unit;

[0273] A ratio value calculation unit, used for calculating the ratio value of the current processing data volume to the maximum data volume;

[0274] A first to-be-processed data volume obtaining unit, configured to perform a product operation on the current processing data volume and the ratio value to obtain a first to-be-processed data volume;

[0275] A second to-be-processed data volume obtaining unit, configured to perform a difference calculation between the currently processed data volume and the first to-be-processed data volume to obtain a second to-be-processed data volume;

[0276] The data volume allocation unit is used to allocate the first amount of data to be processed in the first central processor to the first central processor, and allocate the second amount of data to be processed in the first central processor to the second central processor.

[0277] In a specific implementation of the present application, the data volume allocation unit includes:

[0278] An importance level classification subunit, used for classifying the to-be-processed data in the first central processor into important levels, and obtaining important data sets and less important data sets;

[0279] A data total amount acquisition subunit is used to acquire the total amount of data contained in the secondary important data set;

[0280] A first difference data amount obtaining subunit is used to calculate the difference between the second to-be-processed data amount and the total data amount to obtain a first difference data amount when the total data amount is less than the second to-be-processed data amount;

[0281] A first adjusted data set obtaining subunit is used to randomly obtain a first difference data amount of to-be-processed data from the important data set to obtain a first adjusted data set;

[0282] The first data volume allocation subunit is used to allocate the remaining to-be-processed data in the important data set except the first adjusted data set to the first central processor, and allocate the less important data set and the first adjusted data set to the second central processor.

[0283] In a specific implementation of the present application, the data volume allocation unit may further include:

[0284] A second adjusted data set obtaining subunit is used to randomly obtain the to-be-processed data of the second to-be-processed data amount from the less important data set to obtain the second adjusted data set when the total amount of data is greater than the second to-be-processed data amount;

[0285] The second data volume allocation subunit is used to respectively distribute the remaining to-be-processed data and the important data set in the less important data set except the second adjusted data set to the first central processor, and distribute the second adjusted data set to the second central processor.

[0286] In a specific embodiment of the present application, the importance level classification subunit is specifically used to obtain the stored data from the data to be processed in the first central processing unit; determine the stored data as a secondary important data set, and determine the remaining data to be processed in the first central processing unit except the stored data as an important data set.

[0287] In a specific implementation of the present application, the bandwidth compensation module 46 includes:

[0288] A first pressurization signal receiving submodule, used for receiving first pressurization signals respectively sent by two central processors;

[0289] A load end acquisition submodule, used for performing load scanning according to the first pressure signal, and obtaining each load end cascaded with two central processors through a high-speed signal link;

[0290] The second pressure signal sending submodule is used to send a second pressure signal to each load end, so that each load end can increase the reading and writing speed according to each second pressure signal.

[0291] In a specific embodiment of the present application, the load end acquisition submodule is specifically used to perform load scanning according to the first pressure signal to obtain a load end cascaded with the two central processors through a high-speed signal link other than a coupling link between the two central processors.

[0292] In a specific embodiment of the present application, the device may further include:

[0293] A response signal receiving module, used for receiving response signals returned by the two central processors after sending the second pressure signal to each load end;

[0294] The dual-path assistance module is used to send compensation signals to the two central processors and the high-speed link control chip according to the response signal, so that the high-speed link control chip converts the high-speed signal links cascaded to each other in the two central processors from a disconnected state to a conductive state, and enables the two central processors to send cooperative data packets and response packets to each other for dual-path assistance.

[0295] Corresponding to the above method embodiment, see Figure 5 , Figure 5 A schematic diagram of a bandwidth compensation device provided in the present application, which may include:

[0296] A memory 332, for storing computer programs;

[0297] The processor 322 is configured to implement the steps of the bandwidth compensation method of the above method embodiment when executing a computer program.

[0298] For details, please refer to Figure 6 , Figure 6 A specific structural diagram of a bandwidth compensation device provided for this embodiment, the bandwidth compensation device may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer programs 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the bandwidth compensation device 301.

[0299] The bandwidth compensation device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0300] The steps in the bandwidth compensation method described above can be implemented by the structure of the bandwidth compensation device.

[0301] Corresponding to the above method embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0302] The business status corresponding to each data channel in the two central processors is obtained; the preset flow interval to which the data flow value of each data channel belongs within a preset time period in the future is predicted according to each business status; the first central processor impact factor packages corresponding to the two central processors are extracted respectively; wherein the first central processor impact factor package includes the parameter interval to which each preset key parameter of the central processor belongs respectively; the bandwidth limitation and business relationship probability distribution model corresponding to the two central processors is constructed in combination with the preset flow interval to which each data flow value belongs and the first central processor impact factor package; when it is determined according to the two bandwidth limitation and business relationship probability distribution models that there is a central processor in the two central processors whose probability of reducing bandwidth of the data channel is higher than the preset value, the central processor whose probability of reducing bandwidth of the data channel is higher than the preset value is determined as the first central processor; and the other central processor of the two central processors except the first central processor is used to perform bandwidth compensation for the first central processor.

[0303] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0304] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.

[0305] Corresponding to the above method embodiments, the present application also provides a computer program product, including a computer program, which implements the steps of the above bandwidth compensation method when executed by a processor.

[0306] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0307] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the technical solution and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.

Claims

1. A bandwidth compensation method, characterized in that: include: Obtain the business status corresponding to each data channel in the two central processors; According to each service status, the data flow value of each data channel corresponding to each preset time period in the future preset time period is predicted; Obtain the preset flow interval to which each data flow value belongs; Respectively extracting first CPU impact factor packages of each CPU core of the two CPUs at each preset historical moment; wherein the first CPU impact factor package includes parameter intervals to which each preset key parameter of the CPU belongs; Obtaining the preset time correspondence between each preset time period and each preset historical moment; Constructing second CPU impact factor packages corresponding to each CPU core according to the preset traffic intervals, the first CPU impact factor packages and the preset time correspondence; According to the Monte Carlo principle, data sampling is performed on the interval range contained in each second CPU impact factor package corresponding to each CPU core to obtain an impact factor interval data set; Constructing each impact factor interval subset according to the impact factor interval data set; Inputting each impact factor interval subset into a corresponding central processing unit for parameter setting, and counting the number of frequency reductions of the central processing unit; Calculating the proportional relationship between the frequency reduction times and the number of each impact factor interval subset, and obtaining the probability of each central processing unit core having bandwidth limitation; Constructing parameter matrices corresponding to each CPU core according to each second CPU impact factor package; Determine a probability distribution model of bandwidth limitation and service relationship according to the probability of each bandwidth limitation existing and each parameter matrix; When it is determined according to the two bandwidth limitation and service relationship probability distribution models that there is a central processor among the two central processors with a data channel bandwidth reduction probability higher than a preset value, the central processor with a data channel bandwidth reduction probability higher than the preset value is determined as the first central processor; The bandwidth of the first central processor is compensated by using another central processor of the two central processors except the first central processor.

2. The bandwidth compensation method according to claim 1, characterized in that: Obtain the business status corresponding to each data channel in the two central processors, including: Sending a first service extraction signal to the front end through an external plug-in card, respectively obtaining the first service volume of each data channel in the two central processors within the same time period before the future preset time period; Get the current transmission rate corresponding to each data channel; Performing quotient calculations on the first traffic volume and the current transmission rate respectively to obtain estimated transmission times corresponding to the respective data channels; The service status corresponding to each data channel is determined according to the estimated transmission time.

3. The bandwidth compensation method according to claim 2, characterized in that: Determining the service status corresponding to each data channel according to the estimated transmission time includes: Determine the data channel corresponding to the expected transmission time greater than the future preset time length among the expected transmission times as a data channel in a tense state; Determine the data channel corresponding to the expected transmission time that is less than or equal to the future preset time length among the expected transmission times as a non-status tense data channel; Accordingly, the preset flow interval to which the data flow value of each data channel belongs within the preset time period in the future is predicted according to each service status, including Sending a second service extraction signal to the front end through the external card to obtain the second service volume corresponding to each data channel in the future preset time period; Summing up the first business volumes to obtain a first business total volume; Sum up the second business volumes to obtain a second business total volume; Calculating the difference between each pair of the first total business volume and the second total business volume to obtain a total business volume difference; respectively obtaining the total number of data channels of the two central processing units; Performing a quotient operation on the total service volume difference and the total number of data channels to obtain a data flow adjustment value; Calculate the difference between the first service volume corresponding to each state tense data channel and the absolute value of the data flow adjustment value, obtain the data flow value of each state tense data channel within the future preset time period, and determine the preset flow interval to which each data flow value belongs; The second business volume corresponding to each non-state tense data channel and the absolute value of the data flow adjustment value are respectively calculated and the data flow value of each non-state tense data channel within the future preset time period is obtained, and the preset flow interval to which each data flow value belongs is determined.

4. The bandwidth compensation method according to claim 1, characterized in that: Using another central processor of the two central processors except the first central processor to perform bandwidth compensation on the first central processor includes: Determine another central processor of the two central processors except the first central processor as a second central processor; Sending an alarm signal to the second central processor, so that the second central processor starts spread spectrum after receiving the alarm signal; Obtaining a maximum amount of data that can be processed by the second central processor after spectrum spread is enabled; Data volume is allocated to the first central processing unit and the second central processing unit according to the highest data volume.

5. The bandwidth compensation method according to claim 4, characterized in that: Allocating data volume to the first central processing unit and the second central processing unit according to the highest data volume includes: Acquire the current processing data volume of the first central processing unit; Calculating a ratio of the current processed data volume to the maximum data volume; Performing a product operation on the current processing data volume and the ratio value to obtain a first to-be-processed data volume; Calculating the difference between the currently processed data volume and the first to-be-processed data volume to obtain a second to-be-processed data volume; The first amount of data to be processed in the first central processor is allocated to the first central processor, and the second amount of data to be processed in the first central processor is allocated to the second central processor.

6. The bandwidth compensation method according to claim 5, characterized in that: Allocating the first amount of to-be-processed data in the first central processor to the first central processor, and allocating the second amount of to-be-processed data in the first central processor to the second central processor, comprises: Classifying the data to be processed in the first central processor by importance level to obtain an important data set and a less important data set; Obtaining the total amount of data contained in the secondary important data set; When the total amount of data is less than the second amount of data to be processed, performing a difference calculation between the second amount of data to be processed and the total amount of data to obtain a first difference amount of data; Randomly acquiring the first difference data amount of to-be-processed data from the important data set to obtain a first adjusted data set; The remaining data to be processed in the important data set except the first adjusted data set is allocated to the first central processor, and the less important data set and the first adjusted data set are allocated to the second central processor.

7. The bandwidth compensation method according to claim 6, characterized in that: Also includes: When the total amount of data is greater than the second amount of data to be processed, randomly acquiring the data to be processed of the second amount of data to be processed from the less important data set to obtain a second adjusted data set; The remaining to-be-processed data in the less important data set except the second adjusted data set and the important data set are respectively given to the first central processor, and the second adjusted data set is allocated to the second central processor.

8. The bandwidth compensation method according to claim 6 or 7, characterized in that: Classifying the data to be processed in the first central processor according to importance level to obtain important data sets and less important data sets, including: Acquire the stored data from the data to be processed in the first central processor; The stored data is determined as the secondary important data set, and the remaining data to be processed in the first central processor except the stored data is determined as the important data set.

9. The bandwidth compensation method according to claim 1, characterized in that: Using another central processor of the two central processors except the first central processor to perform bandwidth compensation on the first central processor includes: Receiving first pressure signals respectively sent by the two central processors; Perform load scanning according to the first pressure signal to obtain each load end cascaded with the two central processors through a high-speed signal link; A second pressure signal is sent to each load end, so that each load end performs a read / write rate frequency increase according to each second pressure signal.

10. The bandwidth compensation method according to claim 9, characterized in that: Performing load scanning according to the first pressure signal to obtain a load end cascaded with the two central processors through a high-speed signal link includes: A load scan is performed according to the first pressure signal to obtain a load end cascaded with the two central processing units through a high-speed signal link other than a coupling link between the two central processing units.

11. The bandwidth compensation method according to claim 9, characterized in that: After sending the second pressure signal to each load end, the method further includes: Receiving response signals returned by the two central processors; A compensation signal is sent to the two central processors and the high-speed link control chip according to the response signal, so that the high-speed link control chip converts the high-speed signal links cascaded to each other in the two central processors from a disconnected state to a conductive state, and enables the two central processors to send collaborative data packets and response packets to each other for two-way assistance.

12. A bandwidth compensation device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the bandwidth compensation method according to any one of claims 1 to 11 when executing the computer program.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the bandwidth compensation method according to any one of claims 1 to 11 are implemented.

14. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the bandwidth compensation method according to any one of claims 1 to 11.