CN108781170B - Configuration device and method - Google Patents
Configuration device and method Download PDFInfo
- Publication number
- CN108781170B CN108781170B CN201680083122.9A CN201680083122A CN108781170B CN 108781170 B CN108781170 B CN 108781170B CN 201680083122 A CN201680083122 A CN 201680083122A CN 108781170 B CN108781170 B CN 108781170B
- Authority
- CN
- China
- Prior art keywords
- message
- performance index
- index parameter
- cache
- preset threshold
- 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.)
- Active
Links
Images
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
A configuration device and a configuration method relate to the field of communication and solve the problem that a processor cannot be recovered after performance of the processor is reduced. The specific scheme is as follows: an acquisition unit acquires a performance index parameter (201) indicating a load condition of a CPU; when the performance index parameter acquired by the acquisition unit is greater than or equal to the preset threshold, the configuration unit configures the attribute of the cache not to be allocated through the message parsing module (202). The method is used in the process of restoring the processing performance of the processor.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a configuration apparatus and method.
Background
In the process of forwarding a message, a processor usually has a processing load exceeding the maximum processing capability of the processor due to a large input flow, and when the processing load exceeds the maximum processing capability of the processor, the performance of the processor is suddenly changed to a low level due to a large amount of Data replacement in a cache, a sharp drop in an instruction hit Rate, a sharp drop in a Data hit Rate, an increased access delay of the processor to a Double Data Rate (DDR), and the like. When the performance of the processor is in a low level, even if the input traffic is limited by the backpressure so that the processing load is below the maximum processing capacity of the processor, the performance of the processor still remains in the low level and cannot be recovered, and finally, the service is interrupted.
Therefore, when the processing load of the processor exceeds the maximum processing capacity, how to solve the problem that the processor cannot recover after the performance of the processor is reduced has become an important issue for those skilled in the art to study.
Disclosure of Invention
The invention provides a configuration device and a configuration method, which solve the problem that the performance of a processor cannot be recovered after being reduced.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect of the present invention, a configuration apparatus is provided, which includes:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a performance index parameter which is used for indicating the load condition of a Central Processing Unit (CPU);
and the configuration unit is used for configuring the attribute of the cache not to be subjected to allocation operation through the message analysis module when the performance index parameter acquired by the acquisition unit is greater than or equal to a preset threshold value.
After the obtaining unit obtains the performance index parameter, it may be determined whether the performance index parameter is greater than or equal to a preset threshold, that is, whether the processing load of the processor exceeds the maximum processing capability of the processor, and when it is determined that the performance index parameter is greater than or equal to the preset threshold, that is, the processing load of the processor exceeds the maximum processing capability of the processor, the configuration unit configures the attribute of the cache to not perform allocation operation through the packet parsing module, so as to stop allocation of the cache, and further avoid frequent swapping in and out of cache data in the cache.
With reference to the first aspect, in a possible implementation manner, the configuration unit is further configured to configure the message parsing module to start a selective message discarding function when the performance index parameter acquired by the acquisition unit is greater than or equal to a preset threshold, so that the message parsing module discards a message with a low priority in messages to be processed.
In order to avoid that the service with higher priority is influenced after the performance of the processor is reduced, when the performance index parameter acquired by the acquisition unit is determined to be greater than or equal to the preset threshold, the configuration unit may further configure the message analysis module to start the selective message discarding function.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the apparatus further includes:
and the processing unit is used for carrying out service processing on the message corresponding to the message descriptor in the message to be processed according to the message descriptor stored in the cache.
The processing unit may preferentially perform service processing on a packet corresponding to a packet descriptor in the to-be-processed packet according to the packet descriptor stored in the cache, so that the performance of the processor is gradually restored.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the obtaining unit is further configured to, after the processing unit performs service processing on a packet corresponding to the packet descriptor in the to-be-processed packet according to the packet descriptor stored in the cache, obtain the performance indicator parameter again;
the configuration unit is further configured to configure, by the packet parsing module, the attribute of the cache to perform allocation operation when the performance index parameter re-acquired by the acquisition unit is smaller than the preset threshold.
In order to process the packet normally after the performance of the processor is recovered, the obtaining unit may further obtain the performance index parameter again, and when the performance index parameter obtained again by the obtaining unit is smaller than the preset threshold, the configuring unit configures the attribute of the cache to perform the allocation operation through the packet parsing module.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the configuration unit is further configured to configure the message parsing module to close a selective message discarding function when the performance index parameter re-acquired by the acquisition unit is smaller than the preset threshold.
With reference to the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the performance index parameter acquired by the acquisition unit includes any one or a combination of more of the following: CPU occupancy, cache hit rate, double data rate DDR access latency, IPC index for instruction number per cycle.
It should be noted that, the performance index parameters obtained by the obtaining unit are only illustrated herein, and the performance index parameters include, but are not limited to, the CPU occupancy, the cache hit rate, the DDR access delay, and the IPC index, and all the parameters that can be used to indicate the load condition of the CPU belong to the performance index parameters described in the present invention.
In a second aspect of the present invention, a configuration method is provided, including:
acquiring a performance index parameter, wherein the performance index parameter is used for indicating the load condition of a Central Processing Unit (CPU);
and when the performance index parameter is greater than or equal to a preset threshold value, configuring the attribute of the cache not to be subjected to allocation operation through a message analysis module.
When the acquired performance index parameter is determined to be greater than or equal to the preset threshold value, the attribute of the cache is configured to be not subjected to allocation operation through the message analysis module, so that frequent swapping-in and swapping-out of the cached data in the cache are avoided, the problem that the processor cannot be recovered after the performance of the processor is reduced is solved, the problem of service interruption caused by the fact that the processor is in a low-performance state for a long time can be avoided, and the stability and the robustness of the system are improved.
With reference to the second aspect, in a possible implementation manner, when the performance indicator parameter is greater than or equal to a preset threshold, the method further includes:
and configuring the message analysis module to start a selective message discarding function so that the message analysis module discards a message with low priority in the messages to be processed.
When the acquired performance index parameter is determined to be greater than or equal to the preset threshold value, the message analysis module can be configured to start a selective message discarding function, so that the influence on the service with higher priority after the performance of the processor is reduced is avoided.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the method further includes:
and according to the message descriptors stored in the cache, performing service processing on the messages corresponding to the message descriptors in the messages to be processed.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, after performing service processing on a packet corresponding to a packet descriptor in a to-be-processed packet according to the packet descriptor stored in the cache, the method further includes:
re-acquiring the performance index parameter;
and when the performance index parameter obtained again is smaller than the preset threshold value, configuring the attribute of the cache to be distributed through the message analysis module.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, when the performance indicator parameter obtained again is smaller than the preset threshold, the method further includes:
and configuring the message analysis module to close the selective message discarding function.
With reference to the second aspect and the foregoing possible implementation manners, in another possible implementation manner, the performance indicator parameter includes any one or a combination of more than one of: CPU occupancy, cache hit rate, double data rate DDR access latency, IPC index for instruction number per cycle.
In a third aspect of the present invention, a configuration apparatus is provided, including: a processor, configured to execute the configuration method provided by the second aspect or the possible implementation manner of the second aspect, so as to implement the functions of the configuration unit and the obtaining unit in the first aspect or the possible implementation manner of the first aspect.
With reference to the third aspect, in a possible implementation manner, the processor is further configured to execute the configuration method provided in the possible implementation manner of the second aspect, so as to implement the function of the processing unit in the possible implementation manner of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a configuration apparatus according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a configuration method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another configuration method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a system architecture under a processing scenario according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another configuration apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another configuration apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The basic principle of the invention is as follows: the processor periodically detects whether a performance index parameter of a load condition of a Central Processing Unit (CPU) is greater than or equal to a preset threshold, and configures an attribute of a cache (english: cache) to be not allocated (english: allocate) through a message parsing module when the performance index parameter is determined to be greater than or equal to the preset threshold, so that frequent swapping-in and swapping-out of cached data in the cache can be avoided, and the processor can be recovered after performance of the processor is reduced.
The configuration method provided by the embodiment of the invention can be executed by a configuration device. Fig. 1 is a block diagram illustrating a configuration apparatus according to various embodiments of the present invention.
As shown in fig. 1, the configuration means may include: a processor 11 and a memory 12.
The following describes the components of the configuration device in detail with reference to fig. 1:
the processor 11 may be a CPU, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention, such as: one or more microprocessors (digital signal processors, DSP for short), or one or more Field Programmable Gate arrays (FPGA for short).
The memory 12 may be a volatile memory (RAM), such as a random-access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory (flash memory), a Hard Disk Drive (HDD), or a solid-state drive (SSD); or a combination of the above types of memories for storing the relevant applications and configuration files that implement the configuration method of the present invention.
Specifically, the processor 11 may be configured to obtain a performance index parameter, and configure an attribute of a cache (english: cache) to not perform an allocation operation through the packet parsing module when the obtained performance index parameter is greater than or equal to a preset threshold.
Wherein, the performance index parameter is used for indicating the load condition of the CPU, and the performance index parameter may include any one or a combination of more than one of the following: CPU occupancy rate, cache hit rate, DDR access delay, Instruction number Per Cycle (IPC for short) index.
The processor 11 may be further configured to configure the message parsing module to start the selective message discarding function when the obtained performance index parameter is greater than or equal to the preset threshold, so that the message parsing module discards a message with a low priority in the to-be-processed message.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a configuration method according to an embodiment of the present invention, where the method is applied to a configuration device, and as shown in fig. 2, the configuration method may include the following steps:
201. and acquiring a performance index parameter.
Wherein the performance index parameter is used for indicating the load condition of the CPU. For example, the performance indicator parameter may be a CPU occupancy.
202. And when the performance index parameter is greater than or equal to the preset threshold value, configuring the attribute of the cache not to be subjected to allocation operation through the message analysis module.
Specifically, after the performance index parameter is obtained, whether the performance index parameter is greater than or equal to a preset threshold value or not can be judged, and when the performance index parameter is determined to be greater than or equal to the preset threshold value, the attribute of the cache is configured not to be allocated through the message parsing module, so that the allocation of the cache is stopped, and further, the cache data in the cache is prevented from being frequently swapped in and out.
According to the configuration method provided by the embodiment of the invention, when the acquired performance index parameter is determined to be greater than or equal to the preset threshold value, the attribute of the cache is configured to be not allocated through the message analysis module, so that frequent swapping-in and swapping-out of the cached data in the cache are avoided, the problem that the processor cannot be recovered after the performance of the processor is reduced is solved, the problem of service interruption caused by the fact that the processor is in a low-performance state for a long time can be avoided, and the stability and the robustness of the system are improved.
Fig. 3 is another configuration method provided in the embodiment of the present invention, and as shown in fig. 3, the method may include:
301. the processor obtains a performance index parameter.
302. When the performance index parameter is larger than or equal to the preset threshold value, the processor configures the attribute of the cache not to be distributed through the message analysis module, and configures the message analysis module to start a selective message discarding function, so that the message analysis module discards a message with low priority in the messages to be processed.
After the performance index parameter is obtained, if the processor determines that the obtained performance index parameter is greater than or equal to the preset threshold, it indicates that the processing load of the processor exceeds the maximum processing capacity of the processor, at this time, the processor may configure the attribute of the cache to not perform the allocation operation through the message parsing module, and at the same time, configure the message parsing module to start the selective message discarding function, so that the message parsing module discards a message with a low priority in the messages to be processed, thereby enabling the processor to preferentially process a message with a higher priority, and avoiding that a service with a higher priority is greatly influenced.
It should be noted that, in the embodiment of the present invention, the preset threshold may be set according to requirements of an actual application scenario, and the embodiment of the present invention is not specifically limited herein.
303. And the processor performs service processing on the message corresponding to the message descriptor in the message to be processed according to the message descriptor stored in the cache.
Under the condition that the processor configures the attribute of the cache not to perform allocation operation through the message analysis module and configures the message analysis module to start the selective message discarding function, the processor can preferentially perform service processing on the message corresponding to the message descriptor in the message to be processed according to the message descriptor stored in the cache, and gradually, the performance of the processor can be recovered.
It should be noted that, in the embodiment of the present invention, the execution of steps 301 to 302 and step 303 has no precedence relationship, and the execution order of steps 301 to 302 and step 303 is not specifically limited herein.
In order to process the message normally after the performance of the processor is recovered, the following step 304 may be executed:
304. the processor retrieves the performance indicator parameter.
The processor may be configured to obtain the performance index parameter repeatedly according to a preset time parameter for the processor to periodically obtain the performance index parameter.
If the performance index parameter obtained again in step 304 is smaller than the preset threshold, step 305 is executed, and if the performance index parameter obtained again is still greater than or equal to the preset threshold, which indicates that the processing performance of the processor is still in the low level, step 304 may be repeatedly executed until the performance index parameter obtained again is smaller than the preset threshold.
305. The processor configures the attributes of the cache to perform allocation operations through the message analysis module, and configures the message analysis module to close the selective message discarding function.
When the performance index parameter obtained again is smaller than the preset threshold value, it indicates that the processing load of the processor is lower than the maximum processing capacity of the processor, at this time, the processor may configure the attribute of the cache to perform allocation operation through the message parsing module, configure the message parsing module to close the selective message discarding function, so as to perform normal message processing.
Certainly, when the performance index parameter obtained again is smaller than the preset threshold, and the attribute of the cache is configured to be allocated for performing an allocation operation by the packet parsing module, and after the selective packet discarding function is closed by the configuration packet parsing module, step 301 may be performed again, so that when the processing load of the processor exceeds the maximum processing capacity of the processor again, the performance of the processor may be recovered by performing steps 302 to 305, and normal packet processing is performed.
According to the configuration method provided by the embodiment of the invention, when the acquired performance index parameter is determined to be greater than or equal to the preset threshold value, the attribute of the cache is configured to be not allocated through the message analysis module, so that frequent swapping-in and swapping-out of the cached data in the cache are avoided, the problem that the processor cannot be recovered after the performance of the processor is reduced is solved, the problem of service interruption caused by the fact that the processor is in a low-performance state for a long time can be avoided, and the stability and the robustness of the system are improved.
And when the acquired performance index parameter is determined to be greater than or equal to the preset threshold value, the configuration message analysis module starts the selective message discarding function, so that the problem that the service with higher priority is greatly influenced under the condition that the performance of the processor is low is avoided.
The configuration method provided by the embodiment of the present invention may be applied to most application scenarios in which a CPU forwards a packet, and the embodiment of the present invention takes a typical processing scenario as an example to exemplify the configuration method provided by the present invention. In this scenario, the message parsing module may specifically be a Packet parsing Engine module (Packet part Engine, abbreviated as PPE), and a specific system architecture of this scenario may be as shown in fig. 4, where the system architecture shown in fig. 4 includes: gigabit Ethernet (GE), PPE, a Buffer Management Unit (BMU), a Traffic Management module (TM), DDR, a service edition and a processor. Further, a performance index parameter indicating a load condition of the CPU is taken as an example of the CPU occupancy. Under the system architecture, referring to fig. 4, the specific processing flow of message forwarding is as follows:
step 1: PPE applies for memory Buffer (English: Buffer) to BMU and allocates cache.
Step 2: and the GE interface receives the message sent by the service version and sends the received message to the PPE, and the PPE analyzes the received message to generate a message descriptor.
And step 3: the PPE caches the received message in the buffer applied in the step 1, and stores part of the descriptor related to service processing in the message descriptor in the cache distributed in the step 1.
And 4, step 4: and the processor acquires the message descriptor in the cache and performs service processing according to the acquired message descriptor.
And 5: and the processor sends the message descriptor to the TM after the service processing is finished.
Step 6: and the TM dispatches the message stored in the buffer according to the message descriptor and sends the message to the PPE.
And 7: PPE sends the message to the service board through GE interface.
And 8: the PPE releases the Buffer applied in step 1 to the BMU.
In the process of executing the flow, the processor may obtain the CPU occupancy rate, and determine whether the CPU occupancy rate is greater than or equal to a preset threshold, and when it is determined that the CPU occupancy rate is greater than or equal to the preset threshold, it indicates that the processing load of the processor exceeds the maximum processing capacity of the processor, at this time, the processor may configure the attribute of the cache to not perform allocate operation through the PPE, and preferentially perform service processing on the packet corresponding to the packet descriptor stored in the cache, and further, when it is determined that the CPU occupancy rate is greater than or equal to the preset threshold, the processor configures the PPE to start a selective packet discarding function, so that the PPE discards a packet with a low priority in the packets to be processed, so that the processor may preferentially process a packet with a higher priority, and gradually, the performance of the processor may be gradually restored.
Further, in order to process the message normally after the performance of the processor is recovered, the processor may obtain the CPU occupancy rate again, and configure the attribute of the cache to perform allocate operation through the PPE when the CPU occupancy rate is smaller than the preset threshold value, and configure the PPE to close the selective message discarding function.
The processor may repeat the above process to be able to recover when the performance of the processor degrades.
An embodiment of the present invention further provides another configuration apparatus, as shown in fig. 5, the configuration apparatus may include: an acquisition unit 41 and a configuration unit 42.
An obtaining unit 41, configured to obtain a performance index parameter, where the performance index parameter is used to indicate a load condition of the CPU.
A configuring unit 42, configured to configure, by the packet parsing module, the attribute of the cache not to perform the allocation operation when the performance index parameter acquired by the acquiring unit 41 is greater than or equal to a preset threshold.
In this embodiment of the present invention, further optionally, the configuration unit 42 is further configured to configure the message parsing module to start a selective message discarding function when the performance index parameter acquired by the acquisition unit 41 is greater than or equal to a preset threshold, so that the message parsing module discards a message with a low priority in messages to be processed.
In the embodiment of the present invention, further optionally, as shown in fig. 6, the apparatus may further include: a processing unit 43.
And the processing unit 43 is configured to perform service processing on a packet corresponding to the packet descriptor in the to-be-processed packet according to the packet descriptor stored in the cache.
In this embodiment of the present invention, further optionally, the obtaining unit 41 is further configured to, after the processing unit 43 performs service processing on a packet corresponding to the packet descriptor in the to-be-processed packet according to the packet descriptor stored in the cache, obtain the performance index parameter again.
The configuring unit 42 is further configured to configure, by the packet parsing module, the attribute of the cache to be allocated for operation when the performance index parameter obtained again by the obtaining unit 41 is smaller than the preset threshold.
In this embodiment of the present invention, further optionally, the configuration unit 42 is further configured to configure the message parsing module to close the selective message discarding function when the performance index parameter acquired again by the acquiring unit 41 is smaller than the preset threshold.
In this embodiment of the present invention, further optionally, the performance index parameter acquired by the acquiring unit 41 includes any one or a combination of more than one of the following: CPU occupancy, cache hit rate, DDR access latency, IPC indicators.
The configuration device provided by the embodiment of the invention is used for executing the configuration method, so that the same effect as the configuration method can be achieved.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (11)
1. A configuration device, comprising:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring a performance index parameter which is used for indicating the load condition of a Central Processing Unit (CPU);
the configuration unit is used for configuring the attribute of the cache not to be subjected to allocation operation through the message analysis module when the performance index parameter acquired by the acquisition unit is greater than or equal to a preset threshold value;
the configuration unit is further configured to configure the message parsing module to start a selective message discarding function when the performance index parameter acquired by the acquisition unit is greater than or equal to a preset threshold, so that the message parsing module discards a message with a low priority in messages to be processed.
2. The apparatus of claim 1, further comprising:
and the processing unit is used for carrying out service processing on the message corresponding to the message descriptor in the message to be processed according to the message descriptor stored in the cache.
3. The apparatus of claim 2,
the obtaining unit is further configured to, after the processing unit performs service processing on a packet corresponding to the packet descriptor in the to-be-processed packet according to the packet descriptor stored in the cache, obtain the performance index parameter again;
the configuration unit is further configured to configure, by the packet parsing module, the attribute of the cache to perform allocation operation when the performance index parameter re-acquired by the acquisition unit is smaller than the preset threshold.
4. The apparatus of claim 3,
the configuration unit is further configured to configure the message parsing module to close the selective message discarding function when the performance index parameter re-acquired by the acquisition unit is smaller than the preset threshold.
5. The apparatus according to any one of claims 1-4,
the performance index parameters acquired by the acquisition unit include any one or a combination of more than one of the following: CPU occupancy, cache hit rate, double data rate DDR access latency, IPC index for instruction number per cycle.
6. A method of configuration, comprising:
acquiring a performance index parameter, wherein the performance index parameter is used for indicating the load condition of a Central Processing Unit (CPU);
when the performance index parameter is larger than or equal to a preset threshold value, configuring the attribute of the cache not to be subjected to allocation operation through a message analysis module;
and configuring the message analysis module to start a selective message discarding function so that the message analysis module discards a message with low priority in the messages to be processed.
7. The method of claim 6, further comprising:
and according to the message descriptors stored in the cache, performing service processing on the messages corresponding to the message descriptors in the messages to be processed.
8. The method according to claim 7, wherein after the performing service processing on the packet corresponding to the packet descriptor in the to-be-processed packet according to the packet descriptor stored in the cache, the method further comprises:
re-acquiring the performance index parameter;
and when the performance index parameter obtained again is smaller than the preset threshold value, configuring the attribute of the cache to be distributed through the message analysis module.
9. The method of claim 8, wherein when the re-acquired performance indicator parameter is less than the preset threshold, the method further comprises:
and configuring the message analysis module to close the selective message discarding function.
10. The method according to any one of claims 6 to 9,
the performance indicator parameters include any one or a combination of more than one of: CPU occupancy, cache hit rate, double data rate DDR access latency, IPC index for instruction number per cycle.
11. A configuration device, comprising:
the processor is used for acquiring a performance index parameter, when the performance index parameter is greater than or equal to a preset threshold value, the attribute of the cache is configured not to be allocated through the message analysis module, and the performance index parameter is used for indicating the load condition of the CPU;
the processor is further configured to configure the message parsing module to start a selective message discarding function when the performance index parameter is greater than or equal to a preset threshold, so that the message parsing module discards a message with a low priority in messages to be processed.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/075492 WO2017147851A1 (en) | 2016-03-03 | 2016-03-03 | Configuration device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108781170A CN108781170A (en) | 2018-11-09 |
CN108781170B true CN108781170B (en) | 2020-12-08 |
Family
ID=59743373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201680083122.9A Active CN108781170B (en) | 2016-03-03 | 2016-03-03 | Configuration device and method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108781170B (en) |
WO (1) | WO2017147851A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109787916B (en) * | 2019-01-31 | 2023-06-30 | 南京国电南自电网自动化有限公司 | Flow control method and system |
CN115514681B (en) * | 2022-09-16 | 2024-02-06 | 北京天融信网络安全技术有限公司 | Method, device, system, equipment and medium for testing equipment stability |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1983201A (en) * | 2006-06-14 | 2007-06-20 | 华为技术有限公司 | Method for testing CPU system performance |
CN102063407A (en) * | 2010-12-24 | 2011-05-18 | 清华大学 | Network sacrifice Cache for multi-core processor and data request method based on Cache |
CN102209028A (en) * | 2011-05-06 | 2011-10-05 | 北京傲天动联技术有限公司 | Flow control device and method for CPU (Central Processing Unit) |
US9043554B2 (en) * | 2012-12-21 | 2015-05-26 | Apple Inc. | Cache policies for uncacheable memory requests |
CN105183431A (en) * | 2015-08-05 | 2015-12-23 | 瑞斯康达科技发展股份有限公司 | Method and apparatus for controlling CPU utilization ratio |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3591492B2 (en) * | 2001-07-18 | 2004-11-17 | 日本電気株式会社 | Packet distribution device and packet distribution program |
CN102055671B (en) * | 2010-12-17 | 2014-05-21 | 曙光信息产业股份有限公司 | Priority management method for multi-application packet sending |
CN102420751A (en) * | 2011-11-28 | 2012-04-18 | 曙光信息产业(北京)有限公司 | Load judgment system and method for report sampling system |
CN102710465A (en) * | 2012-06-07 | 2012-10-03 | 浪潮电子信息产业股份有限公司 | Method for monitoring cluster storage interface node load |
-
2016
- 2016-03-03 WO PCT/CN2016/075492 patent/WO2017147851A1/en active Application Filing
- 2016-03-03 CN CN201680083122.9A patent/CN108781170B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1983201A (en) * | 2006-06-14 | 2007-06-20 | 华为技术有限公司 | Method for testing CPU system performance |
CN102063407A (en) * | 2010-12-24 | 2011-05-18 | 清华大学 | Network sacrifice Cache for multi-core processor and data request method based on Cache |
CN102209028A (en) * | 2011-05-06 | 2011-10-05 | 北京傲天动联技术有限公司 | Flow control device and method for CPU (Central Processing Unit) |
US9043554B2 (en) * | 2012-12-21 | 2015-05-26 | Apple Inc. | Cache policies for uncacheable memory requests |
CN105183431A (en) * | 2015-08-05 | 2015-12-23 | 瑞斯康达科技发展股份有限公司 | Method and apparatus for controlling CPU utilization ratio |
Also Published As
Publication number | Publication date |
---|---|
CN108781170A (en) | 2018-11-09 |
WO2017147851A1 (en) | 2017-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108353082B (en) | Techniques for handling malicious activity of virtual network drivers | |
US9218203B2 (en) | Packet scheduling in a multiprocessor system using inter-core switchover policy | |
CN109660468B (en) | Port congestion management method, device and equipment | |
EP4175232A1 (en) | Congestion control method and device | |
CN107135088B (en) | Method and device for processing logs in cloud computing system | |
JP5968841B2 (en) | Network device and processor monitoring method | |
WO2017112260A1 (en) | Technologies for sideband performance tracing of network traffic | |
CN107347039B (en) | Management method and device for shared cache space | |
US10896001B1 (en) | Notifications in integrated circuits | |
CN110659151A (en) | Data verification method and device and storage medium | |
CN109831508B (en) | Caching method and equipment and storage medium | |
WO2017107363A1 (en) | Cache management method and device, and computer storage medium | |
CN104991822A (en) | Memory management method and apparatus | |
CN108781170B (en) | Configuration device and method | |
CN112383585A (en) | Message processing system and method and electronic equipment | |
US20210117263A1 (en) | Using Real-Time Analytics To Manage Application Features | |
CN108139969B (en) | Memory configuration method, device and system | |
CN104052831A (en) | Data transmission method and device based on queues and communication system | |
CN108804152B (en) | Method and device for adjusting configuration parameters | |
WO2019161172A1 (en) | Systems and methods for improved management of virtual machine clusters | |
US11550694B2 (en) | Packet backpressure detection method, apparatus, and device | |
CN109815048B (en) | Data reading method, device and equipment | |
CN110908798B (en) | Multi-process cooperative network traffic analysis method and device | |
CN107273188B (en) | Virtual machine Central Processing Unit (CPU) binding method and device | |
CN108616461B (en) | Policy switching method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |