Multi-node server energy efficiency test method, device and system and electronic equipment
By configuring and modifying the energy efficiency test tool in a multi-node server, ensuring that its operation progress on each node is consistent, the problem that existing tools cannot test multi-node servers is solved, and the accuracy and effectiveness of energy efficiency tests on multi-node servers is achieved. sex.
Patent Information
- Application Number
- CN202411505195.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2024-12-31
AI Technical Summary
The existing energy efficiency testing tools cannot be used for multi-node servers and cannot effectively conduct energy efficiency testing, resulting in the inability to evaluate the performance and energy efficiency of multi-node servers.
Configure the initial energy efficiency test tool in the multi-node server, and add a distinction mark for each node through file modification to ensure that the running progress of the test tool on each node is consistent, and determine the energy efficiency test results of the multi-node server based on the test results of each node.
The energy efficiency test of multi-node servers is realized. By integrating parameters such as the number of processor cores, threads, memory allocation size and process count, the accuracy of the energy efficiency test results is improved, and it can run normally and provide energy efficiency scores.
Smart Images

Figure CN119226116A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server testing technology, and in particular to a multi-node server energy efficiency testing method, device, system and electronic equipment. Background Art
[0002] At present, with the diversification and integration of server types, people are beginning to pay more and more attention to the performance of servers. Therefore, how to conduct energy efficiency testing of servers has become a key research topic.
[0003] In the related art, traditional energy efficiency testing tools are usually used to perform multiple stress tests on the server to be tested, and the performance and energy consumption are obtained from each stress test, and then the final energy efficiency test result is determined based on the performance and energy consumption.
[0004] However, multi-node servers are gradually becoming popular, and currently traditional energy efficiency testing tools are not applicable to multi-node servers. Therefore, there is an urgent need for a method suitable for energy efficiency testing of multi-node servers, which is of great significance to improving the performance of multi-node servers. Summary of the invention
[0005] The present application provides a multi-node server energy efficiency testing method, device, system and electronic equipment to solve the defects of related technologies such as the inability to perform energy efficiency testing on multi-node servers.
[0006] The first aspect of the present application provides a multi-node server energy efficiency testing method, comprising:
[0007] Configure an initial energy efficiency test tool on each node to be tested in a multi-node server;
[0008] Modifying the file of the initial energy efficiency test tool configured on each of the nodes to be tested so that each of the nodes to be tested obtains the target energy efficiency test tool; wherein the target energy efficiency test tools configured on different nodes to be tested are provided with distinguishing marks to indicate that they are deployed on different nodes to be tested;
[0009] According to the distinguishing identifiers of the target energy efficiency test tools, the target energy efficiency test tools of the nodes to be tested are controlled to run so that the running progress of the target energy efficiency test tools on the nodes to be tested is consistent;
[0010] The energy efficiency test result of the multi-node server is determined according to the running result of the target energy efficiency test tool of each node to be tested.
[0011] In an optional implementation manner, the file modification of the initial energy efficiency test tool configured for each of the nodes to be tested so that each of the nodes to be tested obtains the target energy efficiency test tool includes:
[0012] Obtaining the number of processor cores of each of the nodes to be tested;
[0013] For any of the nodes to be tested, modify the parameters of the main program file according to the number of processor cores of the node to be tested, so that the target energy efficiency test tool, in the process of running the main program based on the main program file, calls the target running program that matches the number of processor cores of the node to be tested according to the parameters of the main program file;
[0014] According to the network protocol address of the control end, modify the device association parameter of the main program file to associate the node to be tested with the control end; wherein the control end is used to control the operation of the target energy efficiency test tool on the node to be tested;
[0015] Allocating a unique host name and a unique host network address to each of the nodes to be tested;
[0016] For any of the nodes to be tested, modify the host parameters of the main program file according to the unique host name and unique host network address of the node to be tested, so as to add distinguishing identifiers of different nodes to be tested in the target energy efficiency test tool;
[0017] Use the modified main program file as the target main program file;
[0018] Wherein, the target energy efficiency test tool includes the target main program file.
[0019] In an optional implementation manner, the controlling the operation of the target energy efficiency test tool of each of the nodes to be tested according to the distinguishing identifier of each of the target energy efficiency test tools includes:
[0020] Obtaining the total number of nodes of the multi-node server;
[0021] According to the total number of nodes of the multi-node server, configuring the energy efficiency test tool control file of the control end;
[0022] Based on the control end, according to the energy efficiency test tool control file, the target energy efficiency test tool of each node to be tested is controlled to run multiple test phases;
[0023] Whenever the running result of the current test phase is fed back by any of the nodes to be tested, the number and distinguishing identifiers of the nodes to be tested that have not completed the running of the tool of the current test phase are determined according to the total number of nodes of the multi-node server, the number of the nodes to be tested that have fed back the running result of the current test phase, and the distinguishing identifiers of the nodes to be tested, so as to wait for the tool that has not completed the current test phase to feed back the running result of the current test phase;
[0024] When all the nodes to be tested have fed back the running results of the current test phase, controlling the target energy efficiency test tool of each node to be tested to run the next test phase until the running results of each node to be tested in each test phase are obtained;
[0025] The test load pressure of the node to be tested is different in different test phases.
[0026] In an optional implementation manner, determining the energy efficiency test result of the multi-node server according to the running result of the target energy efficiency test tool of each of the nodes to be tested includes:
[0027] For any of the nodes to be tested, determining the performance value and power consumption value of the node to be tested in each test phase according to the operation result of the target energy efficiency test tool of the node to be tested;
[0028] The energy efficiency test result of the multi-node server is determined according to the performance value and power consumption value of each node to be tested in each test phase.
[0029] In an optional implementation, for any of the nodes to be tested, determining the performance value and power consumption value of the node to be tested in each test phase according to the running result of the target energy efficiency test tool of the node to be tested includes:
[0030] For any of the nodes to be tested, according to the running result of the target energy efficiency test tool of the node to be tested, determine the number of processor cores, number of threads, memory allocation size and number of processes started by the node to be tested in response to the test load of each test phase;
[0031] The performance value of the node to be tested in each test phase is determined according to the number of processor cores, the number of threads, the memory allocation size and the number of processes started by the node to be tested in response to the test load of each test phase.
[0032] In an optional implementation manner, determining the energy efficiency test result of the multi-node server according to the performance value and the power consumption value of each of the nodes to be tested in each test phase includes:
[0033] The energy efficiency test result of the multi-node server is determined based on the following formula:
[0034]
[0035] Wherein, S represents the energy efficiency test result of the multi-node server, Q1i represents the performance value of the first node to be tested in the multi-node server in the i-th test phase, W1i represents the power consumption value of the first node to be tested in the multi-node server in the i-th test phase, Q2i represents the performance value of the second node to be tested in the multi-node server in the i-th test phase, W2i represents the power consumption value of the second node to be tested in the multi-node server in the i-th test phase, Q n i represents the performance value of the mth node to be tested in the multi-node server in the i-th test phase, W n i represents the power consumption value of the first node to be tested in the multi-node server in the i-th test phase, the multi-node server includes n nodes to be tested, and the total number of the test phases is N.
[0036] A second aspect of the present application provides a multi-node server energy efficiency testing device, comprising:
[0037] A configuration module, used to configure an initial energy efficiency test tool on each node to be tested in a multi-node server;
[0038] A modification module, used to modify the file of the initial energy efficiency test tool configured on each of the nodes to be tested, so that each of the nodes to be tested obtains the target energy efficiency test tool; wherein the target energy efficiency test tools configured on different nodes to be tested are provided with distinguishing marks to indicate that they are deployed on different nodes to be tested;
[0039] A control module, configured to control the operation of the target energy efficiency test tool of each node to be tested according to the distinguishing identifier of each target energy efficiency test tool, so as to make the operation progress of the target energy efficiency test tool on each node to be tested consistent;
[0040] The testing module is used to determine the energy efficiency test result of the multi-node server according to the running result of the target energy efficiency test tool of each node to be tested.
[0041] A third aspect of the present application provides a multi-node server energy efficiency testing system, comprising: a control terminal and a multi-node server;
[0042] The control end performs an energy efficiency test on the multi-node server based on the method described in the first aspect and various possible designs of the first aspect to obtain an energy efficiency test result of the multi-node server;
[0043] The control end is installed with an energy efficiency test control tool that matches the target energy efficiency test tool installed in each stage to be tested in the multi-node server.
[0044] A fourth aspect of the present application provides an electronic device, comprising: at least one processor and a memory;
[0045] The memory stores computer-executable instructions;
[0046] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method described in the first aspect and various possible designs of the first aspect.
[0047] A fifth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method described in the first aspect and various possible designs of the first aspect are implemented.
[0048] The sixth aspect of the present application provides a computer program product, including computer instructions, which are used to enable a computer to execute the method described in the first aspect and various possible designs of the first aspect.
[0049] The technical solution of this application has the following advantages:
[0050] The present application provides a method, device, system and electronic device for energy efficiency testing of a multi-node server, the method comprising: configuring an initial energy efficiency testing tool for each node to be tested in the multi-node server; modifying the file of the initial energy efficiency testing tool configured for each node to be tested so that each node to be tested obtains a target energy efficiency testing tool; wherein the target energy efficiency testing tools configured on different nodes to be tested are provided with distinguishing marks to represent deployment on different nodes to be tested; according to the distinguishing marks of each target energy efficiency testing tool, the target energy efficiency testing tool of each node to be tested is controlled to run so that the running progress of the target energy efficiency testing tool on each node to be tested is consistent; according to the running results of the target energy efficiency testing tool of each node to be tested, the energy efficiency test results of the multi-node server are determined. The method provided by the above scheme enables the energy efficiency testing tool to run normally on the multi-node server by modifying and configuring the energy efficiency testing tool configured for the node to be tested, and controlling the running progress of the tool of each test node to be consistent, so as to realize energy efficiency testing of the multi-node server. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technical descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0052] Figure 1 A schematic diagram of a multi-node server energy efficiency testing method provided in an embodiment of the present application;
[0053] Figure 2A schematic diagram of the structure of a multi-node server energy efficiency testing device provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of the structure of a multi-node server energy efficiency testing system provided in an embodiment of the present application;
[0055] Figure 4 A schematic diagram of the operation flow of a multi-node server energy efficiency testing system provided in an embodiment of the present application;
[0056] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0057] The above drawings have shown clear embodiments of the present application, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0059] In addition, the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following embodiments, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0060] In related technologies, with the diversification and integration of server types, people are paying more and more attention to the performance of servers, that is, the energy efficiency score. It is done by running SPECpower from 100% stress test, decreasing by 10% every time until idle, a total of 11 stress tests, and dividing the total performance value of these 11 stress tests by the total power consumption of the 11 stress tests to get the performance score, that is, the energy efficiency score, to determine the energy efficiency level. The energy efficiency level also determines the quality of performance. A high score means a high comprehensive evaluation, which is more favored by customers. With the birth of multi-node servers, their market share is gradually expanding, and the performance test of multi-node servers is also receiving more and more attention. At present, the power consumption test of servers is limited to single-node servers, and there is no effective method to test the energy efficiency of multi-node servers.
[0061] In response to the above problems, the embodiments of the present application provide a method, device, system and electronic device for energy efficiency testing of a multi-node server, the method comprising: configuring an initial energy efficiency testing tool for each node to be tested in the multi-node server; modifying the file of the initial energy efficiency testing tool configured for each node to be tested so that each node to be tested obtains a target energy efficiency testing tool; wherein the target energy efficiency testing tools configured on different nodes to be tested are provided with distinguishing marks to represent deployment on different nodes to be tested; according to the distinguishing marks of each target energy efficiency testing tool, the target energy efficiency testing tool of each node to be tested is controlled to run so that the running progress of the target energy efficiency testing tool on each node to be tested is consistent; according to the running results of the target energy efficiency testing tool of each node to be tested, the energy efficiency test results of the multi-node server are determined. The method provided by the above scheme enables the energy efficiency testing tool to run normally on the multi-node server by modifying and configuring the energy efficiency testing tool configured for the node to be tested, and controlling the running progress of the tool of each test node to be consistent, so as to realize energy efficiency testing of the multi-node server.
[0062] The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0063] The embodiment of the present application provides a multi-node server energy efficiency test method, which is used to use an energy efficiency test tool to perform energy efficiency test on a multi-node server. The execution subject of the embodiment of the present application is an electronic device, such as a server, a desktop computer, a laptop computer, a tablet computer, and other electronic devices that can be used to perform energy efficiency test on a multi-node server.
[0064] like Figure 1 FIG. 1 is a flow chart of a multi-node server energy efficiency testing method provided in an embodiment of the present application, the method comprising:
[0065] Step 101: configure an initial energy efficiency test tool on each node to be tested in a multi-node server.
[0066] Among them, the initial energy efficiency testing tool adopts traditional energy efficiency testing tools such as SPECpower.
[0067] Step 102 : modify the file of the initial energy efficiency test tool configured for each node to be tested, so that each node to be tested obtains the target energy efficiency test tool.
[0068] Among them, the target energy efficiency test tools configured on different nodes to be tested are provided with distinguishing marks to represent the deployment on different nodes to be tested.
[0069] It should be noted that a multi-node server is composed of multiple independent server nodes, which are connected together through a network to provide services together. The motherboards of the multi-node servers are the same, so their host names are generally the same. Multiple nodes are the same, and errors will occur when running traditional energy efficiency testing tools. In order to solve this problem, this application modifies the file of the initial energy efficiency testing tool configured for each node to be tested, and configures a distinguishing identifier to distinguish the energy efficiency testing tool deployed on each node to be tested.
[0070] Step 103 : According to the identification identifier of each target energy efficiency test tool, the target energy efficiency test tool of each node to be tested is controlled to run so that the running progress of the target energy efficiency test tool on each node to be tested is consistent.
[0071] Specifically, when using the target energy efficiency testing tool to perform energy efficiency testing on a multi-node server in multiple test phases with decreasing pressure, the running progress of the target energy efficiency testing tool of each node to be tested is controlled according to the distinguishing identifier of each target energy efficiency testing tool to ensure that each test phase remains in the same test phase to ensure that the target energy efficiency testing tool can run normally and stably on the multi-node server.
[0072] Step 104: Determine the energy efficiency test result of the multi-node server according to the operation result of the target energy efficiency test tool of each node to be tested.
[0073] Specifically, the energy efficiency test result of the multi-node server is determined by collecting statistics and analyzing the running results of the target energy efficiency test tool of each node to be tested.
[0074] On the basis of the above embodiment, in order to ensure that the energy efficiency test tool is adapted to the multi-node server, as an implementable method, in one embodiment, the initial energy efficiency test tool configured for each node to be tested is modified to enable each node to be tested to obtain the target energy efficiency test tool, including:
[0075] Step 1021, obtaining the number of processor cores of each node to be tested;
[0076] Step 1022, for any node to be tested, modify the parameters of the main program file according to the number of processor cores of the node to be tested, so that the target energy efficiency test tool, in the process of running the main program based on the main program file, calls the target running program that matches the number of processor cores of the node to be tested according to the parameters of the main program file;
[0077] Step 1023, modifying the device association parameter of the main program file according to the network protocol address of the control terminal, so as to associate the node to be tested with the control terminal; wherein the control terminal is used to control the operation of the target energy efficiency test tool on the node to be tested;
[0078] Step 1024, assigning a unique host name and a unique host network address to each node to be tested;
[0079] Step 1025, for any node to be tested, modify the host parameters of the main program file according to the unique host name and unique host network address of the node to be tested, so as to add distinguishing identifiers of different nodes to be tested in the target energy efficiency test tool;
[0080] Step 1026, using the modified main program file as the target main program file;
[0081] Among them, the target energy efficiency test tool includes a target main program file.
[0082] Specifically, after the node to be tested is installed with the initial energy efficiency test tool, first enter the ssj folder and rename SPECpower_ssj.props to SPECpower_ssj.props.bak, and rename SPECpower_ssj.props.bak to SPECpower_ssj.props to ensure that the energy efficiency test tool can run normally. Then obtain the number of processor cores of each node to be tested, edit the runssj.sh file (main program file), and change JVMS=1 to JVMS=the number of JVMs running on each node, that is, the number of processor cores. Generally, the number of processor cores is 8, that is, JVMS=8. Change "DIRECTOR_HOST=_hostname_or_IP_of_Director_system" in the main program file to "DIRECTOR_HOST=IP of the control end", that is, the IP address of the host computer (the network protocol address of the control end), and save and exit after the modification is completed. Edit the SPECpower_ssj.props file and change "input.director.hostname = localhost to = control end IP", where the control end IP is the IP address of the host computer. After the modification is completed, save and exit. Among them, the device association parameters of the main program file include DIRECTOR_HOST and input.director.hostname.
[0083] Furthermore, considering that the motherboards of multi-node servers are the same, their hostnames are generally the same. If the hostnames of multiple nodes are the same, an error will occur when running the test. After one node runs Java, when another node runs Java, the software will think that the server is already running, and the master will keep waiting for the processes of other nodes. The embodiment of the present application modifies the hostname of each node, enters the etc / sysconfig folder, modifies the network file, and modifies localhost.localdomain to cu01 (unique host name), where cu01 can be any letter or number or punctuation or special character and combination.
[0084] The hosts file of each node also needs to be modified accordingly. Enter the etc directory of each node, find the hosts file, edit the hosts file, add the node IP address and hostname name, such as "192.168.1.66cu01" (unique host network address). The IP here can be any IP address, and the hostname can also be any name. After the modification is completed, you need to save and exit, and then restart. Similarly, you can perform corresponding operations on another node or multiple nodes.
[0085] On the basis of the above embodiments, in order to further ensure that the energy efficiency test tool is adapted to the multi-node server, as an implementable method, in one embodiment, according to the distinguishing mark of each target energy efficiency test tool, the target energy efficiency test tool of each node to be tested is operated and controlled, including:
[0086] Step 1031, obtaining the total number of nodes of the multi-node server;
[0087] Step 1032, configuring the energy efficiency test tool control file of the control end according to the total number of nodes of the multi-node server;
[0088] Step 1033, based on the control end, according to the energy efficiency test tool control file, the target energy efficiency test tool of each node to be tested is controlled to run multiple test phases;
[0089] Step 1034, each time the running result of the current test phase fed back by any node to be tested is obtained, the number and distinguishing identifiers of the nodes to be tested that have not completed the running of the tool in the current test phase are determined according to the total number of nodes of the multi-node server and the number of nodes to be tested that have fed back the running result of the current test phase and the distinguishing identifiers of the nodes to be tested, so as to wait for the tool that has not completed the current test phase to feed back the running result of the current test phase;
[0090] Step 1035 , when all nodes to be tested have fed back the running results of the current test phase, the target energy efficiency test tool of each node to be tested is controlled to run the next test phase until the running results of each node to be tested in each test phase are obtained.
[0091] Among them, the test load pressure of the node to be tested is different in different test stages.
[0092] Specifically, the control end first installs the energy efficiency test control tool (SPECpower) that matches the target energy efficiency test tool installed in each test stage in the multi-node server. After the installation is completed, enter the PTDaemon folder, edit the runpower.sh file, change DEVICE=0 to DEVICE=8, the total number of nodes of the multi-node server is 8, save and exit; enter the ssj folder, edit the rundirector file, find NUM_HOSTS, by default NUM_HOSTS=1, that is, the single-node server has one motherboard by default, that is, one user. If it is multi-node operation, change NUM_HOSTS=1 to NUM_HOSTS=n, n is the number of nodes. For example, if the server has 2 nodes, NUM_HOSTS=2, similarly, if the server has 4 nodes, NUM_HOSTS=4, save and exit after the modification is completed to ensure that the control end obtains the running results fed back by all nodes (8 nodes) in each test stage, and then controls the target energy efficiency test tool to run the next test stage until the running results of each node to be tested in each test stage are obtained.
[0093] On the basis of the above embodiments, in order to ensure the accuracy of the energy efficiency test results of the multi-node server finally obtained, as an implementable method, in one embodiment, according to the running results of the target energy efficiency test tool of each node to be tested, the energy efficiency test results of the multi-node server are determined, including:
[0094] Step 1041, for any node to be tested, according to the operation result of the target energy efficiency test tool of the node to be tested, determining the performance value and power consumption value of the node to be tested in each test phase;
[0095] Step 1042: Determine the energy efficiency test result of the multi-node server according to the performance value and power consumption value of each node to be tested in each test phase.
[0096] Specifically, during the test process, if the host computer (control end) is a server, run runpower.sh, runtemp.sh, rundirector.sh and runCCS.sh; if the host computer is a laptop or desktop computer, run runpower.bat, runtemp.bat, rundirector.bat and runCCS.bat. After waiting for 5 seconds, run the runssj.sh file in the ssj folder of the controlled machine, that is, the node under test, so that the node under test runs the target energy efficiency test tool. After the operation is successful, the control end will display how many nodes under test are running. In the process of running the target energy efficiency test tool, the performance value and power consumption value of the node under test in each test stage are collected in real time, that is, the operation result of the target energy efficiency test tool of the node under test is obtained, and then the energy efficiency test result of the multi-node server is determined according to the performance value and power consumption value of each node under test in each test stage.
[0097] Among them, the energy efficiency test results of the multi-node server also include information such as the temperature of the air inlet and outlet, fan speed and CPU frequency. This information is collected in real time by the control end when the node to be tested is running the target energy efficiency test tool.
[0098] Specifically, in one embodiment, for any node to be tested, the number of processor cores, threads, memory allocation size, and processes started by the node to be tested in response to the test load of each test stage are determined based on the running results of the target energy efficiency test tool of the node to be tested; the performance value of the node to be tested in each test stage is determined based on the number of processor cores, threads, memory allocation size, and processes started by the node to be tested in response to the test load of each test stage.
[0099] Specifically, the number of processor cores actually used by the node under test in each test phase can be obtained by querying the operating system or related performance monitoring tools. An increase in the number of processor cores usually improves computing power, which has a positive impact on performance. Similar to the number of processor cores, the number of threads used by the node under test in each test phase can be obtained through the operating system or performance monitoring tools. An increase in the number of threads can improve concurrent processing capabilities to a certain extent, but it may also be limited by hardware resources and applications. Understanding the memory size allocated to the node under test in each test phase is also important for evaluating performance. Insufficient memory allocation may lead to performance degradation, while reasonable memory allocation can improve data processing efficiency. The number of processes can reflect the number of tasks running simultaneously on the node under test. Too many processes may cause resource competition and performance degradation, while proper process management can improve the overall performance of the system. Further, the performance value of the node under test in each test phase is determined by combining the number of processor cores, the number of threads, the memory allocation size, and the number of processes.
[0100] Specifically, in practical applications, disk I / O performance, network bandwidth usage, etc. may also be considered to obtain a more comprehensive performance value for evaluating the node to be tested.
[0101] Specifically, in one embodiment, for determining the power consumption value of the node to be tested in each test phase, a dedicated hardware monitoring device or tool can be used to directly measure the power consumption of the node to be tested. These tools can usually be connected to the power interface or other related parts of the server to monitor the power consumption data in real time. It is also possible to establish an energy consumption model to estimate the power consumption based on the hardware configuration and workload of the server.
[0102] Specifically, in one embodiment, the energy efficiency test result of the multi-node server may be determined based on the following formula:
[0103]
[0104] Where S represents the energy efficiency test result of the multi-node server, Q1i represents the performance value of the first node to be tested in the multi-node server in the i-th test phase, W1i represents the power consumption value of the first node to be tested in the multi-node server in the i-th test phase, Q2i represents the performance value of the second node to be tested in the multi-node server in the i-th test phase, W2i represents the power consumption value of the second node to be tested in the multi-node server in the i-th test phase, Q n i represents the performance value of the nth node to be tested in the multi-node server in the i-th test phase, W n i represents the power consumption value of the first node to be tested in the multi-node server in the i-th test phase. The multi-node server includes n nodes to be tested, and the total number of test phases is N.
[0105] Furthermore, in one embodiment, after determining the energy efficiency test results of the multi-node server, the energy efficiency bottlenecks and optimizable aspects of the server at different test stages can be found by analyzing the energy efficiency test results. This may include adjusting the configuration of the server, optimizing the performance of the application, improving the cooling system, etc. to improve the energy efficiency of the server. The energy efficiency test results can also be incorporated into the energy management strategy. According to the energy efficiency performance of the server, a reasonable energy use plan can be formulated, such as reducing the power consumption of the server during non-peak hours, or dynamically adjusting the resource allocation of the server according to the load conditions to achieve efficient use of energy.
[0106] The multi-node server energy efficiency testing method provided by the embodiment of the present application is configured with an initial energy efficiency testing tool for each node to be tested in the multi-node server; the initial energy efficiency testing tool configured for each node to be tested is modified in file so that each node to be tested obtains a target energy efficiency testing tool; wherein, the target energy efficiency testing tools configured on different nodes to be tested are provided with distinguishing marks to represent deployment on different nodes to be tested; according to the distinguishing marks of each target energy efficiency testing tool, the target energy efficiency testing tool of each node to be tested is controlled to run so that the running progress of the target energy efficiency testing tool on each node to be tested is consistent; according to the running results of the target energy efficiency testing tool of each node to be tested, the energy efficiency test results of the multi-node server are determined. The method provided by the above scheme is to modify and configure the energy efficiency testing tool configured for the node to be tested, and control the running progress of the tool of each test node to be consistent, so that the energy efficiency testing tool can run normally on the multi-node server, so as to realize energy efficiency testing of the multi-node server. In addition, the performance value of the node to be tested at each test stage is determined based on the number of comprehensive processor cores, number of threads, memory allocation size and number of processes, and the energy efficiency test results of the multi-node server are determined based on the obtained performance value and power consumption value, thereby improving the accuracy of the final energy efficiency test results. In addition, the energy efficiency test results of the multi-node server can be presented to customers in the form of numbers and charts, which is convenient for the display of multi-node server performance.
[0107] An embodiment of the present application provides a multi-node server energy efficiency testing device, which is used to execute the multi-node server energy efficiency testing method provided in the above embodiment.
[0108] like Figure 2 , which is a schematic diagram of the structure of a multi-node server energy efficiency test device provided in an embodiment of the present application. The multi-node server energy efficiency test device 20 comprises: a configuration module 201 , a modification module 202 , a control module 203 and a test module 204 .
[0109] Among them, the configuration module is used to configure the initial energy efficiency test tool on each node to be tested in the multi-node server; the modification module is used to modify the file of the initial energy efficiency test tool configured on each node to be tested so that each node to be tested can obtain the target energy efficiency test tool; wherein, the target energy efficiency test tools configured on different nodes to be tested are provided with distinguishing marks to represent that they are deployed on different nodes to be tested; the control module is used to control the operation of the target energy efficiency test tool on each node to be tested according to the distinguishing marks of each target energy efficiency test tool so that the operation progress of the target energy efficiency test tool on each node to be tested is consistent; the test module is used to determine the energy efficiency test result of the multi-node server according to the operation result of the target energy efficiency test tool on each node to be tested.
[0110] Regarding the multi-node server energy efficiency testing device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0111] The multi-node server energy efficiency testing device provided in the embodiment of the present application is used to execute the multi-node server energy efficiency testing method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.
[0112] An embodiment of the present application provides a multi-node server energy efficiency testing system, which is used to execute the multi-node server energy efficiency testing method provided in the above embodiment.
[0113] like Figure 3 , which is a schematic diagram of the structure of a multi-node server energy efficiency testing system provided in an embodiment of the present application, wherein the multi-node server energy efficiency testing system includes a control terminal and a multi-node server.
[0114] The control end performs an energy efficiency test on the multi-node server based on the multi-node server energy efficiency test method provided in the above embodiment to obtain an energy efficiency test result of the multi-node server.
[0115] The control end is installed with an energy efficiency test control tool that matches the target energy efficiency test tool installed in each test stage in the multi-node server.
[0116] Specifically, the control end can be a server or a computer. If the control end is a server and the operating system is Linux, the following modifications need to be made:
[0117] After SPECpower is installed, enter the PTDaemon folder, edit the runpower.sh file, change DEVICE=0 to DEVICE=8, save the file and exit.
[0118] Enter the ssj folder, edit the rundirector file, and find NUM_HOSTS. By default, NUM_HOSTS=1, which means that a single-node server has one mainboard by default, that is, one user. If it is running on multiple nodes, change NUM_HOSTS=1 to NUM_HOSTS=n, where n is the number of nodes. For example, if the server has 2 nodes, NUM_HOSTS=2. Similarly, if the server has 4 nodes, NUM_HOSTS=4. After the modification is completed, save and exit.
[0119] If the control end is a computer and the operating system is Windows, the following modifications need to be made:
[0120] After SPECpower is installed, enter the PTDaemon folder, edit the runpower.bat file, change DEVICE=0 to DEVICE=8, save the file and exit.
[0121] Enter the ssj folder and edit the rundirector file. The purpose of modifying the rundirector file is to enable the host computer to obtain the parameters of each node server, including the power consumption of each component, the temperature of the air inlet and outlet, the fan speed, the CPU frequency, etc. Find NUM_HOSTS. By default, NUM_HOSTS = 1, that is, a single-node server has one motherboard by default, that is, one user. If it is running on multiple nodes, change NUM_HOSTS = 1 to NUM_HOSTS = n, where n is the number of nodes. For example, if the server has 2 nodes, NUM_HOSTS = 2. Similarly, if the server has 4 nodes, NUM_HOSTS = 4. After the modification is completed, save and exit.
[0122] For example, Figure 4 As shown, it is a schematic diagram of the operation flow of the multi-node server energy efficiency test system provided by the embodiment of the present application. First, install the Linux system on each node, install the corresponding version of Java and the SPECpower installation package, install the corresponding version of Python, and then modify the corresponding files of the control end and the node under test. By debugging the energy efficiency script on the control end and the controlled end, the connection between the control end and the multi-node server is established, so as to successfully run the energy efficiency test script and obtain the energy efficiency performance parameters of the multi-node server. If the operation fails after debugging, the script is re-debugged until it runs successfully to achieve the energy efficiency test of the multi-node server.
[0123] Regarding the multi-node server energy efficiency testing system in this embodiment, its specific implementation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0124] The multi-node server energy efficiency testing system provided in the embodiment of the present application is used to execute the multi-node server energy efficiency testing method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.
[0125] An embodiment of the present application provides an electronic device for executing the multi-node server energy efficiency testing method provided in the above embodiment.
[0126] like Figure 5 FIG. 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 50 includes: at least one processor 51 and a memory 52.
[0127] The memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the multi-node server energy efficiency testing method provided in the above embodiment.
[0128] The electronic device provided in the embodiment of the present application is used to execute the multi-node server energy efficiency testing method provided in the above embodiment. Its implementation method and principle are the same and will not be repeated here.
[0129] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, a multi-node server energy efficiency testing method provided in any of the above embodiments is implemented.
[0130] The storage medium containing computer executable instructions provided in the embodiment of the present application can be used to store computer executable instructions of the multi-node server energy efficiency testing method provided in the aforementioned embodiment. Its implementation method and principle are the same and will not be repeated here.
[0131] An embodiment of the present application provides a computer program product, including computer instructions, which are used to enable a computer to execute the multi-node server energy efficiency testing method provided in the aforementioned embodiment.
[0132] The embodiment of the present application provides a computer program product that can be used to execute computer instructions of the multi-node server energy efficiency testing method provided in the aforementioned embodiment. Its implementation method and principle are the same and will not be repeated here.
[0133] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0135] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0136] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0137] A part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0138] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A multi-node server energy efficiency testing method, characterized in that: include: Configure an initial energy efficiency test tool on each node to be tested in a multi-node server; Modifying the file of the initial energy efficiency test tool configured on each of the nodes to be tested so that each of the nodes to be tested obtains the target energy efficiency test tool; wherein the target energy efficiency test tools configured on different nodes to be tested are provided with distinguishing marks to indicate that they are deployed on different nodes to be tested; According to the distinguishing identifiers of the target energy efficiency test tools, the target energy efficiency test tools of the nodes to be tested are controlled to run so that the running progress of the target energy efficiency test tools on the nodes to be tested is consistent; The energy efficiency test result of the multi-node server is determined according to the running result of the target energy efficiency test tool of each node to be tested.
2. The method according to claim 1, characterized in that The file modification of the initial energy efficiency test tool configured for each of the nodes to be tested so that each of the nodes to be tested obtains the target energy efficiency test tool includes: Obtaining the number of processor cores of each of the nodes to be tested; For any of the nodes to be tested, modify the parameters of the main program file according to the number of processor cores of the node to be tested, so that the target energy efficiency test tool, in the process of running the main program based on the main program file, calls the target running program that matches the number of processor cores of the node to be tested according to the parameters of the main program file; According to the network protocol address of the control end, modify the device association parameter of the main program file to associate the node to be tested with the control end; wherein the control end is used to control the operation of the target energy efficiency test tool on the node to be tested; Allocating a unique host name and a unique host network address to each of the nodes to be tested; For any of the nodes to be tested, modify the host parameters of the main program file according to the unique host name and unique host network address of the node to be tested, so as to add distinguishing identifiers of different nodes to be tested in the target energy efficiency test tool; Use the modified main program file as the target main program file; Wherein, the target energy efficiency test tool includes the target main program file.
3. The method according to claim 1, characterized in that The step of controlling the operation of the target energy efficiency test tool of each node to be tested according to the distinguishing identifier of each target energy efficiency test tool includes: Obtaining the total number of nodes of the multi-node server; According to the total number of nodes of the multi-node server, configuring the energy efficiency test tool control file of the control end; Based on the control end, according to the energy efficiency test tool control file, the target energy efficiency test tool of each node to be tested is controlled to run multiple test phases; Whenever the running result of the current test phase is fed back by any of the nodes to be tested, the number and distinguishing identifiers of the nodes to be tested that have not completed the running of the tool of the current test phase are determined according to the total number of nodes of the multi-node server, the number of the nodes to be tested that have fed back the running result of the current test phase, and the distinguishing identifiers of the nodes to be tested, so as to wait for the tool that has not completed the current test phase to feed back the running result of the current test phase; When all the nodes to be tested have fed back the running results of the current test phase, controlling the target energy efficiency test tool of each node to be tested to run the next test phase until the running results of each node to be tested in each test phase are obtained; The test load pressure of the node to be tested is different in different test phases.
4. The method according to claim 1, characterized in that: The step of determining the energy efficiency test result of the multi-node server according to the operation result of the target energy efficiency test tool of each node to be tested includes: For any of the nodes to be tested, determining the performance value and power consumption value of the node to be tested in each test phase according to the operation result of the target energy efficiency test tool of the node to be tested; The energy efficiency test result of the multi-node server is determined according to the performance value and power consumption value of each node to be tested in each test phase.
5. The method according to claim 4, characterized in that The step of determining, for any of the nodes to be tested, the performance value and the power consumption value of the node to be tested in each test phase according to the operation result of the target energy efficiency test tool of the node to be tested, includes: For any of the nodes to be tested, according to the running result of the target energy efficiency test tool of the node to be tested, determine the number of processor cores, number of threads, memory allocation size and number of processes started by the node to be tested in response to the test load of each test phase; The performance value of the node to be tested in each test phase is determined according to the number of processor cores, the number of threads, the memory allocation size and the number of processes started by the node to be tested in response to the test load of each test phase.
6. The method according to claim 4, characterized in that Determining the energy efficiency test result of the multi-node server according to the performance value and power consumption value of each of the nodes to be tested in each test phase includes: The energy efficiency test result of the multi-node server is determined based on the following formula: Wherein, S represents the energy efficiency test result of the multi-node server, Q1i represents the performance value of the first node to be tested in the multi-node server in the i-th test phase, W1i represents the power consumption value of the first node to be tested in the multi-node server in the i-th test phase, Q2i represents the performance value of the second node to be tested in the multi-node server in the i-th test phase, W2i represents the power consumption value of the second node to be tested in the multi-node server in the i-th test phase, Q n i represents the performance value of the nth node to be tested in the multi-node server in the i-th test phase, W n i represents the power consumption value of the first node to be tested in the multi-node server in the i-th test phase, the multi-node server includes n nodes to be tested, and the total number of the test phases is N.
7. A multi-node server energy efficiency testing device, characterized in that: include: A configuration module, used to configure an initial energy efficiency test tool on each node to be tested in a multi-node server; A modification module, used to modify the file of the initial energy efficiency test tool configured on each of the nodes to be tested, so that each of the nodes to be tested obtains the target energy efficiency test tool; wherein the target energy efficiency test tools configured on different nodes to be tested are provided with distinguishing marks to indicate that they are deployed on different nodes to be tested; A control module, configured to control the operation of the target energy efficiency test tool of each node to be tested according to the distinguishing identifier of each target energy efficiency test tool, so as to make the operation progress of the target energy efficiency test tool on each node to be tested consistent; The testing module is used to determine the energy efficiency test result of the multi-node server according to the running result of the target energy efficiency test tool of each node to be tested.
8. A multi-node server energy efficiency testing system, characterized in that: include: Control terminal and multi-node server; The control end performs an energy efficiency test on the multi-node server based on the method according to any one of claims 1 to 6 to obtain an energy efficiency test result of the multi-node server; The control end is installed with an energy efficiency test control tool that matches the target energy efficiency test tool installed in each stage to be tested in the multi-node server.
9. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Server testing method and device, storage medium and electronic equipment
CN120256249A
