CN107132903A - A kind of administration of energy conservation implementation method, device and the network equipment - Google Patents

A kind of administration of energy conservation implementation method, device and the network equipment Download PDF

Info

Publication number
CN107132903A
CN107132903A CN201610113605.0A CN201610113605A CN107132903A CN 107132903 A CN107132903 A CN 107132903A CN 201610113605 A CN201610113605 A CN 201610113605A CN 107132903 A CN107132903 A CN 107132903A
Authority
CN
China
Prior art keywords
processor
run mode
operating conditions
current desired
administration
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.)
Granted
Application number
CN201610113605.0A
Other languages
Chinese (zh)
Other versions
CN107132903B (en
Inventor
吴晨
李翱
金双喜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610113605.0A priority Critical patent/CN107132903B/en
Priority to PCT/CN2017/073357 priority patent/WO2017148253A1/en
Publication of CN107132903A publication Critical patent/CN107132903A/en
Application granted granted Critical
Publication of CN107132903B publication Critical patent/CN107132903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system

Abstract

The invention provides a kind of administration of energy conservation implementation method, device and the network equipment, wherein, administration of energy conservation implementation method includes:Periodically obtain the currency of the variable parameter of identification processor disposal ability;According to single processor processing ability value and the currency, current desired run mode processor quantity and current desired operating conditions processor quantity are determined;Run mode processor quantity, operating conditions processor quantity, the current desired run mode processor quantity and current desired operating conditions processor quantity needed for last moment, obtain the adjustment information for adjusting processor running status according to needed for last moment;Administration of energy conservation is carried out to processor according to the adjustment information;Wherein, run mode processor includes operating conditions processor and/or ready state processor.The scheme that the present invention is provided can preferably realize administration of energy conservation by adjusting the running status of processor in real time according to the variable parameter of identification processor disposal ability, improve resource utilization.

Description

A kind of administration of energy conservation implementation method, device and the network equipment
Technical field
The present invention relates to communication technique field, a kind of administration of energy conservation implementation method, device and network are particularly related to Equipment.
Background technology
The common transmitting-receiving pack mode of current network card equipment includes interrupt mode and poll pattern, either using which The pattern of kind, all there is CPU (central processing unit, Central Processing Unit) utilization rate efficiency can not Control, and universal system resource waste problem.Such as existing a entitled DPDK (Data Plane Development, datum plane exploitation) datum plane development kit, its mode of operation be PMD (Pull Model Driver, polled interrupt mode activated) pattern when, with zero-copy, without interrupt and batch processing The advantages of, the operations such as network packet analysis, processing are especially suitable for, transmitting-receiving, multinuclear behaviour for packet Work has certain performance boost.But PMD has a feature, PMD CPU 100% operations always are performed. Network equipment operation DPDK PMD multiple CPU idle running, causes network equipment temperature passively to improve.When When running on a virtual machine using the application program of the technology, virtual machine cpu load virtual height can be equally caused, Waste system host cpu resource.
The content of the invention
It is an object of the invention to provide a kind of administration of energy conservation implementation method, device and the network equipment, solve existing The problem of cpu resource for having the network equipment in technology is wasted.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of administration of energy conservation implementation method, including:
Periodically obtain the currency of the variable parameter of identification processor disposal ability;
According to single processor processing ability value and the currency, current desired run mode processor number is determined Amount and current desired operating conditions processor quantity;
According to needed for last moment run mode processor quantity, operating conditions processor quantity needed for last moment, The current desired run mode processor quantity and current desired operating conditions processor quantity, obtain being used to adjust The adjustment information of processor running status;
Administration of energy conservation is carried out to processor according to the adjustment information;
Wherein, run mode processor includes operating conditions processor and/or ready state processor.
Alternatively, before the currency of the regular variable parameter for obtaining identification processor disposal ability, The administration of energy conservation implementation method also includes:
The variable parameter is determined, and obtains single processor processing ability value corresponding with the variable parameter.
Alternatively, it is described according to single processor processing ability value and the currency, determine current desired fortune The step of row state processor quantity and current desired operating conditions processor quantity, includes:
According to the currency and the ratio of the single processor processing ability value and predetermined threshold value, Yi Jiyu First definite value and be worth to the current desired run mode processor quantity;
According to the ratio of the currency and the single processor processing ability value, and with the second definite value Be worth to the current desired operating conditions processor quantity.
Alternatively, run mode processor quantity, the operating conditions needed for last moment according to needed for last moment Processor quantity, the current desired run mode processor quantity and current desired operating conditions processor quantity, The step of obtaining the adjustment information for adjusting processor running status includes:
If the current desired run mode processor quantity is less than run mode processor number needed for the last moment Amount, then monitor in the preset time period after current time whether run mode processor quantity is equal needed for all moment Less than run mode processor quantity needed for the last moment, if so, then obtaining that the first predetermined number is ready State processor is changed into the adjustment information of dormant state processor;
If the current desired run mode processor quantity is more than run mode processor number needed for the last moment Amount, then obtain waking up the second predetermined number dormant state processor, the adjustment for making it be changed into ready state processor Information.
Alternatively, run mode processor quantity, the operating conditions needed for last moment according to needed for last moment Processor quantity, the current desired run mode processor quantity and current desired operating conditions processor quantity, The step of obtaining the adjustment information for adjusting processor running status includes:
If the current desired run mode processor quantity is less than run mode processor number needed for the last moment Amount, then obtain the 3rd predetermined number operating conditions processor being changed into the adjustment information of ready state processor;
If the current desired run mode processor quantity is more than run mode processor number needed for the last moment Amount, then obtain the ready state processor of the 4th predetermined number being changed into the adjustment information of operating conditions processor.
Alternatively, it is described according to the adjustment information to processor carry out administration of energy conservation the step of include:
The running status of the processor is adjusted in real time according to the adjustment information, and correspondence adjusts each The load of the individual processor.
Device is realized present invention also offers a kind of administration of energy conservation, including:
Acquisition module, the currency of the variable parameter for periodically obtaining identification processor disposal ability;
Determining module, for according to single processor processing ability value and the currency, determining current desired Run mode processor quantity and current desired operating conditions processor quantity;
First processing module, for according to needed for last moment run mode processor quantity, needed for last moment Operating conditions processor quantity, the current desired run mode processor quantity and current desired operating conditions processor Quantity, obtains the adjustment information for adjusting processor running status;
Second processing module, for carrying out administration of energy conservation to processor according to the adjustment information;
Wherein, run mode processor includes operating conditions processor and/or ready state processor.
Alternatively, the administration of energy conservation realizes that device also includes:
3rd processing module, for before the acquisition module performs operation, determining the variable parameter, And obtain single processor processing ability value corresponding with the variable parameter.
Alternatively, the determining module includes:
First processing submodule, for according to the currency and the single processor processing ability value and in advance If the ratio of threshold value, and with the first definite value and be worth to the current desired run mode processor quantity;
Second processing submodule, for the ratio according to the currency and the single processor processing ability value Value, and with the second definite value and be worth to the current desired operating conditions processor quantity.
Alternatively, the first processing module includes:
3rd processing submodule, if being less than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity needed for carving, then monitor in the preset time period after current time whether all moment institute Need run mode processor quantity be respectively less than the last moment needed for run mode processor quantity, if so, then To the adjustment information that the ready state processor of the first predetermined number is changed into dormant state processor;
Fourth process submodule, if being more than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity needed for carving, then obtain waking up the second predetermined number dormant state processor, change it For the adjustment information of ready state processor.
Alternatively, the first processing module includes:
5th processing submodule, if being less than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity, then obtain the 3rd predetermined number operating conditions processor being changed into ready state needed for carving The adjustment information of processor;
6th processing submodule, if being more than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity, then obtain the ready state processor of the 4th predetermined number being changed into operating conditions needed for carving The adjustment information of processor.
Alternatively, the Second processing module includes:
7th processing submodule, it is real for being carried out according to the adjustment information to the running status of the processor When adjust, and correspondingly adjust the load of each processor.
Present invention also offers a kind of network equipment, including:Device is realized in above-mentioned administration of energy conservation.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
In such scheme, the administration of energy conservation implementation method passes through the variable according to identification processor disposal ability Parameter adjusts the running status of processor in real time, can preferably realize administration of energy conservation, improves resource utilization.
Brief description of the drawings
Fig. 1 is the administration of energy conservation implementation method schematic flow sheet one of the embodiment of the present invention one;
Fig. 2 is the administration of energy conservation implementation method schematic flow sheet two of the embodiment of the present invention one;
Fig. 3 is the Session Border Controller SBC application example software systems schematic diagrames of the embodiment of the present invention one;
Fig. 4 is the administration of energy conservation implementation method schematic flow sheet three of the embodiment of the present invention one;
Fig. 5 is the administration of energy conservation implementation method schematic flow sheet four of the embodiment of the present invention one;
Fig. 6 realizes apparatus structure schematic diagram for the administration of energy conservation of the embodiment of the present invention two.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with attached Figure and specific embodiment are described in detail.
There is provided a variety of solutions for the problem of cpu resource that the present invention is directed to the network equipment in existing technology is wasted Certainly scheme, specific as follows:
Embodiment one
As shown in figure 1, the administration of energy conservation implementation method that the embodiment of the present invention one is provided includes:
Step 11:Periodically obtain the currency of the variable parameter of identification processor disposal ability;
Step 12:According to single processor processing ability value and the currency, current desired run mode is determined Processor quantity and current desired operating conditions processor quantity;
Step 13:Run mode processor quantity, operating conditions needed for last moment are handled according to needed for last moment Device quantity, the current desired run mode processor quantity and current desired operating conditions processor quantity, are obtained Adjustment information for adjusting processor running status;
Step 14:Administration of energy conservation is carried out to processor according to the adjustment information;
Wherein, run mode processor includes operating conditions processor and/or ready state processor.
Regularly time interval can be 1s, but be not limited thereto;Variable parameter can be a single parameter, Or the combination of several relevant parameters.
The administration of energy conservation implementation method that the embodiment of the present invention one is provided according to identification processor by handling energy The variable parameter of power adjusts the running status of processor in real time, can preferably realize administration of energy conservation, improves money Source utilization rate.
Further, before the currency of the regular variable parameter for obtaining identification processor disposal ability, The administration of energy conservation implementation method also includes:The variable parameter is determined, and is obtained and the variable parameter pair The single processor processing ability value answered.
Specifically, it is described according to single processor processing ability value and the currency, determine current desired fortune The step of row state processor quantity and current desired operating conditions processor quantity, includes:According to the currency with The ratio of the single processor processing ability value and predetermined threshold value, and with the first definite value and be worth to institute State current desired run mode processor quantity;According to the currency and the single processor processing ability value Ratio, and with the second definite value and be worth to the current desired operating conditions processor quantity.
Predetermined threshold value is preferably 95%, in the present embodiment, and the first definite value is preferably 1 with the second definite value.
The situation of ready state processor and the mutual phase transformation of dormant state processor is directed to, it is described according to last moment Required run mode processor quantity, operating conditions processor quantity, the current desired operation needed for last moment State processor quantity and current desired operating conditions processor quantity, are obtained for adjusting processor running status The step of adjustment information, includes:
If the current desired run mode processor quantity is less than run mode processor number needed for the last moment Amount, then monitor in the preset time period after current time whether run mode processor quantity is equal needed for all moment Less than run mode processor quantity needed for the last moment, if so, then obtaining that the first predetermined number is ready State processor is changed into the adjustment information of dormant state processor;
If the current desired run mode processor quantity is more than run mode processor number needed for the last moment Amount, then obtain waking up the second predetermined number dormant state processor, the adjustment for making it be changed into ready state processor Information.
Leaned on it can be said that continuously finding that run mode processor quantity needed for the moment is respectively less than rearward within a period of time Run mode processor quantity needed for the preceding a certain moment, then be changed into dormant state processor by ready state processor, It may also be said that the variable parameter value variable parameter value corresponding continuously less than the moment after a certain moment, then will Ready state processor is changed into dormant state processor.
The situation of ready state processor and the mutual phase transformation of operating conditions processor is directed to, it is described according to last moment Required run mode processor quantity, operating conditions processor quantity, the current desired operation needed for last moment State processor quantity and current desired operating conditions processor quantity, are obtained for adjusting processor running status The step of adjustment information, includes:
If the current desired run mode processor quantity is less than run mode processor number needed for the last moment Amount, then obtain the 3rd predetermined number operating conditions processor being changed into the adjustment information of ready state processor;
If the current desired run mode processor quantity is more than run mode processor number needed for the last moment Amount, then obtain the ready state processor of the 4th predetermined number being changed into the adjustment information of operating conditions processor.
It is preferred that, it is described according to the adjustment information to processor carry out administration of energy conservation the step of include:According to The adjustment information is adjusted in real time to the running status of the processor, and correspondingly adjusts each place Manage the load of device.
Wherein, processor can be central processor CPU, or other kinds of processor is not made herein Limit.
The administration of energy conservation implementation method that the embodiment of the present invention one is provided is specifically described below.
For the problem of network equipment cpu resource is wasted in the prior art, the embodiment of the present invention provides a kind of root The CPU quantity of send and receive packets module is performed according to some dynamic variable or the combination dynamic adjustment of multiple dynamic variables, Method to realize administration of energy conservation.In the case of some dynamic variable or one group of dynamic variable combination, The network equipment runs send and receive packets module using the CPU of varying number.
As shown in Fig. 2 this method is comprised the following steps:
Step 21:The network equipment determines list CPU processing ability values according to actual conditions and determines that the network equipment is used In the combination of adjustment CPU quantity and the dynamic variable or multiple dynamic variables of cpu busy percentage.
The network equipment determines that the combination of a numerical value or several numerical value represents single cpu processing ability value first. Single cpu processing ability value can be the maximum message segment handling capacity or report that single cpu can be handled CPU occupancy or CPU temperature, etc. when literary transceiver module is normally run.
The combination of similar numerical value or several numerical value.The network equipment uses single cpu disposal ability Value calculates the CPU quantity that there are currently a need for performing send and receive packets module.The network equipment determines to be used to calculate simultaneously The method for expressing of network equipment entirety message flow load.Can be that a dynamic variable or several dynamics become The combination of amount, for example:The total message handling capacity of current network device, each performs the CPU of packet sending and receiving module Occupancy summation or CPU temperature, etc. other similar dynamic variables, it is or several dynamic The combination of state variable.
Step 22:The network equipment periodically obtains system dynamic variable value or dynamic variable combined value, and calculating needs Perform the CPU quantity of send and receive packets module, it is determined whether need to adjust the CPU quantity for performing send and receive packets module.
Adoptable calculation formula is in step 22:
The CPU quantity of execution send and receive packets module=
Network equipment dynamic variable value or dynamic variable combined value/single cpu processing ability value+1
(division calculation takes the mode directly rounded)
The CPU of one execution send and receive packets module has three kinds of running statuses.One kind is operating conditions, and now CPU is held Row send and receive packets module, is responsible for the send and receive packets work of network interface.One kind is ready state, and now CPU is in operation shape State, but the send and receive packets work of not responsible network interface, can start to be responsible for the send and receive packets work of network interface at any time.It is a kind of It is dormant state, the energy is saved in now CPU dormancy.Ready state is a mistake between operating conditions and dormant state Cross state, it is possible to reduce CPU from dormant state wakeup process can not completely normal process message flow and cause Abnormal problem.
Step 23:It is determined that after adjustment CPU quantity, operation send and receive packets module is increased or decreased as the case may be CPU quantity and as needed adjust CPU traffic load.
Need to follow " one fast one is slow " principle when adjustment CPU quantity:
1) CPU of dormant state is adjusted to operating conditions and wants fast by application program decision-making.In view of not packet loss, with And situations such as bursts of traffic, and decline of the single cpu ability under virtualized environment, therefore, work as system Reach the threshold values of the processing ability value of single cpu, such as 95%, application program will be by dormant state CPU wakes up, and into ready state, is ready to enter operating conditions.Threshold values can be according to the reality of the network equipment Situation is set.
2) CPU of operating conditions is adjusted to dormant state and wants slow by application program decision-making.Only continuous several times are found When can reduce the quantity for the CPU for performing send and receive packets module, application program carries out reducing again the behaviour of CPU quantity Make, with ensure to perform send and receive packets module CPU can even running, reduce the generation of the abnormal conditions such as packet loss.
Enter ready state if necessary to wake up CPU, then wake up new CPU, preparation begins to take over part network interface Send and receive packets work.
If necessary to increase the CPU of operating conditions, then the CPU of operating conditions traffic load is reduced, is distributed to just The CPU part traffic load of thread state, the CPU of ready state initially enters operating conditions.
If necessary to reduce the CPU of operating conditions, then the CPU for selecting an operating conditions enters ready state, this The traffic load that CPU originally took distributes to the CPU of other operating conditions.
If necessary to which the CPU of ready state is entered into dormant state, then by the CPU migration of ready state to dormant state. Reduce energy loss.
From the foregoing, it will be observed that the scheme that the embodiment of the present invention one is provided takes full advantage of the CPU for performing send and receive packets module Computing capability, when network equipment traffic load is low, ensure message throughput performance on the basis of, Idle running CPU quantity is reduced, the target of administration of energy conservation is realized.When the application program of the network equipment is operated in When on virtual machine, virtual machine cpu load can be reduced effectively, improve the CPU resource utilization of system host, The performance of minimal configuration and each virtual machine of balance to virtualization product is also very meaningful.
The network equipment is represented with SBC (Session Border Controller, Session Border Controller) below, Concurrent call value is represented exemplified by variable parameter value, and the administration of energy conservation provided the embodiment of the present invention one is real Existing method carries out further details of illustrate.
As shown in figure 3, being NGN (next generation network, Next Generation Network)/IMS (IP IP multimedia subsystem, IMS, IP Multimedia Subsystem) Session Border Controller SBC in network is with network interface The related module of Message processing.The each network interfaces of SBC are guarded using a send and receive packets thread.One transmitting-receiving envelope curve Journey can be responsible for the send and receive packets work of a network interface, can also be responsible for the send and receive packets work of other network interfaces.According to Fig. 3, it is assumed that SBC has 4 network interfaces, there is four send and receive packets threads, and four CPU of distribution are used to perform transmitting-receiving Bag module.And the purport of the embodiment of the present invention one can be described as:Increase an adjusting module in SBC, use The CPU quantity of send and receive packets module and each CPU traffic load are performed in adjustment, adjusting module is inspected periodically The CPU of current SBC execution send and receive packets module total load, increases or decreases the CPU of operation as needed The CPU of quantity and adjustment operating conditions message flow load.
As shown in figure 4, the scheme that the embodiment of the present invention one is provided specifically includes following steps:
Step 41:Obtain list CPU maximum processing capability values.
Because the main message flows of SBC are the signaling media message flows that concurrent call is produced, it is possible to Single cpu message processing capability value is used as using a suitable concurrent call value, it is assumed that this value is 1000 concurrent calls.
Step 42:Obtain network equipment Message processing total load.
Because the main message flows of SBC are the signaling media message flows that concurrent call is produced, so using Current total concurrent call number is used as message flow to be processed needed for the current CPU for performing send and receive packets module The total load value of amount.
Step 43:Obtain the new CPU of wake-up and be prepared to enter into operating conditions threshold values.
According to SBC application scenarios, can use the 95% of single CPU disposal abilities as new CPU from dormancy State wakes up the threshold values for entering the state (i.e. ready state) for preparing to receive message.The CPU quantity of startup can be used Equation below is calculated:
The CPU quantity of startup=
Network equipment network interface total load/(single cpu message processing capability value × threshold values)+1
(division calculation takes the mode directly rounded)
In concurrent call number uphill process, the CPU quantity calculated, one of CPU is ready state, Other CPU are run modes.
Threshold values required for other network equipments can be determined according to respective application scenarios.
Step 44:The CPU quantity for performing send and receive packets module is calculated according to calculation formula, as needed adjustment The traffic load of CPU quantity and each CPU.
Adjusting module periodically obtains the current concurrent call volumes of SBC, calculates for performing send and receive packets module CPU quantity.According to SBC application scenarios, this cycle can be set as 1 second.
Adoptable calculation formula is in step 44:
The CPU quantity of execution send and receive packets module=
Network equipment dynamic variable value or dynamic variable combined value/single cpu processing ability value+1
(division calculation takes the mode directly rounded)
When concurrent call flow-rate ratio is relatively low, for example:700 concurrent calls, can be calculated according to calculation formula The CPU quantity for being currently needed for operating conditions is 1:
Perform CPU quantity=700/1000+1 of send and receive packets module
Send and receive packets module thread is performed using a CPU, this send and receive packets module thread is responsible for all network interfaces Send and receive packets.Now only one of which CPU is in operating conditions, and other CPU enter resting state.
When concurrent call starts to increase, when to threshold values (1000 × 95%), according to " the CPU numbers of startup The calculation formula of amount " is prepared to enter into operating conditions, it is necessary to wake up the CPU of a dormancy.Risen to Deng flow When needing two CPU processing, the CPU of ready state can immediately enter work, save the time of wake-up, Reduce the generation of the abnormal conditions such as packet loss.Now a CPU is in operating conditions, and a CPU is in ready state, Other CPU are in dormant state.
When concurrent flow is fluctuated about 950, according to " one fast one is slow " principle, it is impossible at once ready The CPU of state returns to resting state, it is necessary to which adjusting module continuous several times find that concurrent flow, less than 950, is said Bright current concurrent call is more stable, the CPU in ready state can be returned into resting state.
When concurrent call flow rises to 1000, calculate public according to " the CPU quantity for performing send and receive packets module " Formula, which can be calculated, needs to use 2 CPU to enter operating conditions, and now the CPU of ready state begins to take over part The send and receive packets work of network interface.In order to make the two cpu loads balanced as far as possible, the CPU of this new entrance operating conditions The send and receive packets work of certain network interface quantity can be responsible for according to actual conditions, can be with being originally in operating conditions CPU divide equally processing network interface flow, can also only be responsible for the flow of a small amount of network interface of processing.
When concurrent flow increases to 1900, it is referred to handling process when concurrent flow is 950 and wakes up new CPU enter ready state, now two CPU are in operating conditions, a CPU be waken up enter it is ready State.
When concurrent flow increases to 2000, it is referred to handling process when concurrent flow is 1000 and allows ready The CPU of state enters operating conditions, and adjusts the CPU of each operating conditions flow load, allows each CPU energy Enough load balancing.Now three CPU are in operating conditions, and other CPU are in dormant state.
CPU adjusts flow with reference to above-mentioned flow processing caused by other flows increase.
When concurrent flow-reduction, for example, 1900 are reduced to from 2000, according to calculation formula, now needed Two CPU are wanted to enter operating conditions, and a CPU enters ready state.Adjusting module selects an operating conditions CPU enters ready state, and adjusts remaining two operating conditions CPU traffic load, makes two operating conditions CPU is capable of the send and receive packets work of all network interfaces of the normal process network equipment.
When concurrent flow continues to be reduced to 1800, according to calculation formula, it is necessary to which two CPU enter operating conditions, Original CPU into ready state enters dormant state.
CPU adjusts flow with reference to above-mentioned flow processing caused by other flows are reduced.
In summary, the scheme that the embodiment of the present invention one is provided can also be summarized as flow as shown in Figure 5, It may also be said that adjusting module according to the flow shown in Fig. 5 according to result of calculation to perform send and receive packets module CPU It is adjusted, including:
Step 51:Start;
Step 52:Software program obtains the overall traffic load of current system;
Step 53:CPU quantity is calculated according to single cpu disposal ability;
Step 54:Judge whether CPU quantity changes, if CPU quantity is constant, into step 511, if CPU number changes, into step 55;
Step 55:Judge changing content, if needing to increase the CPU quantity of operation, then into step 56, If needing to reduce operating conditions CPU quantity, then into step 57, if needing to increase operating conditions CPU numbers Amount, then into step 59;
Step 56:Wake up dormant state CPU and enter ready state, subsequently into step 511;
Step 57:The CPU for selecting an operating conditions enters ready state;
Step 58:Operating conditions CPU flow load is adjusted, subsequently into step 511;
Step 59:Ready state CPU is set to enter operating conditions;
Step 510:All working state CPU flow load is adjusted, subsequently into step 511;
Step 511:Terminate.
Embodiment two
As shown in fig. 6, the administration of energy conservation that the embodiment of the present invention two is provided realizes that device includes:
Acquisition module 61, the currency of the variable parameter for periodically obtaining identification processor disposal ability;
Determining module 62, for according to single processor processing ability value and the currency, it is determined that current institute Need run mode processor quantity and current desired operating conditions processor quantity;
First processing module 63, for run mode processor quantity, last moment institute according to needed for last moment Need operating conditions processor quantity, the current desired run mode processor quantity and the processing of current desired operating conditions Device quantity, obtains the adjustment information for adjusting processor running status;
Second processing module 64, for carrying out administration of energy conservation to processor according to the adjustment information;
Wherein, run mode processor includes operating conditions processor and/or ready state processor.
Regularly time interval can be 1s, but be not limited thereto;Variable parameter can be a single parameter, Or the combination of several relevant parameters.
The administration of energy conservation that the embodiment of the present invention two is provided realizes device by handling energy according to identification processor The variable parameter of power adjusts the running status of processor in real time, can preferably realize administration of energy conservation, improves money Source utilization rate.
Further, the administration of energy conservation realizes that device also includes:3rd processing module, for being obtained described Modulus block is performed before operation, determines the variable parameter, and obtain corresponding with the variable parameter single Processor processing ability value.
Specifically, the determining module includes:First processing submodule, for according to the currency and institute State the ratio of single processor processing ability value and predetermined threshold value, and with the first definite value and be worth to described Current desired run mode processor quantity;Second processing submodule, for according to the currency and the list The ratio of individual processor processing ability value, and with the second definite value and be worth to the current desired operating conditions Processor quantity.
Predetermined threshold value is preferably 95%, in the present embodiment, and the first definite value is preferably 1 with the second definite value.
It is directed to the situation of ready state processor and the mutual phase transformation of dormant state processor, the first processing module Including:3rd processing submodule, if being less than described upper one for the current desired run mode processor quantity Run mode processor quantity needed for moment, then monitor current time after preset time period in whether all moment Run mode processor quantity needed for required run mode processor quantity is respectively less than the last moment, if so, then Obtain the ready state processor of the first predetermined number being changed into the adjustment information of dormant state processor;
Fourth process submodule, if being more than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity needed for carving, then obtain waking up the second predetermined number dormant state processor, change it For the adjustment information of ready state processor.
Leaned on it can be said that continuously finding that run mode processor quantity needed for the moment is respectively less than rearward within a period of time Run mode processor quantity needed for the preceding a certain moment, then be changed into dormant state processor by ready state processor, It may also be said that the variable parameter value variable parameter value corresponding continuously less than the moment after a certain moment, then will Ready state processor is changed into dormant state processor.
It is directed to the situation of ready state processor and the mutual phase transformation of operating conditions processor, the first processing module Including:5th processing submodule, if being less than described upper one for the current desired run mode processor quantity Run mode processor quantity needed for moment, then obtain the 3rd predetermined number operating conditions processor being changed into ready The adjustment information of state processor;
6th processing submodule, if being more than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity, then obtain the ready state processor of the 4th predetermined number being changed into operating conditions needed for carving The adjustment information of processor.
It is preferred that, the Second processing module includes:7th processing submodule, for being believed according to the adjustment Cease and the running status of the processor is adjusted in real time, and correspondingly adjust the load of each processor Amount.
In the present embodiment, processor is preferably central processor CPU, or other kinds of processor, It is not limited thereto.
Wherein, the described of above-mentioned administration of energy conservation implementation method realizes that embodiment is applied to the administration of energy conservation and realized In the embodiment of device, identical technique effect can be also reached.
In order to solve the above-mentioned technical problem, present invention also offers a kind of network equipment, including:Above-mentioned section It can manage and realize device.
Wherein, above-mentioned administration of energy conservation realizes that the described of device realizes the reality that embodiment is applied to the network equipment Apply in example, can also reach identical technique effect.
It should be noted that this many functional part described in this description is all referred to as module/submodule, Specifically to emphasize the independence of its implementation.
In the embodiment of the present invention, module/submodule can be realized with software, so as to by various types of processors Perform.For example, the executable code module of a mark can include one or many of computer instruction Individual physics or logical block, for example, it can be built as object, process or function.Nevertheless, The executable code of institute's mark module need not be physically located together, but can include being stored in different positions On different instructions, when being combined together in these command logics, it constitutes module and realizes the mould The regulation purpose of block.
In fact, executable code module can be the either many bar instructions of individual instructions, and even may be used To be distributed on multiple different code segments, it is distributed among distinct program, and is set across multiple memories Back-up cloth.Similarly, peration data can be identified in module, and can be according to any appropriate shape Formula is realized and is organized in the data structure of any appropriate type.The peration data can be as single Data set is collected, or can be distributed on diverse location and (be included in different storage device), and extremely Only it can partially be present in as electronic signal in system or network.
When module can be realized using software, it is contemplated that the level of existing hardware technique, it is possible to soft The module that part is realized, in the case where not considering cost, those skilled in the art can build corresponding hard Part circuit realizes corresponding function, and the hardware circuit includes conventional ultra-large integrated (VLSI) electricity The existing semiconductor of road or gate array and such as logic chip, transistor etc is either other discrete Element.Module can also use programmable hardware device, and such as field programmable gate array, programmable array is patrolled Volume, programmable logic device etc. realizes.
Above-described is the preferred embodiment of the present invention, it should be pointed out that for the ordinary people of the art For member, under the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these Improvements and modifications also should be regarded as protection scope of the present invention.

Claims (13)

1. a kind of administration of energy conservation implementation method, it is characterised in that including:
Periodically obtain the currency of the variable parameter of identification processor disposal ability;
According to single processor processing ability value and the currency, current desired run mode processor number is determined Amount and current desired operating conditions processor quantity;
According to needed for last moment run mode processor quantity, operating conditions processor quantity needed for last moment, The current desired run mode processor quantity and current desired operating conditions processor quantity, obtain being used to adjust The adjustment information of processor running status;
Administration of energy conservation is carried out to processor according to the adjustment information;
Wherein, run mode processor includes operating conditions processor and/or ready state processor.
2. administration of energy conservation implementation method as claimed in claim 1, it is characterised in that in the regular acquisition Before the currency of the variable parameter of identification processor disposal ability, the administration of energy conservation implementation method also includes:
The variable parameter is determined, and obtains single processor processing ability value corresponding with the variable parameter.
3. administration of energy conservation implementation method as claimed in claim 1, it is characterised in that described according to single place Device processing ability value and the currency are managed, current desired run mode processor quantity and current desired work is determined The step of processor quantity of posing, includes:
According to the currency and the ratio of the single processor processing ability value and predetermined threshold value, Yi Jiyu First definite value and be worth to the current desired run mode processor quantity;
According to the ratio of the currency and the single processor processing ability value, and with the second definite value Be worth to the current desired operating conditions processor quantity.
4. administration of energy conservation implementation method as claimed in claim 1, it is characterised in that described according to upper a period of time Run mode processor quantity, operating conditions processor quantity, the current desired fortune needed for last moment needed for carving Row state processor quantity and current desired operating conditions processor quantity, obtain being used to adjust processor running status Adjustment information the step of include:
If the current desired run mode processor quantity is less than run mode processor number needed for the last moment Amount, then monitor in the preset time period after current time whether run mode processor quantity is equal needed for all moment Less than run mode processor quantity needed for the last moment, if so, then obtaining that the first predetermined number is ready State processor is changed into the adjustment information of dormant state processor;
If the current desired run mode processor quantity is more than run mode processor number needed for the last moment Amount, then obtain waking up the second predetermined number dormant state processor, the adjustment for making it be changed into ready state processor Information.
5. administration of energy conservation implementation method as claimed in claim 1, it is characterised in that described according to upper a period of time Run mode processor quantity, operating conditions processor quantity, the current desired fortune needed for last moment needed for carving Row state processor quantity and current desired operating conditions processor quantity, obtain being used to adjust processor running status Adjustment information the step of include:
If the current desired run mode processor quantity is less than run mode processor number needed for the last moment Amount, then obtain the 3rd predetermined number operating conditions processor being changed into the adjustment information of ready state processor;
If the current desired run mode processor quantity is more than run mode processor number needed for the last moment Amount, then obtain the ready state processor of the 4th predetermined number being changed into the adjustment information of operating conditions processor.
6. administration of energy conservation implementation method as claimed in claim 1, it is characterised in that described to be adjusted according to described The step of whole information carries out administration of energy conservation to processor includes:
The running status of the processor is adjusted in real time according to the adjustment information, and correspondence adjusts each The load of the individual processor.
7. device is realized in a kind of administration of energy conservation, it is characterised in that including:
Acquisition module, the currency of the variable parameter for periodically obtaining identification processor disposal ability;
Determining module, for according to single processor processing ability value and the currency, determining current desired Run mode processor quantity and current desired operating conditions processor quantity;
First processing module, for according to needed for last moment run mode processor quantity, needed for last moment Operating conditions processor quantity, the current desired run mode processor quantity and current desired operating conditions processor Quantity, obtains the adjustment information for adjusting processor running status;
Second processing module, for carrying out administration of energy conservation to processor according to the adjustment information;
Wherein, run mode processor includes operating conditions processor and/or ready state processor.
8. device is realized in administration of energy conservation as claimed in claim 7, it is characterised in that the administration of energy conservation is real Existing device also includes:
3rd processing module, for before the acquisition module performs operation, determining the variable parameter, And obtain single processor processing ability value corresponding with the variable parameter.
9. device is realized in administration of energy conservation as claimed in claim 7, it is characterised in that the determining module bag Include:
First processing submodule, for according to the currency and the single processor processing ability value and in advance If the ratio of threshold value, and with the first definite value and be worth to the current desired run mode processor quantity;
Second processing submodule, for the ratio according to the currency and the single processor processing ability value Value, and with the second definite value and be worth to the current desired operating conditions processor quantity.
10. device is realized in administration of energy conservation as claimed in claim 7, it is characterised in that the first processing mould Block includes:
3rd processing submodule, if being less than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity needed for carving, then monitor in the preset time period after current time whether all moment institute Need run mode processor quantity be respectively less than the last moment needed for run mode processor quantity, if so, then To the adjustment information that the ready state processor of the first predetermined number is changed into dormant state processor;
Fourth process submodule, if being more than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity needed for carving, then obtain waking up the second predetermined number dormant state processor, change it For the adjustment information of ready state processor.
11. device is realized in administration of energy conservation as claimed in claim 7, it is characterised in that the first processing mould Block includes:
5th processing submodule, if being less than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity, then obtain the 3rd predetermined number operating conditions processor being changed into ready state needed for carving The adjustment information of processor;
6th processing submodule, if being more than described upper a period of time for the current desired run mode processor quantity Run mode processor quantity, then obtain the ready state processor of the 4th predetermined number being changed into operating conditions needed for carving The adjustment information of processor.
12. device is realized in administration of energy conservation as claimed in claim 7, it is characterised in that the second processing mould Block includes:
7th processing submodule, it is real for being carried out according to the adjustment information to the running status of the processor When adjust, and correspondingly adjust the load of each processor.
13. a kind of network equipment, it is characterised in that including:As described in any one of claim 7 to 12 Device is realized in administration of energy conservation.
CN201610113605.0A 2016-02-29 2016-02-29 Energy-saving management implementation method, device and network equipment Active CN107132903B (en)

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 true CN107132903A (en) 2017-09-05
CN107132903B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
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
CN111200541A (en) * 2019-12-31 2020-05-26 山石网科通信技术股份有限公司 Network data processing method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214373B (en) * 2020-09-17 2022-04-12 上海金仕达软件科技有限公司 Hardware monitoring method and device and electronic equipment
CN116668209A (en) * 2022-02-21 2023-08-29 华为技术有限公司 Method and device for adjusting running state of network equipment and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN111200541A (en) * 2019-12-31 2020-05-26 山石网科通信技术股份有限公司 Network data processing method and device
CN111200541B (en) * 2019-12-31 2022-04-12 山石网科通信技术股份有限公司 Network data processing method and device

Also Published As

Publication number Publication date
WO2017148253A1 (en) 2017-09-08
CN107132903B (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN102231098B (en) There is the data processing unit of multi-graphic controller and use the method for its process data
CN105487634B (en) A kind of quantization power consumption control method towards isomery many-core chip
CN107132903A (en) A kind of administration of energy conservation implementation method, device and the network equipment
CN103823718B (en) Resource allocation method oriented to green cloud computing
CN105893148A (en) Low-energy-consumption aporadic task scheduling method based on RM strategy
CN102624546B (en) Control method, control equipment and control system for capping power consumption
CN104657215A (en) Virtualization energy-saving system in Cloud computing
CN104573383B (en) A kind of distributed evolution method suitable for building equipment Integrated Optimization Model
CN101739113A (en) Method and device for carrying out energy efficiency management in virtualized cluster system
CN202694092U (en) Constant-pressure water supply group control system based on CAN bus
CN103701889A (en) Data center energy saving method on basis of cloud computing
CN107132904B (en) Control system and control method of DDR system
CN103428008A (en) Big data distribution strategy oriented to multiple user groups
CN103699433A (en) Method and system for performing dynamic adjustment on number of tasks in Hadoop platform
CN103685542A (en) Method, device and system for migrating cloud virtual machine
CN103914346A (en) Group-based dual-priority task scheduling and energy saving method for real-time operating system
CN103023802B (en) A kind of low energy consumption dispatching patcher towards web cluster and method
CN104821906A (en) Efficient energy-saving virtual network node mapping model and algorithm
CN105847385A (en) Cloud computing platform virtual machine dispatching method based on operation duration
CN104391560A (en) Hopfield neural network-based server energy-saving method and device for cloud data center
CN103942103A (en) Method and device for generating processor scheduling policy in multi-core system and scheduling system
CN107423109A (en) Virtual machine energy-saving scheduling method based on anonymous stochastic variable
CN103685541B (en) IaaS cloud system operating rate device for controlling dynamically, system and method
EP3646138A1 (en) Power management of an event-based processing system
CN109104334B (en) Management method and device for nodes in monitoring system

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