CN116627868A - Control method and device for forwarding modes among controllers - Google Patents

Control method and device for forwarding modes among controllers Download PDF

Info

Publication number
CN116627868A
CN116627868A CN202310584772.3A CN202310584772A CN116627868A CN 116627868 A CN116627868 A CN 116627868A CN 202310584772 A CN202310584772 A CN 202310584772A CN 116627868 A CN116627868 A CN 116627868A
Authority
CN
China
Prior art keywords
performance data
forwarding
mode
target
time period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310584772.3A
Other languages
Chinese (zh)
Inventor
王志浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310584772.3A priority Critical patent/CN116627868A/en
Publication of CN116627868A publication Critical patent/CN116627868A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a control method and a device for a forwarding mode between controllers. Comprising the following steps: acquiring a current target operation mode of management equipment; under a target operation mode, a target forwarding mode adopted by forwarding tasks among the controllers at present is obtained, and first performance data when forwarding tasks among the controllers under the target forwarding mode are determined; executing forwarding reminding operation under the condition that the second performance data is smaller than a first preset threshold value, and monitoring whether a plurality of second performance data in a target time period is smaller than the second preset threshold value or not to obtain a monitoring result; and adjusting a target forwarding mode adopted by forwarding tasks among the controllers according to the monitoring result. According to the application, through dynamic fine management of the equipment in the controllers, the situation of overlarge pressure of the controllers is avoided, the problem that the controllers cannot bear front-end business and the like due to abnormal forwarding tasks among the controllers is solved, and the usability of the system is further improved.

Description

Control method and device for forwarding modes among controllers
Technical Field
The application relates to the technical field of computers, in particular to a control method and a device for a forwarding mode between controllers.
Background
The array memory is especially high-end multi-control array memory, and information synchronization or load adjustment among the controllers are required to be continuously carried out through data forwarding among the controllers. The sensitivity of different cores inside the CPU to forwarding tasks under different data models is different.
In the prior art, a scheme for managing forwarding tasks among controllers in real time is lacking, so that the controllers are under excessive pressure in some special scenes, and the usability of the system is reduced. For example, when the DMA of the controller fails and the CPU must be completely used for data forwarding synchronization, if the high-load service pressure is superimposed, it is easy for some controllers to fail to normally carry the front-end service, thereby affecting the usability of the system.
Disclosure of Invention
In view of this, the embodiment of the application provides a method and a device for controlling a forwarding mode between controllers, so as to solve the problem that the existing lack of a scheme for real-time management of forwarding tasks between controllers causes excessive pressure of the controllers in some special scenes.
In a first aspect, an embodiment of the present application provides a method for controlling an inter-controller forwarding manner, which is applied to a management device, where the method includes:
acquiring a current target operation mode of the management equipment;
under the target operation mode, a target forwarding mode adopted by forwarding tasks among the controllers at present is obtained, and first performance data when forwarding tasks among the controllers under the target forwarding mode are determined, wherein each controller comprises a controller and a pair controller;
executing forwarding reminding operation under the condition that the second performance data is smaller than a first preset threshold value, and monitoring whether a plurality of second performance data in a target time period is smaller than the second preset threshold value or not to obtain a monitoring result, wherein the second performance data are performance data when forwarding tasks among controllers according to a target forwarding mode;
and adjusting a target forwarding mode adopted by forwarding tasks among the controllers according to the monitoring result.
Further, in the case that the target operation mode is the first mode and the target forwarding mode is the DMA mode, the method further includes:
acquiring first theoretical performance data corresponding to the DMA mode, a first proportion and a second proportion;
and taking a first calculation result between the first theoretical performance data and the first proportion as the second preset threshold value, or taking a second calculation result between the first theoretical performance data and the second proportion as the second preset threshold value.
Further, the monitoring whether the plurality of second performance data in the target time period is smaller than a second preset threshold value, to obtain a monitoring result, includes:
acquiring a first time period corresponding to the first mode;
and monitoring whether the plurality of second performance data are smaller than the first calculation result in the first time period to obtain the monitoring result, or monitoring whether the plurality of second performance data are smaller than the second calculation result in the first time period to obtain the monitoring result.
Further, the adjusting the target forwarding manner adopted by the forwarding task between the controllers according to the monitoring result includes:
acquiring front-end service pressure when the monitoring result is that the second performance data is continuously smaller than the first calculation result in the first time period or the monitoring result is that any one of the second performance data is smaller than the second calculation result in the first time period;
and under the condition that the front-end service pressure is smaller than a first pressure threshold value, switching the target forwarding mode from a DMA mode to a CPU core forwarding mode.
Further, after the target forwarding mode is switched from the DMA mode to the CPU core forwarding mode, the method further includes:
acquiring a plurality of third performance data in a second time period, wherein the third performance data are performance data when forwarding tasks are performed among controllers according to a CPU core forwarding mode;
acquiring second theoretical performance data, a third proportion and a fourth proportion corresponding to the CPU core forwarding mode;
acquiring a third calculation result between the second theoretical performance data and the third proportion and a fourth calculation result between the second theoretical performance data and the fourth proportion;
and executing a forwarding reminding operation and generating prompt information under the condition that the third performance data is continuously smaller than a third calculation result in the second time period or the any one of the third performance data is smaller than a fourth calculation result in the second time period, wherein the prompt information is used for prompting whether to switch the first mode into the second mode.
Further, in the case that the target operation mode is the second mode and the target forwarding mode is the DMA mode, the method further includes:
acquiring first theoretical performance data corresponding to the DMA mode, a fifth proportion and a sixth proportion;
and taking a fifth calculation result between the first theoretical performance data and the fifth proportion as the second preset threshold value, or taking a sixth calculation result between the first theoretical performance data and the sixth proportion as the second preset threshold value.
Further, the monitoring whether the plurality of second performance data in the target time period is smaller than a second preset threshold value, to obtain a monitoring result, includes:
acquiring a third time period corresponding to the second mode;
and monitoring whether the plurality of second performance data are smaller than the fifth calculation result in the third time period to obtain the monitoring result, or monitoring whether the plurality of second performance data are smaller than the sixth calculation result in the third second time period to obtain the monitoring result.
Further, the adjusting the target forwarding manner adopted by the forwarding task between the controllers according to the monitoring result includes:
acquiring front-end service pressure when the monitoring result is that the second performance data is continuously smaller than the fifth calculation result in the third time period or the monitoring result is that any one of the second performance data is smaller than the sixth calculation result in the third time period;
and under the condition that the front-end service pressure is smaller than a second pressure threshold value, switching the target forwarding mode from a DMA mode to a CPU core forwarding mode.
Further, after the target forwarding mode is switched from the DMA mode to the CPU core forwarding mode, the method further includes:
acquiring a plurality of fourth performance data in a fourth time period, wherein the fourth performance data are performance data when forwarding tasks are performed among controllers according to a CPU core forwarding mode;
acquiring second theoretical performance data, seventh proportion and eighth proportion corresponding to the CPU core forwarding mode;
acquiring a seventh calculation result between the second theoretical performance data and the seventh proportion, and an eighth calculation result between the second theoretical performance data and the eighth proportion;
and executing forwarding reminding operation when the fourth performance data is continuously smaller than a seventh calculation result in the fourth time period or the arbitrary fourth performance data is smaller than an eighth calculation result in the fourth time period, performing simulation test on all CPU cores in the controller, and executing forwarding tasks by using the CPU core with the highest performance in the simulation test.
In a second aspect, an embodiment of the present application provides a control apparatus for an inter-controller forwarding manner, where the apparatus includes:
the acquisition module is used for acquiring the current target operation mode of the management equipment;
the determining module is used for acquiring a target forwarding mode adopted by forwarding tasks among the controllers currently under the target operation mode and determining first performance data when forwarding the tasks among the controllers under the target forwarding mode, wherein each controller comprises a controller and a pair controller;
the execution module is used for executing forwarding reminding operation under the condition that the second performance data is smaller than a first preset threshold value, and monitoring whether a plurality of second performance data in a target time period is smaller than the second preset threshold value or not to obtain a monitoring result, wherein the second performance data are performance data when forwarding tasks are performed among controllers according to a target forwarding mode;
and the processing module is used for adjusting a target forwarding mode adopted by forwarding tasks among the controllers according to the monitoring result.
In a third aspect, an embodiment of the present application provides a computer apparatus, including: the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions to perform the method of the first aspect or any implementation manner corresponding to the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of the first aspect or any of its corresponding embodiments.
The method provided by the embodiment of the application has the following advantages: the management equipment is used for verifying the performance data when the forwarding tasks are acquired in different operation modes, continuously monitoring the performance data when the performance data are low, and finally adjusting the forwarding mode among the controllers by utilizing the monitoring result, so that the situation that the pressure of the controllers is overlarge is avoided by carrying out dynamic fine management on front-end equipment, main control equipment and buffer equipment in the controllers, the problem that the controllers cannot bear front-end business and the like due to the abnormality of the forwarding tasks among the controllers is solved, and the usability of the system is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow diagram of an inter-controller forwarding method according to some embodiments of the present application;
FIG. 2 is a schematic diagram of a connection relationship between controllers according to some embodiments of the application;
fig. 3 is a block diagram of an inter-controller forwarding mode apparatus according to an embodiment of the present application;
fig. 4 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
According to an embodiment of the present application, there is provided a method embodiment of a method for controlling an inter-controller forwarding manner, it should be noted that, steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and, although a logical order is illustrated in the flowchart, in some cases, steps illustrated or described may be performed in an order different from that herein.
In this embodiment, a control method of an inter-controller forwarding manner is provided, which may be used in the above mobile terminal, such as a mobile phone, a tablet computer, etc., fig. 1 is a flowchart of a method of an inter-controller forwarding manner according to an embodiment of the present application, as shown in fig. 1, where the flowchart includes the following steps:
step S11, the current target operation mode of the management equipment is obtained.
The method provided by the embodiment of the application is applied to the management equipment, wherein the management equipment can be forwarding affinity core (Forward Affinity Core, abbreviated as FAC) equipment. The management equipment is used for carrying out dynamic fine management on the front-end equipment, the main control equipment and the buffer equipment, especially, forwarding affinity core strategy adjustment aiming at the CPU is carried out in a high-availability mode, so that abnormal situations that a controller cannot bear front-end service and the like due to incapability of normally carrying out forwarding tasks in an extreme scene are avoided, and the usability of the system is further improved.
In the embodiment of the application, the management equipment is deployed on the board and mainly applied to programmable logic devices such as ARM and the like. The management device can dynamically manage the front-end device, the main control device and the buffer device in a high-availability mode and a common mode respectively. The front-end equipment is connected with service equipment, the service equipment is generally a service server of a user and the like, and is connected with the stored front-end equipment through an FC/IP/RoCE/IB switch and the like, and the front-end equipment is generally a high-speed IO card of FC/IP/RoCE/IB and the like on the whole storage machine. The cache device is generally a memory unit in the control device, and the controller and the cache device between the controllers are interconnected and communicated through a high-speed bus such as NTB/RoCE.
In the embodiment of the application, the target operation mode of the management device comprises the following steps: a first mode and a second mode, the first mode is a normal mode, and the second mode is a high availability mode.
Step S12, under a target operation mode, a target forwarding mode adopted by forwarding tasks among the controllers at present is obtained, and first performance data when forwarding the tasks among the controllers under the target forwarding mode is determined, wherein each controller comprises the controller and a pair of controllers.
In the embodiment of the present application, in a target operation mode, a management device obtains a target forwarding mode adopted by a forwarding task between controllers (the present controller and the opposite controller), where the target forwarding mode includes: DMA mode or CPU core forwarding mode. And then the management equipment acquires first performance data between the controllers in real time when forwarding tasks in a target forwarding mode through the main control equipment. The performance data includes: IOPS, bandwidth, latency, etc.
And step S13, executing forwarding reminding operation under the condition that the second performance data is smaller than a first preset threshold value, and monitoring whether a plurality of second performance data in a target time period is smaller than the second preset threshold value or not to obtain a monitoring result, wherein the second performance data are performance data when forwarding tasks according to a target forwarding mode between controllers.
In one embodiment of the present application, in the case where the target operation mode is the first mode (normal mode) and the target forwarding mode is the DMA mode, the method further includes: acquiring first theoretical performance data corresponding to a DMA mode, a first proportion and a second proportion; and taking a first calculation result between the first theoretical performance data and the first proportion as a second preset threshold value, or taking a second calculation result between the first theoretical performance data and the second proportion as a second preset threshold value.
As an example, the first theoretical performance data in the DMA mode is P, the first ratio is X1, the second ratio is X2, the first calculation result is p×x1, and the second calculation result is p×x2.
In the embodiment of the application, whether a plurality of second performance data in a target time period is smaller than a second preset threshold value is monitored to obtain a monitoring result, which comprises the following steps of A1-A2:
and A1, acquiring a first time period corresponding to the first mode.
And A2, monitoring whether the plurality of second performance data are smaller than the first calculation result in the first time period to obtain a monitoring result, or monitoring whether the plurality of second performance data are smaller than the second calculation result in the first time period to obtain a monitoring result.
In the embodiment of the application, the forwarding tasks among the controllers are all carried out in a DMA mode in order to reduce the resource consumption of the CPU of the main control equipment. When the management device detects that the current DMA mode is abnormal, a reminding operation is needed. Based on this, the management device may first monitor, according to a first time period T1 corresponding to the first mode (normal mode), a plurality of second performance data when forwarding the task in the DMA mode, and since the first time period includes a plurality of sampling moments, each sampling moment corresponds to one second performance data. And then, comparing the second performance data with the first calculation result P multiplied by X1 to obtain a monitoring result. Or comparing the second performance data with the second calculation result P multiplied by X2 to obtain a monitoring result.
It should be noted that, by comparing the performance data with two different calculation results in the normal mode, it can be accurately determined whether the forwarding task in the DMA mode is abnormal, so that the management efficiency between controllers is improved, and the subsequent corresponding control operation according to the abnormality is facilitated, thereby ensuring the usability of the system.
In another embodiment of the present application, when the target operation mode is the second mode and the target forwarding mode is the DMA mode, the method further includes: acquiring first theoretical performance data corresponding to a DMA mode, a fifth proportion and a sixth proportion; and taking a fifth calculation result between the first theoretical performance data and the fifth proportion as a second preset threshold value, or taking a sixth calculation result between the first theoretical performance data and the sixth proportion as a second preset threshold value.
As an example, the first theoretical performance data in the DMA mode is P, the fifth ratio is X5, the sixth ratio is X6, the fifth calculation result is p×x5, and the sixth calculation result is q×x6.
In another embodiment of the present application, monitoring whether the plurality of second performance data in the target time period is smaller than a second preset threshold value to obtain a monitoring result includes the following steps B1-B2:
step B1, obtaining a third time period corresponding to the second mode;
and B2, monitoring whether the plurality of second performance data are smaller than the fifth calculation result in a third time period to obtain a monitoring result, or monitoring whether the plurality of second performance data are smaller than the sixth calculation result in a third second time period to obtain a monitoring result.
In the embodiment of the present application, the management device may first monitor, according to a third time period T3 corresponding to the second mode (high availability mode), a plurality of second performance data when forwarding the task in the DMA mode, where the third time period includes a plurality of sampling moments, and each sampling moment corresponds to one second performance data. And then, comparing the second performance data with a fifth calculation result P multiplied by X5 to obtain a monitoring result. Or comparing the second performance data with the sixth calculation result p×x6 to obtain a monitoring result.
It should be noted that, by comparing the performance data with two different calculation results in the high availability mode, it can be accurately determined whether the forwarding task in the DMA mode is abnormal, so that the management efficiency between controllers is improved, and the subsequent corresponding control operation according to the abnormality is facilitated, thereby ensuring the availability of the system.
And step S14, adjusting a target forwarding mode adopted by forwarding tasks among the controllers according to the monitoring result.
In the embodiment of the present application, if the current target operation mode is the first mode (normal mode), and the target forwarding mode is the DMA mode, the adjusting the target forwarding mode adopted by the forwarding task between the controllers according to the monitoring result includes: acquiring front-end service pressure when the monitoring result is that the second performance data is continuously smaller than the first calculation result in the first time period or the monitoring result is that any one of the second performance data is smaller than the second calculation result in the first time period; and under the condition that the front-end service pressure is smaller than the first pressure threshold value, switching the target forwarding mode from the DMA mode to the CPU core forwarding mode.
As an example, during the first time period T1, if P continues to be not greater than p×x1, or there is any time p×x2 or not greater, a primary forwarding alarm is reported, and meanwhile, the front-end service pressure is acquired, and if the front-end service pressure is less than the first pressure threshold, the forwarding mode is switched from the DMA mode to the CPU core forwarding.
In the embodiment of the application, after the target forwarding mode is switched from the DMA mode to the CPU core forwarding mode, the method further comprises the following steps C1-C4:
and C1, acquiring a plurality of third performance data in a second time period, wherein the third performance data are performance data when forwarding tasks are performed among controllers according to a CPU core forwarding mode.
In the embodiment of the present application, the management device may monitor, first, a plurality of third performance data when forwarding a task according to a CPU core forwarding manner according to a second time period T2 corresponding to the first mode (normal mode), and since the second time period includes a plurality of sampling moments, each sampling moment corresponds to one point performance data.
And C2, acquiring second theoretical performance data, a third proportion and a fourth proportion corresponding to the CPU core forwarding mode.
In the embodiment of the application, the second theoretical performance data in the CPU core forwarding mode is Q, the third proportion is X3, and the fourth proportion is X4.
And C3, obtaining a third calculation result between the second theoretical performance data and the third proportion and a fourth calculation result between the second theoretical performance data and the fourth proportion.
In the embodiment of the present application, the third calculation result is qxx 3, and the fourth calculation result is qxx 4.
And C4, executing a forwarding reminding operation and generating reminding information when the third performance data is continuously smaller than the third calculation result in the second time period or any one of the third performance data is smaller than the fourth calculation result in the second time period, wherein the reminding information is used for reminding whether to switch the first mode into the second mode.
In the embodiment of the application, if the third performance data is not more than Q×x3 continuously or is not more than Q×x4 at any time in the second time period, a secondary forwarding prompt is reported, and prompt information is generated, wherein the prompt information is used for prompting whether to switch the first mode into the second mode, namely prompting whether to switch the common mode into the high available mode.
In another embodiment of the present application, if the current target operation mode is the second mode (high availability mode) and the target forwarding mode is the DMA mode, the adjusting the target forwarding mode adopted by the forwarding task between the controllers according to the monitoring result includes: acquiring front-end service pressure when the monitoring result is that the second performance data is continuously smaller than the fifth calculation result in the third time period or the monitoring result is that any one of the second performance data is smaller than the sixth calculation result in the third time period; and under the condition that the front-end service pressure is smaller than the second pressure threshold value, switching the target forwarding mode from the DMA mode to the CPU core forwarding mode.
As an example, in the third time period T3, if P continues to be not greater than p×x5, or there is any time p×x6 or not greater, the three-stage forwarding alarm is reported, and meanwhile, the front-end service pressure is acquired, and if the front-end service pressure is less than the second pressure threshold, the forwarding mode is switched from the DMA mode to the CPU core forwarding.
In the embodiment of the application, after the target forwarding mode is switched from the DMA mode to the CPU core forwarding mode, the method further comprises the following steps D1-D4:
and D1, acquiring a plurality of fourth performance data in a fourth time period, wherein the fourth performance data are performance data when forwarding tasks are performed among controllers according to a CPU core forwarding mode.
In the embodiment of the present application, the management device may first monitor, according to a fourth time period T4 corresponding to the second mode (high availability mode), a plurality of fourth performance data when forwarding the task according to the CPU core forwarding manner, and since the second time period includes a plurality of sampling moments, each sampling moment corresponds to one fourth performance data.
And D2, acquiring second theoretical performance data, seventh proportion and eighth proportion corresponding to the CPU core forwarding mode.
In the embodiment of the application, the second theoretical performance data in the CPU core forwarding mode is Q, the seventh proportion is X7, and the eighth proportion is X8.
And D3, obtaining a seventh calculation result between the second theoretical performance data and the seventh proportion and an eighth calculation result between the second theoretical performance data and the eighth proportion.
In the embodiment of the present application, the seventh calculation result is qx X7, and the eighth calculation result is qx 8.
And D4, executing a forwarding reminding operation when the fourth performance data is continuously smaller than the seventh calculation result in the fourth time period or any one of the fourth performance data is smaller than the eighth calculation result in the fourth time period, performing a simulation test on all CPU cores in the controller, and executing a forwarding task by using the CPU core with the highest performance in the simulation test.
In the embodiment of the application, if the fourth performance data is not more than qxx 7 continuously or is not more than qxx 8 at any time in the fourth time period T4, a four-stage forwarding reminder is reported, and at this time, the management device performs a Simulation Test (abbreviated: ST) on all CPU cores of the main control module under the condition that the front-end service pressure is less than the third pressure threshold, that is, performs a simulated CPU forwarding task according to the current forwarding task data model, selects M CPU cores with the highest performance according to the Simulation Test result, and executes the current forwarding task by using the M CPU cores, where M is greater than 1.
The method provided by the embodiment of the application further comprises the following steps: and canceling the four-stage forwarding reminding when the performance data is continuously not more than Q X X7 or is not more than Q X X8 in any time in the fifth time period T5, reporting the four-stage forwarding reminding, performing ST on all CPU cores once when the front-end service pressure is less than a fourth pressure threshold value by the management equipment, selecting M+N CPU cores with highest performance according to the simulation test result, executing the current forwarding task by using the M+N CPU cores, and canceling the four-stage forwarding reminding when the performance data is continuously more than Q X X7 in the sixth time period T6.
According to the method provided by the embodiment of the application, the management equipment is used for verifying the performance data when the forwarding task is acquired in different operation modes, continuously monitoring the performance data when the performance data is low, and finally adjusting the forwarding mode among the controllers by utilizing the monitoring result, so that the situation that the pressure of the controllers is too high is avoided by carrying out dynamic fine management on the front-end equipment, the main control equipment and the buffer equipment in the controllers, the abnormal problems that the controllers cannot bear front-end service and the like due to the abnormal forwarding task among the controllers are solved, and the usability of the system is further improved.
The embodiment also provides a control device of an inter-controller forwarding manner, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
As shown in fig. 3, this embodiment provides a control device of an inter-controller forwarding mode, where the device includes:
an obtaining module 31, configured to obtain a current target operation mode of the management device;
the determining module 32 is configured to obtain, in a target operation mode, a target forwarding mode adopted by a forwarding task between the current controllers, and determine first performance data when forwarding the task between the controllers in the target forwarding mode, where each controller includes the present controller and the opposite controller;
the execution module 33 is configured to execute a forwarding reminding operation when the second performance data is smaller than a first preset threshold, and monitor whether a plurality of second performance data in a target time period is smaller than a second preset threshold, so as to obtain a monitoring result, where the second performance data is performance data when forwarding tasks according to a target forwarding mode between controllers;
and the processing module 34 is used for adjusting a target forwarding mode adopted by forwarding tasks among the controllers according to the monitoring result.
In the embodiment of the application, when the target operation mode is the first mode and the target forwarding mode is the DMA mode, the device further comprises a first calculation module for acquiring first theoretical performance data corresponding to the DMA mode, a first proportion and a second proportion; and taking a first calculation result between the first theoretical performance data and the first proportion as a second preset threshold value, or taking a second calculation result between the first theoretical performance data and the second proportion as a second preset threshold value.
In the embodiment of the present application, the executing module 33 is configured to obtain a first time period corresponding to the first mode; and monitoring whether the plurality of second performance data are smaller than the first calculation result in the first time period to obtain a monitoring result, or monitoring whether the plurality of second performance data are smaller than the second calculation result in the first time period to obtain a monitoring result.
In the embodiment of the present application, the processing module 34 is configured to obtain the front-end service pressure when the monitoring result is that the second performance data is continuously smaller than the first calculation result in the first time period, or when the monitoring result is that any one of the second performance data is smaller than the second calculation result in the first time period; and under the condition that the front-end service pressure is smaller than the first pressure threshold value, switching the target forwarding mode from the DMA mode to the CPU core forwarding mode.
In the embodiment of the application, the device further comprises a first monitoring module, wherein the first monitoring module is used for acquiring a plurality of third performance data in a second time period, and the third performance data are performance data when forwarding tasks are performed among controllers according to a CPU core forwarding mode; acquiring second theoretical performance data corresponding to a CPU core forwarding mode, and a third proportion and a fourth proportion; acquiring a third calculation result between the second theoretical performance data and a third proportion and a fourth calculation result between the second theoretical performance data and a fourth proportion; and executing a forwarding reminding operation and generating prompting information when the third performance data is continuously smaller than the third calculation result in the second time period or any one of the third performance data is smaller than the fourth calculation result in the second time period, wherein the prompting information is used for prompting whether the first mode is switched to the second mode.
In the embodiment of the application, when the target operation mode is the second mode and the target forwarding mode is the DMA mode, the device further comprises a second calculation module for acquiring the first theoretical performance data corresponding to the DMA mode, the fifth proportion and the sixth proportion; and taking a fifth calculation result between the first theoretical performance data and the fifth proportion as a second preset threshold value, or taking a sixth calculation result between the first theoretical performance data and the sixth proportion as a second preset threshold value.
In the embodiment of the present application, the execution module 33 is configured to obtain a third time period corresponding to the second mode; and monitoring whether the plurality of second performance data are smaller than the fifth calculation result in the third time period to obtain a monitoring result, or monitoring whether the plurality of second performance data are smaller than the sixth calculation result in the third second time period to obtain a monitoring result.
In the embodiment of the present application, the processing module 34 is configured to obtain the front-end service pressure when the monitoring result is that the second performance data is continuously smaller than the fifth calculation result in the third time period, or when the monitoring result is that any one of the second performance data is smaller than the sixth calculation result in the third time period; and under the condition that the front-end service pressure is smaller than the second pressure threshold value, switching the target forwarding mode from the DMA mode to the CPU core forwarding mode.
In the embodiment of the application, the device further comprises a second monitoring module, wherein the second monitoring module is used for acquiring a plurality of fourth performance data in a fourth time period, and the fourth performance data are performance data when forwarding tasks are performed among controllers according to a CPU core forwarding mode; acquiring second theoretical performance data, seventh proportion and eighth proportion corresponding to a CPU core forwarding mode; acquiring a seventh calculation result between the second theoretical performance data and the seventh proportion and an eighth calculation result between the second theoretical performance data and the eighth proportion; and executing forwarding reminding operation when the fourth performance data is continuously smaller than the seventh calculation result in the fourth time period or any one of the fourth performance data is smaller than the eighth calculation result in the fourth time period, performing simulation test on all CPU cores in the controller, and executing forwarding tasks by using the CPU core with the highest performance in the simulation test.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The embodiment of the application also provides computer equipment, which is provided with the device shown in the figure 4.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a computer device according to an alternative embodiment of the present application, as shown in fig. 4, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system).
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods shown in implementing the above embodiments.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created from the use of the computer device of the presentation of a sort of applet landing page, and the like. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present application also provide a computer readable storage medium, and the method according to the embodiments of the present application described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present application have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the application, and such modifications and variations fall within the scope of the application as defined by the appended claims.

Claims (10)

1. A method for controlling an inter-controller forwarding mode, applied to a management device, the method comprising:
acquiring a current target operation mode of the management equipment;
under the target operation mode, a target forwarding mode adopted by forwarding tasks among the controllers at present is obtained, and first performance data when forwarding tasks among the controllers under the target forwarding mode are determined, wherein each controller comprises a controller and a pair controller;
executing forwarding reminding operation under the condition that the second performance data is smaller than a first preset threshold value, and monitoring whether a plurality of second performance data in a target time period is smaller than the second preset threshold value or not to obtain a monitoring result, wherein the second performance data are performance data when forwarding tasks among controllers according to a target forwarding mode;
and adjusting a target forwarding mode adopted by forwarding tasks among the controllers according to the monitoring result.
2. The method of claim 1, wherein in the case where the target operation mode is a first mode and the target forwarding mode is a DMA mode, the method further comprises:
acquiring first theoretical performance data corresponding to the DMA mode, a first proportion and a second proportion;
and taking a first calculation result between the first theoretical performance data and the first proportion as the second preset threshold value, or taking a second calculation result between the first theoretical performance data and the second proportion as the second preset threshold value.
3. The method according to claim 2, wherein monitoring whether the plurality of second performance data in the target time period is smaller than a second preset threshold value, to obtain a monitoring result, includes:
acquiring a first time period corresponding to the first mode;
and monitoring whether the plurality of second performance data are smaller than the first calculation result in the first time period to obtain the monitoring result, or monitoring whether the plurality of second performance data are smaller than the second calculation result in the first time period to obtain the monitoring result.
4. A method according to claim 3, wherein the adjusting the target forwarding manner adopted by the forwarding task between the controllers according to the monitoring result includes:
acquiring front-end service pressure when the monitoring result is that the second performance data is continuously smaller than the first calculation result in the first time period or the monitoring result is that any one of the second performance data is smaller than the second calculation result in the first time period;
and under the condition that the front-end service pressure is smaller than a first pressure threshold value, switching the target forwarding mode from a DMA mode to a CPU core forwarding mode.
5. The method of claim 4, wherein after switching the target forwarding mode from the DMA mode to the CPU core forwarding mode, the method further comprises:
acquiring a plurality of third performance data in a second time period, wherein the third performance data are performance data when forwarding tasks are performed among controllers according to a CPU core forwarding mode;
acquiring second theoretical performance data, a third proportion and a fourth proportion corresponding to the CPU core forwarding mode;
acquiring a third calculation result between the second theoretical performance data and the third proportion and a fourth calculation result between the second theoretical performance data and the fourth proportion;
and executing a forwarding reminding operation and generating prompt information under the condition that the third performance data is continuously smaller than a third calculation result in the second time period or the any one of the third performance data is smaller than a fourth calculation result in the second time period, wherein the prompt information is used for prompting whether to switch the first mode into the second mode.
6. The method of claim 1, wherein in the case where the target operation mode is the second mode and the target forwarding mode is the DMA mode, the method further comprises:
acquiring first theoretical performance data corresponding to the DMA mode, a fifth proportion and a sixth proportion;
and taking a fifth calculation result between the first theoretical performance data and the fifth proportion as the second preset threshold value, or taking a sixth calculation result between the first theoretical performance data and the sixth proportion as the second preset threshold value.
7. The method of claim 6, wherein monitoring whether the plurality of second performance data within the target time period is less than a second predetermined threshold value, comprises:
acquiring a third time period corresponding to the second mode;
and monitoring whether the plurality of second performance data are smaller than the fifth calculation result in the third time period to obtain the monitoring result, or monitoring whether the plurality of second performance data are smaller than the sixth calculation result in the third second time period to obtain the monitoring result.
8. The method of claim 7, wherein adjusting the target forwarding manner used for forwarding tasks between the controllers according to the monitoring result comprises:
acquiring front-end service pressure when the monitoring result is that the second performance data is continuously smaller than the fifth calculation result in the third time period or the monitoring result is that any one of the second performance data is smaller than the sixth calculation result in the third time period;
and under the condition that the front-end service pressure is smaller than a second pressure threshold value, switching the target forwarding mode from a DMA mode to a CPU core forwarding mode.
9. The method of claim 7, wherein after switching the target forwarding mode from the DMA mode to the CPU core forwarding mode, the method further comprises:
acquiring a plurality of fourth performance data in a fourth time period, wherein the fourth performance data are performance data when forwarding tasks are performed among controllers according to a CPU core forwarding mode;
acquiring second theoretical performance data, seventh proportion and eighth proportion corresponding to the CPU core forwarding mode;
acquiring a seventh calculation result between the second theoretical performance data and the seventh proportion, and an eighth calculation result between the second theoretical performance data and the eighth proportion;
and executing forwarding reminding operation when the fourth performance data is continuously smaller than a seventh calculation result in the fourth time period or the arbitrary fourth performance data is smaller than an eighth calculation result in the fourth time period, performing simulation test on all CPU cores in the controller, and executing forwarding tasks by using the CPU core with the highest performance in the simulation test.
10. A control apparatus for an inter-controller forwarding scheme, the apparatus comprising:
the acquisition module is used for acquiring the current target operation mode of the management equipment;
the determining module is used for acquiring a target forwarding mode adopted by forwarding tasks among the controllers currently under the target operation mode and determining first performance data when forwarding the tasks among the controllers under the target forwarding mode, wherein each controller comprises a controller and a pair controller;
the execution module is used for executing forwarding reminding operation under the condition that the second performance data is smaller than a first preset threshold value, and monitoring whether a plurality of second performance data in a target time period is smaller than the second preset threshold value or not to obtain a monitoring result, wherein the second performance data are performance data when forwarding tasks are performed among controllers according to a target forwarding mode;
and the processing module is used for adjusting a target forwarding mode adopted by forwarding tasks among the controllers according to the monitoring result.
CN202310584772.3A 2023-05-23 2023-05-23 Control method and device for forwarding modes among controllers Pending CN116627868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310584772.3A CN116627868A (en) 2023-05-23 2023-05-23 Control method and device for forwarding modes among controllers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310584772.3A CN116627868A (en) 2023-05-23 2023-05-23 Control method and device for forwarding modes among controllers

Publications (1)

Publication Number Publication Date
CN116627868A true CN116627868A (en) 2023-08-22

Family

ID=87596765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310584772.3A Pending CN116627868A (en) 2023-05-23 2023-05-23 Control method and device for forwarding modes among controllers

Country Status (1)

Country Link
CN (1) CN116627868A (en)

Similar Documents

Publication Publication Date Title
EP3335120B1 (en) Method and system for resource scheduling
US20190197028A1 (en) Database management system with database hibernation and bursting
US7631034B1 (en) Optimizing node selection when handling client requests for a distributed file system (DFS) based on a dynamically determined performance index
CN102402395A (en) Quorum disk-based non-interrupted operation method for high availability system
CN113742031B (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN113434337B (en) Retry strategy control method and device and electronic equipment
CN110716793A (en) Execution method, device, equipment and storage medium of distributed transaction
CN110377664B (en) Data synchronization method, device, server and storage medium
CN116560889A (en) Data link management method, device, computer equipment and storage medium
CN111400041A (en) Server configuration file management method and device and computer readable storage medium
JP2019096210A (en) Control unit, control method, and program
CN116881053B (en) Data processing method, exchange board, data processing system and data processing device
CN113382056A (en) Data reporting method, device, equipment, storage medium and system
CN105205160A (en) Data write-in method and device
US11334436B2 (en) GPU-based advanced memory diagnostics over dynamic memory regions for faster and efficient diagnostics
CN117056054A (en) Interrupt control method, interrupt controller, computer device, and storage medium
CN112181942A (en) Time sequence database system and data processing method and device
CN116627868A (en) Control method and device for forwarding modes among controllers
CN116521081A (en) Method, device, equipment and storage medium for assembling on-board redundant array of independent disks
CN109962941B (en) Communication method, device and server
CN109582609A (en) A kind of apparatus control method, system and associated component
CN115469966A (en) Elastic expansion method and device for container cloud service
CN115454565A (en) Data migration method and device of virtual machine, electronic equipment and storage medium
CN116405377B (en) Network state detection method, protocol conversion component, equipment and storage medium
CN116627360B (en) Data issuing method, data management system, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination