CN110659183A - System power consumption testing method and device - Google Patents
System power consumption testing method and device Download PDFInfo
- Publication number
- CN110659183A CN110659183A CN201910863706.3A CN201910863706A CN110659183A CN 110659183 A CN110659183 A CN 110659183A CN 201910863706 A CN201910863706 A CN 201910863706A CN 110659183 A CN110659183 A CN 110659183A
- Authority
- CN
- China
- Prior art keywords
- load
- power consumption
- option
- testing
- options
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
- G06F11/3062—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations where the monitored property is the power consumption
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3024—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention discloses a method and a device for testing system power consumption, which comprise the following steps: setting a plurality of different option configuration combinations in the basic input and output system based on a plurality of energy consumption options; respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination; multiple power consumptions are compared and applied to the combination of option configurations that consume the least power at full load and/or no load. The invention can automatically measure and optimize the energy consumption of the system, save energy and improve efficiency.
Description
Technical Field
The present invention relates to the field of computers, and more particularly, to a method and an apparatus for testing system power consumption.
Background
The server is the core of the whole network system and the computing platform, many important data are stored on the server, and many network services are operated on the server, so the performance of the whole application system is determined by the performance of the server.
At present, there are many kinds of servers of different brands and different types on the market, so that when a user chooses to purchase a server product, which is needed from various models and suitable for the user, is not enough to judge the server product only from the configuration, and the server product can be screened through actual tests.
The most widespread and successful application of the Benchmark test in the computer field is a performance test, commonly called as 'score running', which mainly tests response time, transmission rate, throughput and the like, the overall performance of a server system can be evaluated by running the Benchmark test to obtain 'score running', and a better server product is screened by comparison. As a server manufacturer, the manufacturer needs to make a better product and improve the product competitiveness while improving the system performance. However, Benchmark generally only detects performance and does not monitor power consumption, making power consumption a short board for "run-away" products, and BIOS configurations within BIOS that are targeted to optimize system power consumption are lacking.
Aiming at the problem of lack of system power consumption optimization in the prior art, no effective solution is available at present.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for testing system power consumption, which can automatically measure and optimize system power consumption, save energy, and improve efficiency.
In view of the above, a first aspect of the embodiments of the present invention provides a method for testing system power consumption, including the following steps:
setting a plurality of different option configuration combinations in the basic input and output system based on a plurality of energy consumption options;
respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination;
multiple power consumptions are compared and applied to the combination of option configurations that consume the least power at full load and/or no load.
In some embodiments, setting a plurality of different option configuration combinations in the bios based on the plurality of power consumption options includes:
determining a plurality of energy consumption options and generating a plurality of option configuration combinations from the plurality of energy consumption options;
generating a plurality of corresponding configuration documents according to the configuration combination of the plurality of options;
and respectively writing a plurality of configuration documents into the basic input and output system and enabling the configuration documents.
In some embodiments, the plurality of energy consumption options includes at least one of: c-state, UPI L-state, P-state.
In some embodiments, separately testing and recording a plurality of power consumptions of the system at full and no load based on each option configuration combination comprises:
testing and recording first power consumption of the system under full load and no load based on one option configuration combination;
configuring a second power consumption of the combined test system at full and no load based on another option, and recording a difference between the second power consumption and the first power consumption.
In some embodiments, specpower is used to perform full and no load tests in the system.
A second aspect of an embodiment of the present invention provides a system power consumption testing apparatus, including:
the setting module is used for setting various different option configuration combinations in the basic input and output system based on a plurality of energy consumption options;
the testing module is used for respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination;
and the comparison module is used for comparing a plurality of power consumptions and applying the option configuration combination with the minimum power consumption under the full load and/or the no load.
In some embodiments, setting a plurality of different option configuration combinations in the bios based on the plurality of power consumption options includes:
determining a plurality of energy consumption options and generating a plurality of option configuration combinations from the plurality of energy consumption options;
generating a plurality of corresponding configuration documents according to the configuration combination of the plurality of options;
and respectively writing a plurality of configuration documents into the basic input and output system and enabling the configuration documents.
In some embodiments, the plurality of energy consumption options includes at least one of: c-state, UPI L-state, P-state.
In some embodiments, separately testing and recording a plurality of power consumptions of the system at full and no load based on each option configuration combination comprises:
testing and recording first power consumption of the system under full load and no load based on one option configuration combination;
configuring a second power consumption of the combined test system at full and no load based on another option, and recording a difference between the second power consumption and the first power consumption.
In some embodiments, specpower is used to perform full and no load tests in the system.
The invention has the following beneficial technical effects: according to the system power consumption testing method and device provided by the embodiment of the invention, a plurality of different option configuration combinations are set in the basic input and output system based on a plurality of energy consumption options; respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination; the technical scheme of comparing a plurality of power consumptions and applying the option configuration combination with the minimum power consumption under full load and/or no load can automatically measure and optimize the energy consumption of the system, save energy and improve efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a system power consumption testing method according to the present invention;
fig. 2 is a flowchart of an embodiment of a system power consumption testing method provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the foregoing, a first aspect of the embodiments of the present invention provides an embodiment of a method for testing system power consumption, which can implement automatic testing. Fig. 1 is a schematic flow chart of a system power consumption testing method provided by the present invention.
The system power consumption testing method, as shown in fig. 1, includes the following steps:
step S101: setting a plurality of different option configuration combinations in the basic input and output system based on a plurality of energy consumption options;
step S103: respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination;
step S105: multiple power consumptions are compared and applied to the combination of option configurations that consume the least power at full load and/or no load.
The invention utilizes the SPECPOWER standardized program to test the performance and the power consumption performance of the system in the full load state and the no-load state, uses the SCE TOOL to adjust the BIOS option and automatically executes the SPECPOWER test, automatically adjusts the BIOS aiming at the systems with different configurations and automatically adapts, and finally obtains and applies the BIOS configuration which can lead the system to be in the lowest power consumption when the system is idle.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), or the like. Embodiments of the computer program may achieve the same or similar effects as any of the preceding method embodiments to which it corresponds.
In some embodiments, setting a plurality of different option configuration combinations in the bios based on the plurality of power consumption options includes:
determining a plurality of energy consumption options and generating a plurality of option configuration combinations from the plurality of energy consumption options;
generating a plurality of corresponding configuration documents according to the configuration combination of the plurality of options;
and respectively writing a plurality of configuration documents into the basic input and output system and enabling the configuration documents.
In some embodiments, the plurality of energy consumption options includes at least one of: c-state, UPI L-state, P-state.
In some embodiments, separately testing and recording a plurality of power consumptions of the system at full and no load based on each option configuration combination comprises:
testing and recording first power consumption of the system under full load and no load based on one option configuration combination;
configuring a second power consumption of the combined test system at full and no load based on another option, and recording a difference between the second power consumption and the first power consumption.
In some embodiments, specpower is used to perform full and no load tests in the system.
The method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, which may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention. The above-described method steps and system elements may also be implemented using a controller and a computer-readable storage medium for storing a computer program for causing the controller to implement the functions of the above-described steps or elements.
The following further illustrates embodiments of the invention in accordance with the specific example shown in fig. 2.
In the embodiment of the invention, SPECPOWER and script idlepower for automatically and adaptively adjusting BIOS are installed in a system to be tested. Bat was deposited into the system under test and executed by specrow to perform the following steps for each configuration in turn:
(1) outputting the configuration document from the BIOS through a command # SCE dump of SCE export;
(2) automatically performing a SPECPOWER test;
(3) grabbing a result executed by the SPECPOWER main control end by using a command # XCOPY;
(4) and acquiring the no-load and full-load power consumption.
And finally comparing all the no-load power consumption and the full-load power consumption to obtain the configuration with the lowest power consumption.
It can be seen from the foregoing embodiments that, in the system power consumption testing method provided by the embodiments of the present invention, a plurality of different option configuration combinations are set in the basic input/output system; respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination; the technical scheme of comparing a plurality of power consumptions and applying the option configuration combination with the minimum power consumption under full load and/or no load can automatically measure and optimize the energy consumption of the system, save energy and improve efficiency.
It should be particularly noted that, the steps in the embodiments of the system power consumption testing method described above may be mutually intersected, replaced, added, or deleted, and therefore, the system power consumption testing method based on these reasonable permutation and combination transformations shall also belong to the scope of the present invention, and shall not limit the scope of the present invention to the described embodiments.
In view of the above-mentioned objects, a second aspect of the embodiments of the present invention provides an embodiment of a system power consumption testing apparatus capable of implementing automatic testing. The system power consumption testing device comprises:
the setting module is used for setting various different option configuration combinations in the basic input and output system based on a plurality of energy consumption options;
the testing module is used for respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination;
and the comparison module is used for comparing a plurality of power consumptions and applying the option configuration combination with the minimum power consumption under the full load and/or the no load.
The various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
In some embodiments, setting a plurality of different option configuration combinations in the bios based on the plurality of power consumption options includes:
determining a plurality of energy consumption options and generating a plurality of option configuration combinations from the plurality of energy consumption options;
generating a plurality of corresponding configuration documents according to the configuration combination of the plurality of options;
and respectively writing a plurality of configuration documents into the basic input and output system and enabling the configuration documents.
In some embodiments, the plurality of energy consumption options includes at least one of: c-state, UPI L-state, P-state.
In some embodiments, separately testing and recording a plurality of power consumptions of the system at full and no load based on each option configuration combination comprises:
testing and recording first power consumption of the system under full load and no load based on one option configuration combination;
configuring a second power consumption of the combined test system at full and no load based on another option, and recording a difference between the second power consumption and the first power consumption.
In some embodiments, specpower is used to perform full and no load tests in the system.
It can be seen from the foregoing embodiments that, in the system power consumption testing apparatus provided in the embodiments of the present invention, a plurality of different option configuration combinations are set in the basic input/output system based on a plurality of power consumption options; respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination; the technical scheme of comparing a plurality of power consumptions and applying the option configuration combination with the minimum power consumption under full load and/or no load can automatically measure and optimize the energy consumption of the system, save energy and improve efficiency.
It should be particularly noted that, the above-mentioned embodiment of the system power consumption testing apparatus employs the embodiment of the system power consumption testing method to specifically describe the working process of each module, and those skilled in the art can easily think that these modules are applied to other embodiments of the system power consumption testing method. Of course, since the steps in the embodiment of the method for testing system power consumption may be mutually intersected, replaced, added, or deleted, the device for testing system power consumption should also belong to the scope of the present invention, and the scope of the present invention should not be limited to the embodiment.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of an embodiment of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.
Claims (10)
1. A system power consumption test method is characterized by comprising the following steps:
setting a plurality of different option configuration combinations in the basic input and output system based on a plurality of energy consumption options;
respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination;
comparing a plurality of said power consumptions and applying said combination of option configurations with the lowest power consumption at full load and/or at no load.
2. The method of claim 1, wherein setting a plurality of different combinations of the option configurations in a bios based on a plurality of power consumption options comprises:
determining a plurality of energy consumption options and generating a plurality of option configuration combinations from the plurality of energy consumption options;
generating a plurality of corresponding configuration documents according to the various option configuration combinations respectively;
and respectively writing a plurality of configuration documents into the basic input and output system and enabling the configuration documents to be effective.
3. The method of claim 2, wherein the plurality of energy consumption options comprises at least one of: c-state, UPI L-state, P-state.
4. The method of claim 1, wherein testing and recording a plurality of power consumptions of the system at full load and no load respectively based on each of the option configuration combinations comprises:
testing and recording a first power consumption of the system under full load and no load based on one option configuration combination;
configuring a second power consumption of the combined test system at full load and no load based on another of the options, and recording a difference between the second power consumption and the first power consumption.
5. The method of claim 4, wherein full and no load tests are performed in the system using specpower.
6. A system power consumption testing apparatus, comprising:
the setting module is used for setting various different option configuration combinations in the basic input and output system based on a plurality of energy consumption options;
the testing module is used for respectively testing and recording a plurality of power consumptions of the system under full load and no load based on each option configuration combination;
a comparison module for comparing a plurality of said power consumptions and applying the combination of said option configurations with the lowest power consumption at full load and/or at no load.
7. The apparatus of claim 6, wherein setting a plurality of different combinations of the option configurations in a basic input output system based on a plurality of power consumption options comprises:
determining a plurality of energy consumption options and generating a plurality of option configuration combinations from the plurality of energy consumption options;
generating a plurality of corresponding configuration documents according to the various option configuration combinations respectively;
and respectively writing a plurality of configuration documents into the basic input and output system and enabling the configuration documents to be effective.
8. The apparatus of claim 6, wherein the plurality of energy consumption options comprises at least one of: c-state, UPI L-state, P-state.
9. The apparatus of claim 6, wherein testing and recording a plurality of power consumptions of the system at full load and no load respectively based on each of the option configuration combinations comprises:
testing and recording a first power consumption of the system under full load and no load based on one option configuration combination;
configuring a second power consumption of the combined test system at full load and no load based on another of the options, and recording a difference between the second power consumption and the first power consumption.
10. The apparatus of claim 6, wherein full and no load tests are performed in the system using specpower.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910863706.3A CN110659183A (en) | 2019-09-12 | 2019-09-12 | System power consumption testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910863706.3A CN110659183A (en) | 2019-09-12 | 2019-09-12 | System power consumption testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110659183A true CN110659183A (en) | 2020-01-07 |
Family
ID=69037210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910863706.3A Withdrawn CN110659183A (en) | 2019-09-12 | 2019-09-12 | System power consumption testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110659183A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258662A (en) * | 2020-01-13 | 2020-06-09 | 苏州浪潮智能科技有限公司 | BIOS strategy configuration method, device, equipment and storage medium |
CN112214368A (en) * | 2020-10-23 | 2021-01-12 | 英业达科技有限公司 | Dynamic load control system and method thereof |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107092493A (en) * | 2017-05-26 | 2017-08-25 | 郑州云海信息技术有限公司 | A kind of system and method for the BIOS option for adjusting server system performance and power consumption |
-
2019
- 2019-09-12 CN CN201910863706.3A patent/CN110659183A/en not_active Withdrawn
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107092493A (en) * | 2017-05-26 | 2017-08-25 | 郑州云海信息技术有限公司 | A kind of system and method for the BIOS option for adjusting server system performance and power consumption |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111258662A (en) * | 2020-01-13 | 2020-06-09 | 苏州浪潮智能科技有限公司 | BIOS strategy configuration method, device, equipment and storage medium |
WO2021143134A1 (en) * | 2020-01-13 | 2021-07-22 | 苏州浪潮智能科技有限公司 | Bios strategy configuration method, apparatus and device, and storage medium |
CN112214368A (en) * | 2020-10-23 | 2021-01-12 | 英业达科技有限公司 | Dynamic load control system and method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108322345B (en) | Method for issuing fault repair data packet and server | |
US9875111B2 (en) | Information handling system performance optimization system | |
US9436257B2 (en) | Power supply engagement and method therefor | |
CN102902621A (en) | Application performance measurement and reporting | |
CN105024933B (en) | The control method and device of request packet transmission frequency | |
US10627793B2 (en) | Normalized control of an IHS component | |
CN110659183A (en) | System power consumption testing method and device | |
CN111176919B (en) | FPGA test method, device and storage medium | |
CN110569158A (en) | method and device for testing abnormal power failure in SSD random scene and computer equipment | |
CN111400041A (en) | Server configuration file management method and device and computer readable storage medium | |
CN115941464A (en) | Intelligent network card power supply state control method and device, electronic equipment and storage medium | |
CN113849365B (en) | Method, system, terminal and storage medium for regulating and controlling server performance power consumption ratio | |
CN110825425A (en) | Configuration data management method and device, electronic equipment and storage medium | |
CN106487903A (en) | A kind of node selection method and system based on virtualized SaaS cloud platform | |
CN115794570A (en) | Pressure testing method, device, equipment and computer readable storage medium | |
CN114138597B (en) | Operating system performance tuning device, method, equipment and storage medium | |
US20180203628A1 (en) | Method, apparatus and computer program product for evaluating data storage systems for energy efficiency | |
CN102231684A (en) | Interface board state detection method, multi-core central processing unit, interface board and router | |
CN115695877A (en) | PCIe link video transcoding card adapting method, device, equipment and medium | |
TWI467377B (en) | Method of powering on server | |
CN105282199A (en) | Cloud resource optimizing method, cloud platform and cloud user client | |
US8891515B2 (en) | Method for node communication | |
CN113470731A (en) | APST function testing method and device, readable storage medium and electronic equipment | |
CN111309534A (en) | Method, system and related assembly for testing BPS memory adaptive capacity | |
US20090299936A1 (en) | Policy creating apparatus, policy creating method, and computer product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200107 |
|
WW01 | Invention patent application withdrawn after publication |