CN116680131A - Server test system, server test method, electronic device, and storage medium - Google Patents
Server test system, server test method, electronic device, and storage medium Download PDFInfo
- Publication number
- CN116680131A CN116680131A CN202310417209.7A CN202310417209A CN116680131A CN 116680131 A CN116680131 A CN 116680131A CN 202310417209 A CN202310417209 A CN 202310417209A CN 116680131 A CN116680131 A CN 116680131A
- Authority
- CN
- China
- Prior art keywords
- test
- server
- processor
- frequency
- module
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 508
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 238000010998 test method Methods 0.000 title description 3
- 238000012545 processing Methods 0.000 claims abstract description 47
- 238000000034 method Methods 0.000 claims abstract description 35
- 238000012544 monitoring process Methods 0.000 claims abstract description 32
- 238000011156 evaluation Methods 0.000 claims abstract description 25
- 230000008569 process Effects 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims abstract description 20
- 238000010586 diagram Methods 0.000 description 12
- 238000005265 energy consumption Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000011056 performance test Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 238000007667 floating Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 239000000969 carrier Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000001816 cooling Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000002195 synergetic effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2289—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2236—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- 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]
-
- 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/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- 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
-
- 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)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The embodiment of the invention provides a server testing system, a server testing method, electronic equipment and a storage medium, wherein the system comprises the following components: the monitoring module is used for monitoring the load condition of the test server in the test process, and controlling the uncore frequency adjusting module to adjust the uncore frequency of the test server processor when the load condition reaches the test load pressure; the non-core frequency adjusting module is used for adjusting the current non-core frequency of the test server processor when the load condition reaches the test load pressure so as to adjust the running environment of the test server to be a test environment corresponding to the test load point; and the test data processing module is also used for generating a test report by adopting the power consumption data, the performance data and the corresponding evaluation result after the test is completed. By adopting the system, the influence of the frequency of the non-core part in the server processor on the power consumption and the performance of the whole machine can be automatically measured and estimated through a computer program.
Description
Technical Field
The present invention relates to the field of computer technology, and in particular, to a server testing system, a server testing method, an electronic device, and a computer readable storage medium.
Background
The server can accurately measure and evaluate the energy consumption condition of the server under different load levels by means of the energy efficiency reference tool, so that quantitative reference basis is provided for energy consumption technology evaluation of the server, model selection of the server and the like. However, the performance test for the server system is mainly to consider the performance of the core part of the processor, and does not consider the influence of the non-core part of the processor on the power consumption and performance of the server.
Disclosure of Invention
In view of the above, embodiments of the present invention have been made to provide a server test system, a server test method, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems.
The embodiment of the invention discloses a server test system, which comprises a server test end and a remote control end, wherein the server test end comprises a hardware information collection module, a test execution control module and a test data processing module, and the remote control end comprises a test execution module, a monitoring module and a non-core frequency adjustment module;
The hardware information collection module is used for collecting hardware parameter information of the test server and transmitting the collected hardware parameter information to the test data processing module;
the test data processing module is used for adjusting the test parameters adopted in the test according to the acquired hardware parameter information and sending a test parameter adjustment completion message to the test execution control module after completing the adjustment of the test parameters;
the test execution control module is used for starting a power consumption test program to collect power consumption data, starting a performance data collection program to collect performance data and controlling the test execution module to start a load test program after the test parameter adjustment completion message is acquired;
the test execution module is used for starting the load test program to evaluate the service performance of the collected power consumption data and performance data, and obtaining a corresponding evaluation result;
the monitoring module is used for monitoring the load condition of the test server in the test process, and controlling the uncore frequency adjusting module to adjust the uncore frequency of the test server processor when the load condition reaches the test load pressure;
The non-core frequency adjusting module is used for adjusting the current non-core frequency of the test server processor when the load condition reaches the test load pressure so as to adjust the running environment of the test server to be a test environment corresponding to the test load point;
the test data processing module is further used for generating a test report by adopting the power consumption data, the performance data and the corresponding evaluation result after the test is completed; the test report is used for reflecting the influence of the frequency of the non-core part in the processor of the server on the overall power consumption and the performance of the server.
Optionally, the test load pressure corresponding to each test load point is the same, and the test uncore frequency corresponding to each test load point is different;
the uncore frequency adjusting module is further configured to adjust the uncore frequency to a maximum value when the load condition reaches the test load pressure for the first time, and decrease the uncore frequency according to a preset step when the load condition continues to reach the test load pressure, so as to adjust the uncore frequency to a test uncore frequency corresponding to each test load point.
Optionally, the hardware parameter information includes the number of processor logic cores, and the test parameter includes the number of warehouses used for testing;
the test data processing module is further configured to adjust the number of warehouses according to the number of processor logic cores, so that the number of warehouses is equal to the number of processor logic cores.
Optionally, the hardware parameter information includes a processor model and a value range of a non-core frequency of the processor, and the test parameter includes the number of test load points;
the test data processing module is further used for determining the number of the test load points to be tested according to the model of the processor and the value range of the non-core frequency of the processor.
Alternatively, the process may be carried out in a single-stage,
the test data processing module is further configured to determine a non-core frequency adjustment step according to the processor model, and calculate the number of test load points to be tested based on the non-core frequency value range of the processor and the non-core frequency adjustment step.
Alternatively, the process may be carried out in a single-stage,
the test execution control module is further used for, after the test parameter adjustment completion message is acquired,
and starting a temperature data collection program to collect temperature data of the test server at each test load point.
Alternatively, the process may be carried out in a single-stage,
the monitoring module is also used for monitoring the non-core frequency and the core frequency of the test server processor in the test process; wherein the core frequency remains unchanged during the test.
Optionally, the test report includes non-core frequencies corresponding to the test load points, and a server overall performance, a server overall power consumption, and a performance power consumption ratio under the non-core frequencies.
Alternatively, the process may be carried out in a single-stage,
the uncore frequency adjustment module is further configured to adjust the uncore frequency of the test server processor by using a register tool or a central processing unit management tool.
The embodiment of the invention discloses a server testing method which is applied to a server testing system and comprises the following steps:
collecting hardware parameter information of a test server, and adjusting test parameters adopted in the test according to the obtained hardware parameter information;
starting a power consumption testing program to collect power consumption data after finishing testing parameter adjustment, starting a performance data collecting program to collect performance data, and controlling a starting load testing program to evaluate service performance of the collected power consumption data and the collected performance data to obtain a corresponding evaluation result; in the testing process of testing the power consumption performance of the test server, the non-core frequency of the test server processor is adjusted by monitoring the load condition of the test server and when the load condition reaches the test load pressure, so that the operation environment of the test server is adjusted to be a test environment corresponding to a test load point;
After the test is completed, generating a test report by adopting the power consumption data, the performance data and the corresponding evaluation result; the test report is used for reflecting the influence of the frequency of the non-core part in the processor of the server on the overall power consumption and the performance of the server.
Optionally, the test load pressures corresponding to the test load points are the same, and the test uncore frequencies corresponding to the test load points are different, so that the uncore frequencies are adjusted to test uncore frequencies corresponding to the test load points respectively by adjusting the uncore frequencies to a maximum value when the load condition reaches the test load pressure for the first time and decreasing the uncore frequencies according to preset steps when the load condition continues to reach the test load pressure.
Optionally, the hardware parameter information includes the number of logic cores of the processor, the test parameter includes the number of warehouses used for testing, and the adjusting the test parameter used for the current testing according to the obtained hardware parameter information includes:
and adjusting the number of the warehouses according to the number of the processor logic cores so that the number of the warehouses is equal to the number of the processor logic cores.
Optionally, the hardware parameter information includes a processor model and a value range of a non-core frequency of the processor, the test parameter includes a number of test load points, and the adjusting the test parameter adopted in the current test according to the obtained hardware parameter information includes:
and determining the number of the test load points to be tested according to the processor model and the value range of the non-core frequency of the processor.
Optionally, the determining the number of the test load points to be tested according to the processor model and the value range of the non-core frequency of the processor includes:
and determining a non-core frequency adjustment step according to the model of the processor, and calculating the number of the test load points to be tested based on the value range of the non-core frequency of the processor and the non-core frequency adjustment step.
Optionally, after completing the test parameter adjustment, the method further comprises:
and starting a temperature data collection program to collect temperature data of the test server at each test load point.
Optionally, the uncore frequency of the test server processor is adjusted by a register tool or a central processor management tool.
The embodiment of the invention also discloses an electronic device, which comprises: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor implements the steps of a server testing method as described above.
The embodiment of the invention also discloses a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of a server testing method when being executed by a processor.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, a server test system comprises a server test end and a remote control end, wherein the server test end comprises a hardware information collection module, a test execution control module and a test data processing module, the remote control end comprises a test execution module, a monitoring module and a non-core frequency adjustment module, the hardware information collection module can collect hardware parameter information of a test server, the test data processing module can adjust test parameters adopted in the test according to the obtained hardware parameter information, and after the adjustment of the test parameters is completed, a test parameter adjustment completion message is sent to the test execution control module, the test execution control module can start a power consumption test program to collect power consumption data at the moment, start a performance data collection program to collect performance data, and control the test execution module to start a load test program; the test execution module is used for starting a load test program to evaluate the service performance of the collected power consumption data and performance data, and obtaining a corresponding evaluation result; the monitoring module is used for monitoring the load condition of the test server in the test process, and controlling the uncore frequency adjusting module to adjust the uncore frequency of the test server processor when the load condition reaches the test load pressure; the non-core frequency adjusting module is used for adjusting the current non-core frequency of the test server processor when the load condition reaches the test load pressure, and adjusting the running environment of the test server to be a test environment corresponding to the test load point; after the test is completed, the test data processing module can generate a test report by adopting the power consumption data, the performance data and the corresponding evaluation result, and the test report can reflect the influence of the frequency of the non-core part in the processor of the server on the power consumption and the performance of the whole server. By adopting the system, the influence of the frequency of the non-core part in the server processor on the power consumption and the performance of the whole machine can be automatically measured and estimated through a computer program.
Drawings
FIG. 1 is a block diagram of a server test system according to an embodiment of the present invention;
FIG. 2 is a system architecture diagram of a server test system according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a method for testing a server according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is a block diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
So that the manner in which the above recited objects, features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings, and some, but not all of which are illustrated in the appended drawings. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the invention, fall within the scope of protection of the invention.
With the development of emerging technologies such as cloud computing and 5G networks, the data information amount of the internet is increasing. Data centers are increasingly used as carriers of digital economy, and construction volumes and construction scales are continuously expanding. Because data centers require a large amount of power to maintain the operation of infrastructure such as servers, storage facilities, backup devices, cooling systems, etc., energy consumption and carbon emissions are rapidly increasing.
The Core computing component on the general server is a processor, the processor comprises a Core (also called a kernel) and a Uncore (non-Core), the processor components contained in the Core of the processor all relate to the running of processor commands, the processor comprises an arithmetic logic unit (arithmetic and logic unit, ALU), a floating point arithmetic unit (floating point unit, FPU), a primary Cache (L1 Cache) and a secondary Cache (L2 Cache), and the functions of the Uncore (non-Core) comprise a QPI (QuickPath Interconnect, fast channel interconnection) controller, a tertiary Cache (L3 Cache), a memory consistency monitor (snoop agent pipeline), a memory controller and the like. In general, the Uncore is logic that is external to the CPU core but on the same chip. The traffic (e.g., data reads) generated by threads executing on a CPU (Central Processing Unit ) core or IO (Input/Output) device may be operated on by logic in the Uncore. The Uncore is responsible for the logic to manage coherency, manage access to DIMMs (Dual-Inline-Memory-Modules), manage power distribution and sleep states, and the like.
The server can accurately measure and evaluate the energy consumption condition of the server under different load levels by means of the energy efficiency reference tool, so that quantitative reference basis is provided for energy consumption technology evaluation of the server, model selection of the server and the like. However, the performance test for the server system at present mainly considers the performance of the CPU Core, and does not consider the influence of the CPU un Core on the power consumption and performance of the server.
Based on the above, the invention provides a server testing method which can measure and evaluate the influence of the frequency of the non-core part in the server processor on the power consumption and the performance of the whole machine and calculate the performance power consumption ratio.
One of the core ideas of the embodiment of the invention is that the server test system comprises a server test end and a remote control end, the server test end comprises a hardware information collection module, a test execution control module and a test data processing module, the remote control end comprises a test execution module, a monitoring module and a non-core frequency adjustment module, the hardware information collection module can collect hardware parameter information of the test server, the test data processing module can adjust test parameters adopted in the test according to the obtained hardware parameter information, and after the adjustment of the test parameters is completed, a test parameter adjustment completion message is sent to the test execution control module, the test execution control module can start a power consumption test program to collect power consumption data at the moment, start a performance data collection program to collect performance data, and control the test execution module to start a load test program; the test execution module is used for starting a load test program to evaluate the service performance of the collected power consumption data and performance data, and obtaining a corresponding evaluation result; the monitoring module is used for monitoring the load condition of the test server in the test process, and controlling the uncore frequency adjusting module to adjust the uncore frequency of the test server processor when the load condition reaches the test load pressure; the non-core frequency adjusting module is used for adjusting the current non-core frequency of the test server processor when the load condition reaches the test load pressure, and adjusting the running environment of the test server to be a test environment corresponding to the test load point; after the test is completed, the test data processing module can generate a test report by adopting the power consumption data, the performance data and the corresponding evaluation result, and the test report can reflect the influence of the frequency of the non-core part in the processor of the server on the power consumption and the performance of the whole server. By adopting the system, the influence of the frequency of the non-core part in the server processor on the power consumption and the performance of the whole machine can be automatically measured and estimated through a computer program.
Referring to fig. 1, a block diagram of a server test system provided by an embodiment of the present invention is shown, where the server test system 101 includes a server test end 1011 and a remote control end 1012, the server test end 1011 includes a hardware information collection module 10111, a test execution control module 10112 and a test data processing module 10113, and the remote control end 1012 includes a test execution module 10121, a monitoring module 10122 and a non-core frequency adjustment module 10123;
the hardware information collection module 10111 is configured to collect hardware parameter information of the test server, and transmit the collected hardware parameter information to the test data processing module 10113;
the test data processing module 10113 is configured to adjust a test parameter adopted in the test according to the obtained hardware parameter information, and send a test parameter adjustment completion message to the test execution control module 10112 after completing the adjustment of the test parameter;
the test execution control module 10112 is configured to, after obtaining the test parameter adjustment completion message, start the power consumption test program to collect power consumption data, start the performance data collection program to collect performance data, and control the test execution module 10121 to start the load test program;
The test execution module 10121 is used for starting a load test program to evaluate the service performance of the collected power consumption data and performance data, and obtaining a corresponding evaluation result;
the monitoring module 10122 is used for monitoring the load condition of the test server in the test process, and controlling the uncore frequency adjusting module 10123 to adjust the uncore frequency of the test server processor when the load condition reaches the test load pressure;
the uncore frequency adjustment module 10123 is configured to adjust a current uncore frequency of the test server processor when the load condition reaches the test load pressure, so as to adjust an operation environment of the test server to a test environment corresponding to the test load point;
the test data processing module 10113 is further configured to generate a test report by using the power consumption data, the performance data and the corresponding evaluation result after the test is completed.
The test report is used for reflecting the influence of the frequency of the non-core part in the processor of the server on the overall power consumption and performance of the server.
According to the synergistic effect of the modules, the influence of different uncore frequencies on the overall performance and the overall power consumption of the server can be accurately estimated.
In an optional embodiment of the present invention, the test load pressures corresponding to the test load points are the same, and the test non-core frequencies corresponding to the test load points are different;
The non-core frequency adjusting module is further configured to adjust the non-core frequency to a maximum value when the load condition reaches the test load pressure for the first time, and decrease the non-core frequency according to a preset step when the load condition continues to reach the test load pressure subsequently, so as to adjust the non-core frequency to the test non-core frequency corresponding to each test load point.
The test load points may refer to nodes performing load tests, where test load pressures corresponding to the test load points are the same, and test uncore frequencies corresponding to the test load points are different. According to the customer service load requirement, the test load pressure corresponding to each test load point can be uniformly set to be a fixed value for evaluation, so that the influence of the load pressure on the test result is avoided.
The server test end runs a load test program, the non-core frequency of a processor of the server test end can be dynamically adjusted, after the monitoring module of the server test end monitors that the power consumption performance test starts, the non-core frequency adjusting module is controlled to adjust the non-core frequency to the maximum value when the monitored load condition reaches the test load pressure for the first time, the non-core frequency adjusting module is controlled to subtract a preset step from the non-core frequency when the second time reaches the test load pressure, and when the nth time reaches the test load pressure, the current non-core frequency is set to be the maximum value of the non-core frequency subtracted by (n-1) step.
Specifically, when the test load pressure is reached for the second time, that is, after the occurrence of the flag bit_001_cal_sum_is detected, the uncore frequency can be adjusted; when the nth test load pressure is reached, that is, after the occurrence of the flag bit_00 (n-1) _cal_sum_is detected, the uncore frequency can be adjusted, and at this time, the uncore frequency corresponding to the nth test load point is:
U n =U max -(n-1)*S min
wherein U is max Is the maximum of the uncore frequency; n is the nth test load point, n is a positive integer; s is S min Step-by-step for uncore frequency adjustment; u (U) n The non-core frequency corresponding to the nth test load point.
The hardware information collection module may be configured to collect a processor model number, a number of processor logic cores, a core dominant frequency, and a range of values for non-core frequencies of the processor for the test server.
In an alternative embodiment of the invention, the hardware parameter information includes the number of processor logic cores, and the test parameter includes the number of warehouses employed for testing;
and the test data processing module is also used for adjusting the number of the warehouses according to the number of the logic cores of the processor so that the number of the warehouses is equal to the number of the logic cores of the processor.
In the embodiment of the invention, the test data processing module can adjust the quantity of warehouses according to the quantity of the logic cores of the processor to ensure that the quantity of the logic cores of the processor is equal to the quantity of the logic cores of the processor, so that the test end of the server can reach a full-load state and fully exert the capability of the service processor.
The test data processing module can adjust the test parameters of the test execution control module, and the test data processing module of the remote control end can set the warehouse number parameter in the power consumption data collection program to 192 according to the acquired processor logic core number, for example, the acquired processor logic core number is 192.
In an alternative embodiment of the present invention, the hardware parameter information includes a processor model number and a value range of a non-core frequency of the processor, and the test parameter includes a number of test load points;
and the test data processing module is also used for determining the number of the test load points to be tested according to the model number of the processor and the value range of the non-core frequency of the processor.
In an optional embodiment of the present invention, the test data processing module is further configured to determine an uncore frequency adjustment step according to the processor model, and calculate the number of test load points to be tested based on the value range of the uncore frequency of the processor and the uncore frequency adjustment step.
In the embodiment of the invention, the number of the test load points to be tested is adjusted according to the obtained processor model and the value range of the non-core frequency of the processor, if the processor model is Intel Xeon_gold_6348 and the value range of the non-core frequency is 2400 Mhz-800 Mhz, the step can be set to be 100Mhz, the number of the test load points is 17, and the test non-core frequencies corresponding to the test load points are 2400Mhz, 2300Mhz, 2200Mhz and … … Mhz in sequence; if the model of the obtained processor is AMD Milan_7A23, the value range of the uncore frequency is 1600Mhz to 800Mhz, the step can be set to 133Mhz, the number of the test load points is 7, and the test uncore frequencies corresponding to the test load points are 1600Mhz, 1467Mhz, 1333Mhz, 1200Mhz, 1067Mhz, 933Mhz and 800Mhz in sequence.
The number of load test load points and the non-core frequency adjustment steps are adjusted according to the model of the processor and the value range of the non-core frequency of the processor, and further, the non-core frequency adjustment steps can be determined by the model of the processor, and the non-core frequency adjustment steps are assumed to be S min Maximum value of uncore frequency U max The minimum value of the uncore frequency is U min The number of test load points executed by the server test end is N load The calculation formula is as follows:
N load =(U max -U min )/S min
in an optional embodiment of the present invention, the test execution control module is further configured to start a temperature data collection program to collect temperature data of the test server at each test load point after the test parameter adjustment completion message is acquired.
In the embodiment of the invention, the power consumption data of the test server at each test load point can be collected by adopting a power consumption test program, and in a specific application, the power data of the test server at each test load point can be collected by adopting a power data collection program.
The performance data collection program may be used to collect performance data of the test server at each test load point, and the temperature data collection program may also be used to collect temperature data of the test server at each test load point.
In an embodiment of the present invention, the test execution control module may be used to initiate a power consumption test program, a temperature data collection program, and a performance data collection program.
In an alternative embodiment of the invention, the monitoring module is further configured to monitor the uncore frequency and the core frequency of the test server processor during the test; wherein the core frequency remains unchanged during the test.
In the embodiment of the invention, the monitoring module dynamically collects the uncore frequency and the core frequency of the processor.
The monitoring module collects the core frequency of the processor in the whole process of the power consumption performance test, and the purpose is to ensure that the core frequency of the processor is kept consistent in the test stage, and the influence on the whole performance can not occur.
In an alternative embodiment of the invention, the server test system comprises a power meter, and the remote control end is connected with the power meter through a serial port line;
and the power meter is used for supplying power to the server testing end.
In the embodiment of the invention, the server test system can be composed of a remote control end, a server test end and a power meter. The remote control end is connected with the server test end through a network, and is connected with the power meter through a serial port line, and the power meter supplies power for the server test end.
Referring to fig. 2, a system architecture diagram of a server testing system according to an embodiment of the present invention mainly includes a remote control end, a server testing end, and a power meter. The remote control end is connected with the server test end through a network, is connected with the power meter through a serial port line, the power meter supplies power for the server test end, the hardware information collection module, the test execution control module and the test data processing module are operated on the remote control end, and the test execution module, the monitoring module and the non-core frequency adjustment module are operated on the server test end.
In an alternative embodiment of the present invention, the test report includes non-core frequencies corresponding to each test load point, and the overall performance of the server, the overall power consumption of the server, and the performance-to-power consumption ratio at each non-core frequency.
In the embodiment of the invention, the test data processing module of the remote control end processes the test result (test data and evaluation result) into a readable test report, wherein the test report can comprise target test load pressure, actual test load pressure, core frequencies corresponding to all test load points respectively, non-core frequencies corresponding to all test load points respectively, server overall performance scores corresponding to all test load points respectively, server overall power consumption corresponding to all test load points respectively, performance power consumption ratio corresponding to all test load points respectively and total performance power consumption ratio score.
In an alternative embodiment of the invention, the test load pressure is in the range of 30% to 80%.
In the embodiment of the present invention, the test load pressure of each test load point is set to a fixed value, and the fixed value may be 30% -80%, for example, may be 80%. In the pressure change range, the non-core frequency can exert the maximum performance, so that the excessive load pressure of the processor core is avoided, and the non-core frequency resource is strived for.
In an alternative embodiment of the present invention, the uncore frequency adjustment module is further configured to adjust the uncore frequency of the test server processor using a register tool or a central processor management tool.
In the embodiment of the invention, the uncore frequency of the test server processor is adjusted based on the register tool or the central processing unit management tool under the operating system to modify the uncore frequency register value, so that the test server processor takes effect immediately without restarting the operating system.
In summary, in the embodiment of the present invention, a server test system includes a server test end and a remote control end, where the server test end includes a hardware information collection module, a test execution control module, and a test data processing module, and the remote control end includes a test execution module, a monitor module, and a non-core frequency adjustment module, where the hardware information collection module may collect hardware parameter information of the test server, the test data processing module may adjust test parameters adopted in the test according to the obtained hardware parameter information, and send a test parameter adjustment completion message to the test execution control module after completing the test parameter adjustment, where the test execution control module may start a power consumption test program to collect power consumption data, start a performance data collection program to collect performance data, and control the test execution module to start a load test program; the test execution module is used for starting a load test program to evaluate the service performance of the collected power consumption data and performance data, and obtaining a corresponding evaluation result; the monitoring module is used for monitoring the load condition of the test server in the test process, and controlling the uncore frequency adjusting module to adjust the uncore frequency of the test server processor when the load condition reaches the test load pressure; the non-core frequency adjusting module is used for adjusting the current non-core frequency of the test server processor when the load condition reaches the test load pressure, and adjusting the running environment of the test server to be a test environment corresponding to the test load point; after the test is completed, the test data processing module can generate a test report by adopting the power consumption data, the performance data and the corresponding evaluation result, and the test report can reflect the influence of the frequency of the non-core part in the processor of the server on the power consumption and the performance of the whole server. By adopting the system, the influence of the frequency of the non-core part in the server processor on the power consumption and the performance of the whole machine can be automatically measured and estimated through a computer program.
Referring to fig. 3, a step flow chart of a server testing method provided by an embodiment of the present invention is shown, and the step flow chart is applied to a server testing system as described above, and may specifically include the following steps:
step 301, collecting hardware parameter information of a test server, and adjusting test parameters adopted in the test according to the obtained hardware parameter information.
Step 302, starting a power consumption testing program to collect power consumption data after completing test parameter adjustment, starting a performance data collecting program to collect performance data, and controlling a starting load testing program to evaluate service performance of the collected power consumption data and performance data to obtain a corresponding evaluation result.
In the testing process of testing the power consumption performance of the test server, the load condition of the test server is monitored, and when the load condition reaches the test load pressure, the non-core frequency of the test server processor is adjusted, so that the operation environment of the test server is adjusted to the test environment corresponding to the test load point.
And 303, after the test is completed, generating a test report by adopting the power consumption data, the performance data and the corresponding evaluation result.
The test report is used for reflecting the influence of the frequency of the uncore part in the processor of the server on the overall power consumption and the performance of the server.
In an alternative embodiment of the present invention, the test load pressures corresponding to the test load points are the same, and the test uncore frequencies corresponding to the test load points are different, so that the uncore frequencies are adjusted to be the test uncore frequencies corresponding to the test load points respectively by adjusting the uncore frequencies to the maximum value when the load condition reaches the test load pressure for the first time and decreasing the uncore frequencies according to a preset step when the load condition continues to reach the test load pressure.
In an alternative embodiment of the present invention, the hardware parameter information includes the number of logic cores of the processor, the test parameters include the number of warehouses used for testing, and the step 301 adjusts the test parameters used for the present test according to the obtained hardware parameter information, which specifically includes the following sub-steps:
the number of warehouses is adjusted according to the number of processor logic cores so that the number of warehouses is equal to the number of processor logic cores.
In an alternative embodiment of the present invention, the hardware parameter information includes a processor model and a value range of a non-core frequency of the processor, the test parameter includes a number of test load points, and in step 301, the test parameter adopted in the present test is adjusted according to the obtained hardware parameter information, which specifically includes the following sub-steps:
And determining the number of the test load points to be tested according to the model number of the processor and the value range of the non-core frequency of the processor.
In an optional embodiment of the present invention, the determining the number of the test load points to be tested according to the model of the processor and the value range of the non-core frequency of the processor in the substep may specifically include the following substeps:
and determining the non-core frequency adjustment step according to the model of the processor, and calculating the number of the test load points to be tested based on the value range of the non-core frequency of the processor and the non-core frequency adjustment step.
In an alternative embodiment of the present invention, after completing the adjustment of the test parameters, the following steps may be specifically performed:
and starting a temperature data collection program to collect temperature data of the test server at each test load point.
In an alternative embodiment of the present invention, the uncore frequency of the test server processor is adjusted by a register tool or a central processor management tool.
In summary, in the embodiment of the present invention, a server test system includes a server test end and a remote control end, where the server test end includes a hardware information collection module, a test execution control module, and a test data processing module, and the remote control end includes a test execution module, a monitor module, and a non-core frequency adjustment module, where the hardware information collection module may collect hardware parameter information of the test server, the test data processing module may adjust test parameters adopted in the test according to the obtained hardware parameter information, and send a test parameter adjustment completion message to the test execution control module after completing the test parameter adjustment, where the test execution control module may start a power consumption test program to collect power consumption data, start a performance data collection program to collect performance data, and control the test execution module to start a load test program; the test execution module is used for starting a load test program to evaluate the service performance of the collected power consumption data and performance data, and obtaining a corresponding evaluation result; the monitoring module is used for monitoring the load condition of the test server in the test process, and controlling the uncore frequency adjusting module to adjust the uncore frequency of the test server processor when the load condition reaches the test load pressure; the non-core frequency adjusting module is used for adjusting the current non-core frequency of the test server processor when the load condition reaches the test load pressure, and adjusting the running environment of the test server to be a test environment corresponding to the test load point; after the test is completed, the test data processing module can generate a test report by adopting the power consumption data, the performance data and the corresponding evaluation result, and the test report can reflect the influence of the frequency of the non-core part in the processor of the server on the power consumption and the performance of the whole server. By adopting the system, the influence of the frequency of the non-core part in the server processor on the power consumption and the performance of the whole machine can be automatically measured and estimated through a computer program.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
The embodiment of the invention also provides an electronic device, as shown in fig. 4, including: the processor 401, the memory 402, and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement the processes of the foregoing embodiment of a server testing method, and achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The embodiment of the present invention further provides a computer readable storage medium, as shown in fig. 5, on which a computer program 501 is stored, where the computer program when executed by a processor implements each process of the above embodiment of a server testing method, and the same technical effects can be achieved, and in order to avoid repetition, a detailed description is omitted herein.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be seen with each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail a server testing system, a server testing method, an electronic device and a computer readable storage medium, according to the present invention, wherein specific examples are provided herein to illustrate the principles and embodiments of the present invention, and the above examples are provided to assist in understanding the methods and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (12)
1. The server test system is characterized by comprising a server test end and a remote control end, wherein the server test end comprises a hardware information collection module, a test execution control module and a test data processing module, and the remote control end comprises a test execution module, a monitoring module and a non-core frequency adjustment module;
the hardware information collection module is used for collecting hardware parameter information of the test server and transmitting the collected hardware parameter information to the test data processing module;
the test data processing module is used for adjusting the test parameters adopted in the test according to the acquired hardware parameter information and sending a test parameter adjustment completion message to the test execution control module after completing the adjustment of the test parameters;
the test execution control module is used for starting a power consumption test program to collect power consumption data, starting a performance data collection program to collect performance data and controlling the test execution module to start a load test program after the test parameter adjustment completion message is acquired;
the test execution module is used for starting the load test program to evaluate the service performance of the collected power consumption data and performance data, and obtaining a corresponding evaluation result;
The monitoring module is used for monitoring the load condition of the test server in the test process, and controlling the uncore frequency adjusting module to adjust the uncore frequency of the test server processor when the load condition reaches the test load pressure;
the non-core frequency adjusting module is used for adjusting the current non-core frequency of the test server processor when the load condition reaches the test load pressure so as to adjust the running environment of the test server to be a test environment corresponding to the test load point;
the test data processing module is further used for generating a test report by adopting the power consumption data, the performance data and the corresponding evaluation result after the test is completed; the test report is used for reflecting the influence of the frequency of the non-core part in the processor of the server on the overall power consumption and the performance of the server.
2. The server test system of claim 1, wherein the test load pressure corresponding to each of the test load points is the same, and the test uncore frequency corresponding to each of the test load points is different;
the uncore frequency adjusting module is further configured to adjust the uncore frequency to a maximum value when the load condition reaches the test load pressure for the first time, and decrease the uncore frequency according to a preset step when the load condition continues to reach the test load pressure, so as to adjust the uncore frequency to a test uncore frequency corresponding to each test load point.
3. The server test system of claim 1, wherein the hardware parameter information includes a number of processor logic cores, and the test parameter includes a number of warehouses employed for testing;
the test data processing module is further configured to adjust the number of warehouses according to the number of processor logic cores, so that the number of warehouses is equal to the number of processor logic cores.
4. The server test system of claim 1, wherein the hardware parameter information includes a processor model number and a range of values of non-core frequencies of the processor, and the test parameter includes a number of test load points;
the test data processing module is further used for determining the number of the test load points to be tested according to the model of the processor and the value range of the non-core frequency of the processor.
5. The server test system of claim 4, wherein,
the test data processing module is further configured to determine a non-core frequency adjustment step according to the processor model, and calculate the number of test load points to be tested based on the non-core frequency value range of the processor and the non-core frequency adjustment step.
6. The server testing system of claim 1, wherein;
and the test execution control module is further used for starting a temperature data collection program to collect the temperature data of the test server at each test load point after the test parameter adjustment completion message is acquired.
7. The server test system of claim 1, wherein,
the monitoring module is also used for monitoring the non-core frequency and the core frequency of the test server processor in the test process; wherein the core frequency remains unchanged during the test.
8. The server testing system of claim 1, wherein the test report includes non-core frequencies corresponding to each of the test load points, and server farm performance, server farm power consumption, and performance power consumption ratios at each of the non-core frequencies.
9. The server test system of claim 2, wherein,
the uncore frequency adjustment module is further configured to adjust the uncore frequency of the test server processor by using a register tool or a central processing unit management tool.
10. A server testing method, applied to a server testing system, the method comprising:
Collecting hardware parameter information of a test server, and adjusting test parameters adopted in the test according to the obtained hardware parameter information;
starting a power consumption testing program to collect power consumption data after finishing testing parameter adjustment, starting a performance data collecting program to collect performance data, and controlling a starting load testing program to evaluate service performance of the collected power consumption data and the collected performance data to obtain a corresponding evaluation result; in the testing process of testing the power consumption performance of the test server, the non-core frequency of the test server processor is adjusted by monitoring the load condition of the test server and when the load condition reaches the test load pressure, so that the operation environment of the test server is adjusted to be a test environment corresponding to a test load point;
after the test is completed, generating a test report by adopting the power consumption data, the performance data and the corresponding evaluation result; the test report is used for reflecting the influence of the frequency of the non-core part in the processor of the server on the overall power consumption and the performance of the server.
11. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, which when executed by the processor performs the steps of a server testing method as claimed in claim 10.
12. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of a server testing method according to claim 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310417209.7A CN116680131A (en) | 2023-04-18 | 2023-04-18 | Server test system, server test method, electronic device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310417209.7A CN116680131A (en) | 2023-04-18 | 2023-04-18 | Server test system, server test method, electronic device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116680131A true CN116680131A (en) | 2023-09-01 |
Family
ID=87777685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310417209.7A Pending CN116680131A (en) | 2023-04-18 | 2023-04-18 | Server test system, server test method, electronic device, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116680131A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118277223A (en) * | 2024-05-31 | 2024-07-02 | 苏州元脑智能科技有限公司 | Server performance evaluation method, electronic device, storage medium and product |
-
2023
- 2023-04-18 CN CN202310417209.7A patent/CN116680131A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118277223A (en) * | 2024-05-31 | 2024-07-02 | 苏州元脑智能科技有限公司 | Server performance evaluation method, electronic device, storage medium and product |
CN118277223B (en) * | 2024-05-31 | 2024-10-01 | 苏州元脑智能科技有限公司 | Server performance evaluation method, electronic device, storage medium and product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3557819A1 (en) | Server failure detection method and system | |
CN111176419B (en) | Method and apparatus for estimating power performance of jobs running on multiple nodes of a distributed computer system | |
CN110196767B (en) | Service resource control method, device, equipment and storage medium | |
WO2021073130A1 (en) | Frequency modulation method and apparatus for processor, and computing device | |
WO2022134348A1 (en) | Method and apparatus for monitoring software development process, terminal, and storage medium | |
CN105676996A (en) | Loongson server power consumption control method and device | |
CN116680131A (en) | Server test system, server test method, electronic device, and storage medium | |
US20230229216A1 (en) | System and methods for server power management | |
WO2024099474A1 (en) | Energy efficiency evaluation method, apparatus, and system, and related device | |
CN105577796A (en) | Cluster power consumption control method and device | |
CN117033144B (en) | Remote inspection method, equipment and medium for server | |
EP4425368A1 (en) | Chip internal voltage prediction model generation method, chip internal voltage prediction method, and related apparatuses | |
CN116361703A (en) | Energy-saving control method and device for data center, electronic equipment and readable medium | |
CN115347650B (en) | Power supply method, device, equipment and medium based on voltage adjustment of detection equipment | |
US20170075589A1 (en) | Memory and bus frequency scaling by detecting memory-latency-bound workloads | |
CN115657835A (en) | Power consumption adjusting method and device applied to chip, electronic equipment and storage medium | |
CN118277223B (en) | Server performance evaluation method, electronic device, storage medium and product | |
WO2021120015A1 (en) | Power limit determination method and apparatus | |
CN110989814A (en) | Server protection method, device and equipment | |
CN114756418B (en) | Hard disk power-on control method, system, storage medium and equipment | |
CN114593509B (en) | Air conditioning unit air quantity regulation and control method and related components | |
Koutras et al. | Modeling perfect and minimal rejuvenation for client server systems with heterogeneous load | |
CN115857641B (en) | Control method, device and equipment for fan rotor and storage medium | |
US20230143343A1 (en) | Method and system for regular testing of datacenter hardware | |
CN113790164B (en) | Equipment fault early warning method and device, electronic equipment and computer readable medium |
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 |