CN102163170B - Method and device for calculating power consumption of computer - Google Patents

Method and device for calculating power consumption of computer Download PDF

Info

Publication number
CN102163170B
CN102163170B CN2011100827379A CN201110082737A CN102163170B CN 102163170 B CN102163170 B CN 102163170B CN 2011100827379 A CN2011100827379 A CN 2011100827379A CN 201110082737 A CN201110082737 A CN 201110082737A CN 102163170 B CN102163170 B CN 102163170B
Authority
CN
China
Prior art keywords
power consumption
hardware device
hardware
database
preset
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
CN2011100827379A
Other languages
Chinese (zh)
Other versions
CN102163170A (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.)
Beijing Qizhi Business Consulting Co ltd
Beijing Qihoo Technology Co Ltd
Original Assignee
Qizhi Software Beijing 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 Qizhi Software Beijing Co Ltd filed Critical Qizhi Software Beijing Co Ltd
Priority to CN2011100827379A priority Critical patent/CN102163170B/en
Publication of CN102163170A publication Critical patent/CN102163170A/en
Application granted granted Critical
Publication of CN102163170B publication Critical patent/CN102163170B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a method and a device for calculating power consumption of a computer, which can help users to calculate the power consumption of the computer more accurately and quickly. The method comprises the following steps of: obtaining configuration information of each hardware device in the computer; inquiring power consumption data corresponding to the configuration information of each hardware device from a pre-set database; and adding the power consumption data of each hardware device to calculate the total power consumption of the computer. The method and the device provided by the invention can help users to quickly learn the power consumption of the computer under a condition that the users are not familiar with the configuration of the computer. Moreover, the configuration of each hardware device also can be selected by the users, and the method and the device provided by the invention also can calculate the total power consumption of the computer according to the configuration information set by the users so as to provide a reference for users to choose computers.

Description

A kind of computing machine power consumption calculation method and device
Technical field
The present invention relates to the consumption detection technology, particularly relate to a kind of computing machine power consumption calculation method and device.
Background technology
Computer application now is very general, and computer has become the indispensable helper of modern handle official bussiness, is also standing learning and entertainment tool.The low-carbon (LC) life is all being advocated in the whole world now, but the power consumption of computer is more and more higher, and especially high-end computer, more than fully loaded power consumption can easily reach 400W, approach the level of an electric cooker.Although using the user of high-end computer is minority, the computer power consumption becomes the problem that the user pays close attention to really.
Usually, the power consumption of televisor is below 80W, and computer is greatly between 250-400W.Suppose that a computer power consumption hourly is 300W, within one day, open 10 hours, calculated by one month 30 days, the power consumption of computer every month is exactly 300W * 10 hour * 30 days=90KW, i.e. 90 degree electricity.In fact, this is a conservative estimation, but hence one can see that, and the power consumption of computer can not be ignored.
The calculating of computer power consumption early existing people starts further investigation, and has proposed various testing standard, and different testing standards has different test results.But most of test result is all some professional terminology standard data before, for domestic consumer, reference value is little, and what in fact the user more paid close attention to is and the closely-related data of own vital interests.
Summary of the invention
The invention provides a kind of computing machine power consumption calculation method and device, can help the user to calculate more accurately and rapidly the computer power consumption.
In order to address the above problem, the invention discloses a kind of computing machine power consumption calculation method, comprising:
Obtain the configuration information of each hardware device in computing machine;
The inquiry power consumption data corresponding with the configuration information of each hardware device from preset database;
Power consumption data addition by each hardware device, calculate the computing machine total power consumption.
Wherein, described from preset database the inquiry power consumption data corresponding with the configuration information of each hardware device, comprise: if comprise model in the configuration information of hardware device,, according to model preset in database and the mapping relations of power consumption, directly search the power consumption data corresponding with this model; Otherwise, the first model corresponding with the mapping relationship searching of model according to configuration information preset in database, and then according to model preset in database the power consumption data corresponding with the mapping relationship searching of power consumption.
Preferably, to meeting the hardware device of preset type of hardware, according to the model of hardware device, search corresponding power consumption data from database; To not meeting the hardware device of described preset type of hardware, the power consumption data corresponding with the mapping relationship searching of power consumption according to the type of hardware of database initialize.
Wherein, described preset type of hardware comprises: the type of hardware that surpasses preset range with different its power consumption difference of ardware model number; The described hardware device that does not meet preset type of hardware comprises: with the type of hardware of different its power consumption differences of ardware model number within described preset range.
Preferably, the fixing hardware device for power consumption, the average power consumption data that in described database, the power consumption data corresponding with the type hardware device is the type hardware device.
Preferably, to meeting the hardware device of preset ardware model number, according to the model of described hardware device, search corresponding power consumption data from database; To not meeting the hardware device of described preset ardware model number, the power consumption data corresponding with the mapping relationship searching of power consumption according to the hardware device type of database initialize.
Preferably, before the described configuration information that obtains each hardware device in computing machine, also comprise: the configuration information that automatically detects each hardware device in current computer; The described configuration information that obtains each hardware device that described detection obtains that is retrieved as.
Preferably, before the described configuration information that obtains each hardware device in computing machine, also comprise: the configuration information of each hardware device in any computing machine of free setting; The described configuration information that is retrieved as each hardware device that obtains described setting.
Preferably, described method also comprises: according to the computing machine total power consumption calculated, select the power supply be complementary.
Preferably, described method also comprises: the energy saver mode that User is selected, lower power consumption data that comprises hardware device of this energy saver mode of inquiry from preset database; The power consumption data obtained according to described inquiry, the power consumption of showing selected energy saver mode to the user, and/or show to the user power consumption that selected energy saver mode can be saved.
The present invention also provides a kind of computing machine power consumption calculation device, comprising:
The hardware configuration acquisition module, for obtaining the configuration information of each hardware device of computing machine;
The power consumption enquiry module, for the inquiry of the database from the preset power consumption data corresponding with the configuration information of each hardware device;
The power consumption calculation module, the power consumption data addition for by each hardware device, calculate the computing machine total power consumption.
Wherein, if comprise model in the configuration information of hardware device, described power consumption enquiry module, according to model preset in database and the mapping relations of power consumption, is directly searched the power consumption data corresponding with this model; Otherwise described power consumption enquiry module is the model corresponding with the mapping relationship searching of model according to configuration information preset in database first, and then according to model preset in database the power consumption data corresponding with the mapping relationship searching of power consumption.
Preferably, to meeting the hardware device of preset type of hardware, described power consumption enquiry module is searched corresponding power consumption data according to the model of hardware device from database; To not meeting the hardware device of described preset type of hardware, the power consumption data that described power consumption enquiry module is corresponding with the mapping relationship searching of power consumption according to the hardware device type of database initialize.
Wherein, described preset type of hardware comprises: the type of hardware that surpasses preset range with different its power consumption difference of ardware model number; The described hardware device that does not meet preset type of hardware comprises: with the type of hardware of different its power consumption differences of ardware model number within described preset range.
Preferably, the fixing hardware device for power consumption, the average power consumption data that in described database, the power consumption data corresponding with the type hardware device is the type hardware device.
Preferably, to meeting the hardware device of preset ardware model number, described power consumption enquiry module is searched corresponding power consumption data according to the model of described hardware device from database; To not meeting the hardware device of described preset ardware model number, the power consumption data that described power consumption enquiry module is corresponding with the mapping relationship searching of power consumption according to the type of hardware of database initialize.
Preferably, described device also comprises: hardware detecting module, for automatically detecting the configuration information of each hardware device of current computer; Described hardware configuration acquisition module is to obtain the configuration information that described hardware detecting module detects each hardware device obtained.
Preferably, described device also comprises: module is selected in configuration, for the configuration information of any each hardware device of computing machine of free setting; Described hardware configuration acquisition module is to obtain the configuration information that each hardware device of module setting is selected in described configuration.
Preferably, described device also comprises: power adaptation module, for the computing machine total power consumption calculated according to the power consumption calculation module, select the power supply be complementary.
Preferably, described device also comprises: energy saving calculation module, the energy saver mode of selecting for User, lower power consumption data that comprises hardware device of this energy saver mode of inquiry from preset database; And the power consumption data obtained according to described inquiry, the power consumption of showing selected energy saver mode to the user, and/or show to the user power consumption that selected energy saver mode can be saved.
Compared with prior art, the present invention includes following advantage:
The first, the present invention has collected various computer hardware equipments corresponding power consumption data under various configuring conditions in advance, and is stored in database.When the user need to understand the computing machine power consumption, the present invention can detect the configuration information of each hardware device of computing machine automatically, and then Query Database obtains the power consumption data of each hardware device, and all power consumption data additions calculate the total power consumption of computing machine.This method can help the user and obtain fast the power consumption of computer in the situation that do not understand the computer configuration.
In addition, the present invention also can be by the configuration of selected each hardware device of user, and the configuration information of setting according to the user calculate total power consumption, facilitate the user when choosing computer as a reference.
The second, the present invention, for the relatively-stationary hardware device of power consumption, as mouse, keyboard etc., adopts the average power consumption value to be calculated; And, for the hardware device differed greatly with different its power consumptions of ardware model number, as CPU, hard disk, mainboard etc., the Main Basis ardware model number is inquired about corresponding power consumption.
The 3rd, after automatically obtaining the computing machine total power consumption, the power supply that the user can select power to be complementary according to this power consumption data, or it is selective also the power supply be complementary directly can be recommended to the user, is very easy to the user.
The 4th, the present invention can also calculate the saving power consumption under different energy saver modes, facilitates the user to select different energy saver modes.
The accompanying drawing explanation
Fig. 1 is the process flow diagram of a kind of described computing machine power consumption calculation method of the embodiment of the present invention;
Fig. 2 is the schematic diagram of power consumption calculation in the described application one of the embodiment of the present invention;
Fig. 3 is the schematic diagram of power consumption calculation in the described application two of the embodiment of the present invention;
Fig. 4 is the structural drawing of the described a kind of computing machine power consumption calculation device of the embodiment of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
The invention provides a kind of computing machine power consumption calculation method and device, can obtain fast the power consumption of current computer or other any computing machines, and offer the user, facilitate the user to understand in time the power consumption of own computer, or facilitate the user to understand the power consumption situation under various configurations when choosing computer.
Below by embodiment, be elaborated.
With reference to Fig. 1, it is the process flow diagram of a kind of described computing machine power consumption calculation method of the embodiment of the present invention.
Step 101, obtain the configuration information of each hardware device in computing machine;
Wherein, described configuration information comprises the information such as brand, model, size or size of hardware device, and for example, the configuration of certain computer is as follows:
Processor: the Celeron of Intel (Celeron) D 3.20GHz
Mainboard: the 0A48 of Microstar (ATI RS400/200)
Internal memory: 1GB (remember scientific and technological DDR2667MHz/ gold scholar pause DDR2667MHz)
Primary Hard Drive: the HDS721680PLA380 of Hitachi (80GB)
Video card: ATI Radeon Xpress 200Series (RC410) (128MB/ Microstar)
Display: the HWP26E0HPw17e of Hewlett-Packard (17.2 inches)
CD-ROM drive: the ATAPI DVD D DH16DYP of Hewlett-Packard DVD drive
Sound card: Realtek ALC862@ATI IXP SB450 HD Audio
Network interface card: Atheros AR5005G Wireless Network Adapter
Step 102, the inquiry power consumption data corresponding with the configuration information of each hardware device from preset database;
The embodiment of the present invention has been collected various computer hardware equipments corresponding power consumption data under various configuring conditions in advance, and this mapping relations of configuration information and power consumption data are stored in database.When carrying out power consumption calculation, if obtained the configuration information of hardware device, just can from database, directly inquire about and obtain corresponding power consumption data.Wherein, described power consumption data is the theoretical power consumption peak value of hardware device under maximum working load.
Concrete, in actual applications, the mapping relations of unit type and the power consumption data of can prestoring in database, if comprise model in the configuration information of the hardware device obtained, can, according to model preset in database and the mapping relations of power consumption, directly search the power consumption data corresponding with this model.
But, do not comprise model in some configuration information obtained, but the information such as some vendor ids, device id, in this case, the mapping relations of also prestored in the described database of the embodiment of the present invention described configuration information (referring to the information such as vendor id, device id) and model.According to these mapping relations, can find the unit type corresponding with configuration informations such as vendor id, device ids, and then arrive corresponding power consumption according to unit type with the mapping relationship searching of power consumption data.
Step 103, the power consumption data addition by each hardware device, calculate the computing machine total power consumption.
After obtaining the power consumption data of each hardware device, carry out the total power consumption that addition can obtain computing machine.
Content based on above-described embodiment, in another preferred embodiment, step 102 further can also comprise following content:
(1) to meeting the hardware device of preset type of hardware, according to the model of described hardware device, search corresponding power consumption data from database; To not meeting the hardware device of described preset type of hardware, the power consumption data corresponding with the mapping relationship searching of power consumption according to the type of hardware of database initialize.
Wherein, described type of hardware refers to the hardware class such as CPU, hard disk, mainboard, and the model of described hardware device refers to acer0219 model display, the E5300 of Intel processor etc.Usually, the hardware of same type all includes Multiple Type.
Described preset type of hardware comprises: the type of hardware that surpasses preset range with different its power consumption difference of ardware model number; Accordingly, the described hardware device that does not meet preset type of hardware comprises: with the hardware device of different its power consumption differences of ardware model number within described preset range, the i.e. relatively-stationary hardware device of power consumption.
Therefore, the fixing hardware device for power consumption, can not distinguish ardware model number and adopt the average power consumption value, directly search power consumption corresponding with the hardware of the type in database, the average power consumption data that in wherein said database, the power consumption data corresponding with the type hardware device is the type hardware device.For example, for power consumptions such as CD-ROM drive, mouse, keyboards, less and relatively-stationary hardware device, can adopt the average power consumption value to be calculated.
(2) to meeting the hardware device of preset ardware model number, according to the model of described hardware device, search corresponding power consumption data from database; To not meeting the hardware device of described preset ardware model number, the power consumption data corresponding with the mapping relationship searching of power consumption according to the type of hardware of database initialize.
Generally, described database only can be listed several models commonly used to the hardware of one type, can not list all models, and therefore for the ardware model number had in database, directly Query Database obtains the power consumption corresponding with this model; And for the ardware model number do not had in database, can Query Database in the power consumption of hardware of the type, now this power consumption can be the average power consumption of the hardware of the type.For example, the CPU model that can directly inquire in database has tri-kinds of A, B, C, if calculate the power consumption of the CPU that model is D, database provides the average power consumption data of CPU.
Based on above-mentioned power consumption calculation flow process, the embodiment of the present invention provides following two kinds of application:
Application one: the power consumption of calculating current computer
The present embodiment can calculate the power consumption of current computer automatically, detailed process is: the configuration information that at first automatically detects each hardware device in current computer, and then execution step 101-103, obtain this hardware detection result, obtain the power consumption of single hardware device according to this hardware detection result queries database, and the power consumption addition of single hardware device is obtained to total power consumption.
Wherein, the hardware device difference, the method that automatically detects configuration information is also different, for example:
If automatically detect the configuration information of CPU, to CPU bottom program, send instruction, comprised character string information in the return data of this instruction, may comprise type information in this character string information.
If automatically detect the configuration information of video card, first travel through boards all in computing machine (mainboard, video card, sound card, network interface cards etc. are referred to as board), then find the board (being video card) for showing, read the configuration information (as information such as vendor id, device ids) of this video card.
With reference to Fig. 2, it is the schematic diagram of power consumption calculation in the described application one of the embodiment of the present invention.Demonstrate the specific configuration information of computing machine main hardware equipment as mainboard, processor, video card, hard disk, internal memory, display in this figure, and power consumption corresponding to each hardware device and the total power consumption value of total.
The method of this automatic calculating current computer power consumption, can help the user to understand more exactly the power consumption situation of computer; And, configuration information and the corresponding power consumption data of searching one by one each hardware device without the user.
Application two: the power consumption of calculating other any computing machines
The user also can be according to oneself need to freely select other hardware devices to carry out power consumption calculation according to device type.Detailed process is: the configuration information of each hardware device in any computing machine of first free setting, and then execution step 101-103, obtain each hardware configuration information that the user sets, obtain the power consumption of single hardware device according to the hardware configuration information Query Database of this setting, and the power consumption addition of single hardware device is obtained to total power consumption.
With reference to Fig. 3, it is the schematic diagram of power consumption calculation in the described application two of the embodiment of the present invention.For each hardware device, the option that relevant configuration all is provided is freely selected for the user, and user's different hardware configuration of can arbitrarily arranging in pairs or groups is calculated the power consumption situation under this configuration.After setting up the configuration of each hardware, click " automatically calculating power consumption " button, on interface, can demonstrate the total power consumption value.In Fig. 3, because the configuration of mainboard, processing and video card has not arranged, therefore can't be calculated.
Above-mentioned application two can help the user to understand the power consumption situation under different configurations before choosing computer, in order to select more suitable computer according to the needs of oneself.
Further, preferred, according to the computing machine total power consumption calculated, can also help the user to select the power supply of power match.And the database of all right preset storage computing machine power consumption of system and power supply corresponding relation after calculating the computing machine power consumption, is automatically inquired about the power supply be complementary, and is presented on the interface shown in Fig. 2 or Fig. 3 in this database, recommends the user and selects.Wherein, the power information of recommendation can be listed the details such as model, manufacturer, can recommend multiple power sources to select for user priority simultaneously.
Because computer power supply is being brought into play vital effect to the premium properties of a computing machine, whether the operation of machine stablizes depends on matched power supply to a great extent, waste a little if buy a powerful power supply, if buy a low power power supply, can not meet again need for electricity.And the described method of the embodiment of the present invention can help the user to choose suitable power supply, thus using electricity wisely.
Preferably, the power consumption calculation method based on above-mentioned, can also calculate the power consumption (or electric weight) of saving to different energy saver modes.Concrete, the energy saver mode that User is selected, lower power consumption data that comprises hardware device of this energy saver mode of inquiry from preset database; And the power consumption data obtained according to described inquiry, calculate the power consumption of user-selected energy saver mode, and show to the user; And, by before starting energy saver mode and the power consumption data started after energy saver mode subtract each other, can obtain the power consumption that user-selected energy saver mode can be saved, and show to the user.
Wherein, described energy saver mode can have multiple, as closes the energy saver mode of display, lightens or dim the energy saver mode of display, and the energy saver mode of dormancy/standby starts the pattern of energy-conservation wallpaper, etc.Under different energy saver modes, the hardware started or the state of hardware are all different.For example closing under the energy saver mode of display, display is closed automatically, now can be from database the power consumption of query display device under starting state, this power consumption data is exactly to close the power consumption of saving under the pattern of display.
Again for example, lightening display and dimming under two kinds of energy saver modes of display, the display brightness of display (being described hardware state) is different, and wherein under a kind of pattern, display is in lightening state, and under another kind of pattern, display is in dimming state.The power consumption of display under different display brightness in Query Database, and compare with the power consumption before starting energy saver mode, just can calculate the power consumption of saving under the energy saver mode that lightens or dim display.
Content based on said method embodiment, the present invention also provides corresponding device embodiment.
With reference to Fig. 4, it is the structural drawing of the described a kind of computing machine power consumption calculation device of the embodiment of the present invention.
Described computing machine power consumption calculation device comprises with lower module:
Hardware configuration acquisition module 41, for obtaining the configuration information of each hardware device of computing machine;
Power consumption enquiry module 42, for the inquiry of the database from the preset power consumption data corresponding with the configuration information of each hardware device;
Power consumption calculation module 43, the power consumption data addition for by each hardware device, calculate the computing machine total power consumption.
Wherein, if comprise model in the configuration information of the hardware device that hardware configuration acquisition module 41 obtains, power consumption enquiry module 42 can, according to model preset in database and the mapping relations of power consumption, directly be searched the power consumption data corresponding with this model; But, if do not comprise model in the configuration information obtained, but the information such as some vendor ids, device id, power consumption enquiry module 42 can be first according to configuration information preset in database (referring to the information such as vendor id, the device id) model corresponding with the mapping relationship searching of model, and then according to model preset in database the power consumption data corresponding with the mapping relationship searching of power consumption.
Further preferred, to meeting the hardware device of preset type of hardware, described power consumption enquiry module 42 is searched corresponding power consumption data according to the model of hardware device from database; To not meeting the hardware device of described preset type of hardware, the power consumption data that described power consumption enquiry module 42 is corresponding with the mapping relationship searching of power consumption according to the hardware device type of database initialize.Wherein, described preset type of hardware comprises: the type of hardware that surpasses preset range with different its power consumption difference of ardware model number; The described hardware device that does not meet preset type of hardware comprises: with the type of hardware of different its power consumption differences of ardware model number within described preset range.For example, the fixing hardware device for power consumption, in described database, the power consumption data corresponding with the type hardware device is the average power consumption data of the type hardware device.
Further preferred, to meeting the hardware device of preset ardware model number, described power consumption enquiry module 42 is searched corresponding power consumption data according to the model of described hardware device from database; To not meeting the hardware device of described preset ardware model number, the power consumption data that described power consumption enquiry module 42 is corresponding with the mapping relationship searching of power consumption according to the type of hardware of database initialize.
Preferably, if for the application one in said method embodiment, described computing machine power consumption calculation device can also comprise:
Hardware detecting module 44, for automatically detecting the configuration information of each hardware device of current computer;
Accordingly, described hardware configuration acquisition module 41 is to obtain the configuration information that described hardware detecting module 44 detects each hardware device obtained.
If for the application two in said method embodiment, described computing machine power consumption calculation device can also comprise:
Module 45 is selected in configuration, for the configuration information of any each hardware device of computing machine of free setting;
Accordingly, described hardware configuration acquisition module 41 is to obtain the configuration information that each hardware device of module 45 settings is selected in described configuration.
In actual applications, described device can only comprise hardware detecting module 44 or module 45 is selected in configuration, also can comprise described two modules simultaneously, can be used for applying one and the situation of application two simultaneously.
Further preferred, described computing machine power consumption calculation device can also comprise:
Power adaptation module 46, for the computing machine total power consumption calculated according to power consumption calculation module 43, select the power supply be complementary.
Further preferred, described computing machine power consumption calculation device can also comprise:
Energy saving calculation module 47, the energy saver mode of selecting for User, lower power consumption data that comprises hardware device of this energy saver mode of inquiry from preset database; And the power consumption data obtained according to described inquiry, the power consumption of showing selected energy saver mode to the user, and/or show to the user power consumption that selected energy saver mode can be saved.
Above-mentioned computing machine power consumption calculation device can be used in numerous general or special purpose computingasystem environment or configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise distributed computing environment of above any system or equipment etc.
For said apparatus embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, the part explanation of relevant part embodiment of the method shown in Figure 1 gets final product.
In sum, above-mentioned computing machine power consumption calculation device is installed in computing machine, after starting the power consumption calculation function, this device can be according to the hardware detection power consumption information of the main hardware equipment of Auto-matching current computer as a result, and show and add up to the power consumption calculation value; What perhaps, the user also can be according to oneself need to freely select other hardware devices to carry out power consumption calculation according to device type.And this device can also provide the power supply be complementary recommendation function, for the user, select.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that between each embodiment, identical similar part is mutually referring to getting final product.
Above to a kind of computing machine power consumption calculation method provided by the present invention and device, be described in detail, applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention simultaneously.

Claims (16)

1. a computing machine power consumption calculation method, is characterized in that, comprising:
Obtain the configuration information of each hardware device in computing machine;
The inquiry power consumption data corresponding with the configuration information of each hardware device from preset database;
Wherein, to meeting the hardware device of preset type of hardware, according to the model of hardware device, search corresponding power consumption data from database; To not meeting the hardware device of described preset type of hardware, the power consumption data corresponding with the mapping relationship searching of power consumption according to the type of hardware of database initialize; Described preset type of hardware comprises: the type of hardware that surpasses preset range with different its power consumption difference of ardware model number; The described hardware device that does not meet preset type of hardware comprises: with the type of hardware of different its power consumption differences of ardware model number within described preset range;
Power consumption data addition by each hardware device, calculate the computing machine total power consumption.
2. method according to claim 1, is characterized in that, described from preset database the inquiry power consumption data corresponding with the configuration information of each hardware device, comprising:
If comprise model in the configuration information of hardware device, according to model preset in database and the mapping relations of power consumption, directly search the power consumption data corresponding with this model;
Otherwise, the first model corresponding with the mapping relationship searching of model according to configuration information preset in database, and then according to model preset in database the power consumption data corresponding with the mapping relationship searching of power consumption.
3. method according to claim 1 is characterized in that:
The fixing hardware device for power consumption, the average power consumption data that in described database, the power consumption data corresponding with the type hardware device is the type hardware device.
4. method according to claim 1 and 2 is characterized in that:
To meeting the hardware device of preset ardware model number, according to the model of described hardware device, search corresponding power consumption data from database;
To not meeting the hardware device of described preset ardware model number, the power consumption data corresponding with the mapping relationship searching of power consumption according to the hardware device type of database initialize.
5. method according to claim 1, is characterized in that, before the described configuration information that obtains each hardware device in computing machine, also comprises:
Automatically detect the configuration information of each hardware device in current computer;
The described configuration information that obtains each hardware device that described detection obtains that is retrieved as.
6. method according to claim 1, is characterized in that, before the described configuration information that obtains each hardware device in computing machine, also comprises:
The configuration information of each hardware device in any computing machine of free setting;
The described configuration information that is retrieved as each hardware device that obtains described setting.
7. method according to claim 1, is characterized in that, also comprises:
According to the computing machine total power consumption calculated, select the power supply be complementary.
8. method according to claim 1, is characterized in that, also comprises:
The energy saver mode that User is selected, lower power consumption data that comprises hardware device of this energy saver mode of inquiry from preset database;
The power consumption data obtained according to described inquiry, the power consumption of showing selected energy saver mode to the user, and/or show to the user power consumption that selected energy saver mode can be saved.
9. a computing machine power consumption calculation device, is characterized in that, comprising:
The hardware configuration acquisition module, for obtaining the configuration information of each hardware device of computing machine;
The power consumption enquiry module, for the inquiry of the database from the preset power consumption data corresponding with the configuration information of each hardware device;
Wherein, to meeting the hardware device of preset type of hardware, described power consumption enquiry module is searched corresponding power consumption data according to the model of hardware device from database; To not meeting the hardware device of described preset type of hardware, the power consumption data that described power consumption enquiry module is corresponding with the mapping relationship searching of power consumption according to the hardware device type of database initialize; Described preset type of hardware comprises: the type of hardware that surpasses preset range with different its power consumption difference of ardware model number; The described hardware device that does not meet preset type of hardware comprises: with the type of hardware of different its power consumption differences of ardware model number within described preset range;
The power consumption calculation module, the power consumption data addition for by each hardware device, calculate the computing machine total power consumption.
10. device according to claim 9 is characterized in that:
If comprise model in the configuration information of hardware device, described power consumption enquiry module, according to model preset in database and the mapping relations of power consumption, is directly searched the power consumption data corresponding with this model;
Otherwise described power consumption enquiry module is the model corresponding with the mapping relationship searching of model according to configuration information preset in database first, and then according to model preset in database the power consumption data corresponding with the mapping relationship searching of power consumption.
11. device according to claim 9 is characterized in that:
The fixing hardware device for power consumption, the average power consumption data that in described database, the power consumption data corresponding with the type hardware device is the type hardware device.
12., according to the described device of claim 9 or 10, it is characterized in that:
To meeting the hardware device of preset ardware model number, described power consumption enquiry module is searched corresponding power consumption data according to the model of described hardware device from database;
To not meeting the hardware device of described preset ardware model number, the power consumption data that described power consumption enquiry module is corresponding with the mapping relationship searching of power consumption according to the type of hardware of database initialize.
13. device according to claim 9, is characterized in that, also comprises:
Hardware detecting module, for automatically detecting the configuration information of each hardware device of current computer;
Described hardware configuration acquisition module is to obtain the configuration information that described hardware detecting module detects each hardware device obtained.
14. device according to claim 9, is characterized in that, also comprises:
Module is selected in configuration, for the configuration information of any each hardware device of computing machine of free setting;
Described hardware configuration acquisition module is to obtain the configuration information that each hardware device of module setting is selected in described configuration.
15. device according to claim 9, is characterized in that, also comprises:
Power adaptation module, for the computing machine total power consumption calculated according to the power consumption calculation module, select the power supply be complementary.
16. device according to claim 9, is characterized in that, also comprises:
The energy saving calculation module, the energy saver mode of selecting for User, lower power consumption data that comprises hardware device of this energy saver mode of inquiry from preset database; And the power consumption data obtained according to described inquiry, the power consumption of showing selected energy saver mode to the user, and/or show to the user power consumption that selected energy saver mode can be saved.
CN2011100827379A 2011-04-01 2011-04-01 Method and device for calculating power consumption of computer Active CN102163170B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100827379A CN102163170B (en) 2011-04-01 2011-04-01 Method and device for calculating power consumption of computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100827379A CN102163170B (en) 2011-04-01 2011-04-01 Method and device for calculating power consumption of computer

Related Child Applications (2)

Application Number Title Priority Date Filing Date
CN201310577307.3A Division CN103631700A (en) 2011-04-01 2011-04-01 Computer power consumption calculating method
CN201310581639.9A Division CN103617111A (en) 2011-04-01 2011-04-01 Method and device for computing power consumption of computer

Publications (2)

Publication Number Publication Date
CN102163170A CN102163170A (en) 2011-08-24
CN102163170B true CN102163170B (en) 2013-12-25

Family

ID=44464406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100827379A Active CN102163170B (en) 2011-04-01 2011-04-01 Method and device for calculating power consumption of computer

Country Status (1)

Country Link
CN (1) CN102163170B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103018545B (en) * 2012-12-26 2015-04-08 北京百度网讯科技有限公司 Whole cabinet power consumption test method
CN108260190B (en) * 2016-12-29 2020-09-04 大唐移动通信设备有限公司 Method and device for determining energy-saving information of base station
CN111478824B (en) * 2020-03-20 2022-04-26 苏州浪潮智能科技有限公司 Network card power consumption testing method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1975692A (en) * 2005-11-29 2007-06-06 国际商业机器公司 Method and system for power measurement and management
CN101063953A (en) * 2006-04-28 2007-10-31 佛山市顺德区顺达电脑厂有限公司 Estimation method for computer system consumed power

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1975692A (en) * 2005-11-29 2007-06-06 国际商业机器公司 Method and system for power measurement and management
CN101063953A (en) * 2006-04-28 2007-10-31 佛山市顺德区顺达电脑厂有限公司 Estimation method for computer system consumed power

Also Published As

Publication number Publication date
CN102163170A (en) 2011-08-24

Similar Documents

Publication Publication Date Title
US8461725B1 (en) Identification of powered devices for energy saving
WO2018103353A1 (en) Live video push method and device, storage medium, and program product
US20170031423A1 (en) Optimizing power consumption by dynamic workload adjustment
CN100587651C (en) Method and system for supplying combinations of clock frequency, voltage, and current to processors
CN103246559B (en) Application processing method and electronic equipment
Moldovan et al. Energy-aware mobile learning: Opportunities and challenges
CN102368239B (en) A kind of method that installation scheme is recommended automatically and device
CN103823546B (en) Information control method and electronic equipment
CN103617111A (en) Method and device for computing power consumption of computer
EP3193179B1 (en) Electric quantity detection method and apparatus, terminal and storage medium
CN108228720B (en) Identify method, system, device, terminal and the storage medium of target text content and original image correlation
CN106462634A (en) Information processing device, information processing method, and program
CN102163170B (en) Method and device for calculating power consumption of computer
CN105183464B (en) Information display method and device and electronic equipment
US10902358B2 (en) Systems and methods for providing and accessing visual product representations of a project
CN109582778A (en) A kind of intelligent answer method, apparatus, equipment and medium
CN103631755B (en) Installing configuration list generation method and device
CN103631700A (en) Computer power consumption calculating method
CN109376048A (en) A kind of test method and equipment of touch screen
CN102034138A (en) Managing method of testing equipment
CN108304425A (en) A kind of graph text information recommends method, apparatus and system
CN105991312B (en) A kind of rearrangement and device of Internet resources
CN2921953Y (en) Intelligent restarting test instrument
CN103309839A (en) Device topology and capability discovery and reporting techniques
CN106776957A (en) Content search method, device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee after: Beijing Qizhi Business Consulting Co.,Ltd.

Address before: 100016 East unit, 4th floor, Zhaowei building, 14 Jiuxianqiao Road, Chaoyang District, Beijing

Patentee before: Qizhi software (Beijing) Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20220215

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100015 rooms 301-306, 2 / F and 3 / F, block B, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee before: Beijing Qizhi Business Consulting Co.,Ltd.

TR01 Transfer of patent right