CN104423529B - Central processing unit state adjustment method and device - Google Patents

Central processing unit state adjustment method and device Download PDF

Info

Publication number
CN104423529B
CN104423529B CN201310389350.7A CN201310389350A CN104423529B CN 104423529 B CN104423529 B CN 104423529B CN 201310389350 A CN201310389350 A CN 201310389350A CN 104423529 B CN104423529 B CN 104423529B
Authority
CN
China
Prior art keywords
state
cpu
equipment
frequency
resource information
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
Application number
CN201310389350.7A
Other languages
Chinese (zh)
Other versions
CN104423529A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310389350.7A priority Critical patent/CN104423529B/en
Publication of CN104423529A publication Critical patent/CN104423529A/en
Application granted granted Critical
Publication of CN104423529B publication Critical patent/CN104423529B/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
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Abstract

A kind of central processing unit state adjustment method of offer of the embodiment of the present invention and device, the method includes:The history resource information of collecting device determines the frequency-tuning range of the load characteristic of the equipment and the central processing unit CPU of the equipment according to the history resource information;According to the load characteristic of the equipment, selection and the matched processor state adjustable strategies of the load characteristic;The state parameter of the CPU of the equipment is adjusted according to the frequency-tuning range of the processor state adjustable strategies and the equipment.Since processor state adjustable strategies and frequency-tuning range are determined according to the history resource information of equipment, so as to timely adjust the state of CPU according to the variation of load, the state parameter for optimizing CPU, makes CPU be operated in a best state, improves the resource utilization of CPU.

Description

Central processing unit state adjustment method and device
Technical field
The present embodiments relate to data communication technology more particularly to a kind of central processing unit state adjustment methods and dress It sets.
Background technology
The energy expenditure for reducing data center, has become the heavy part of Constructing data center and operation.How to ensure Under the premise of service feature, the energy consumption of equipment is reduced, improves the research emphasis that resource utilization is industry researcher.
Advanced configuration and power-management interface(Advanced Configuration and Power Interface, ACPI)Standard is now widely used power management standard, and APCI uses processor power supply state(Processor power States, abbreviation C-State)And processor performance state(Processor performance states, abbreviation P-State) The operating status and performance state of processor are indicated respectively.ACPI provides that the C-Sate states of processor are designed to C0, C1 ... Cn various states.Wherein, C0 is processor run mode, and processor can carry out instruction processing under the state.C1 to Cn is place Manage device dormant state.When in the sleeping state, processor is unable to process instruction but consumes less energy.Processor is according to C1 Sequence to Cn constantly deepens dormancy depth, and constantly reduces power consumption.Each dormant state has corresponded to a wake-up time delay(Place Reason device is transformed into the time delay of operating status by dormant state), processor dormancy depth is deeper, and it is bigger to wake up time delay.Work as processor When in C0 states, ACPI provides, by adjusting the operating voltage and frequency of processor, processor can be made to be operated in different P-State reduces the power consumption of processor with this and reduces the generation of heat.
In the prior art, administrator closes before system starts for processor setting according to the business demand and experience of itself The state parameters such as suitable C-State depth capacitys, P-State adjustings strategy and P-State adjustable ranges.But existing skill In art, if the state parameter that administrator rule of thumb chooses with business demand cannot meet system business performance requirement, or It, will since the state parameter of Administrator cannot in real time be adjusted according to the demand of business in the state change of business The performance of influence system increases energy consumption.
Invention content
The embodiment of the present invention provides a kind of central processing unit state adjustment method and device, can according to the demand of business into The state for the adjustment CPU that row adjusts in real time, makes CPU be operated in optimum state, improves the resource utilization of CPU.
First aspect present invention provides a kind of central processing unit state adjustment method, including:
The history resource information of collecting device determines load characteristic and the institute of the equipment according to the history resource information State the frequency-tuning range of the central processing unit CPU of equipment;
According to the load characteristic of the equipment, selection and the matched processor state adjustable strategies of the load characteristic;
It is adjusted described in the equipment according to the frequency-tuning range of the processor state adjustable strategies and the equipment The state parameter of CPU.
In the first possible realization method of first aspect present invention, further include:
The operating status for monitoring the business run in the equipment adjusts the processing according to the operating status of the business Device state adjustable strategies and the frequency-tuning range.
In second of possible realization method of first aspect present invention, the history resource information includes following arbitrary A kind of information or much information combination:The status information of the CPU, the memory information of the equipment, input/output I/O read-writes Rate and network state information.
It is described to be determined according to the history resource information in the third possible realization method of first aspect present invention The frequency-tuning range of the equipment, including:
The mean frequency value of the equipment is determined according to the history resource information;
The frequency-tuning range of the equipment is determined according to the mean frequency value and the history resource information.
In conjunction with the first of first aspect present invention and first aspect to the third possible realization method, in the present invention the On the one hand in the 4th kind of possible realization method, the processor adjustable strategies include:
The power supply status C-State maximum depth values of the CPU, performance state P-State adjust strategy;
The frequency-tuning range according to the processor state adjustable strategies and the equipment adjusts the equipment The state of central processing unit CPU, including:
Strategy and the frequency-tuning range tune are adjusted according to the C-State maximum depth values of the CPU, P-State The state parameter of the whole CPU.
Second aspect of the present invention provides a kind of central processing unit state adjusting device, including:
History resource information acquisition module is used for the history resource information of collecting device;
Load characteristic determining module, the load characteristic for determining the equipment according to the history resource information;
Frequency-tuning range determining module, the central processing list for determining the equipment according to the history resource information The frequency-tuning range of first CPU;
State adjustable strategies selecting module selects matched with the load characteristic according to the load characteristic of the equipment Processor state adjustable strategies;
CPU state adjustment module, for adjusting model according to the frequency of the processor state adjustable strategies and the equipment Enclose the state parameter for the CPU for adjusting the equipment.
In the first possible realization method of second aspect of the present invention, described device further includes:
Service operation monitoring module, the operating status for monitoring the business run in the equipment, according to described The operating status of business adjusts the processor state adjustable strategies and the frequency-tuning range.
In second of possible realization method of second aspect of the present invention, the history resource information includes following arbitrary A kind of information or much information combination:The status information of the CPU, the memory information of the equipment, input/output I/O read-writes Rate and network state information.
In the third possible realization method of second aspect of the present invention, the frequency-tuning range determining module is specific Including:
Mean frequency value determination unit, the mean frequency value for determining the equipment according to the history resource information;
Frequency-tuning range determination unit, for being set according to described in the mean frequency value and history resource information determination Standby frequency-tuning range.
In conjunction with the first of second aspect of the present invention and second aspect to the third possible realization method, in the present invention the In 4th kind of possible realization method of two aspects, the processor adjustable strategies include:
The power supply status C-State maximum depth values of the CPU, performance state P-State adjust strategy;
CPU state adjustment module is specifically used for:
Strategy and the frequency-tuning range tune are adjusted according to the C-State maximum depth values of the CPU, P-State The state parameter of the whole CPU.The embodiment of the present invention provides a kind of(Method theme), including:
A kind of central processing unit state adjustment method of offer of the embodiment of the present invention and device, are provided by collecting device history Source information determines the frequency-tuning range of the load characteristic and CPU of equipment according to history resource information, then according to load characteristic Matched processor state adjustable strategies are selected, the shape of CPU is finally adjusted according to processor adjustable strategies and frequency-tuning range State, since processor adjustable strategies and frequency-tuning range are determined according to the history resource information of equipment, so as to root The state parameter of CPU is timely adjusted according to the variation of load, optimizing the state parameter of CPU makes CPU be operated in a best shape State improves the resource utilization of CPU.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow chart of central processing unit state adjustment method embodiment one of the present invention;
Fig. 2 is the flow chart of central processing unit state adjustment method embodiment two of the present invention;
Fig. 3 is the flow chart of central processing unit state adjustment method embodiment three of the present invention;
Fig. 4 is the structural schematic diagram of central processing unit state adjusting device embodiment one of the present invention;
Fig. 5 is the structural schematic diagram of central processing unit state adjusting device embodiment one of the present invention;
Fig. 6 is the structural schematic diagram of apparatus embodiments one provided by the invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart of central processing unit state adjustment method embodiment one of the present invention, as shown in Figure 1, this implementation Example method may include:
Step 101, the history resource information of collecting device, the load characteristic and frequency of equipment are determined according to history resource information Rate adjustable range.
The acquisition of the device periodically history resource information of itself, the history resource information are equipment before acquiring the moment First time period in history resource information, such as history resource information of the equipment in 5 minutes before acquiring the moment.It goes through History resource information includes any one following information or much information combination:The status information of equipment CPU, the memory letter of equipment Breath, input/output I/O read and write rates and network state information.
Wherein, the status information of CPU include the C-State maximum depth values of CPU, CPU P-State adjust strategy, CPU Frequency values and CPU utilization rate, wherein the P-State of CPU, which adjusts strategy and generally comprises following three kinds, adjusts strategy:Section Strategy can be adjusted(power save), optimum performance strategy(performance), automatic adjusument strategy.When business is to processing The processing speed of device require it is low in the case of, the P-State of CPU may be selected, and to adjust strategy be Energy Saving Strategy, at this moment the frequency of CPU Low-power consumption is also small.Optimum performance strategy is selected, at this moment to improve the processing capacity of CPU for high performance calculating business The frequency highest of CPU, performance is best, certain power consumption also highest.Automatic adjusument strategy can be according to adjusting CPU the case where business Working frequency.The memory information of equipment is the utilization rate of memory, input/output(Input/Output, abbreviation I/O)Read and write rate The frequent degree for indicating read-write operation, to needing the frequent business for outputting and inputting information, I/O read and write rates are high, network-like State information is primarily referred to as network bandwidth.
After getting the history resource information of equipment, the load characteristic of equipment is determined according to history resource information, is loaded Characteristic includes computation-intensive load, the load of I/O intensities and normal load etc..If utilization rate and the memory profit of the CPU of equipment All it is higher than the threshold value of setting with rate, it is determined that equipment loads for computation-intensive, wherein the utilization rate of CPU refers at first Between average utilization in section, memory usage also refers to the average utilization in first time period.If the profit of the CPU of equipment It is below the threshold value set with rate and memory usage, but I/O read and write rates are quickly, and network bandwidth occupies greatly, also may be used certainly An I/O read and write rates threshold value and bandwidth threshold is arranged, set when getting the I/O read and write rates in first time period and being more than Fixed I/O read and write rate threshold values, and network bandwidth is also greater than bandwidth threshold, it is determined that the loadtype of equipment is I/O intensive Load.If the utilization rate and memory usage of the CPU of equipment are both less than given threshold, I/O read and write rates and network bandwidth are also small In given threshold, it is determined that the cover type of equipment is normal load.
After determining load characteristic according to history resource information, the equipment can also be determined according to history resource information The frequency-tuning range of CPU specifically when equipment support CPU automatic frequencies adjusting, is set according to the determination of history resource information first Standby mean frequency value, can by each frequency values of the CPU in the collected first time period of equipment make and, then averaged obtains To the mean frequency value of equipment.After obtaining mean frequency value, the frequency tune of equipment is determined according to mean frequency value and history resource information Adjusting range, specifically, after determining mean frequency value, according to mean frequency value and to collect each frequency values in history resource information true Determine the mean square deviation of cpu frequency, if mean square deviation is bigger, illustrate that the fluctuation range of frequency is bigger, is determined according to the size of fluctuation range The fluctuation range of frequency, such as mean frequency value are 1.5GHZ, and fluctuation range is little, it is determined that frequency-tuning range is 1.32GHZ to 1.78HZ, if frequency-tuning range is big, it is determined that frequency-tuning range is 1.15GHZ to 1.85GHZ.Alternatively, working as It determines that frequency-tuning range is very big, then can determine minimum value that fluctuation range is collected each frequency values to maximum value.
According to the resource mean value of equipment in first time period and the frequency-tuning range of CPU, second time period can be estimated Interior resource requirement, to acquire the moment as separation, first time period is a period of time before acquiring the moment, second time period Refer to 5 minutes before the acquisition moment for a period of time after the acquisition moment, such as first time period, the second segment time refers to acquisition 5 minutes after moment, according to first 5 minutes history resource informations, resource requirement in 5 minutes after estimation.
If equipment does not support CPU automatic frequencies to adjust, according to the CPU for the equipment that the history resource information of equipment is determined Frequency-tuning range be fixed frequency grade.It specifically, can be according to the frequency level of collected equipment and the utilization rate of CPU The frequency level for determining equipment, when frequency of the equipment in first time period is very high, but the utilization rate of CPU is but very low, explanation Apparatus of load characteristic is I/O intensive, of less demanding to the processing capacity of CPU, therefore, it is necessary to reduce the frequency level of equipment, To reduce the power consumption of equipment.When frequency of the equipment in first time period is very low, but the utilization rate of CPU is very high, illustrates equipment Load characteristic is computation-intensive, requires height to the processing capacity of CPU, therefore, it is necessary to improve the frequency level of equipment.
Step 102, the load characteristic according to equipment, selection and the matched processor state adjustable strategies of load characteristic.
After determining apparatus of load characteristic, according to the state adjustable strategies of apparatus of load characteristic selection processor.It is existing In technology, most equipment supports automatic frequency adjustment, system kernel meeting adjust automatically frequency, for this kind of equipment, processor Adjustable strategies include:The C-State maximum depth values of CPU, the P-State of CPU adjust strategy.Such as it is operated in typical Linux In system, user is used simultaneously by system bios or the available C-State depth capacitys of kernel start-up parameter initialization system CPU-Freq modules, setting P-State adjust strategy and adjustable range.Xen Hypervisor then provide its included power supply Management tool xenpm(Xen power management)C-State depth capacitys, the P-State adjusting strategies of CPU is arranged And the adjustable range of P-State.Equipment for not supporting automatic frequency to adjust, processor adjustable strategies only include:CPU's C-State maximum depth values.
When load characteristic be computation-intensive load, then according to load characteristic load to computing capability require height, if The maximum depth value of C-State is set, and selects P-State to adjust strategy and adjusts strategy for optimum performance, when CPU is operated in most preferably When property regulation strategy, the frequency of CPU is maximum, and performance is best at this time.When load characteristic is that I/O intensities load, according to negative It carries characteristic and understands that load is of less demanding to computing capability, the maximum depth value of C-State is set, and P-State is selected to adjust plan Slightly energy saving adjusting strategy, common I/O intensities are loaded such as Web service, mail server business since it is to processing Device demand is relatively low, and the energy saving strategy that adjusts can be selected to adjust strategy as the P-State of CPU.It is optional for other load characteristics The P-State that automatic adjusument strategy is selected as CPU adjusts strategy.
Step 103, according to the state of processor state adjustable strategies and the CPU of the frequency-tuning range adjusting device of equipment Parameter.
When equipment support automatic frequency adjust, the state parameter of CPU refer specifically to the C-State of CPU maximum depth value, The adjusting strategy of the P-State of CPU, the frequency level of CPU, model is adjusted according to the frequency of processor state adjustable strategies and equipment Enclose the state parameter of the CPU of adjusting device specifically, by the C-State maximum depth values of CPU, P-State adjust strategy and Frequency-tuning range is sent to system kernel, adjusts the current C- of CPU according to C-State maximum depth values by system kernel State maximum depth values, and according to the working frequency of P-State adjustings strategy and frequency-tuning range adjustment CPU, such as when When CPU is operated in optimum performance and adjusts strategy pattern, highest frequency 2.4GHZ, the frequency-tuning range determined is 1.55GHZ to 1.92GHZ, the frequency range determined is a successive value, and the frequency of CPU real works is one discrete Value, also referred to as frequency level, such as CPU can only operate in 1.4GHZ, 1.5GHZ, 1.6GHZ, 1.7GHZ, 1.8GHZ these frequencies In grade, therefore, it is necessary to carry out a mapping to the frequency-tuning range determined, fluctuation range is mapped to actual frequency In grade, for example, 1.55GHZ to 1.92GHZ fluctuation range mapping after frequency level be 1.6GHZ, 1.7GHZ, 1.8GHZ, This four frequency levels of 1.9GHZ.System kernel according to the current frequency and frequency-tuning range of CPU, by cpu frequency from 2.4GHZ is reduced to any one in 1.6GHZ, 1.7GHZ, 1.8GHZ, 1.9GHZ, and the range of CPU adjustment is minimum to be cannot be below 1.6GHZ can not be higher than 1.9GHZ, can only be adjusted to the frequency of CPU within the scope of this.
As the maximum depth value that equipment does not support automatic frequency to adjust, and the state parameter of CPU is the C-State of CPU, CPU Frequency level, according to the state parameter of processor state adjustable strategies and the CPU of the frequency-tuning range adjusting device of equipment Specifically, the state of CPU is adjusted according to the maximum depth value of the C-State of CPU and the frequency level determined, by working as CPU The maximum depth value of preceding C-State is adjusted to the maximum depth value of the C-State determined, and CPU current frequencies are adjusted to The frequency level determined.
The present embodiment determines the load characteristic of equipment according to history resource information by collecting device history resource information With the frequency-tuning range of CPU, matched processor state adjustable strategies are then selected according to load characteristic, finally according to processing The state of device adjustable strategies and frequency-tuning range adjustment CPU, since processor adjustable strategies and frequency-tuning range are bases What the history resource information of equipment determined, so as to timely adjust the state parameter of CPU, optimization according to the variation of load The state parameter of CPU makes CPU be operated in a best state, improves the resource utilization of CPU.
Fig. 2 is the flow chart of central processing unit state adjustment method embodiment two of the present invention, on the basis of embodiment one On, the present embodiment is illustrated so that equipment supports the adjustment of CPU automatic frequencies as an example, as shown in Fig. 2, method provided in this embodiment Include the following steps:
Step 201, the history resource information of collecting device, the load characteristic of equipment is determined according to history resource information.
Here, the history resource information that history resource information is CPU is collected, collection period can arbitrarily set, need Illustrating, the time of collection period should not be too short, and on the one hand frequent acquisition history resource information can increase the burden of CPU, On the other hand, due to certain business have it is sudden, calculation amount is very big within a very short time, needs the processing capacity of CPU very high, Calculation amount is again seldom later, for this kind of unstable business, cannot determine equipment according to the history resource information in the short time Load characteristic.
History resource information includes the status information of CPU, the memory information of equipment, I/O read and write rates and network state letter Breath.CPU state information is primarily referred to as the maximum value of the C-State of CPU, and P-State adjusts strategy, CPU current frequencies value and CPU Utilization rate, network state information is network bandwidth.It is intensive, general that load characteristic is generally divided into computation-intensive, I/O How logical load etc. according to the load characteristic of the true equipment of history resource information can refer to the description in embodiment one, here no longer It repeats.
Step 202, determined according to history resource information equipment CPU frequency-tuning range.
First, the mean frequency value of equipment is determined according to history resource information, specifically, is acquired according in history resource information The frequency values of the CPU arrived determine the mean frequency value of equipment.Then, equipment is determined according to mean frequency value and history resource information Frequency-tuning range, specific implementation can refer to the description of embodiment one.It should be noted that step 201 and step 202 exist There is no sequencings when execution, can also be performed simultaneously.
Step 203, the load characteristic according to equipment, the C-State depth capacitys of selection and the matched CPU of load characteristic Value, P-State adjust strategy.
If it is determined that load characteristic be that I/O is intensive, then it is that energy saving adjusting is tactful to select P-State to adjust strategy, CPU When being operated in energy saving adjusting strategy pattern, cpu frequency is minimum.If it is determined that load characteristic is computation-intensive, then to select P- State adjusting strategies are that optimum performance adjusts strategy, when CPU is operated in optimum performance adjusting strategy pattern, cpu frequency highest.
Step 204 adjusts strategy and frequency-tuning range tune according to the C-State maximum depth values of CPU, P-State The state parameter of whole CPU.
Specifically, it will determine that C-State maximum depth values, P-State adjust strategy and frequency-tuning range output To system kernel, system kernel adjusts the maximum depth value of CPU, and P-State adjusts strategy, and is adjusted according to frequency-tuning range The frequency of CPU.
The operating status of the business run in step 205, monitoring device adjusts processor shape according to the operating status of business State adjustable strategies and frequency-tuning range.
Equipment adjusts processor state by monitoring the operating status of the business of operation when service operation occurs abnormal Adjustable strategies and frequency-tuning range are specifically modified the adjusting strategy and frequency-tuning range of P-State, such as When the business generation abnormal interruption run in equipment, alternatively, when the service quality QOS parameters of business are less than the QOS threshold values set When, then it is that optimum performance adjusts strategy, and the frequency-tuning range of processor is adjusted to by the adjusting Developing Tactics of P-State The maximal regulated range that equipment is supported.By the service operation situation of real-time monitoring equipment, CPU state parameter is adjusted in time, is protected The normal operation of card business improves system stability.
Method provided in this embodiment determines the loadtype of equipment, further according to the history resource information of equipment Ground determines that the C-State maximum depth values of the CPU of equipment, P-State adjust strategy according to loadtype, while according to history Resource information determines the frequency-tuning range of equipment, and strategy and frequency are adjusted according to C-State maximum depth values, P-State Adjustable range adjusts the state of CPU, since C-State maximum depth values, P-State adjust strategy and frequency-tuning range It is to be determined according to history resource information, the state of CPU can be adjusted in real time according to the variation of business, optimization equipment CPU's State parameter improves the resource utilization of CPU.
Fig. 3 is the flow chart of central processing unit state adjustment method embodiment three of the present invention, as shown in figure 3, this implementation Example with embodiment three and difference lies in, in this implementations due to equipment do not support CPU automatic frequencies adjustment, state adjust Do not include P-State in strategy and adjust strategy, when adjusting CPU state, frequency is adjusted not according to frequency-tuning range, but A frequency level is determined according to frequency-tuning range, and the frequency of CPU is adjusted to the frequency level determined.Such as Fig. 3 Shown, method provided in this embodiment includes the following steps:
Step 301, the history resource information of collecting device, the load characteristic of equipment is determined according to history resource information.
The description in embodiment one and embodiment two is can refer to, which is not described herein again.
Step 302, the load characteristic according to equipment, the C-State depth capacitys of selection and the matched CPU of load characteristic Value.
Since equipment does not support automatic frequency to adjust, the C-State of CPU is only included in the state adjustable strategies of CPU, Do not include that P-State adjusts strategy.
Step 303, determined according to history resource information equipment CPU frequency level.
Specifically, the frequency level of equipment is determined according to the frequency values of equipment and cpu busy percentage.When equipment frequency very Height, but the utilization rate of CPU is but very low, illustrates that apparatus of load characteristic is I/O intensive, it is of less demanding to the processing capacity of CPU, Therefore, it is necessary to reduce the frequency level of equipment, to reduce the power consumption of equipment.When equipment frequency it is very low, but the utilization of CPU Rate is very high, illustrates that apparatus of load characteristic is computation-intensive, requires height to the processing capacity of CPU, therefore, it is necessary to improve equipment Frequency level.
Step 304, the state parameter that CPU is adjusted according to the C-State maximum depth values of CPU and the frequency level of CPU.
The C-State maximum depth values that the value of C-State current CPU is adjusted to determine, by CPU current frequency tune It is whole to the frequency level determined.
The operating status of the business run in step 305, monitoring device adjusts processor shape according to the operating status of business State adjustable strategies and frequency level.
In the present embodiment, mainly the frequency of CPU is modified, such as when the business generation interruption run in equipment is different Often, alternatively, when QOS threshold value of the service quality QOS parameters of business less than setting, the frequency of processor is adjusted to equipment institute The maximum frequency of support.By the service operation situation of real-time monitoring equipment, CPU state parameter is adjusted in time, ensures business Normal operation improves system stability.
Method provided in this embodiment determines the loadtype of equipment, further according to the history resource information of equipment Ground determines the C-State maximum depth values of the CPU of equipment, the frequency values of CPU according to loadtype, maximum deep according to C-State Angle value and frequency values adjust the state of CPU, can adjust the state of CPU in real time according to the variation of business, optimize equipment The state parameter of CPU improves the resource utilization of CPU.
Fig. 4 is the structural schematic diagram of central processing unit state adjusting device embodiment one of the present invention, as shown, this reality The central processing unit state adjusting device for applying the offer of example includes:History resource information acquisition module 41, load characteristic determine Module 42, frequency-tuning range determining module 43, state adjustable strategies selecting module 44, CPU state adjustment module 45.
Wherein, history resource information acquisition module 41 is used for the history resource information of collecting device;
Load characteristic determining module 42, for being joined according to the state of 41 collected CPU of history resource information acquisition module Number history resource information determines the load characteristic of the state parameter equipment of CPU;
Frequency-tuning range determining module 43, the state for collecting CPU according to history resource information acquisition module 41 Parameters history resource information determines the frequency-tuning range of the central processing unit CPU of the state parameter equipment of CPU;
State adjustable strategies selecting module 44, the state parameter of the CPU determined according to load characteristic determining module 42 is set Standby load characteristic, the matched processor state adjustable strategies of state parameter load characteristic of selection and CPU;
CPU state adjustment module 45, at the state parameter of the CPU for being selected according to state adjustable strategies selecting module 44 The frequency of the state parameter equipment for the CPU that reason device state adjustable strategies and frequency-tuning range determining module 43 are determined adjusts model Enclose the state parameter of the state parameter CPU of the CPU of the state parameter equipment of adjustment CPU.
Wherein, the state parameter history resource information of CPU includes any one following information or much information combination:CPU The status information of state parameter CPU, the memory information of the state parameter equipment of CPU, input/output I/O read and write rates and net Network status information.The status information of CPU include the C-State maximum depth values of CPU, CPU P-State adjust strategy, CPU The utilization rate of frequency values and CPU, the P-State of CPU adjust strategy and generally comprise following three kinds of adjustings strategy:Energy saving adjusting plan Slightly(power save), optimum performance strategy(performance), automatic adjusument strategy.
After history resource information acquisition module 41 collects the history resource information of equipment, load characteristic determining module 42 The load characteristic of equipment, the load characteristic of equipment are determined according to history resource information to be:Computation-intensive, I/O are intensive And general load.After determining load characteristic, state adjustable strategies selecting module 44 determines equipment according to load characteristic The adjusting strategy of C-State maximum depth values and P-State.
The state parameter processor adjustable strategies of CPU include:The power supply status C-State of the state parameter CPU of CPU is maximum Depth value, performance state P-State adjust strategy;CPU state adjustment module is specifically used for:According to the state parameter CPU's of CPU C-State maximum depth values, P-State adjust the state ginseng of strategy and the state parameter frequency-tuning range adjustment CPU of CPU The state parameter of number CPU.
Device provided in this embodiment can be used for technical solution shown in embodiment of the method shown in execution method Fig. 1, specifically Realization method is similar with technique effect, is not repeating here.
Fig. 5 is the structural schematic diagram of central processing unit state adjusting device embodiment one of the present invention, as shown, this reality The central processing unit state adjusting device for applying the offer of example includes:History resource information acquisition module 51, load characteristic determine Module 52, frequency-tuning range determining module 53, state adjustable strategies selecting module 54, CPU state adjustment module 55, business fortune Row monitoring module 56.
Wherein, history resource information acquisition module 51 is used for the history resource information of collecting device;
Load characteristic determining module 52, for being joined according to the state of 51 collected CPU of history resource information acquisition module Number history resource information determines the load characteristic of the state parameter equipment of CPU;
Frequency-tuning range determining module 53, the state for collecting CPU according to history resource information acquisition module 51 Parameters history resource information determines the frequency-tuning range of the central processing unit CPU of the state parameter equipment of CPU;
State adjustable strategies selecting module 54, the state parameter of the CPU determined according to load characteristic determining module 52 is set Standby load characteristic, the matched processor state adjustable strategies of state parameter load characteristic of selection and CPU;
CPU state adjustment module 55, at the state parameter of the CPU for being selected according to state adjustable strategies selecting module 54 The frequency of the state parameter equipment for the CPU that reason device state adjustable strategies and frequency-tuning range determining module 53 are determined adjusts model Enclose the state parameter of the state parameter CPU of the CPU of the state parameter equipment of adjustment CPU.
Service operation monitoring module 56, the operation shape of the business run in the state parameter equipment of monitoring CPU State adjusts the state parameter processor state adjustable strategies and CPU of CPU according to the operating status of the state parameter business of CPU State parameter frequency-tuning range.
Wherein, the state parameter history resource information of CPU includes any one following information or much information combination:CPU The status information of state parameter CPU, the memory information of the state parameter equipment of CPU, input/output I/O read and write rates and net Network status information.
Load characteristic determining module 52, the history resource for collecting equipment in history resource information acquisition module 51 are believed After breath, load characteristic determining module 52 determines the load characteristic of equipment according to history resource information, and the load characteristic of equipment can be with For:Computation-intensive, I/O are intensive and generally load.After determining load characteristic, state adjustable strategies selecting module 54 According to load characteristic, the C-State maximum depth values of equipment and the adjusting strategy of P-State are determined.
In the present embodiment, the state parameter frequency-tuning range determining module 53 of CPU specifically includes:
Mean frequency value determination unit 531, for determining that the state of CPU is joined according to the state parameter history resource information of CPU The mean frequency value of number equipment;
Frequency-tuning range determination unit 532, for according to the state parameter mean frequency value of CPU and the state parameter of CPU History resource information determines the frequency-tuning range of the state parameter equipment of CPU.
Performance state P-State adjusts strategy;CPU state adjust CPU state parameter processor adjustable strategies include: Power supply status C-State maximum depth values, the module of the state parameter CPU of CPU is specifically used for:According to the state parameter CPU of CPU C-State maximum depth values, P-State adjust strategy and CPU state parameter frequency-tuning range adjustment CPU state The state parameter of parameter CPU.
Device provided in this embodiment can be used for executing method shown in any one embodiment of the method for the invention, specifically Realization method is similar with technique effect, and which is not described herein again.
Fig. 6 is the structural schematic diagram of apparatus embodiments one provided by the invention, as shown in fig. 6, the offer of the present embodiment Equipment 600 includes:Processor 61 and memory 62, wherein the storage of memory 62 executes instruction, when equipment is run, processor It is communicated between 61 and memory 62, processor 62 executes instruction so that equipment 600 executes following methods:
The history resource information of collecting device 600, according to history resource information determine equipment 600 load characteristic and itself Frequency-tuning range;
According to the load characteristic of equipment 600, selection and the matched processor state adjustable strategies of load characteristic;
The state parameter of itself is adjusted according to the frequency-tuning range of processor state adjustable strategies and equipment.
Processor 61 is additionally operable to, the operating status of the business run in monitoring device 600, according to the operating status tune of business Whole processor state adjustable strategies and frequency-tuning range.
History resource information includes any one following information or much information combination:The status information of CPU, equipment it is interior Deposit information, input/output I/O read and write rates and network state information.
Processor 61 is specifically used for, and the mean frequency value of equipment is determined according to history resource information;According to mean frequency value and go through History resource information determines the frequency-tuning range of equipment.
Processor adjustable strategies include:
The power supply status C-State maximum depth values of CPU, performance state P-State adjust strategy;
Processor 61 is specifically used for, and strategy and frequency tune are adjusted according to the C-State maximum depth values of CPU, P-State Adjusting range adjusts the state parameter of itself.
Method provided in this embodiment can be used for executing the technical solution that any one embodiment of the method for the invention provides, Its specific implementation is similar with technique effect, and which is not described herein again.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (8)

1. a kind of central processing unit state adjustment method, which is characterized in that including:
The history resource information of collecting device determines the load characteristic of the equipment according to the history resource information and described sets The frequency-tuning range of standby central processing unit CPU, the history resource information include following any one information or a variety of Information combines:The status information of the CPU, the memory information of the equipment, input/output I/O read and write rates and network state Information;
The load characteristic that the equipment is determined according to the history resource information, including:
According to the status information of CPU, the memory information of equipment, the input/output I/O read and write rates in the history resource information The load characteristic of the equipment is determined with network state information;
The frequency-tuning range of the CPU that the equipment is determined according to the history resource information, including:
The frequency-tuning range of the CPU of the equipment is determined according to the status information of the CPU in the history resource information;
According to the load characteristic of the equipment, selection and the matched processor state adjustable strategies of the load characteristic;
The load characteristic of the equipment includes any one of computation-intensive load, the load of I/O intensities or normal load;
Adjust the CPU's of the equipment according to the frequency-tuning range of the processor state adjustable strategies and the equipment State parameter.
2. according to the method described in claim 1, it is characterized in that, further including:
The operating status for monitoring the business run in the equipment adjusts the processor shape according to the operating status of the business State adjustable strategies and the frequency-tuning range.
3. according to the method described in claim 1, it is characterized in that, described determine the equipment according to the history resource information Frequency-tuning range, including:
The mean frequency value of the equipment is determined according to the history resource information;
The frequency-tuning range of the equipment is determined according to the mean frequency value and the history resource information.
4. according to claim 1-3 any one of them methods, which is characterized in that the processor adjustable strategies include:
The power supply status C-State maximum depth values of the CPU, performance state P-State adjust strategy;
The frequency-tuning range according to the processor state adjustable strategies and the equipment adjusts the center of the equipment The state of processing unit CPU, including:
Strategy is adjusted according to the C-State maximum depth values of the CPU, P-State and the frequency-tuning range adjusts institute State the state parameter of CPU.
5. a kind of central processing unit state adjusting device, which is characterized in that including:
History resource information acquisition module is used for the history resource information of collecting device, and the history resource information includes following Any one information or much information combination:The status information of CPU, the memory information of the equipment, input/output I/O read-writes Rate and network state information;
Load characteristic determining module, the load characteristic for determining the equipment according to the history resource information;
The load characteristic of the equipment includes any one of computation-intensive load, the load of I/O intensities or normal load;
Frequency-tuning range determining module, the central processing unit for determining the equipment according to the history resource information The frequency-tuning range of CPU;
State adjustable strategies selecting module, according to the load characteristic of the equipment, selection and the matched processing of the load characteristic Device state adjustable strategies;
CPU state adjustment module, for the frequency-tuning range tune according to the processor state adjustable strategies and the equipment The state parameter of the CPU of the whole equipment;
The load characteristic determining module is specifically used for according to the status information of the CPU in the history resource information, equipment Memory information, input/output I/O read and write rates and network state information determine the load characteristic of the equipment;
The frequency-tuning range determining module is specifically used for true according to the status information of the CPU in the history resource information The frequency-tuning range of the CPU of the fixed equipment.
6. device according to claim 5, which is characterized in that further include:
Service operation monitoring module, the operating status for monitoring the business run in the equipment, according to the business Operating status adjust the processor state adjustable strategies and the frequency-tuning range.
7. device according to claim 5, which is characterized in that the frequency-tuning range determining module specifically includes:
Mean frequency value determination unit, the mean frequency value for determining the equipment according to the history resource information;
Frequency-tuning range determination unit, for determining the equipment according to the mean frequency value and the history resource information Frequency-tuning range.
8. according to claim 5-7 any one of them devices, which is characterized in that the processor adjustable strategies include:
The power supply status C-State maximum depth values of the CPU, performance state P-State adjust strategy;
CPU state adjustment module is specifically used for:
Strategy is adjusted according to the C-State maximum depth values of the CPU, P-State and the frequency-tuning range adjusts institute State the state parameter of CPU.
CN201310389350.7A 2013-08-30 2013-08-30 Central processing unit state adjustment method and device Active CN104423529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310389350.7A CN104423529B (en) 2013-08-30 2013-08-30 Central processing unit state adjustment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310389350.7A CN104423529B (en) 2013-08-30 2013-08-30 Central processing unit state adjustment method and device

Publications (2)

Publication Number Publication Date
CN104423529A CN104423529A (en) 2015-03-18
CN104423529B true CN104423529B (en) 2018-08-21

Family

ID=52972822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310389350.7A Active CN104423529B (en) 2013-08-30 2013-08-30 Central processing unit state adjustment method and device

Country Status (1)

Country Link
CN (1) CN104423529B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569574A (en) * 2015-10-10 2017-04-19 中兴通讯股份有限公司 Frequency management method and device for multicore CPU (Central Processing Unit)
CN105892615A (en) * 2015-12-22 2016-08-24 乐视移动智能信息技术(北京)有限公司 CPU load collecting method and device
CN105677482B (en) * 2015-12-31 2020-12-18 联想(北京)有限公司 Frequency adjusting method and electronic equipment
CN106998340B (en) * 2016-01-22 2020-10-30 大唐移动通信设备有限公司 Load balancing method and device for board resources
CN105740075B (en) * 2016-01-27 2020-03-31 浪潮(北京)电子信息产业有限公司 CPU scheduling method and system
CN107689877B (en) * 2016-08-03 2021-05-18 中兴通讯股份有限公司 Parameter adjusting method and device
CN107124445B (en) * 2017-03-31 2019-12-13 北京奇艺世纪科技有限公司 data acquisition method and device
CN107239345A (en) * 2017-06-06 2017-10-10 深圳天珑无线科技有限公司 Data processing method and device
CN107729089B (en) * 2017-10-31 2022-04-19 努比亚技术有限公司 Method and device for adjusting CPU (Central processing Unit) parameters, mobile terminal and storage medium
CN108200473B (en) * 2018-02-01 2020-12-08 深圳创维-Rgb电子有限公司 CPU power control method, smart television and storage medium
CN112912820A (en) * 2018-10-26 2021-06-04 华为技术有限公司 Energy efficiency adjustment for CPU regulators
CN109639683A (en) * 2018-12-14 2019-04-16 浩云科技股份有限公司 The method and device of processor working frequency is adjusted based on stream medium data
CN110377420A (en) * 2019-06-25 2019-10-25 苏州浪潮智能科技有限公司 A kind of frequency multiplying method of CPU, super frequency system and relevant apparatus
CN112422359A (en) * 2020-09-22 2021-02-26 深圳市修远文化创意有限公司 Method and server for adjusting upper and lower limit values of network transmission rate
CN114442793B (en) * 2020-10-30 2023-07-07 中山市江波龙电子有限公司 Method for adjusting operating frequency of storage controller, storage device and storage medium
CN113722096B (en) * 2021-08-25 2023-09-12 中国电力科学研究院有限公司 CPU frequency adjusting method, system, equipment and storage medium of edge computing node

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379453A (en) * 2006-03-07 2009-03-04 英特尔公司 Method and apparatus for using dynamic workload characteristics to control CPU frequency and voltage scaling
CN102681650A (en) * 2012-05-10 2012-09-19 北京邦诺存储科技有限公司 Power supply control energy-saving method and corresponding storage system thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379453A (en) * 2006-03-07 2009-03-04 英特尔公司 Method and apparatus for using dynamic workload characteristics to control CPU frequency and voltage scaling
CN102681650A (en) * 2012-05-10 2012-09-19 北京邦诺存储科技有限公司 Power supply control energy-saving method and corresponding storage system thereof

Also Published As

Publication number Publication date
CN104423529A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN104423529B (en) Central processing unit state adjustment method and device
Zhou et al. Virtual machine placement algorithm for both energy-awareness and SLA violation reduction in cloud data centers
US8473768B2 (en) Power control apparatus and method for cluster system
US9618997B2 (en) Controlling a turbo mode frequency of a processor
US8001403B2 (en) Data center power management utilizing a power policy and a load factor
EP2646890B1 (en) Dynamic power balancing among blade servers in a chassis
US9336106B2 (en) Dynamically limiting bios post for effective power management
CN105302630B (en) A kind of dynamic adjusting method and its system of virtual machine
CN108319502A (en) A kind of method and device of the D2D tasks distribution based on mobile edge calculations
CN101515161A (en) Centralized energy management method and system
JP2009181571A (en) System and method to establish and dynamically control energy consumption in large-scale data center or it infrastructure
CN102426544A (en) Task allocating method and system
JP2013500520A (en) Method and apparatus for non-uniformly changing the performance of a computing unit according to performance sensitivity
CN103037109B (en) Multicore equipment energy consumption management method and device
CN103645795A (en) Cloud computing data center energy saving method based on ANN (artificial neural network)
CN104049716A (en) Computer energy-saving method and system combined with temperature sensing
Duy et al. A prediction-based green scheduler for datacenters in clouds
CN114710563A (en) Cluster energy saving method and device
CN109488628A (en) One kind being used for storage system cooling fan control method, device and storage medium
CN111142647A (en) Energy saving method and system for IT system
WO2016171950A1 (en) Multivariable control for power-latency management to support optimization of data centers or other systems
CN112910061B (en) Control method, device and medium for charging system load balancing
CN101685335A (en) Application server based on SEDA as well as energy-saving device and method thereof
Sakamoto et al. Analyzing resource trade-offs in hardware overprovisioned supercomputers
CN110806918A (en) Virtual machine operation method and device based on deep learning neural network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant