CN107132903B - Energy-saving management implementation method, device and network equipment - Google Patents
Energy-saving management implementation method, device and network equipment Download PDFInfo
- Publication number
- CN107132903B CN107132903B CN201610113605.0A CN201610113605A CN107132903B CN 107132903 B CN107132903 B CN 107132903B CN 201610113605 A CN201610113605 A CN 201610113605A CN 107132903 B CN107132903 B CN 107132903B
- Authority
- CN
- China
- Prior art keywords
- processors
- state
- running state
- current
- processor
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Power Sources (AREA)
Abstract
Description
技术领域technical field
本发明涉及通讯技术领域,特别是指一种节能管理实现方法、装置及网络设备。The present invention relates to the technical field of communications, and in particular, to a method, device and network device for realizing energy saving management.
背景技术Background technique
目前网卡设备常见的收发包模式包含中断模式和轮询模式,无论是采用哪种模式,都存在着CPU(中央处理器,Central Processing Unit)利用率效率不可控,以及普遍的系统资源浪费问题。例如现有的一款名为DPDK(Data Plane Development,数据平面开发)的数据平面开发套件,其工作模式为PMD(Pull Model Driver,轮询中断模式驱动)模式时,具有零拷贝、无中断以及批量处理等优点,非常适合网络数据包分析、处理等操作,对于数据包的收发、多核操作有一定的性能提升。但PMD有一个特点,执行PMD的CPU一直100%运行。网络设备运行DPDK PMD的多个CPU空转,造成网络设备温度被动提高。当采用该技术的应用程序运行在虚拟机上时,同样会造成虚拟机CPU负载虚高,浪费系统主机CPU资源。At present, the common sending and receiving modes of network card devices include interrupt mode and polling mode. No matter which mode is adopted, there are problems of uncontrollable CPU (Central Processing Unit, Central Processing Unit) utilization efficiency and general waste of system resources. For example, an existing data plane development kit named DPDK (Data Plane Development, data plane development), when its working mode is PMD (Pull Model Driver, polling interrupt mode driver) mode, has zero copy, no interruption and The advantages of batch processing, etc., are very suitable for network data packet analysis, processing and other operations, and have a certain performance improvement for data packet sending and receiving and multi-core operations. But PMD has a feature that the CPU that executes PMD is running at 100% all the time. Multiple CPUs running DPDK PMD on a network device idle, causing the temperature of the network device to increase passively. When an application program using this technology runs on a virtual machine, the CPU load of the virtual machine will also be artificially high, and the CPU resources of the system host will be wasted.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种节能管理实现方法、装置及网络设备,解决现有技术中网络设备的CPU资源浪费的问题。The purpose of the present invention is to provide a method, an apparatus and a network device for realizing energy saving management, so as to solve the problem of wasting CPU resources of the network device in the prior art.
为了解决上述技术问题,本发明实施例提供一种节能管理实现方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides a method for implementing energy conservation management, including:
定期获取标识处理器处理能力的变量参数的当前值;Periodically obtain the current value of the variable parameter that identifies the processing capability of the processor;
根据单个处理器处理能力值和所述当前值,确定当前所需运行态处理器数量和当前所需工作态处理器数量;According to the single processor processing capability value and the current value, determine the currently required number of processors in the running state and the number of processors in the currently required working state;
根据上一时刻所需运行态处理器数量、上一时刻所需工作态处理器数量、所述当前所需运行态处理器数量和当前所需工作态处理器数量,得到用于调整处理器运行状态的调整信息;According to the number of processors in the running state required at the last moment, the number of processors in the working state required at the previous moment, the currently required number of processors in the running state, and the number of processors in the currently required working state, a method for adjusting the running state of the processor is obtained. Status adjustment information;
根据所述调整信息对处理器进行节能管理;Perform energy-saving management on the processor according to the adjustment information;
其中,运行态处理器包含工作态处理器和/或就绪态处理器。Wherein, the running state processor includes a working state processor and/or a ready state processor.
可选地,在所述定期获取标识处理器处理能力的变量参数的当前值之前,所述节能管理实现方法还包括:Optionally, before the periodic acquisition of the current value of the variable parameter identifying the processing capability of the processor, the energy saving management implementation method further includes:
确定所述变量参数,并获取与所述变量参数对应的单个处理器处理能力值。The variable parameter is determined, and a single processor processing capability value corresponding to the variable parameter is obtained.
可选地,所述根据单个处理器处理能力值和所述当前值,确定当前所需运行态处理器数量和当前所需工作态处理器数量的步骤包括:Optionally, the step of determining the currently required number of processors in the running state and the number of currently required processors in the working state according to the single processor processing capability value and the current value includes:
根据所述当前值与所述单个处理器处理能力值和预设阈值的比值,以及与第一定值的和值得到所述当前所需运行态处理器数量;According to the ratio of the current value to the processing capability value of the single processor and the preset threshold, and the sum of the value and the first fixed value, the currently required number of processors in the running state is obtained;
根据所述当前值与所述单个处理器处理能力值的比值,以及与第二定值的和值得到所述当前所需工作态处理器数量。According to the ratio of the current value to the processing capability value of the single processor, and the sum of the second fixed value, the currently required number of processors in the working state is obtained.
可选地,所述根据上一时刻所需运行态处理器数量、上一时刻所需工作态处理器数量、所述当前所需运行态处理器数量和当前所需工作态处理器数量,得到用于调整处理器运行状态的调整信息的步骤包括:Optionally, according to the number of processors in the running state required at the last moment, the number of processors in the working state required at the previous moment, the number of processors in the currently required running state and the number of processors in the currently required working state, obtain: The steps for adjusting the adjustment information for the operating state of the processor include:
若所述当前所需运行态处理器数量小于所述上一时刻所需运行态处理器数量,则监控当前时刻后的预设时间段内是否所有时刻所需运行态处理器数量均小于所述上一时刻所需运行态处理器数量,若是,则得到将第一预设数量就绪态处理器转变为休眠态处理器的调整信息;If the currently required number of running state processors is less than the number of running state processors required at the previous moment, monitor whether the number of running state processors required at all moments within a preset time period after the current moment is less than the said number of running state processors the number of processors in the running state required at the last moment, if yes, obtain the adjustment information for converting the first preset number of processors in the ready state into the dormant state processors;
若所述当前所需运行态处理器数量大于所述上一时刻所需运行态处理器数量,则得到唤醒第二预设数量休眠态处理器,使其转变为就绪态处理器的调整信息。If the currently required number of processors in the running state is greater than the number of processors in the running state required at the previous moment, the adjustment information for waking up the second preset number of processors in the dormant state so as to be converted into the processors in the ready state is obtained.
可选地,所述根据上一时刻所需运行态处理器数量、上一时刻所需工作态处理器数量、所述当前所需运行态处理器数量和当前所需工作态处理器数量,得到用于调整处理器运行状态的调整信息的步骤包括:Optionally, according to the number of processors in the running state required at the last moment, the number of processors in the working state required at the previous moment, the number of processors in the currently required running state and the number of processors in the currently required working state, obtain: The steps for adjusting the adjustment information for the operating state of the processor include:
若所述当前所需运行态处理器数量小于所述上一时刻所需运行态处理器数量,则得到将第三预设数量工作态处理器转变为就绪态处理器的调整信息;If the currently required number of processors in the running state is less than the number of processors in the running state required at the previous moment, obtaining adjustment information for converting the third preset number of processors in the working state into processors in the ready state;
若所述当前所需运行态处理器数量大于所述上一时刻所需运行态处理器数量,则得到将第四预设数量就绪态处理器转变为工作态处理器的调整信息。If the currently required number of processors in the running state is greater than the number of processors in the running state required at the previous moment, the adjustment information for converting the fourth preset number of ready state processors into working state processors is obtained.
可选地,所述根据所述调整信息对处理器进行节能管理的步骤包括:Optionally, the step of performing energy-saving management on the processor according to the adjustment information includes:
根据所述调整信息对所述处理器的运行状态进行实时调整,并对应调整各个所述处理器的负荷量。The running state of the processor is adjusted in real time according to the adjustment information, and the load of each processor is adjusted accordingly.
本发明还提供了一种节能管理实现装置,包括:The present invention also provides a device for realizing energy-saving management, including:
获取模块,用于定期获取标识处理器处理能力的变量参数的当前值;The acquisition module is used to periodically acquire the current value of the variable parameter that identifies the processing capability of the processor;
确定模块,用于根据单个处理器处理能力值和所述当前值,确定当前所需运行态处理器数量和当前所需工作态处理器数量;a determining module, configured to determine the currently required number of processors in the running state and the number of processors in the currently required working state according to the processing capability value of the single processor and the current value;
第一处理模块,用于根据上一时刻所需运行态处理器数量、上一时刻所需工作态处理器数量、所述当前所需运行态处理器数量和当前所需工作态处理器数量,得到用于调整处理器运行状态的调整信息;The first processing module is configured to, according to the number of processors in the running state required at the last moment, the number of processors in the working state required at the previous moment, the number of processors in the currently required running state and the number of processors in the currently required working state, Get the adjustment information used to adjust the running state of the processor;
第二处理模块,用于根据所述调整信息对处理器进行节能管理;a second processing module, configured to perform energy-saving management on the processor according to the adjustment information;
其中,运行态处理器包含工作态处理器和/或就绪态处理器。Wherein, the running state processor includes a working state processor and/or a ready state processor.
可选地,所述节能管理实现装置还包括:Optionally, the device for implementing energy saving management further includes:
第三处理模块,用于在所述获取模块执行操作之前,确定所述变量参数,并获取与所述变量参数对应的单个处理器处理能力值。A third processing module, configured to determine the variable parameter and obtain a single processor processing capability value corresponding to the variable parameter before the obtaining module performs the operation.
可选地,所述确定模块包括:Optionally, the determining module includes:
第一处理子模块,用于根据所述当前值与所述单个处理器处理能力值和预设阈值的比值,以及与第一定值的和值得到所述当前所需运行态处理器数量;a first processing sub-module, configured to obtain the currently required number of processors in the running state according to the ratio of the current value to the processing capability value of the single processor and a preset threshold, as well as the sum with the first fixed value;
第二处理子模块,用于根据所述当前值与所述单个处理器处理能力值的比值,以及与第二定值的和值得到所述当前所需工作态处理器数量。The second processing sub-module is configured to obtain the currently required number of working processors according to the ratio of the current value to the processing capability value of the single processor, and the sum value of the current value and the second fixed value.
可选地,所述第一处理模块包括:Optionally, the first processing module includes:
第三处理子模块,用于若所述当前所需运行态处理器数量小于所述上一时刻所需运行态处理器数量,则监控当前时刻后的预设时间段内是否所有时刻所需运行态处理器数量均小于所述上一时刻所需运行态处理器数量,若是,则得到将第一预设数量就绪态处理器转变为休眠态处理器的调整信息;The third processing sub-module is configured to monitor whether the current required running state processors are less than the required running state processors at the previous moment, monitoring whether the running status is required at all moments within a preset time period after the current moment The number of state processors is less than the number of running state processors required at the previous moment, and if so, obtain adjustment information for converting the first preset number of ready state processors into dormant state processors;
第四处理子模块,用于若所述当前所需运行态处理器数量大于所述上一时刻所需运行态处理器数量,则得到唤醒第二预设数量休眠态处理器,使其转变为就绪态处理器的调整信息。The fourth processing sub-module is configured to wake up a second preset number of dormant state processors if the currently required number of running state processors is greater than the number of running state processors required at the previous moment, so as to transform them into Adjustment information for the ready state processor.
可选地,所述第一处理模块包括:Optionally, the first processing module includes:
第五处理子模块,用于若所述当前所需运行态处理器数量小于所述上一时刻所需运行态处理器数量,则得到将第三预设数量工作态处理器转变为就绪态处理器的调整信息;The fifth processing sub-module is used to obtain the processing of converting the third preset number of working state processors into ready state if the currently required number of running state processors is less than the number of running state processors required at the previous moment adjustment information of the device;
第六处理子模块,用于若所述当前所需运行态处理器数量大于所述上一时刻所需运行态处理器数量,则得到将第四预设数量就绪态处理器转变为工作态处理器的调整信息。The sixth processing sub-module is used to obtain the processing of converting the fourth preset number of ready-state processors into working state if the currently required number of running state processors is greater than the number of running state processors required at the previous moment adjustment information for the device.
可选地,所述第二处理模块包括:Optionally, the second processing module includes:
第七处理子模块,用于根据所述调整信息对所述处理器的运行状态进行实时调整,并对应调整各个所述处理器的负荷量。The seventh processing sub-module is configured to adjust the running state of the processors in real time according to the adjustment information, and adjust the load of each of the processors accordingly.
本发明还提供了一种网络设备,包括:上述的节能管理实现装置。The present invention also provides a network device, comprising: the above-mentioned device for realizing energy saving management.
本发明的上述技术方案的有益效果如下:The beneficial effects of the above-mentioned technical solutions of the present invention are as follows:
上述方案中,所述节能管理实现方法通过根据标识处理器处理能力的变量参数实时调整处理器的运行状态,能够较好的实现节能管理,提高资源利用率。In the above solution, the energy saving management implementation method can better realize energy saving management and improve resource utilization rate by adjusting the running state of the processor in real time according to the variable parameter that identifies the processing capability of the processor.
附图说明Description of drawings
图1为本发明实施例一的节能管理实现方法流程示意图一;FIG. 1 is a schematic flow chart 1 of a method for realizing energy saving management according to Embodiment 1 of the present invention;
图2为本发明实施例一的节能管理实现方法流程示意图二;2 is a second schematic flowchart of a method for implementing energy conservation management according to Embodiment 1 of the present invention;
图3为本发明实施例一的会话边界控制器SBC应用实例软件系统示意图;3 is a schematic diagram of a software system of a session border controller SBC application example according to Embodiment 1 of the present invention;
图4为本发明实施例一的节能管理实现方法流程示意图三;FIG. 4 is a third schematic flowchart of a method for implementing energy-saving management according to Embodiment 1 of the present invention;
图5为本发明实施例一的节能管理实现方法流程示意图四;5 is a fourth schematic flowchart of a method for implementing energy-saving management according to Embodiment 1 of the present invention;
图6为本发明实施例二的节能管理实现装置结构示意图。FIG. 6 is a schematic structural diagram of an apparatus for implementing energy-saving management according to Embodiment 2 of the present invention.
具体实施方式Detailed ways
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, the following will be described in detail with reference to the accompanying drawings and specific embodiments.
本发明针对现有的技术中网络设备的CPU资源浪费的问题,提供了多种解决方案,具体如下:The present invention provides a variety of solutions for the problem of wasting CPU resources of network devices in the prior art, the details are as follows:
实施例一Example 1
如图1所示,本发明实施例一提供的节能管理实现方法包括:As shown in FIG. 1 , the energy saving management implementation method provided by the first embodiment of the present invention includes:
步骤11:定期获取标识处理器处理能力的变量参数的当前值;Step 11: Periodically obtain the current value of the variable parameter that identifies the processing capability of the processor;
步骤12:根据单个处理器处理能力值和所述当前值,确定当前所需运行态处理器数量和当前所需工作态处理器数量;Step 12: According to the single processor processing capability value and the current value, determine the currently required number of processors in the running state and the number of processors in the currently required working state;
步骤13:根据上一时刻所需运行态处理器数量、上一时刻所需工作态处理器数量、所述当前所需运行态处理器数量和当前所需工作态处理器数量,得到用于调整处理器运行状态的调整信息;Step 13: According to the number of processors in the running state required at the last moment, the number of processors in the working state required at the previous moment, the number of processors in the currently required running state and the number of processors in the current Adjustment information of the operating state of the processor;
步骤14:根据所述调整信息对处理器进行节能管理;Step 14: Perform energy-saving management on the processor according to the adjustment information;
其中,运行态处理器包含工作态处理器和/或就绪态处理器。Wherein, the running state processor includes a working state processor and/or a ready state processor.
定期的时间间隔可为1s,但并不以此为限;变量参数可为一个单一的参数,也可为几个相关参数的组合。The regular time interval can be 1s, but not limited thereto; the variable parameter can be a single parameter or a combination of several related parameters.
本发明实施例一提供的所述节能管理实现方法通过根据标识处理器处理能力的变量参数实时调整处理器的运行状态,能够较好的实现节能管理,提高资源利用率。The energy-saving management implementation method provided by the first embodiment of the present invention can better realize energy-saving management and improve resource utilization by adjusting the running state of the processor in real time according to the variable parameter that identifies the processing capability of the processor.
进一步的,在所述定期获取标识处理器处理能力的变量参数的当前值之前,所述节能管理实现方法还包括:确定所述变量参数,并获取与所述变量参数对应的单个处理器处理能力值。Further, before the periodic acquisition of the current value of the variable parameter identifying the processing capability of the processor, the energy saving management implementation method further includes: determining the variable parameter, and acquiring the processing capability of a single processor corresponding to the variable parameter. value.
具体的,所述根据单个处理器处理能力值和所述当前值,确定当前所需运行态处理器数量和当前所需工作态处理器数量的步骤包括:根据所述当前值与所述单个处理器处理能力值和预设阈值的比值,以及与第一定值的和值得到所述当前所需运行态处理器数量;根据所述当前值与所述单个处理器处理能力值的比值,以及与第二定值的和值得到所述当前所需工作态处理器数量。Specifically, the step of determining the currently required number of processors in the running state and the currently required number of processors in the working state according to the processing capability value of a single processor and the current value includes: according to the current value and the single processor The ratio of the processor processing capacity value to the preset threshold value, and the sum of the first fixed value to obtain the currently required running state processors; according to the ratio of the current value to the single processor processing capacity value, and The sum with the second fixed value obtains the currently required number of processors in the working state.
预设阈值可优选为95%,本实施例中,第一定值与第二定值可优选为1。The preset threshold may preferably be 95%. In this embodiment, the first fixed value and the second fixed value may preferably be 1.
针对于就绪态处理器与休眠态处理器互相转换的情况,所述根据上一时刻所需运行态处理器数量、上一时刻所需工作态处理器数量、所述当前所需运行态处理器数量和当前所需工作态处理器数量,得到用于调整处理器运行状态的调整信息的步骤包括:For the case of mutual conversion between the ready state processor and the sleep state processor, the number of running state processors required at the previous moment, the number of working state processors required at the previous moment, and the currently required running state processors The steps of obtaining the adjustment information for adjusting the running state of the processor include:
若所述当前所需运行态处理器数量小于所述上一时刻所需运行态处理器数量,则监控当前时刻后的预设时间段内是否所有时刻所需运行态处理器数量均小于所述上一时刻所需运行态处理器数量,若是,则得到将第一预设数量就绪态处理器转变为休眠态处理器的调整信息;If the currently required number of running state processors is less than the number of running state processors required at the previous moment, monitor whether the number of running state processors required at all moments within a preset time period after the current moment is less than the said number of running state processors the number of processors in the running state required at the last moment, if yes, obtain the adjustment information for converting the first preset number of processors in the ready state into the dormant state processors;
若所述当前所需运行态处理器数量大于所述上一时刻所需运行态处理器数量,则得到唤醒第二预设数量休眠态处理器,使其转变为就绪态处理器的调整信息。If the currently required number of processors in the running state is greater than the number of processors in the running state required at the previous moment, the adjustment information for waking up the second preset number of processors in the dormant state so as to be converted into the processors in the ready state is obtained.
可以说,在一段时间内连续发现靠后时刻所需运行态处理器数量均小于靠前某一时刻所需运行态处理器数量,则将就绪态处理器转变为休眠态处理器,也可以说,某一时刻后的变量参数值持续小于该时刻对应的变量参数值,则将就绪态处理器转变为休眠态处理器。It can be said that if the number of running state processors required at a later moment is continuously found to be less than the number of running state processors required at a previous moment, the ready state processor is converted into a dormant state processor, or it can be said that , the variable parameter value after a certain time is continuously smaller than the variable parameter value corresponding to the time, then the ready state processor is transformed into a dormant state processor.
针对于就绪态处理器与工作态处理器互相转换的情况,所述根据上一时刻所需运行态处理器数量、上一时刻所需工作态处理器数量、所述当前所需运行态处理器数量和当前所需工作态处理器数量,得到用于调整处理器运行状态的调整信息的步骤包括:For the case of mutual conversion between the ready state processor and the working state processor, the number of running state processors required at the previous moment, the number of working state processors required at the previous moment, and the currently required running state processors The steps of obtaining the adjustment information for adjusting the running state of the processor include:
若所述当前所需运行态处理器数量小于所述上一时刻所需运行态处理器数量,则得到将第三预设数量工作态处理器转变为就绪态处理器的调整信息;If the currently required number of processors in the running state is less than the number of processors in the running state required at the previous moment, obtaining adjustment information for converting the third preset number of processors in the working state into processors in the ready state;
若所述当前所需运行态处理器数量大于所述上一时刻所需运行态处理器数量,则得到将第四预设数量就绪态处理器转变为工作态处理器的调整信息。If the currently required number of processors in the running state is greater than the number of processors in the running state required at the previous moment, the adjustment information for converting the fourth preset number of ready state processors into working state processors is obtained.
优选的,所述根据所述调整信息对处理器进行节能管理的步骤包括:根据所述调整信息对所述处理器的运行状态进行实时调整,并对应调整各个所述处理器的负荷量。Preferably, the step of performing energy saving management on the processor according to the adjustment information includes: adjusting the running state of the processor in real time according to the adjustment information, and correspondingly adjusting the load of each of the processors.
其中,处理器可为中央处理器CPU,也可为其他类型的处理器,在此不作限定。The processor may be a central processing unit (CPU) or other types of processors, which are not limited herein.
下面对本发明实施例一提供的所述节能管理实现方法进行具体说明。The following specifically describes the energy saving management implementation method provided in Embodiment 1 of the present invention.
针对现有技术中网络设备CPU资源浪费的问题,本发明实施例提供一种根据某一个动态变量或者多个动态变量组合动态调整执行收发包模块的CPU数量,来实现节能管理的方法。在某一个动态变量或者一组动态变量组合的情况下,网络设备使用不同数量的CPU来运行收发包模块。Aiming at the problem of wasting CPU resources of network devices in the prior art, embodiments of the present invention provide a method for implementing energy-saving management by dynamically adjusting the number of CPUs executing a packet sending and receiving module according to a certain dynamic variable or a combination of multiple dynamic variables. In the case of a certain dynamic variable or a combination of a group of dynamic variables, the network device uses different numbers of CPUs to run the module for sending and receiving packets.
如图2所示,该方法包含如下步骤:As shown in Figure 2, the method includes the following steps:
步骤21:网络设备根据实际情况确定单CPU处理能力值并确定网络设备用于调整CPU数量和CPU利用率的动态变量或者多个动态变量的组合。Step 21: The network device determines a single CPU processing capability value according to the actual situation and determines a dynamic variable or a combination of multiple dynamic variables used by the network device to adjust the number of CPUs and CPU utilization.
网络设备首先确定一个数值或者几个数值的组合表示单个CPU处理能力值。单个CPU处理能力值可以是单个CPU能够处理的最大报文吞吐量,也可以是报文收发模块正常运行时CPU的占用率,也可以是CPU的温度,等等。The network device first determines a numerical value or a combination of several numerical values to represent the processing capability value of a single CPU. The value of the processing capability of a single CPU can be the maximum packet throughput that a single CPU can process, the CPU occupancy rate when the packet transceiver module is running normally, or the temperature of the CPU, and so on.
类似的数值,也可以是几个数值的组合。网络设备使用单个CPU处理能力值计算当前需要用于执行收发包模块的CPU数量。同时网络设备确定用于测算网络设备整体报文流量负荷的表示方法。可以是一个动态变量或者几个动态变量的组合,例如:当前网络设备总的报文吞吐量,各个执行报文收发模块的CPU的占用率总和,也可以是CPU的温度,等等其他类似的动态变量,或者几个动态变量的组合。Similar numerical values can also be a combination of several numerical values. The network device uses a single CPU processing capability value to calculate the number of CPUs currently required to execute the module for sending and receiving packets. At the same time, the network device determines a representation method for measuring the overall packet traffic load of the network device. It can be a dynamic variable or a combination of several dynamic variables, such as: the total packet throughput of the current network device, the total occupancy rate of each CPU executing the packet transceiver module, or the temperature of the CPU, and so on. Dynamic variables, or a combination of several dynamic variables.
步骤22:网络设备定期获取系统动态变量值或者动态变量组合值,计算需要执行收发包模块的CPU数量,确定是否需要调整执行收发包模块的CPU数量。Step 22: The network device periodically obtains the system dynamic variable value or the dynamic variable combination value, calculates the number of CPUs that need to execute the packet sending and receiving module, and determines whether to adjust the number of CPUs that execute the packet sending and receiving module.
步骤22中可采用的计算公式为:The calculation formula that can be used in
执行收发包模块的CPU数量=The number of CPUs that execute the module for sending and receiving packets =
网络设备动态变量值或者动态变量组合值/单个CPU处理能力值+1Network device dynamic variable value or dynamic variable combined value/single CPU processing capacity value +1
(除法计算采取直接取整的方式)(The division calculation adopts the method of direct rounding)
一个执行收发包模块的CPU有三种运行状态。一种是工作态,此时CPU执行收发包模块,负责网口的收发包工作。一种是就绪态,此时CPU处于运行状态,但不负责网口的收发包工作,可以随时开始负责网口的收发包工作。一种是休眠态,此时CPU休眠,节省能源。就绪态是工作态和休眠态之间的一个过渡状态,可以减少CPU从休眠态唤醒过程中不能完全正常处理报文流量而引起的异常问题。A CPU that executes the module for sending and receiving packets has three operating states. One is the working state, in which the CPU executes the packet sending and receiving module, which is responsible for sending and receiving packets of the network port. One is the ready state. At this time, the CPU is in the running state, but it is not responsible for sending and receiving packets of the network port. It can start to be responsible for sending and receiving packets of the network port at any time. One is the sleep state, where the CPU sleeps to save energy. The ready state is a transition state between the working state and the dormant state, which can reduce the abnormal problem caused by the inability of the CPU to process packet traffic normally when the CPU wakes up from the dormant state.
步骤23:确定调整CPU数量后,根据具体情况增加或减少运行收发包模块的CPU数量并根据需要调整CPU的流量负荷。Step 23: After determining to adjust the number of CPUs, increase or decrease the number of CPUs running the packet sending and receiving module according to specific conditions, and adjust the traffic load of the CPUs as required.
调整CPU数量的时候需要遵循“一快一慢”原则:When adjusting the number of CPUs, you need to follow the "one fast and one slow" principle:
1)应用程序决策将休眠态的CPU调整到工作态要快。考虑到不丢包,以及流量突发等情况,以及单个CPU能力在虚拟化环境下的下降,因此,当系统达到单个CPU的处理能力值的阀值,例如95%,应用程序就要将处于休眠态的CPU唤醒,进入就绪态,随时准备进入工作态。阀值可以根据网络设备的实际情况设定。1) The application decides that it is faster to adjust the CPU from the dormant state to the working state. Taking into account no packet loss, traffic bursts, etc., as well as the decline of a single CPU capacity in a virtualized environment, when the system reaches the threshold of the processing capacity of a single CPU, such as 95%, the application will be in the The CPU in the sleep state wakes up, enters the ready state, and is ready to enter the working state at any time. The threshold value can be set according to the actual situation of the network equipment.
2)应用程序决策将工作态的CPU调整到休眠态要慢。只有连续多次发现可以减少执行收发包模块的CPU的数量时,应用程序再进行减少CPU数量的操作,以确保执行收发包模块的CPU能够平稳运行,减少丢包等异常情况的发生。2) The application decides that it is slower to adjust the CPU from the working state to the sleep state. Only when it is found that the number of CPUs executing the packet sending and receiving module can be reduced for many times in a row, the application program will reduce the number of CPUs to ensure that the CPU executing the packet sending and receiving module can run smoothly and reduce the occurrence of abnormal situations such as packet loss.
如果需要唤醒CPU进入就绪态,则唤醒新的CPU,准备开始接管部分网口的收发包工作。If you need to wake up the CPU to enter the ready state, wake up the new CPU and prepare to take over the sending and receiving of some network ports.
如果需要增加工作态的CPU,则减少工作态的CPU的流量负荷,分配给就绪态的CPU部分流量负荷,就绪态的CPU开始进入工作态。If the CPU in the working state needs to be increased, the traffic load of the CPU in the working state is reduced, and part of the traffic load is allocated to the CPU in the ready state, and the CPU in the ready state begins to enter the working state.
如果需要减少工作态的CPU,则选出一个工作态的CPU进入就绪态,这个CPU原先承当的流量负荷分配给其他的工作态的CPU。If the CPU in the working state needs to be reduced, a CPU in the working state is selected to enter the ready state, and the traffic load originally undertaken by this CPU is allocated to other CPUs in the working state.
如果需要将就绪态的CPU进入到休眠态,则将就绪态的CPU迁移到休眠态。降低能源损耗。If the CPU in the ready state needs to enter the sleep state, the CPU in the ready state is migrated to the sleep state. Reduce energy consumption.
由上可知,本发明实施例一提供的方案充分利用了执行收发包模块的CPU的计算能力,在网络设备流量负荷低的时候,在保证报文吞吐性能的基础上,减少了空转CPU的数量,实现节能管理的目标。当网络设备的应用程序运行在虚拟机上时,虚拟机CPU负载可以有效降低,提高系统主机的CPU资源利用率,对虚拟化产品的最小配置和平衡各虚拟机的性能也非常有意义。It can be seen from the above that the solution provided by the first embodiment of the present invention makes full use of the computing power of the CPU that executes the packet sending and receiving module. When the traffic load of the network device is low, the number of idle CPUs is reduced on the basis of ensuring the packet throughput performance. , to achieve the goal of energy-saving management. When the application program of the network device runs on the virtual machine, the CPU load of the virtual machine can be effectively reduced, the CPU resource utilization of the system host can be improved, and it is also very meaningful for the minimum configuration of the virtualization product and balancing the performance of each virtual machine.
下面以SBC(会话边界控制器,Session Border Controller)代表网络设备,并发呼叫量值代表变量参数值为例,对本发明实施例一提供的所述节能管理实现方法进行进一步详细的举例说明。Hereinafter, the energy saving management implementation method provided in Embodiment 1 of the present invention will be further described in detail by taking the SBC (Session Border Controller, Session Border Controller) representing the network device and the concurrent call volume representing the variable parameter value as an example.
如图3所示,是NGN(下一代网络,Next Generation Network)/IMS(IP多媒体子系统,IP Multimedia Subsystem)网络中的会话边界控制器SBC跟网口报文处理相关的模块。SBC每个网口使用一个收发包线程守护。一个收发包线程可以负责一个网口的收发包工作,也可以负责其他网口的收发包工作。根据图3,假设SBC有4个网口,有四个收发包线程,分配四个CPU用于执行收发包模块。而本发明实施例一的主旨可以说是:在SBC中增加一个调整模块,用于调整执行收发包模块的CPU数量和每个CPU的流量负荷,调整模块定期检查当前SBC的执行收发包模块的CPU的总负荷,根据需要增加或减少运行的CPU数量以及调整工作态的CPU的报文流量负荷。As shown in FIG. 3 , it is a module related to network port packet processing in a session border controller SBC in an NGN (Next Generation Network)/IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) network. Each network port of the SBC is guarded by a thread for sending and receiving packets. A packet sending and receiving thread can be responsible for sending and receiving packets of one network port, and can also be responsible for sending and receiving packets of other network ports. According to Figure 3, it is assumed that the SBC has 4 network ports and four threads for sending and receiving packets, and four CPUs are allocated to execute the module for sending and receiving packets. The main idea of the first embodiment of the present invention can be said to be: an adjustment module is added to the SBC to adjust the number of CPUs executing the packet sending and receiving module and the traffic load of each CPU, and the adjustment module periodically checks the current SBC executing the packet sending and receiving module. The total load of the CPU, increase or decrease the number of running CPUs as required, and adjust the packet traffic load of the CPU in the working state.
如图4所示,本发明实施例一提供的方案具体包括如下步骤:As shown in FIG. 4 , the solution provided in Embodiment 1 of the present invention specifically includes the following steps:
步骤41:获取单CPU最大处理能力值。Step 41: Obtain the maximum processing capability value of a single CPU.
由于SBC主要的报文流量是并发呼叫产生的信令媒体报文流量,所以可以使用一个合适的并发呼叫量值作为单个CPU报文处理能力值,假设这个值为1000并发呼叫。Since the main packet traffic of the SBC is the signaling media packet traffic generated by concurrent calls, an appropriate concurrent call volume value can be used as the value of the packet processing capability of a single CPU, assuming that the value is 1000 concurrent calls.
步骤42:获取网络设备报文处理总负荷。Step 42: Obtain the total packet processing load of the network device.
由于SBC主要的报文流量是并发呼叫产生的信令媒体报文流量,所以使用当前的总的并发呼叫数作为当前执行收发包模块的CPU的所需要处理的报文流量的总负荷值。Since the main packet traffic of the SBC is the signaling media packet traffic generated by concurrent calls, the current total number of concurrent calls is used as the total load value of the packet traffic that needs to be processed by the CPU currently executing the packet sending and receiving module.
步骤43:获取唤醒新CPU准备进入工作态阀值。Step 43: Obtain the threshold for waking up the new CPU and preparing to enter the working state.
根据SBC应用场景,可以使用单CPU处理能力的95%作为新CPU从休眠态唤醒进入准备接收报文的状态(即就绪态)的阀值。启动的CPU数量可以用如下公式计算:According to the SBC application scenario, 95% of the processing capacity of a single CPU can be used as the threshold for the new CPU to wake up from the sleep state and enter the state ready to receive packets (ie, the ready state). The number of CPUs to start can be calculated with the following formula:
启动的CPU数量=Number of CPUs started =
网络设备网口总负荷/(单个CPU报文处理能力值×阀值)+1The total load of the network port of the network device/(the value of the packet processing capacity of a single CPU × the threshold value)+1
(除法计算采取直接取整的方式)(The division calculation adopts the method of direct rounding)
在并发呼叫数上升过程中,计算出来的CPU数量,其中一个CPU是就绪态,其他的CPU是运行态。In the process of increasing the number of concurrent calls, the calculated number of CPUs, one of the CPUs is in the ready state, and the other CPUs are in the running state.
其他网络设备所需要的阀值可以根据各自的应用场景确定。The thresholds required by other network devices can be determined according to their respective application scenarios.
步骤44:根据计算公式计算执行收发包模块的CPU数量,根据需要调整CPU的数量以及各个CPU的流量负荷。Step 44: Calculate the number of CPUs executing the packet sending and receiving module according to the calculation formula, and adjust the number of CPUs and the traffic load of each CPU as required.
调整模块定期获取SBC当前的并发呼叫量,计算用于执行收发包模块的CPU数量。根据SBC应用场景,这个周期可以设定为1秒钟。The adjustment module periodically obtains the current concurrent call volume of the SBC, and calculates the number of CPUs used to execute the module for sending and receiving packets. According to the SBC application scenario, this period can be set to 1 second.
步骤44中可采用的计算公式为:The calculation formula that can be used in
执行收发包模块的CPU数量=The number of CPUs that execute the module for sending and receiving packets =
网络设备动态变量值或者动态变量组合值/单个CPU处理能力值+1Network device dynamic variable value or dynamic variable combined value/single CPU processing capacity value +1
(除法计算采取直接取整的方式)(The division calculation adopts the method of direct rounding)
当并发呼叫流量比较低时,例如:700并发呼叫,根据计算公式可以计算出当前需要工作态的CPU数量为1:When the concurrent call traffic is relatively low, for example: 700 concurrent calls, according to the calculation formula, it can be calculated that the number of CPUs currently in the working state is 1:
执行收发包模块的CPU数量=700/1000+1The number of CPUs that execute the module for sending and receiving packets = 700/1000+1
使用一个CPU执行收发包模块线程,这个收发包模块线程负责所有网口的收发包。此时只有一个CPU处于工作态,其他CPU进入休眠状态。A CPU is used to execute the packet sending and receiving module thread, and this packet sending and receiving module thread is responsible for sending and receiving packets of all network ports. At this time, only one CPU is in the working state, and the other CPUs enter the sleep state.
当并发呼叫开始增长,到阀值(1000×95%)的时候,根据“启动的CPU数量”的计算公式,需要唤醒一个休眠的CPU,准备进入工作态。等流量增长到需要两个CPU处理的时候,就绪态的CPU可以马上进入工作,省却唤醒的时间,减少丢包等异常情况的发生。此时一个CPU处于工作态,一个CPU处于就绪态,其他的CPU处于休眠态。When the concurrent calls start to increase and reach the threshold (1000×95%), according to the calculation formula of “number of CPUs activated”, it is necessary to wake up a dormant CPU and prepare to enter the working state. When the traffic increases to the point where two CPUs are required for processing, the CPU in the ready state can immediately start working, saving time for wake-up and reducing the occurrence of abnormal situations such as packet loss. At this time, one CPU is in a working state, one CPU is in a ready state, and the other CPUs are in a sleep state.
当并发流量在950上下波动时,根据“一快一慢”原则,不能马上把就绪态的CPU恢复到休眠状态,需要调整模块连续多次发现并发流量低于950,说明当前并发呼叫比较稳定,可以将处于就绪态的CPU恢复到休眠状态。When the concurrent traffic fluctuates around 950, according to the principle of "one fast and one slow", the CPU in the ready state cannot be restored to the dormant state immediately. It is necessary to adjust the module to find that the concurrent traffic is lower than 950 for several consecutive times, indicating that the current concurrent calls are relatively stable. The CPU in the ready state can be returned to the sleep state.
当并发呼叫流量增长到1000,根据“执行收发包模块的CPU数量”计算公式可以计算出需要使用2个CPU进入工作态,此时就绪态的CPU开始接管部分网口的收发包工作。为了尽量使这两个CPU负载均衡,这个新进入工作态的CPU可以根据实际情况负责一定的网口数量的收发包工作,可以跟原先处于工作态的CPU均分处理网口流量,也可以只负责处理少量网口的流量。When the concurrent call traffic increases to 1000, according to the calculation formula of "Number of CPUs that execute the packet sending and receiving module", it can be calculated that 2 CPUs need to be used to enter the working state. At this time, the CPU in the ready state starts to take over the sending and receiving work of some network ports. In order to balance the load of the two CPUs as much as possible, the new CPU in the working state can be responsible for sending and receiving packets for a certain number of network ports according to the actual situation. Responsible for handling the traffic of a small number of network ports.
当并发流量增加到1900,可以参照并发流量为950时候的处理流程唤醒新的CPU进入就绪态,此时两个CPU处于工作态,一个CPU被唤醒进入到就绪态。When the concurrent traffic increases to 1900, you can refer to the processing flow when the concurrent traffic is 950 to wake up the new CPU and enter the ready state. At this time, two CPUs are in the working state, and one CPU is awakened and enters the ready state.
当并发流量增加到2000,可以参照并发流量为1000时候的处理流程让就绪态的CPU进入工作态,并调整各个工作态的CPU的流量负载,让各个CPU能够负载均衡。此时三个CPU处于工作态,其他CPU处于休眠态。When the concurrent traffic increases to 2000, you can refer to the processing flow when the concurrent traffic is 1000 to let the CPU in the ready state enter the working state, and adjust the traffic load of the CPU in each working state, so that the load of each CPU can be balanced. At this time, the three CPUs are in a working state, and the other CPUs are in a dormant state.
其他的流量增长导致的CPU调整流程参照上述流程处理。For other CPU adjustment processes caused by traffic growth, refer to the above process.
当并发流量降低的时候,例如从2000降低到1900,根据计算公式,此时需要两个CPU进入工作态,并且一个CPU进入就绪态。调整模块选出一个工作态CPU进入就绪态,并调整剩下的两个工作态CPU的流量负荷,使两个工作态的CPU能够正常处理网络设备所有网口的收发包工作。When the concurrent traffic decreases, for example, from 2000 to 1900, according to the calculation formula, two CPUs are required to enter the working state, and one CPU is required to enter the ready state. The adjustment module selects a working state CPU to enter the ready state, and adjusts the traffic load of the remaining two working state CPUs, so that the two working state CPUs can normally process the sending and receiving work of all network ports of the network device.
当并发流量继续降低到1800,根据计算公式,需要两个CPU进入工作态,原先进入就绪状态的CPU进入休眠态。When the concurrent traffic continues to decrease to 1800, according to the calculation formula, two CPUs are required to enter the working state, and the CPU that originally entered the ready state enters the sleep state.
其他的流量减少导致的CPU调整流程参照上述流程处理。For other CPU adjustment procedures caused by traffic reduction, refer to the above procedures.
综上所述,本发明实施例一提供的方案也可以概述为如图5所示的流程,也可以说,调整模块按照图5所示的流程根据计算结果对执行收发包模块的CPU进行调整,包括:To sum up, the solution provided by the first embodiment of the present invention can also be summarized as the process shown in FIG. 5 , or it can be said that the adjustment module adjusts the CPU that executes the packet sending and receiving module according to the calculation result according to the process shown in FIG. 5 . ,include:
步骤51:开始;Step 51: start;
步骤52:软件程序获取当前系统整体流量负荷;Step 52: the software program obtains the overall traffic load of the current system;
步骤53:根据单个CPU处理能力计算CPU数量;Step 53: Calculate the number of CPUs according to the processing capacity of a single CPU;
步骤54:判断CPU数量是否变化,若CPU数量不变,进入步骤511,若CPU数量变化,进入步骤55;Step 54: Determine whether the number of CPUs changes, if the number of CPUs does not change, go to
步骤55:判断变化内容,若是需要增加运行的CPU数量,则进入步骤56,若是需要减少工作态CPU数量,则进入步骤57,若是需要增加工作态CPU数量,则进入步骤59;Step 55: determine the content of the change, if it is necessary to increase the number of running CPUs, then enter
步骤56:唤醒休眠态CPU进入就绪态,然后进入步骤511;Step 56: wake up the dormant CPU to enter the ready state, and then enter
步骤57:选出一个工作态的CPU进入就绪态;Step 57: Select a working CPU to enter the ready state;
步骤58:调整工作态CPU的流量负载,然后进入步骤511;Step 58: Adjust the traffic load of the working CPU, and then go to
步骤59:使就绪态CPU进入工作态;Step 59: make the CPU in the ready state enter the working state;
步骤510:调整所有工作态CPU的流量负载,然后进入步骤511;Step 510: Adjust the traffic load of all working CPUs, and then go to
步骤511:结束。Step 511: End.
实施例二Embodiment 2
如图6所示,本发明实施例二提供的节能管理实现装置包括:As shown in FIG. 6 , the device for realizing energy saving management provided by Embodiment 2 of the present invention includes:
获取模块61,用于定期获取标识处理器处理能力的变量参数的当前值;an
确定模块62,用于根据单个处理器处理能力值和所述当前值,确定当前所需运行态处理器数量和当前所需工作态处理器数量;A
第一处理模块63,用于根据上一时刻所需运行态处理器数量、上一时刻所需工作态处理器数量、所述当前所需运行态处理器数量和当前所需工作态处理器数量,得到用于调整处理器运行状态的调整信息;The
第二处理模块64,用于根据所述调整信息对处理器进行节能管理;The
其中,运行态处理器包含工作态处理器和/或就绪态处理器。Wherein, the running state processor includes a working state processor and/or a ready state processor.
定期的时间间隔可为1s,但并不以此为限;变量参数可为一个单一的参数,也可为几个相关参数的组合。The regular time interval can be 1s, but not limited thereto; the variable parameter can be a single parameter or a combination of several related parameters.
本发明实施例二提供的所述节能管理实现装置通过根据标识处理器处理能力的变量参数实时调整处理器的运行状态,能够较好的实现节能管理,提高资源利用率。The energy-saving management implementation device provided in the second embodiment of the present invention can better realize energy-saving management and improve resource utilization by adjusting the running state of the processor in real time according to the variable parameter that identifies the processing capability of the processor.
进一步的,所述节能管理实现装置还包括:第三处理模块,用于在所述获取模块执行操作之前,确定所述变量参数,并获取与所述变量参数对应的单个处理器处理能力值。Further, the energy saving management implementation device further includes: a third processing module, configured to determine the variable parameter and obtain a single processor processing capability value corresponding to the variable parameter before the obtaining module performs the operation.
具体的,所述确定模块包括:第一处理子模块,用于根据所述当前值与所述单个处理器处理能力值和预设阈值的比值,以及与第一定值的和值得到所述当前所需运行态处理器数量;第二处理子模块,用于根据所述当前值与所述单个处理器处理能力值的比值,以及与第二定值的和值得到所述当前所需工作态处理器数量。Specifically, the determining module includes: a first processing sub-module, configured to obtain the The currently required number of processors in the running state; a second processing submodule, configured to obtain the currently required work according to the ratio of the current value to the processing capability value of the single processor, and the sum of the current value and the second fixed value number of state processors.
预设阈值可优选为95%,本实施例中,第一定值与第二定值可优选为1。The preset threshold may preferably be 95%. In this embodiment, the first fixed value and the second fixed value may preferably be 1.
针对于就绪态处理器与休眠态处理器互相转换的情况,所述第一处理模块包括:第三处理子模块,用于若所述当前所需运行态处理器数量小于所述上一时刻所需运行态处理器数量,则监控当前时刻后的预设时间段内是否所有时刻所需运行态处理器数量均小于所述上一时刻所需运行态处理器数量,若是,则得到将第一预设数量就绪态处理器转变为休眠态处理器的调整信息;In the case of the mutual conversion between the ready state processor and the sleep state processor, the first processing module includes: a third processing sub-module, which is used for if the number of the currently required running state processors is less than the previous time. The number of running state processors required, then monitor whether the number of running state processors required at all times is less than the number of running state processors required at the previous moment in the preset time period after the current moment, and if so, obtain the first Adjustment information of the preset number of ready state processors being transformed into sleep state processors;
第四处理子模块,用于若所述当前所需运行态处理器数量大于所述上一时刻所需运行态处理器数量,则得到唤醒第二预设数量休眠态处理器,使其转变为就绪态处理器的调整信息。The fourth processing sub-module is configured to wake up a second preset number of dormant state processors if the currently required number of running state processors is greater than the number of running state processors required at the previous moment, so as to transform them into Adjustment information for the ready state processor.
可以说,在一段时间内连续发现靠后时刻所需运行态处理器数量均小于靠前某一时刻所需运行态处理器数量,则将就绪态处理器转变为休眠态处理器,也可以说,某一时刻后的变量参数值持续小于该时刻对应的变量参数值,则将就绪态处理器转变为休眠态处理器。It can be said that if the number of running state processors required at a later moment is continuously found to be less than the number of running state processors required at a previous moment, the ready state processor is converted into a dormant state processor, or it can be said that , the variable parameter value after a certain time is continuously smaller than the variable parameter value corresponding to the time, then the ready state processor is transformed into a dormant state processor.
针对于就绪态处理器与工作态处理器互相转换的情况,所述第一处理模块包括:第五处理子模块,用于若所述当前所需运行态处理器数量小于所述上一时刻所需运行态处理器数量,则得到将第三预设数量工作态处理器转变为就绪态处理器的调整信息;In the case of mutual conversion between the ready state processor and the working state processor, the first processing module includes: a fifth processing sub-module, used for if the currently required number of running state processors is less than the previous time If the number of processors in the running state is required, the adjustment information for converting the third preset number of processors in the working state into the processors in the ready state is obtained;
第六处理子模块,用于若所述当前所需运行态处理器数量大于所述上一时刻所需运行态处理器数量,则得到将第四预设数量就绪态处理器转变为工作态处理器的调整信息。The sixth processing sub-module is used to obtain the processing of converting the fourth preset number of ready-state processors into working state if the currently required number of running state processors is greater than the number of running state processors required at the previous moment adjustment information for the device.
优选的,所述第二处理模块包括:第七处理子模块,用于根据所述调整信息对所述处理器的运行状态进行实时调整,并对应调整各个所述处理器的负荷量。Preferably, the second processing module includes: a seventh processing sub-module, configured to adjust the running state of the processors in real time according to the adjustment information, and correspondingly adjust the load of each of the processors.
本实施例中,处理器可优选为中央处理器CPU,也可为其他类型的处理器,在此不作限定。In this embodiment, the processor may preferably be a central processing unit (CPU), or may be other types of processors, which are not limited herein.
其中,上述节能管理实现方法的所述实现实施例均适用于该节能管理实现装置的实施例中,也能达到相同的技术效果。Wherein, the above-mentioned implementation embodiments of the energy-saving management implementation method are all applicable to the embodiments of the energy-saving management implementation device, and can also achieve the same technical effect.
为了解决上述技术问题,本发明还提供了一种网络设备,包括:上述的节能管理实现装置。In order to solve the above technical problem, the present invention also provides a network device, including: the above-mentioned device for realizing energy saving management.
其中,上述节能管理实现装置的所述实现实施例均适用于该网络设备的实施例中,也能达到相同的技术效果。Wherein, the implementation embodiments of the above-mentioned energy saving management implementation apparatus are all applicable to the embodiments of the network device, and the same technical effect can also be achieved.
需要说明的是,此说明书中所描述的许多功能部件都被称为模块/子模块,以便更加特别地强调其实现方式的独立性。It should be noted that many functional components described in this specification are referred to as modules/sub-modules in order to more particularly emphasize the independence of their implementations.
本发明实施例中,模块/子模块可以用软件实现,以便由各种类型的处理器执行。举例来说,一个标识的可执行代码模块可以包括计算机指令的一个或多个物理或者逻辑块,举例来说,其可以被构建为对象、过程或函数。尽管如此,所标识模块的可执行代码无需物理地位于一起,而是可以包括存储在不同位里上的不同的指令,当这些指令逻辑上结合在一起时,其构成模块并且实现该模块的规定目的。In this embodiment of the present invention, the modules/sub-modules may be implemented in software so as to be executed by various types of processors. For example, an identified executable code module may comprise one or more physical or logical blocks of computer instructions, which may be structured as objects, procedures, or functions, for example. Nonetheless, the executable code of the identified module need not be physically located together, but may include different instructions stored in different bits that, when logically combined, constitute the module and implement the specification of the module Purpose.
实际上,可执行代码模块可以是单条指令或者是许多条指令,并且甚至可以分布在多个不同的代码段上,分布在不同程序当中,以及跨越多个存储器设备分布。同样地,操作数据可以在模块内被识别,并且可以依照任何适当的形式实现并且被组织在任何适当类型的数据结构内。所述操作数据可以作为单个数据集被收集,或者可以分布在不同位置上(包括在不同存储设备上),并且至少部分地可以仅作为电子信号存在于系统或网络上。In practice, an executable code module may be a single instruction or many instructions, and may even be distributed over multiple different code segments, among different programs, and across multiple memory devices. Likewise, operational data may be identified within modules, and may be implemented in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations (including over different storage devices), and may exist at least in part only as electronic signals on a system or network.
在模块可以利用软件实现时,考虑到现有硬件工艺的水平,所以可以以软件实现的模块,在不考虑成本的情况下,本领域技术人员都可以搭建对应的硬件电路来实现对应的功能,所述硬件电路包括常规的超大规模集成(VLSI)电路或者门阵列以及诸如逻辑芯片、晶体管之类的现有半导体或者是其它分立的元件。模块还可以用可编程硬件设备,诸如现场可编程门阵列、可编程阵列逻辑、可编程逻辑设备等实现。When a module can be implemented by software, considering the level of existing hardware technology, a module that can be implemented by software, regardless of cost, can build corresponding hardware circuits to implement corresponding functions. The hardware circuits include conventional very large scale integration (VLSI) circuits or gate arrays as well as off-the-shelf semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in programmable hardware devices, such as field programmable gate arrays, programmable array logic, programmable logic devices, and the like.
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述原理前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as It is the protection scope of the present invention.
Claims (13)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610113605.0A CN107132903B (en) | 2016-02-29 | 2016-02-29 | Energy-saving management implementation method, device and network equipment |
| PCT/CN2017/073357 WO2017148253A1 (en) | 2016-02-29 | 2017-02-13 | Energy-saving management implementation method and apparatus, and network device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610113605.0A CN107132903B (en) | 2016-02-29 | 2016-02-29 | Energy-saving management implementation method, device and network equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107132903A CN107132903A (en) | 2017-09-05 |
| CN107132903B true CN107132903B (en) | 2020-11-13 |
Family
ID=59720771
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610113605.0A Active CN107132903B (en) | 2016-02-29 | 2016-02-29 | Energy-saving management implementation method, device and network equipment |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107132903B (en) |
| WO (1) | WO2017148253A1 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108345502A (en) * | 2018-01-15 | 2018-07-31 | 中兴飞流信息科技有限公司 | Resource regulating method, device, terminal device based on DPDK and readable storage medium storing program for executing |
| CN111200541B (en) * | 2019-12-31 | 2022-04-12 | 山石网科通信技术股份有限公司 | Network data processing method and device |
| CN113448716B (en) * | 2020-03-24 | 2025-01-24 | 中兴通讯股份有限公司 | Resource adjustment method, computer equipment and storage medium |
| CN112214373B (en) * | 2020-09-17 | 2022-04-12 | 上海金仕达软件科技有限公司 | Hardware monitoring method and device and electronic equipment |
| CN116668209B (en) * | 2022-02-21 | 2025-12-02 | 华为技术有限公司 | A method, apparatus, and related equipment for adjusting the operating status of network devices. |
| CN118842773A (en) * | 2024-07-30 | 2024-10-25 | 济南浪潮数据技术有限公司 | Network traffic management method, device and equipment of cloud platform and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1340751A (en) * | 2000-09-01 | 2002-03-20 | Lg电子株式会社 | Central processing unit dispatch method and device |
| CN1424658A (en) * | 2003-01-06 | 2003-06-18 | 曹爱国 | Movable memory and design thereof |
| US6901522B2 (en) * | 2001-06-07 | 2005-05-31 | Intel Corporation | System and method for reducing power consumption in multiprocessor system |
| CN101719013A (en) * | 2009-11-19 | 2010-06-02 | 中兴通讯股份有限公司 | Method and device for reducing power consumption of single board with multiple processing units |
| CN101799772A (en) * | 2010-02-26 | 2010-08-11 | 上海华为技术有限公司 | Kernel dispatching method, kernel backup method and multi-core processor |
| WO2010137233A1 (en) * | 2009-05-28 | 2010-12-02 | パナソニック株式会社 | Power saving control device for multiprocessor system, and mobile terminal |
| CN102866921A (en) * | 2012-08-29 | 2013-01-09 | 惠州Tcl移动通信有限公司 | Method and system for regulating and controlling multi-core central processing unit (CPU) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090150696A1 (en) * | 2007-12-10 | 2009-06-11 | Justin Song | Transitioning a processor package to a low power state |
-
2016
- 2016-02-29 CN CN201610113605.0A patent/CN107132903B/en active Active
-
2017
- 2017-02-13 WO PCT/CN2017/073357 patent/WO2017148253A1/en not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1340751A (en) * | 2000-09-01 | 2002-03-20 | Lg电子株式会社 | Central processing unit dispatch method and device |
| US6901522B2 (en) * | 2001-06-07 | 2005-05-31 | Intel Corporation | System and method for reducing power consumption in multiprocessor system |
| CN1424658A (en) * | 2003-01-06 | 2003-06-18 | 曹爱国 | Movable memory and design thereof |
| WO2010137233A1 (en) * | 2009-05-28 | 2010-12-02 | パナソニック株式会社 | Power saving control device for multiprocessor system, and mobile terminal |
| CN101719013A (en) * | 2009-11-19 | 2010-06-02 | 中兴通讯股份有限公司 | Method and device for reducing power consumption of single board with multiple processing units |
| CN101799772A (en) * | 2010-02-26 | 2010-08-11 | 上海华为技术有限公司 | Kernel dispatching method, kernel backup method and multi-core processor |
| CN102866921A (en) * | 2012-08-29 | 2013-01-09 | 惠州Tcl移动通信有限公司 | Method and system for regulating and controlling multi-core central processing unit (CPU) |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107132903A (en) | 2017-09-05 |
| WO2017148253A1 (en) | 2017-09-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107132903B (en) | Energy-saving management implementation method, device and network equipment | |
| CN101436098A (en) | Method and apparatus for reducing power consumption of multiple-core symmetrical multiprocessing system | |
| CN112000468B (en) | GPU management device and method based on detection and adjustment module and GPU server | |
| TWI526843B (en) | Adaptive disruption technology for energy-saving mobile platforms | |
| CN115391031B (en) | Load balancing scheduling method and computing device | |
| CN110795238B (en) | Load calculation method, device, storage medium and electronic equipment | |
| CN114710563B (en) | Cluster energy saving method and device | |
| WO2023015788A1 (en) | Serverless computing resource allocation system for energy consumption optimization | |
| US9310872B2 (en) | Processor frequency mainly depending on a target frame rate while processing a graphics application | |
| US20120297216A1 (en) | Dynamically selecting active polling or timed waits | |
| US20130080809A1 (en) | Server system and power managing method thereof | |
| WO2022262819A1 (en) | Edge computing module and power consumption control method therefor | |
| CN107368178A (en) | Power consumption optimization method based on DPDK processing data packets platforms | |
| CN112114650A (en) | A power consumption control method, apparatus, device and readable storage medium | |
| CN103037109A (en) | Multicore equipment energy consumption management method and device | |
| CN115686160A (en) | Chip operation method and device, SOC chip and storage medium | |
| CN110850957B (en) | Scheduling method for reducing system power consumption through dormancy in edge computing scene | |
| US9448617B2 (en) | Systems and methods for messaging-based fine granularity system-on-a-chip power gating | |
| US9075609B2 (en) | Power controller, processor and method of power management | |
| Li et al. | Towards power efficient high performance packet I/O | |
| WO2021057023A1 (en) | Method and system for reducing power consumption by automatically allocating computing resource on the basis of component temperature | |
| CN104460942A (en) | A service-based server energy-saving system and method | |
| CN103034539A (en) | Server system and power management method thereof | |
| CN115686863A (en) | Hybrid polling method, device, equipment and readable storage medium | |
| US20250278299A1 (en) | Processor scheduling method and apparatus, computer device, computer-readable storage medium, and computer program product |
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 |