Server testing system, server testing methods, electronic devices and storage media
By designing a server testing system, the impact of the processor's non-core frequency on the overall power consumption and performance is automatically measured and evaluated. This solves the problem that the impact of non-core components is not considered in existing technologies, and enables a comprehensive evaluation of server energy consumption and performance.
Patent Information
- Application Number
- CN202310417209.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-18
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-04-18
AI Technical Summary
In existing technologies, server performance testing mainly focuses on the performance of the processor core, without considering the impact of non-core processor components on server power consumption and performance.
Design a server testing system, including a server testing terminal and a remote control terminal. Through a hardware information collection module, a test execution control module, a test data processing module, a monitoring module, and a non-core frequency adjustment module, automatically measure and evaluate the impact of the processor's non-core frequency on the overall power consumption and performance.
It can automatically measure and evaluate the impact of the frequency of non-core components in a server processor on the overall power consumption and performance through computer programs, providing quantitative reference data.
Smart Images

Figure CN116680131B_ABST
Abstract
Description
Technical Field
[0001] This 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 Technology
[0002] Servers can be accurately measured and evaluated using energy efficiency benchmarks under different load levels, providing a quantitative reference for server energy efficiency technology assessment and server selection. However, current performance testing for server systems mainly considers the performance of the processor core, neglecting the impact of non-core processor components on server power consumption and performance. Summary of the Invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a server testing system, a server testing method, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems.
[0004] This invention discloses a server testing system, which includes a server testing terminal and a remote control terminal. The server testing terminal includes a hardware information collection module, a test execution control module, and a test data processing module. The remote control terminal includes a test execution module, a monitoring module, and a non-core frequency adjustment module.
[0005] The hardware information collection module is used to collect hardware parameter information of the test server and transmit the collected hardware parameter information to the test data processing module.
[0006] The test data processing module is used to adjust the test parameters used in this test according to the obtained hardware parameter information, and send a test parameter adjustment completion message to the test execution control module after the test parameter adjustment is completed.
[0007] The test execution control module is used to 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 after receiving the test parameter adjustment completion message.
[0008] The test execution module is used to start the load test program to evaluate the business performance of the collected power consumption data and performance data, and obtain the corresponding evaluation results;
[0009] The monitoring module is used to monitor the load of the test server during the test, and when the load reaches the test load pressure, control the non-core frequency adjustment module to adjust the non-core frequency of the test server processor.
[0010] The non-core frequency adjustment module is used to adjust the current non-core frequency of the test server processor when the load reaches the test load pressure, so as to adjust the operating environment of the test server to the test environment corresponding to the test load point.
[0011] The test data processing module is also used to generate a test report after the test is completed, using the power consumption data, the performance data, and the corresponding evaluation results; the test report is used to reflect the impact of the frequency of the non-core part of the server's processor on the overall power consumption and performance of the server.
[0012] Optionally, the test load pressure corresponding to each of the test load points is the same, and the test non-core frequency corresponding to each of the test load points is different;
[0013] The non-core frequency adjustment module is further configured to adjust the non-core frequency to its maximum value when the load condition first reaches the test load pressure, and to decrease the non-core frequency according to a preset step when the load condition continues to reach the test load pressure, so as to adjust the non-core frequency to the test non-core frequency corresponding to each of the test load points.
[0014] Optionally, the hardware parameter information includes the number of processor logic cores, and the test parameters include the number of repositories used in the test;
[0015] The test data processing module is also used 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.
[0016] Optionally, the hardware parameter information includes the processor model and the range of values for the processor's non-core frequency, and the test parameters include the number of test load points;
[0017] The test data processing module is also used to determine the number of test load points to be tested based on the processor model and the range of non-core frequencies of the processor.
[0018] Optionally,
[0019] The test data processing module is also used to determine the non-core frequency adjustment step according to the processor model, and to calculate the number of test load points to be tested based on the range of the non-core frequency of the processor and the non-core frequency adjustment step.
[0020] Optionally,
[0021] The test execution control module is further configured to, after receiving the test parameter adjustment completion message,
[0022] The temperature data collection program is started to collect temperature data of the test server at each of the test load points.
[0023] Optionally,
[0024] The monitoring module is also used to monitor the non-core frequency and core frequency of the test server processor during the test; wherein the core frequency remains unchanged during the test.
[0025] Optionally, the test report includes the non-core frequency corresponding to each of the test load points, as well as the overall server performance, overall server power consumption, and performance-to-power ratio at each of the non-core frequencies.
[0026] Optionally,
[0027] The non-core frequency adjustment module is also used to adjust the non-core frequency of the test server processor using register tools or central processing unit management tools.
[0028] This invention discloses a server testing method applied to a server testing system, the method comprising:
[0029] Collect hardware parameter information of the test server, and adjust the test parameters used in this test based on the obtained hardware parameter information;
[0030] After completing the test parameter adjustment, the power consumption test program is started to collect power consumption data, the performance data collection program is started to collect performance data, and the load test program is controlled to start to perform business performance evaluation on the collected power consumption data and performance data to obtain the corresponding evaluation results; wherein, during the power consumption performance test of the test server, the load of the test server is monitored, and when the load reaches the test load pressure, the non-core frequency of the test server processor is adjusted to adjust the operating environment of the test server to the test environment corresponding to the test load point;
[0031] After the test is completed, a test report is generated using the power consumption data, the performance data, and the corresponding evaluation results; the test report is used to reflect the impact of the frequency of the non-core part of the server's processor on the overall power consumption and performance of the server.
[0032] Optionally, the test load pressure corresponding to each of the test load points is the same, and the test non-core frequency corresponding to each of the test load points is different. By adjusting the non-core frequency to the maximum value when the load condition first reaches the test load pressure, and decreasing the non-core frequency according to a preset step when the load condition continues to reach the test load pressure, the non-core frequency is adjusted to the test non-core frequency corresponding to each of the test load points.
[0033] Optionally, the hardware parameter information includes the number of processor logic cores, the test parameters include the number of repositories used in the test, and adjusting the test parameters used in this test based on the obtained hardware parameter information includes:
[0034] The number of warehouses is adjusted according to the number of processor logical cores so that the number of warehouses is equal to the number of processor logical cores.
[0035] Optionally, the hardware parameter information includes the processor model and the range of non-core frequencies of the processor; the test parameters include the number of test load points; and adjusting the test parameters used in this test based on the obtained hardware parameter information includes:
[0036] The number of test load points to be tested is determined based on the processor model and the range of non-core frequencies of the processor.
[0037] Optionally, determining the number of test load points to be tested based on the processor model and the range of non-core frequencies of the processor includes:
[0038] The non-core frequency adjustment step is determined based on the processor model, and the number of test load points to be tested is calculated based on the range of non-core frequency values of the processor and the non-core frequency adjustment step.
[0039] Optionally, after completing the test parameter adjustment, the following may also be included:
[0040] The temperature data collection program is started to collect temperature data of the test server at each of the test load points.
[0041] Optionally, the non-core frequency of the test server processor can be adjusted using register tools or CPU management tools.
[0042] This invention also discloses an electronic device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of a server testing method as described above.
[0043] This invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of a server testing method as described above.
[0044] The embodiments of the present invention have the following advantages:
[0045] In this embodiment of the invention, the server testing system includes a server testing terminal and a remote control terminal. The server testing terminal includes a hardware information collection module, a test execution control module, and a test data processing module. The remote control terminal includes 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 the test parameters used in this test based on the acquired hardware parameter information, and after completing the test parameter adjustment, it sends a test parameter adjustment completion message to the test execution control module. At this time, the test execution control module can 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 uses... The system initiates a load test to evaluate the collected power consumption and performance data, obtaining corresponding evaluation results. During testing, the monitoring module monitors the load on the test server and, when the load reaches the test load pressure, controls the non-core frequency adjustment module to adjust the non-core frequency of the test server's processor. This module adjusts the test server's operating environment to match the test load point. After testing, the test data processing module generates a test report using power consumption data, performance data, and the corresponding evaluation results. The report reflects the impact of the non-core frequency of the server's processor on the overall power consumption and performance of the server. By employing this system, the impact of the non-core frequency of the server's processor on the overall power consumption and performance can be automatically measured and evaluated by a computer program. Attached Figure Description
[0046] Figure 1 This is a structural block diagram of a server testing system provided in an embodiment of the present invention;
[0047] Figure 2 This is a system architecture diagram of a server testing system according to an embodiment of the present invention;
[0048] Figure 3 This is a flowchart of the steps of a server testing method provided in an embodiment of the present invention;
[0049] Figure 4This is a structural block diagram of an electronic device provided in an embodiment of the present invention;
[0050] Figure 5 This is a structural block diagram of a computer-readable storage medium provided in an embodiment of the present invention. Detailed Implementation
[0051] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art are within the scope of protection of the present invention.
[0052] With the development of emerging technologies such as cloud computing and 5G networks, the amount of data on the internet is increasing daily. Data centers, as the carriers of the digital economy, are growing rapidly, with their size and scale expanding continuously. Because data centers require a large amount of electricity to maintain the operation of infrastructure such as servers, storage devices, backup devices, and cooling systems, energy consumption and carbon emissions are increasing rapidly.
[0053] The core computing component of a general-purpose server is the processor, which consists of two parts: the Core and the Uncore. The Core contains processor components involved in executing processor commands, including the Arithmetic and Logic Unit (ALU), Floating Point Unit (FPU), L1 Cache, and L2 Cache. The Uncore's functions include the QuickPath Interconnect (QPI) controller, L3 Cache, memory consistency monitoring (snoop agent pipeline), and memory controller. In essence, the Uncore is logic located on the same chip as the CPU core, outside of it. Traffic (e.g., data reads) generated by threads executing on the CPU core or I / O devices can be handled by the logic in the Uncore. The Uncore is responsible for managing consistency logic, managing access to DIMMs (Dual-Inline Memory Modules), managing power distribution, and managing sleep states.
[0054] Servers can be accurately measured and evaluated using energy efficiency benchmarks under different load levels, providing a quantitative reference for server energy efficiency technology assessment and server selection. However, current performance testing for server systems primarily considers CPU core performance, neglecting the impact of CPU uncores on server power consumption and performance.
[0055] Based on this, the present invention proposes a server testing method that can measure and evaluate the impact of the frequency of non-core components in a server processor on the overall power consumption and performance, and calculate its performance-to-power ratio.
[0056] One of the core concepts of this invention is that the server testing system includes a server testing end and a remote control end. The server testing end includes a hardware information collection module, a test execution control module, and a test data processing module. The remote control end includes 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 the test parameters used in this test based on the acquired hardware parameter information, and after completing the test parameter adjustment, it sends a test parameter adjustment completion message to the test execution control module. At this time, the test execution control module can 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... The first module initiates a load test program to evaluate the collected power consumption and performance data, obtaining corresponding evaluation results. The second module monitors the load on the test server during testing and, when the load reaches the test load pressure, controls the non-core frequency adjustment module to adjust the non-core frequency of the test server's processor. The third module adjusts the current non-core frequency of the test server's processor to match the test environment corresponding to the test load point. The fourth module generates a test report after testing using power consumption data, performance data, and the corresponding evaluation results. This report reflects the impact of the non-core frequency of the server's processor on the overall power consumption and performance of the server. By employing this system, the impact of the non-core frequency of the server's processor on the overall power consumption and performance can be automatically measured and evaluated by a computer program.
[0057] Reference Figure 1The diagram shows a structural block diagram of a server testing system provided in an embodiment of the present invention. The server testing system 101 includes a server testing terminal 1011 and a remote control terminal 1012. The server testing terminal 1011 includes a hardware information collection module 10111, a test execution control module 10112 and a test data processing module 10113. The remote control terminal 1012 includes a test execution module 10121, a monitoring module 10122 and a non-core frequency adjustment module 10123.
[0058] The hardware information collection module 10111 is used to collect hardware parameter information of the test server and transmit the collected hardware parameter information to the test data processing module 10113.
[0059] The test data processing module 10113 is used to adjust the test parameters used in this test according to the obtained hardware parameter information, and send the test parameter adjustment completion message to the test execution control module 10112 after the test parameter adjustment is completed.
[0060] The test execution control module 10112 is used to 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 after receiving the test parameter adjustment completion message.
[0061] The test execution module 10121 is used to start the load test program to evaluate the business performance of the collected power consumption data and performance data, and obtain the corresponding evaluation results.
[0062] The monitoring module 10122 is used to monitor the load of the test server during the test, and control the non-core frequency adjustment module 10123 to adjust the non-core frequency of the test server processor when the load reaches the test load pressure.
[0063] The non-core frequency adjustment module 10123 is used to adjust the current non-core frequency of the test server processor when the load reaches the test load pressure, so as to adjust the operating environment of the test server to the test environment corresponding to the test load point.
[0064] The test data processing module 10113 is also used to generate a test report after the test is completed, using power consumption data, the performance data, and the corresponding evaluation results.
[0065] The test report is used to reflect the impact of the frequency of non-core components of the server's processor on the overall power consumption and performance of the server.
[0066] Based on the synergistic effect of the above modules, the impact of different non-core frequencies on the overall performance and power consumption of the server can be accurately assessed.
[0067] In an optional embodiment of the present invention, the test load pressure corresponding to each test load point is the same, and the test non-core frequency corresponding to each test load point is different.
[0068] The non-core frequency adjustment module is also used to adjust the non-core frequency to its maximum value when the load condition first reaches the test load pressure, and to decrease the non-core frequency according to a preset step when the load condition continues to reach the test load pressure, so as to adjust the non-core frequency to the test non-core frequency corresponding to each test load point.
[0069] Test load points refer to nodes where load testing is performed. Each test load point has the same test load pressure, but the corresponding non-core test frequencies differ. Based on the customer's business load requirements, the test load pressure for each test load point can be uniformly set to a fixed value for evaluation, avoiding the influence of load pressure on the test results.
[0070] The server test client runs a load test program that can dynamically adjust the non-core frequency of the server test client's processor. After the power consumption performance test starts, the monitoring module of the server test client controls the non-core frequency adjustment module to adjust the non-core frequency to the maximum value when the load reaches the test load pressure for the first time. When the test load pressure is reached for the second time, the non-core frequency adjustment module is controlled to subtract a preset step from the non-core frequency. When the test load pressure is reached for the nth time, the current non-core frequency is set to the maximum non-core frequency minus (n-1) * step.
[0071] Specifically, when the test load pressure is reached for the second time, i.e., after the flag bit _001_cal_sum_ is detected, the non-core frequency can be adjusted; when the test load pressure is reached for the nth time, i.e., after the flag bit _00(n-1)_cal_sum_ is detected, the non-core frequency can be adjusted. At this time, the non-core frequency corresponding to the nth test load point is:
[0072] U n =U max -(n-1)*S min
[0073] Among them, U max The maximum value of the non-core frequency; n is the nth test load point, where n is a positive integer; S min Adjust the step size for non-core frequencies; U n This is the non-core frequency corresponding to the nth test load point.
[0074] The hardware information collection module can be used to collect information about the test server's processor model, number of processor logical cores, core clock speed, and the range of non-core frequencies.
[0075] In an optional embodiment of the present invention, the hardware parameter information includes the number of processor logic cores, and the test parameters include the number of repositories used in the test.
[0076] The test data processing module is also used to adjust the number of warehouses according to the number of processor logical cores so that the number of warehouses equals the number of processor logical cores.
[0077] In this embodiment of the invention, the test data processing module can adjust the number of warehouses according to the number of processor logic cores, so that it is equal to the number of processor logic cores. The purpose is to enable the server test end to reach a full load state and give full play to the business processor capabilities.
[0078] The test data processing module can adjust the test parameters of the test execution control module. The test data processing module at the remote control end can set the warehouse quantity parameter in the power consumption data collection program to 192 based on the number of processor logical cores obtained. For example, if the number of processor logical cores obtained is 192, the test data processing module can set the warehouse quantity parameter in the power consumption data collection program to 192.
[0079] In an optional embodiment of the present invention, the hardware parameter information includes the processor model and the range of values for the processor's non-core frequency, and the test parameters include the number of test load points.
[0080] The test data processing module is also used to determine the number of test load points to be tested based on the processor model and the range of non-core frequencies of the processor.
[0081] In an optional embodiment of the present invention, the test data processing module is further configured to determine the non-core 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 processor's non-core frequency and the non-core frequency adjustment step.
[0082] In this embodiment of the invention, the number of test load points to be tested is adjusted according to the obtained processor model and the range of the processor's non-core frequency. For example, if the obtained processor model is Intel Xeon_Gold_6348 and the non-core frequency range is 2400MHz to 800MHz, then the step can be set to 100MHz, and the number of test load points is 17. The test non-core frequencies corresponding to each test load point are 2400MHz, 2300MHz, 2200MHz, ..., 800MHz, respectively. If the obtained processor model is AMD... For Milan_7A23, the non-core frequency range is 1600MHz to 800MHz, so the step can be set to 133MHz. The number of test load points is 7, and the non-core frequencies corresponding to each test load point are 1600MHz, 1467MHz, 1333MHz, 1200MHz, 1067MHz, 933MHz, and 800MHz, respectively.
[0083] Adjust the number of load test points and the non-core frequency adjustment step based on the processor model and the range of non-core frequencies. Furthermore, the non-core frequency adjustment step can be determined by the processor model. Assume the non-core frequency adjustment step is S. min The maximum value of the non-core frequency is U. max The minimum value of the non-core frequency is U. min Then the number of test load points executed by the server test terminal is N. load The calculation formula is as follows:
[0084] N load =(U max -U min ) / S min
[0085] In an optional embodiment of the present invention, the test execution control module is further configured to, after receiving the message that the test parameter adjustment is complete, start the temperature data collection program to collect the temperature data of the test server at each test load point.
[0086] In this embodiment of the invention, a power consumption test program can be used to collect power consumption data of the test server at each test load point. In specific applications, a power data collection program can be used to collect power data of the test server at each test load point.
[0087] A performance data collection program can be used to collect performance data of the test server at each test load point, and a temperature data collection program can also be used to collect temperature data of the test server at each test load point.
[0088] In this embodiment of the invention, the test execution control module can be used to start the power consumption test program, the temperature data collection program, and the performance data collection program.
[0089] In an optional embodiment of the present invention, the monitoring module is further configured to monitor the non-core frequency and core frequency of the test server processor during the test process; wherein the core frequency remains unchanged during the test.
[0090] In this embodiment of the invention, the monitoring module will dynamically collect the processor's non-core frequency and core frequency.
[0091] The monitoring module will collect the processor's core frequency throughout the power consumption performance test. This is to ensure that the processor's core frequency remains consistent during the test and will not affect the overall performance of the machine.
[0092] In an optional embodiment of the present invention, the server testing system includes a power meter, and a remote control terminal is connected to the power meter via a serial cable;
[0093] A power meter is used to power the server test unit.
[0094] In this embodiment of the invention, the server testing system may consist of a remote control terminal, a server testing terminal, and a power meter. The remote control terminal is connected to the server testing terminal via a network and to the power meter via a serial cable, and the power meter supplies power to the server testing terminal.
[0095] Reference Figure 2 The diagram shown illustrates the system architecture of a server testing system according to an embodiment of the present invention. It mainly consists of a remote control terminal, a server testing terminal, and a power meter. The remote control terminal is connected to the server testing terminal via a network and to the power meter via a serial cable. The power meter supplies power to the server testing terminal. The remote control terminal runs a hardware information collection module, a test execution control module, and a test data processing module. The server testing terminal runs a test execution module, a monitoring module, and a non-core frequency adjustment module.
[0096] In an optional embodiment of the present invention, the test report includes the non-core frequency corresponding to each test load point, as well as the overall server performance, overall server power consumption, and performance-to-power ratio at each non-core frequency.
[0097] In this embodiment of the invention, the test data processing module of the remote control terminal processes the test results (test data and evaluation results) into a readable test report. The test report may include the target test load pressure, the actual test load pressure, the core frequency corresponding to each test load point, the non-core frequency corresponding to each test load point, the server's overall performance score corresponding to each test load point, the server's overall power consumption corresponding to each test load point, the performance-power ratio corresponding to each test load point, and the total performance-power ratio score.
[0098] In an optional embodiment of the present invention, the test load pressure ranges from 30% to 80%.
[0099] In this embodiment of the invention, the test load pressure at each test load point is set to a fixed value, which can be 30% to 80%, for example, all values can be set to 80%. Within the above pressure variation range, the non-core frequency can achieve maximum performance, avoiding excessive load pressure on the processor core and competition for non-core frequency resources.
[0100] In an optional embodiment of the present invention, the non-core frequency adjustment module is further configured to adjust the non-core frequency of the test server processor using register tools or central processing unit management tools.
[0101] In this embodiment of the invention, the non-core frequency of the test server processor is adjusted by modifying the non-core frequency register value based on the register tool or central processing unit management tool under the operating system, without restarting the operating system, and takes effect immediately.
[0102] In summary, in this embodiment of the invention, the server testing system includes a server testing terminal and a remote control terminal. The server testing terminal includes a hardware information collection module, a test execution control module, and a test data processing module. The remote control terminal includes 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 the test parameters used in this test based on the acquired hardware parameter information, and after completing the test parameter adjustment, it sends a test parameter adjustment completion message to the test execution control module. At this time, the test execution control module can 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... The system is used to initiate load testing, evaluate the collected power consumption and performance data, and obtain corresponding evaluation results. The monitoring module monitors the load on the test server during testing and, when the load reaches the test load pressure, controls the non-core frequency adjustment module to adjust the non-core frequency of the test server's processor. The non-core frequency adjustment module adjusts the current non-core frequency of the test server's processor to match the test environment corresponding to the test load point. After testing, the test data processing module generates a test report using power consumption data, performance data, and corresponding evaluation results. The test report reflects the impact of the non-core frequency of the server's processor on the overall power consumption and performance of the server. By using this system, the impact of the non-core frequency of the server's processor on the overall power consumption and performance can be automatically measured and evaluated by a computer program.
[0103] Reference Figure 3 The diagram illustrates a flowchart of a server testing method provided by an embodiment of the present invention, which is applied to the server testing system described above and may specifically include the following steps:
[0104] Step 301: Collect the hardware parameter information of the test server, and adjust the test parameters used in this test based on the obtained hardware parameter information.
[0105] Step 302: After completing the test parameter adjustment, start the power consumption test program to collect power consumption data, start the performance data collection program to collect performance data, and control the start of the load test program to perform business performance evaluation on the collected power consumption data and performance data to obtain the corresponding evaluation results.
[0106] In the power consumption performance test of the test server, the load of the test server is monitored, and when the load reaches the test load pressure, the non-core frequency of the test server processor is adjusted to adjust the test server's operating environment to the test environment corresponding to the test load point.
[0107] Step 303: After the test is completed, a test report is generated using power consumption data, performance data, and corresponding evaluation results.
[0108] The test report is used to reflect the impact of the frequency of non-core components of the server's processor on the overall power consumption and performance of the server.
[0109] In an optional embodiment of the present invention, the test load pressure corresponding to each test load point is the same, and the test non-core frequency corresponding to each test load point is different. By adjusting the non-core frequency to the maximum value when the load condition first reaches the test load pressure, and decreasing the non-core frequency according to a preset step when the load condition continues to reach the test load pressure, the non-core frequency is adjusted to the test non-core frequency corresponding to each test load point.
[0110] In an optional embodiment of the present invention, the hardware parameter information includes the number of processor logic cores, and the test parameters include the number of repositories used in the test. Step 301 adjusts the test parameters used in this test based on the obtained hardware parameter information, which may specifically include the following sub-steps:
[0111] Adjust the number of warehouses according to the number of processor logical cores so that the number of warehouses equals the number of processor logical cores.
[0112] In an optional embodiment of the present invention, the hardware parameter information includes the processor model and the range of non-core frequencies of the processor, and the test parameters include the number of test load points. Step 301 adjusts the test parameters used in this test based on the obtained hardware parameter information, which may specifically include the following sub-steps:
[0113] The number of test load points to be tested is determined based on the processor model and the range of non-core frequencies of the processor.
[0114] In an optional embodiment of the present invention, the sub-step of determining the number of test load points to be tested based on the processor model and the range of non-core frequencies of the processor may specifically include the following sub-steps:
[0115] The non-core frequency adjustment step is determined based on the processor model, and the number of test load points to be tested is calculated based on the range of non-core frequency values and the non-core frequency adjustment step.
[0116] In an optional embodiment of the present invention, after the test parameters are adjusted, the following steps may also be performed:
[0117] Start the temperature data collection program to collect temperature data of the test server at each test load point.
[0118] In an optional embodiment of the present invention, the non-core frequency of the test server processor is adjusted using register tools or CPU management tools.
[0119] In summary, in this embodiment of the invention, the server testing system includes a server testing terminal and a remote control terminal. The server testing terminal includes a hardware information collection module, a test execution control module, and a test data processing module. The remote control terminal includes 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 the test parameters used in this test based on the acquired hardware parameter information, and after completing the test parameter adjustment, it sends a test parameter adjustment completion message to the test execution control module. At this time, the test execution control module can 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... The system is used to initiate load testing, evaluate the collected power consumption and performance data, and obtain corresponding evaluation results. The monitoring module monitors the load on the test server during testing and, when the load reaches the test load pressure, controls the non-core frequency adjustment module to adjust the non-core frequency of the test server's processor. The non-core frequency adjustment module adjusts the current non-core frequency of the test server's processor to match the test environment corresponding to the test load point. After testing, the test data processing module generates a test report using power consumption data, performance data, and corresponding evaluation results. The test report reflects the impact of the non-core frequency of the server's processor on the overall power consumption and performance of the server. By using this system, the impact of the non-core frequency of the server's processor on the overall power consumption and performance can be automatically measured and evaluated by a computer program.
[0120] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0121] This invention also provides an electronic device, such as... Figure 4 As shown, it includes: a processor 401, a memory 402, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described server testing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0122] This invention also provides a computer-readable storage medium, such as... Figure 5 As shown, a computer program 501 is stored on a computer-readable storage medium. When the computer program is executed by a processor, it implements the various processes of the above-described server testing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0123] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0124] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0125] 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 block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can 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, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0126] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0128] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0129] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0130] The foregoing has provided a detailed description of a server testing system, a server testing method, an electronic device, and a computer-readable storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A server testing system, characterized by, The server testing system includes a server testing terminal and a remote control terminal. The server testing terminal includes a hardware information collection module, a test execution control module, and a test data processing module. The remote control terminal includes a test execution module, a monitoring module, and a non-core frequency adjustment module. The hardware information collection module is used to collect hardware parameter information of the test server and transmit the collected hardware parameter information to the test data processing module. The test data processing module is used to adjust the test parameters used in this test according to the obtained hardware parameter information, and send a test parameter adjustment completion message to the test execution control module after the test parameter adjustment is completed. The test execution control module is used to 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 after receiving the test parameter adjustment completion message. The test execution module is used to start the load test program to evaluate the business performance of the collected power consumption data and performance data, and obtain the corresponding evaluation results; The monitoring module is used to monitor the load of the test server during the test, and when the load reaches the test load pressure, control the non-core frequency adjustment module to adjust the non-core frequency of the test server processor; it is also used to monitor the non-core frequency and core frequency of the test server processor during the test; wherein the core frequency remains unchanged during the test. The non-core frequency adjustment module is used to adjust the current non-core frequency of the test server processor when the load reaches the test load pressure, so as to adjust the operating environment of the test server to the test environment corresponding to the test load point. The test load pressure corresponding to each of the aforementioned test load points is the same, but the test non-core frequency corresponding to each of the aforementioned test load points is different. The non-core frequency adjustment module is further configured to adjust the non-core frequency to the maximum value when the load condition first reaches the test load pressure, and to decrease the non-core frequency according to a preset step when the load condition continues to reach the test load pressure, so as to adjust the non-core frequency to the test non-core frequency corresponding to each of the test load points. The test data processing module is also used to generate a test report after the test is completed, using the power consumption data, the performance data, and the corresponding evaluation results; the test report is used to reflect the impact of the frequency of the non-core part of the server's processor on the overall power consumption and performance of the server.
2. The server testing system of claim 1, wherein, The hardware parameter information includes the number of processor logic cores, and the test parameters include the number of repositories used in the test; The test data processing module is also used 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.
3. The server testing system of claim 1, wherein, The hardware parameter information includes the processor model and the range of non-core frequencies of the processor; the test parameters include the number of test load points. The test data processing module is also used to determine the number of test load points to be tested based on the processor model and the range of non-core frequencies of the processor.
4. The server testing system according to claim 3, characterized in that, The test data processing module is also used to determine the non-core frequency adjustment step according to the processor model, and to calculate the number of test load points to be tested based on the range of the non-core frequency of the processor and the non-core frequency adjustment step.
5. The server testing system of claim 1, wherein ; The test execution control module is further configured to, after receiving the test parameter adjustment completion message, The temperature data collection program is started to collect temperature data of the test server at each of the test load points.
6. The server testing system of claim 1, wherein, The test report includes the non-core frequency corresponding to each test load point, as well as the server's overall performance, server power consumption, and performance-to-power ratio at each non-core frequency.
7. The server testing system according to claim 1, characterized in that, The non-core frequency adjustment module is also used to adjust the non-core frequency of the test server processor using register tools or central processing unit management tools.
8. A server testing method characterized by, The method, applied to a server testing system, includes: Collect hardware parameter information of the test server, and adjust the test parameters used in this test based on the obtained hardware parameter information; After completing the test parameter adjustment, the power consumption test program is started to collect power consumption data, the performance data collection program is started to collect performance data, and the load test program is controlled to start to perform business performance evaluation on the collected power consumption data and performance data to obtain the corresponding evaluation results. In the process of power consumption performance testing of the test server, the load of the test server is monitored, and when the load reaches the test load pressure, the non-core frequency of the test server processor is adjusted to adjust the operating environment of the test server to the test environment corresponding to the test load point. The non-core frequency and core frequency of the test server processor can also be monitored during the test, wherein the core frequency remains unchanged during the test. The test load pressure corresponding to each of the test load points is the same, and the test non-core frequency corresponding to each of the test load points is different. When the load condition first reaches the test load pressure, the non-core frequency is adjusted to the maximum value. When the load condition continues to reach the test load pressure, the non-core frequency is decreased according to a preset step to adjust the non-core frequency to the test non-core frequency corresponding to each of the test load points. After the test is completed, a test report is generated using the power consumption data, the performance data, and the corresponding evaluation results; the test report is used to reflect the impact of the frequency of the non-core part of the server's processor on the overall power consumption and performance of the server.
9. An electronic device, comprising: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the server testing method as described in claim 8.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the server testing method as described in claim 8.
Citation Information
Patent Citations
Regulating core and un-core processor frequencies of computing node clusters
US20200387409A1
