Server performance evaluation method, electronic device, storage medium and product

By obtaining processor hardware information, adjusting operating frequency and monitoring performance data, it solves the problem that existing technology cannot evaluate the impact of idle state switching and CPU frequency, and achieves accurate evaluation of server performance and stability guarantee.

CN118277223BActive Publication Date: 2024-10-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410693303.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-10-01
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

Existing server evaluation methods cannot accurately evaluate the impact of idle state switching on applications and the impact of CPU operating frequency on high-frequency and low-latency applications. This results in the inability to know the delay impact of energy-saving technology on high-performance applications and affects server stability.

Method used

By obtaining the hardware information of the processor under test, determine the test configuration parameters, adjust the processor to the target operating frequency, monitor performance data, generate performance test results, including test response time and performance power consumption ratio, and compare the actual operating frequency with the target operation Frequency, generates operating frequency deviation results.

Benefits of technology

It achieves accurate evaluation of server performance, can reflect the impact of different core idle status levels on processor performance, evaluates frequency stability under different loads, and ensures the stability and reliability of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118277223B_ABST
    Figure CN118277223B_ABST
Patent Text Reader

Abstract

The present invention provides a server performance evaluation method, electronic device, storage medium and product, and relates to the field of server testing technology. The method includes: obtaining hardware information of a processor to be tested, using the number of logical cores and the nominal frequency, determining the test configuration parameters corresponding to the processor to be tested, adjusting the processor to be tested to the target operating frequency, performing performance testing on the processor to be tested according to the number of core idle state level traversals, monitoring the actual performance data of the processor to be tested, merging and calculating the actual performance data, generating performance test results, obtaining the actual operating frequency of the processor to be tested within the test response time, comparing the actual operating frequency with the target operating frequency, and generating an operating frequency deviation result. The present invention can accurately and effectively reflect the impact of different core idle state levels on processor performance by evaluating the performance-to-power ratio of the processor under different workloads.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server testing, and in particular to a server performance evaluation method, electronic equipment, storage medium and product. Background Art

[0002] With the rapid development of the number of CPU cores and frequencies in servers, CPU energy-saving technologies have received great attention. Processor energy-saving technologies mainly include sleep technology and frequency modulation technology. Among them, sleep technology includes CPU idle state, which can save power when the CPU is idle. The CPU idle state in the CPU is called C state. Generally, the deeper the idle state, the more components are turned off or the voltage is reduced. These states save more power, but also have higher exit delays. When the CPU wakes up from a deeper C state, it takes time to restart the components, which brings a large delay and has a certain impact on the performance of the application. Frequency modulation technology is a technology that dynamically adjusts the operating frequency of the processor to optimize the balance between performance and power consumption according to the system load and heat conditions. When the system needs more computing resources, the CPU can automatically increase the operating frequency to improve performance, so that computing tasks can be completed faster. CPU energy-saving technologies will have an impact on applications.

[0003] However, the currently commonly used CPU benchmark and limit tests can only evaluate the server computing performance under normal or high-performance states, but cannot adapt to the scenarios where the server adopts energy-saving technology. That is, the impact of idle state switching on applications and the impact of CPU operating frequency on high-frequency and low-latency applications cannot be accurately evaluated, resulting in the inability to know the impact of energy-saving technology on the latency of high-performance applications, further affecting the stability of the server. Summary of the invention

[0004] In view of this, the present invention aims to propose a server performance evaluation method, electronic device, storage medium and product to solve the problem that current server evaluation cannot accurately evaluate the impact of idle state switching on application programs and the impact of CPU operating frequency on high-frequency and low-latency applications, so as to achieve effective and accurate server performance evaluation.

[0005] According to a first aspect of the present invention, a server performance evaluation method is provided, which is applied to a server test end, and the method comprises:

[0006] Acquire hardware information of the processor to be tested; wherein the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested;

[0007] Determine the test configuration parameters corresponding to the processor to be tested by using the number of logical cores and the nominal frequency; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle;

[0008] Adjusting the processor to be tested to a target operating frequency, and performing a performance test on the processor to be tested according to the number of core idle state level traversals;

[0009] Monitor the actual performance data of the processor to be tested, combine and calculate the actual performance data, and generate a performance test result; wherein the performance test result includes a test response time and a performance-to-power ratio within a test cycle;

[0010] The actual operating frequency of the processor to be tested within the test response time is obtained, the actual operating frequency is compared with the target operating frequency, and an operating frequency deviation result is generated.

[0011] Optionally, the use of the number of logical cores and the nominal frequency to determine the test configuration parameters corresponding to the processor to be tested; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle, including:

[0012] Use the number of logical cores of the processor to be tested to determine the test thread;

[0013] Adjusting the test thread according to the number of memory nodes acquired in advance;

[0014] Using the core idle state level information in the nominal frequency, determining the number of core idle state level traversals of the processor under test;

[0015] The core idle state residence rate in the nominal frequency is obtained to determine the test cycle of the processor to be tested.

[0016] Optionally, adjusting the processor to be tested to a target operating frequency and performing a performance test on the processor to be tested according to the number of core idle state level traversals includes:

[0017] Pre-acquire the historical operating frequencies of the processor to be tested at different core idle state residence rates, and determine the highest historical operating frequency as the target operating frequency;

[0018] Adjusting the initial operating frequency of the processor to be tested to a target operating frequency;

[0019] It is monitored that the processor under test is at a target operating frequency, and the core idle state level traversal number is used to perform a performance test on the processor under test.

[0020] Optionally, the monitoring that the processor to be tested is at a target operating frequency and using the core idle state level traversal number to perform a performance test on the processor to be tested includes:

[0021] When the processor to be tested is at a target operating frequency, calibrating the core utilization of the processor to be tested;

[0022] The test time interval corresponding to the test cycle is adjusted by using the core idle state level traversal number and the load level;

[0023] According to the adjusted test cycle, a performance test is performed on the processor to be tested.

[0024] Optionally, before adjusting the processor to be tested to a target operating frequency and performing a performance test on the processor to be tested according to the number of core idle state level traversals, the method further includes:

[0025] Obtaining a core idle state residence rate of the processor to be tested;

[0026] Determine the load level of the processor to be tested by using the core idle state residence rate;

[0027] The historical operating frequencies of the processor under test when evaluated at different load levels are obtained to determine the highest operating frequency of the processor under test.

[0028] Optionally, the monitoring actual performance data of the processor to be tested, merging and calculating the actual performance data, and generating a performance test result includes:

[0029] Monitoring actual performance data of the processor to be tested; wherein the actual performance data includes power consumption, core idle state level, core utilization, core operating frequency, and core index percentage cycle;

[0030] Determining a test response time and a test score of the processor under test at each core utilization rate;

[0031] Calculate the performance-to-power ratio during the test cycle;

[0032] The test response time and performance-to-power ratio are used to generate a performance test result.

[0033] Optionally, determining the test response time and the test score of the processor to be tested at each core utilization rate includes:

[0034] Obtaining the performance test duration at each core utilization rate, merging the performance test durations, and determining the test response time of the processor to be tested;

[0035] The performance scores of the processors in each performance test duration are obtained, the performance scores are summarized, and a test score of the processor to be tested is determined.

[0036] Optionally, calculating the performance-to-power consumption ratio within the test cycle includes:

[0037] The power consumption within the test response time is averaged to generate a performance-to-power consumption ratio within the test cycle.

[0038] Optionally, the obtaining an actual operating frequency of the processor under test within the test response time, comparing the actual operating frequency with the nominal frequency, and generating an operating frequency deviation result includes:

[0039] Obtaining the actual operating frequency of the processor under test within the test response time and the nominal frequency of the processor under test;

[0040] Comparing the actual operating frequency with the nominal frequency to determine an operating frequency deviation between the actual operating frequency and the nominal frequency;

[0041] The operating frequency deviation is determined as an operating frequency deviation result of the processor to be tested.

[0042] Optionally, the nominal frequency is determined by the following formula:

[0043]

[0044] in, is the nominal frequency at which the processor runs during the test time, is the nominal frequency in the non-directive license, , are the nominal frequencies in the instruction permit, is the percentage of core indicator cycles in non-instruction grants, , are the percentage of core indicator cycles in instruction permission, , and The sum of is 1.

[0045] Optionally, after obtaining the actual operating frequency of the processor to be tested within the test response time, comparing the actual operating frequency with the nominal frequency, and generating an operating frequency deviation result, the method further includes:

[0046] A deviation alarm report corresponding to the operating frequency deviation is generated according to the operating frequency deviation result.

[0047] According to a second aspect of the present invention, there is provided a server performance evaluation device, which is applied to a server test end, and the device comprises:

[0048] An information acquisition module, used to acquire hardware information of the processor to be tested; wherein the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested;

[0049] An information processing module, used to determine the test configuration parameters corresponding to the processor to be tested by using the number of logical cores and the nominal frequency; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle;

[0050] A performance testing module, used for adjusting the processor to be tested to a target operating frequency, and performing a performance test on the processor to be tested according to the number of core idle state level traversals;

[0051] A performance monitoring module is used to monitor the actual performance data of the processor to be tested, merge and calculate the actual performance data, and generate a performance test result; wherein the performance test result includes a test response time and a performance power consumption ratio within a test cycle;

[0052] The result generation module is used to obtain the actual operating frequency of the processor to be tested within the test response time, compare the actual operating frequency with the nominal frequency, and generate an operating frequency deviation result.

[0053] According to a third aspect of the present invention, there is also provided an electronic device, comprising:

[0054] processor;

[0055] a memory for storing instructions executable by the processor;

[0056] Wherein, the processor is configured to execute the instructions to implement the server performance evaluation method as described above.

[0057] According to a fourth aspect of the present invention, there is further provided a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the server performance evaluation method described above are implemented.

[0058] A fifth aspect of an embodiment of the present invention provides a computer program product, including a computer program / instruction, which implements the steps of the server performance evaluation method described above when executed by a processor.

[0059] The server performance evaluation method provided by the embodiment of the present invention obtains hardware information of the processor to be tested, the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested, uses the number of logical cores and the nominal frequency to determine the test configuration parameters corresponding to the processor to be tested, the test configuration parameters include the number of core idle state level traversals and the test cycle, adjusts the processor to be tested to a target operating frequency, performs a performance test on the processor to be tested according to the number of core idle state level traversals, monitors actual performance data of the processor to be tested, merges and calculates the actual performance data, generates a performance test result, the performance test result includes a test response time and a performance-power consumption ratio within the test cycle, obtains the actual operating frequency of the processor to be tested within the test response time, compares the actual operating frequency with the target operating frequency, and generates an operating frequency deviation result. The embodiment of the present invention obtains hardware information of the processor to be tested, such as the number of logical cores and the nominal frequency, accurately configures test parameters, ensures that the test environment matches the actual operating environment, uses the core idle state level and the test cycle to perform processor tests under different workloads, adjusts the processor to be tested to the target operating frequency, monitors actual performance data, evaluates the performance-to-power consumption ratio of the processor under different workloads, improves the accuracy of performance testing, and can accurately and effectively reflect the impact of different core idle state levels on processor performance, implements real-time performance evaluation of the server under different core utilization rates, and evaluates the frequency stability of the processor under different loads by comparing the actual operating frequency of the processor with the target operating frequency, thereby obtaining the impact and analysis of different energy-saving technologies, i.e., different idle state switching, on the performance and power consumption of the entire machine, and an operating frequency deviation warning, thereby further ensuring the stability and reliability of the server.

[0060] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0062] Figure 1 is a flow chart of the steps of a server performance evaluation method provided by an embodiment of the present invention;

[0063] Figure 2 yes Figure 1 A flowchart of step 102 in the server performance evaluation method provided by an embodiment of the present invention;

[0064] Figure 3 yes Figure 1 A flowchart of step 103 in the server performance evaluation method provided by an embodiment of the present invention;

[0065] Figure 4 yes Figure 1 A flowchart of step 104 in the server performance evaluation method provided by an embodiment of the present invention;

[0066] Figure 5 yes Figure 1 A flowchart of step 105 in the server performance evaluation method provided by an embodiment of the present invention;

[0067] Figure 6 is a flowchart of another server performance evaluation method provided by an embodiment of the present invention;

[0068] Figure 7 It is a scenario schematic diagram of a server performance evaluation method provided by an embodiment of the present invention;

[0069] Figure 8 It is a structural schematic diagram of a server performance evaluation device provided by an embodiment of the present invention;

[0070] Fig. 9 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0071] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.

[0072] Reference Figure 1 , shows a flow chart of the steps of a server performance evaluation method provided by an embodiment of the present invention, which is applied to a server test end, and the method may include:

[0073] Step 101, obtaining hardware information of the processor to be tested; wherein the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested.

[0074] In an embodiment of the present invention, in order to solve the problem that the current test cannot adapt to the scenario where the server adopts energy-saving technology, the impact of idle state switching on the application program and the impact of the CPU operating frequency on high-frequency and low-latency applications cannot be accurately evaluated, resulting in the problem that the impact of energy-saving technology on the delay of high-performance applications cannot be known. This embodiment uses the core idle state level, core average utilization, core average operating frequency, and the corresponding performance score, high-frequency and low-latency application completion time, whole machine power consumption and performance-power consumption ratio score to calculate performance analysis, which can accurately evaluate the impact and analysis of different energy-saving technologies, i.e., different idle state switching on the whole machine performance and whole machine power consumption, and the operating frequency deviation warning and analysis.

[0075] Specifically, in this embodiment, the server test end can obtain the hardware information of the processor to be tested, which is the central processing unit in the server. This embodiment is applicable to servers with X86_64 architecture and is not specifically limited here. It should be noted that the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested, specifically including the CPU model, number of logical cores, core main frequency, TDP, NUMA number and NUMA core distribution transmission, and CPU nominal frequency information, wherein the nominal frequency includes the expected core utilization and corresponding expected frequency under different instruction sets, and the core idle state level that can be supported.

[0076] It should be noted that, in this embodiment, the CPU model refers to the specific model of the central processing unit, which is usually defined by the manufacturer and is used to distinguish different processor series and specifications; the number of logical cores refers to the number of logical processing units in the CPU that can independently execute tasks; in a CPU that supports hyper-threading technology, each physical core can simulate two logical cores; the core frequency refers to the benchmark operating frequency of the CPU core, which is measured in GHz and is used to indicate the number of basic operations that the CPU can perform per second; TDP (Thermal Design Power) indicates the heat generated by the CPU when running at full load and is used to guide the design of the cooling system; the NUMA (Non-Uniform Memory Access) number refers to the number of independent nodes into which the memory is divided in a server with a NUMA architecture, where each NUMA node has its own local memory connected to a group of CPU cores; and the NUMA core distribution refers to the distribution of the CPU cores in the NUMA nodes, that is, which cores belong to which NUMA node. The CPU nominal frequency information refers to the rated frequency of the CPU under normal working conditions, including the expected core utilization and corresponding expected frequency under different instruction sets; the supportable core idle state level refers to the energy-saving mode that the CPU can enter when it is idle or under low load, such as C1, C3, C6, etc. These states will reduce the power consumption and heat generation of the CPU to varying degrees.

[0077] Step 102, using the number of logical cores and the nominal frequency, determine the test configuration parameters corresponding to the processor to be tested; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle.

[0078] In an embodiment of the present invention, in order to dynamically adjust the core utilization according to different business load requirements, the number of logical cores and the nominal frequency are used to determine the test configuration parameters corresponding to the processor to be tested. The test configuration parameters include the number of core idle state level traversals and the test cycle, wherein the number of core idle state level traversals is determined by the core idle state level. For example, to obtain the setting of the core idle state level to POLL, C1 and C2, the test configuration parameters will traverse 4 times, respectively disabling all energy-saving states, POLL, C1 and C2. When testing the POLL state, use the system command or CPU management tool to turn off C1 and C2.

[0079] It should be noted that the core utilization is set to 100%, 80%, 50%, and 30% respectively, which is specifically achieved by binding the application CPU cores. The NUMA core distribution is obtained using system commands. If the core utilization is set to 100%, all cores in the NUMA are bound. If the core utilization is set to 80%, 80% of the cores in each NUMA are bound, preferably the logical cores in the same physical core. The test cycle is set. Further, the test cycle can be set according to the actual business load interval cycle. The default load interval cycle is 10s, so that all CPUs enter the energy-saving state in the idle state. For example, the core utilization is set to 100% during high-load periods and reduced to 50% or 30% during low-load periods to simulate resource allocation in an actual working environment.

[0080] In this embodiment, a performance analysis tool is used to collect and analyze data, compare the performance and power consumption at different core idle state levels, and determine the most effective energy-saving mode under different loads. For example, the C1 state is used under light load, and the energy-saving state is disabled under heavy load to maintain performance. In the NUMA architecture, the load balancing between different NUMA nodes is tested to ensure that resources are reasonably allocated to avoid overloading some nodes while other nodes are idle. In this embodiment, an automated script can be developed to automatically perform the setting of test configuration parameters, the running of test tasks, and the collection and analysis of data to improve test efficiency.

[0081] Step 103, adjusting the processor to be tested to a target operating frequency, and performing a performance test on the processor to be tested according to the number of core idle state level traversals.

[0082] In an embodiment of the present invention, the server test end first adjusts the processor to be tested to the target operating frequency before testing, thereby performing a performance test on the processor to be tested according to the number of core idle state level traversals, the number of core idle state level traversals being determined by the core idle state level, wherein the target operating frequency is the highest historical operating frequency of the processor to be tested at different core idle state residence rates.

[0083] It should be noted that the performance test includes a warm-up phase and a formal test phase. In the warm-up phase, in addition to calibrating the core utilization and obtaining the highest frequency of the CPU operation, the temperature and power consumption of the CPU can also be monitored to ensure that the CPU reaches a stable working state before the formal test; during the formal test, the CPU performance indicators such as clock frequency, temperature, power consumption, core utilization, etc. are monitored and recorded in real time for subsequent analysis. In this embodiment, high-frequency application testing can use CPU computing-intensive applications, choose to use high-performance applications, including but not limited to simulation of physical relativity applications, simulation of weather forecast applications, and choose computing-intensive applications for testing, which can fully tap the computing potential of the CPU and test performance under high load.

[0084] Step 104, monitor the actual performance data of the processor to be tested, merge and calculate the actual performance data, and generate a performance test result; wherein the performance test result includes the test response time and the performance power consumption ratio within the test cycle.

[0085] In the embodiment of the present invention, the actual performance data of the processor to be tested is monitored, the actual performance data is merged and calculated, and the performance test results are generated. The actual performance data specifically includes, during the formal test phase, the CPU power consumption, memory power consumption and whole machine power consumption, core idle state level, core utilization, core operating frequency, CPU operating temperature, idle state real-time residence rate, CPU core operating voltage, core index percentage cycle in non-AVX license, core index percentage cycle in AVX2 license, core index percentage cycle in AVX512 license, fan speed, etc. The above information in this embodiment can be obtained using tools such as system commands and CPU management tools.

[0086] It should be noted that the core indicator percentage cycle in non-AVX license, the core indicator percentage cycle in AVX2 license, and the core indicator percentage cycle in AVX512 license represent the percentage cycle of the processor core when executing a specific task under the permission of a certain instruction set, reflecting the efficiency and utilization of the processor core when executing the above instructions. The performance test data is processed to obtain the performance test results within the test cycle, which include the test response time and performance power consumption ratio within the test cycle.

[0087] Step 105 , obtaining the actual operating frequency of the processor to be tested within the test response time, comparing the actual operating frequency with the target operating frequency, and generating an operating frequency deviation result.

[0088] In an embodiment of the present invention, the actual operating frequency of the processor to be tested within the test response time is obtained, the actual operating frequency is compared with the target operating frequency, and an operating frequency deviation result is generated. Specifically, the hardware monitoring information obtained within the test response time is processed, mainly referring to the operating frequency deviation warning and analysis of the CPU operating frequency. Specifically, the actual operating frequency of the processor to be tested within the test response time and the nominal frequency of the processor to be tested can be obtained, and the actual operating frequency can be compared with the nominal frequency to determine the operating frequency deviation between the actual operating frequency and the nominal frequency, and the operating frequency deviation can be determined as the operating frequency deviation result of the processor to be tested.

[0089] The server performance evaluation method provided by the embodiment of the present invention obtains hardware information of the processor to be tested, the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested, uses the number of logical cores and the nominal frequency to determine the test configuration parameters corresponding to the processor to be tested, the test configuration parameters include the number of core idle state level traversals and the test cycle, adjusts the processor to be tested to a target operating frequency, performs a performance test on the processor to be tested according to the number of core idle state level traversals, monitors actual performance data of the processor to be tested, merges and calculates the actual performance data, generates a performance test result, the performance test result includes a test response time and a performance-power consumption ratio within the test cycle, obtains the actual operating frequency of the processor to be tested within the test response time, compares the actual operating frequency with the target operating frequency, and generates an operating frequency deviation result. The embodiment of the present invention obtains hardware information of the processor to be tested, such as the number of logical cores and the nominal frequency, accurately configures test parameters, ensures that the test environment matches the actual operating environment, uses the core idle state level and the test cycle to perform processor tests under different workloads, adjusts the processor to be tested to the target operating frequency, monitors actual performance data, evaluates the performance-to-power consumption ratio of the processor under different workloads, improves the accuracy of performance testing, and can accurately and effectively reflect the impact of different core idle state levels on processor performance, implements real-time performance evaluation of the server under different core utilization rates, and evaluates the frequency stability of the processor under different loads by comparing the actual operating frequency of the processor with the target operating frequency, thereby obtaining the impact and analysis of different energy-saving technologies, i.e., different idle state switching, on the performance and power consumption of the entire machine, and an operating frequency deviation warning, thereby further ensuring the stability and reliability of the server.

[0090] In order to facilitate those skilled in the art to fully understand the above server performance evaluation method, refer to Figure 7 , Figure 7It is a scenario diagram of a server performance evaluation method provided by an embodiment of the present invention, specifically including: in order to accurately evaluate the impact of different energy-saving technologies on the performance and power consumption of the whole machine, the server test end is composed of four functions, including data collection, data processing, test execution and monitoring test, wherein the data collection function collects information such as the CPU model, number of logical cores, core main frequency, TDP, number of NUMAs and NUMA core distribution transmission, and the supportable core idle state level, such as POLL state, C1, C1E, C2, C6, and CPU nominal frequency information; the data collection function passes the obtained supportable core idle state level, number of logical cores, number of NUMAs and NUMA core distribution to the data processing function, the data processing function sets the core idle state level traversal number according to the supportable core idle state level information, and adjusts the test thread according to the CPU logical core number, NUMA number and NUMA core distribution to set the core utilization as the target value.

[0091] Specifically, according to the actual business load requirements, the core idle state residence rate can be set to high, medium, and low load levels for evaluation, and the test cycle can be adjusted. For example, the same high-frequency low-latency test can be run 5 times, and the test time interval within the cycle can be adjusted. According to the corresponding maximum CPU operating frequency under high, medium, and low loads, the CPU operating frequency is fixed at the highest operating frequency. After confirming that all test preset parameters have been adjusted successfully, the execution test function starts the test. There will be a warm-up test phase before the test. The monitoring test function will collect the maximum CPU operating frequency and core utilization of each load point during the warm-up test running phase of the server test end and pass it to the processing data function for calibration to ensure that the set value and the actual value are controlled within the error range.

[0092] It should be noted that the test execution includes the warm-up phase and the formal test. After the warm-up, the high-frequency and low-latency application is started. During the formal test, the monitoring test function will collect CPU power consumption, memory power consumption and whole machine power consumption, core idle state level, core utilization, core operating frequency, CPU operating temperature, idle state real-time residence rate, CPU core operating voltage, core indicator percentage cycle in non-AVX license, core indicator percentage cycle in AVX2 license, core indicator percentage cycle in AVX512 license and fan speed to generate test results. After waiting for the test to end, the data processing function will process the core idle state level, core utilization, core operating frequency, core idle state retention rate, and the corresponding performance score, high-frequency and low-latency application completion time, whole machine power consumption, and CPU power consumption, and warn and analyze the difference in operating frequency to generate a final test report.

[0093] Further, see Figure 2 , showing Figure 1A flowchart of step 102 in a server performance evaluation method is provided. The method is substantially the same as the server performance evaluation method provided in the first embodiment of the present invention. Step 102 may include:

[0094] Step 201, determine the test thread using the number of logical cores of the processor to be tested.

[0095] In the embodiment of the present invention, the number of logical cores of the processor to be tested is used to determine the test thread, and the test thread is allocated on the basis of adjusting the test thread according to the number of CPU logical cores, the number of NUMAs and the distribution of NUMA cores. When allocating the test thread, the characteristics of the NUMA architecture are taken into consideration to ensure that the cores on each node are used evenly. For example, if one NUMA node has 8 cores and the other has 16 cores, when allocating threads, it is ensured that both nodes can work efficiently.

[0096] Step 202: Adjust the test thread according to the pre-acquired number of memory nodes.

[0097] Specifically, during the test, the CPU load and the memory access latency of the NUMA node are monitored in real time, and thread allocation is adjusted dynamically to optimize performance. If it is found that the memory access latency of a NUMA node is high, the number of threads on the node can be reduced to reduce remote memory access.

[0098] It should be noted that the test thread is determined using the core binding technology to bind a specific thread to a specific CPU core to reduce the overhead of thread switching and ensure that key tasks are executed on the specified core. In this embodiment, the thread is bound to the core of the local NUMA node to improve the memory access speed and overall performance. Multi-threaded applications are selected for testing, such as parallel computing, multi-threaded database queries, etc., to fully tap the multi-core processing capabilities of the CPU and test the performance in a multi-threaded environment.

[0099] Step 203: using the core idle state level information in the nominal frequency, determine the number of core idle state level traversals of the processor to be tested.

[0100] In the embodiment of the present invention, the core idle state level information in the nominal frequency is used to determine the number of core idle state level traversals of the processor to be tested. Specifically, the number of traversals is set according to the core idle state levels supported by the CPU, such as C1, C3, C6, etc. For example, if the CPU supports three states of C1, C3 and C6, then the test configuration parameters will traverse these three states, as well as the case of disabling all energy-saving states, for a total of four configurations.

[0101] Step 204, obtaining the core idle state residence rate in the nominal frequency, and determining the test cycle of the processor to be tested.

[0102] In the embodiment of the present invention, the core idle state residence rate in the nominal frequency is obtained to determine the test cycle of the processor to be tested. Specifically, the core utilization rate can be set to 100%, 80%, 50%, and 30% respectively. This is achieved by binding the application CPU core. The NUMA core distribution is obtained using a system command. If it is set to 100%, all cores in the NUMA are bound. If it is set to 80%, 80% of the cores in each NUMA are bound, preferably the logical cores in the same physical core. The test cycle can be set according to the actual business load interval period. The default load interval period is 10s, so that all CPUs enter the energy-saving state in the idle state.

[0103] The embodiment of the present invention sets the test configuration parameters according to the obtained hardware information, which can comprehensively evaluate the performance, stability and energy efficiency of the server, provide a basis for configuration optimization and performance tuning of the server, and sets the test configuration parameters according to the supported core idle state level, which can simulate the processor behavior under different workloads and improve the accuracy and reliability of performance testing.

[0104] Further, see Figure 3 , showing Figure 1 A flowchart of step 103 in a server performance evaluation method is provided. The method is substantially the same as the server performance evaluation method provided in the first embodiment of the present invention. Step 103 may include:

[0105] Step 301 , pre-acquire the historical operating frequencies of the processor to be tested at different core idle state residence rates, and determine the highest historical operating frequency as the target operating frequency.

[0106] In an embodiment of the present invention, historical operating frequencies of the processor to be tested at different core idle state residence rates are obtained in advance, and the highest historical operating frequency is determined as the target operating frequency. Specifically, in the warm-up stage, in order to calibrate the core utilization, the highest operating frequency of the CPU during the test is obtained based on the historical operating frequencies of the processor to be tested at different core idle state residence rates. According to the highest operating frequency of the CPU during the warm-up stage, the processor is fixed at this frequency for testing during the formal test. Furthermore, the processor frequency can be fixed at the highest operating frequency using an operating system command or a CPU management tool.

[0107] Step 302: Adjust the initial operating frequency of the processor to be tested to the target operating frequency.

[0108] Step 303 , when it is detected that the processor to be tested is at the target operating frequency, the number of core idle state level traversals is used to perform a performance test on the processor to be tested.

[0109] The embodiment of the present invention can maximize the performance output of the CPU by testing at the highest operating frequency, thereby more accurately evaluating the performance of the CPU under extreme conditions. Testing at a fixed highest frequency is helpful to evaluate the stability and reliability of the CPU under high load. Testing at the highest frequency can more accurately measure the power consumption and heat dissipation of the CPU, providing data support for energy efficiency optimization and heat dissipation design.

[0110] Specifically, step 303 monitors that the processor under test is at the target operating frequency, and uses the core idle state level traversal number to perform a performance test on the processor under test, which may specifically include the following steps:

[0111] When the processor under test is at a target operating frequency, calibrating the core utilization of the processor under test;

[0112] The number of core idle state level traversals and the load level are used to adjust the test time interval corresponding to the test cycle;

[0113] Perform performance test on the processor under test according to the adjusted test cycle.

[0114] It should be noted that, in the above steps, the warm-up stage is mainly for calibrating the core utilization and obtaining the maximum operating frequency of the CPU during the test. According to the maximum operating frequency of the CPU obtained in the warm-up stage, the processor is fixed at this frequency for testing during the formal test. The number of core idle state level traversals and the load level are used to adjust the test time interval corresponding to the test cycle. According to the adjusted test cycle, the performance test of the processor to be tested is carried out.

[0115] Furthermore, before step 103 adjusts the processor to be tested to the target operating frequency and performs a performance test on the processor to be tested according to the number of core idle state level traversals, it also includes:

[0116] First, obtain the core idle state residence rate of the processor under test;

[0117] Secondly, the core idle state residence rate is used to determine the load level of the processor under test;

[0118] Secondly, the historical operating frequencies of the processor to be tested under different load levels are obtained to determine the highest operating frequency of the processor to be tested.

[0119] It should be noted that in the above steps, the core idle state residence rate is the proportion of the time that the CPU core is in the idle state, that is, the proportion of the time that the CPU core is in low power consumption or energy-saving mode to the total running time. By obtaining the core idle state residence rate of the processor to be tested, the load level of the processor to be tested is determined, and the historical operating frequency of the processor to be tested under different load levels is obtained to determine the maximum operating frequency of the processor to be tested.

[0120] The embodiment of the present invention can maximize the performance output of the CPU by testing at the highest operating frequency, thereby more accurately evaluating the performance of the CPU. Testing at a fixed highest frequency helps to evaluate the stability and reliability of the CPU under high load.

[0121] Further, see Figure 4 , showing Figure 1 A flowchart of step 104 in a server performance evaluation method is provided. The method is substantially the same as the server performance evaluation method provided in the first embodiment of the present invention. Step 104 may include:

[0122] Step 401, monitor the actual performance data of the processor to be tested; wherein the actual performance data includes power consumption, core idle state level, core utilization, core operating frequency and core index percentage cycle.

[0123] In an embodiment of the present invention, actual performance data of the processor to be tested is measured; wherein the actual performance data includes power consumption, core idle state level, core utilization, core operating frequency and core index percentage cycle. Specifically, during the test execution phase, information such as CPU power consumption, memory power consumption and whole machine power consumption, core idle state level, core utilization, core operating frequency, CPU operating temperature, idle state real-time residence rate, CPU core operating voltage, core index percentage cycle in non-AVX license, core index percentage cycle in AVX2 license, core index percentage cycle in AVX512 license, fan speed, etc. are collected.

[0124] Step 402: determine the test response time and test score of the processor under test at each core utilization rate.

[0125] In the embodiment of the present invention, the performance test results are processed to determine the test response time and test score of the processor under test at each core utilization. Specifically, the test results within the test cycle are obtained, including the core utilization, the test score and the total completion time. The performance test score S is calculated as follows:

[0126]

[0127] Where Si is the test score of the i-th test completed, and n is the number of tests included in the entire test cycle.

[0128] The final test response time T calculation formula is:

[0129]

[0130] Among them, Ti is the test time for the completion of the i-th test, D is the first test time cycle, and n is the number of tests included in the entire test cycle.

[0131] Step 403, calculating the performance-to-power ratio during the test cycle.

[0132] In the embodiment of the present invention, the performance power consumption ratio P in the test cycle is calculated as follows:

[0133] P

[0134] Wherein, W is the average value of the monitored power consumption within the entire test response time T, and S is the performance test score within the test cycle.

[0135] Step 404, generating a performance test result by using the test response time and the performance-to-power ratio.

[0136] Specifically, step 402 determines the test response time and test score of the processor to be tested at each core utilization, which may include: obtaining the performance test duration at each core utilization, merging the performance test durations, and determining the test response time of the processor to be tested; obtaining the performance score of the processor in each performance test duration, aggregating the performance scores, and determining the test score of the processor to be tested.

[0137] Specifically, step 403 calculates the performance-to-power ratio within the test cycle, including: averaging the power consumption within the test response time to generate the performance-to-power ratio within the test cycle.

[0138] Further, see Figure 5 , showing Figure 1 A flowchart of step 105 in a server performance evaluation method is provided. The method is substantially the same as the server performance evaluation method provided in the first embodiment of the present invention. Step 105 may include:

[0139] Step 501, obtaining the actual operating frequency of the processor under test within the test response time and the nominal frequency of the processor under test.

[0140] Step 502: Compare the actual operating frequency with the nominal frequency to determine an operating frequency deviation between the actual operating frequency and the nominal frequency.

[0141] Step 503: determine the operating frequency deviation as the operating frequency deviation result of the processor to be tested.

[0142] It should be noted that in the above steps, after waiting for the test to end, the core idle state level, core utilization, core operating frequency, core idle state residence rate, and the corresponding performance scores, high-frequency and low-latency application completion time, whole machine power consumption, and CPU power consumption will be processed, and the differences in operating frequencies will be warned and analyzed to generate a final test report. Specifically, the actual operating frequency of the processor to be tested within the test response time and the nominal frequency of the processor to be tested are obtained, the actual operating frequency is compared with the nominal frequency, the operating frequency deviation between the actual operating frequency and the nominal frequency is determined, and the operating frequency deviation is determined as the operating frequency deviation result of the processor to be tested.

[0143] The embodiment of the present invention processes the hardware monitoring information obtained within the test response time, performs operating frequency deviation warning and analysis on the CPU operating frequency, processes the core idle state level, core utilization, core operating frequency, core idle state retention rate and the corresponding performance score, high-frequency low-latency application completion time, whole machine power consumption, CPU power consumption, and generates a final test report, which can comprehensively evaluate the performance, stability and energy efficiency of the server and provide a basis for configuration optimization and performance tuning of the server.

[0144] Specifically, the nominal frequency is determined by the following formula:

[0145]

[0146] in, is the nominal frequency at which the processor runs during the test time, is the nominal frequency in the non-directive license, , are the nominal frequencies in the instruction permit, is the percentage of core indicator cycles in non-instruction grants, , are the percentage of core indicator cycles in instruction permission, , and The sum of is 1.

[0147] In the embodiment of the present invention, the core idle state level and the test cycle are used to perform processor tests under different workloads, adjust the processor to be tested to the target operating frequency, monitor the actual performance data, evaluate the performance-power consumption ratio of the processor under different workloads, and evaluate the frequency stability of the processor under different loads by comparing the actual operating frequency of the processor with the target operating frequency, thereby obtaining an operating frequency deviation warning.

[0148] Reference Figure 6, shows a flow chart of steps of another server performance evaluation method provided by an embodiment of the present invention, which method is basically the same as the server performance evaluation method provided by the first embodiment of the present invention, except that the method may further include:

[0149] Step 101, obtaining hardware information of the processor to be tested; wherein the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested.

[0150] Step 102, using the number of logical cores and the nominal frequency, determine the test configuration parameters corresponding to the processor to be tested; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle.

[0151] Step 103, adjusting the processor to be tested to a target operating frequency, and performing a performance test on the processor to be tested according to the number of core idle state level traversals.

[0152] Step 104, monitor the actual performance data of the processor to be tested, merge and calculate the actual performance data, and generate a performance test result; wherein the performance test result includes the test response time and the performance power consumption ratio within the test cycle.

[0153] Step 105 , obtaining the actual operating frequency of the processor to be tested within the test response time, comparing the actual operating frequency with the target operating frequency, and generating an operating frequency deviation result.

[0154] The above steps 101 to 105 are as described above and will not be described in detail here.

[0155] Step 106: Generate a deviation alarm report corresponding to the operating frequency deviation according to the operating frequency deviation result.

[0156] In the embodiment of the present invention, a deviation alarm report corresponding to the operating frequency deviation is generated according to the operating frequency deviation result. Specifically, an early warning and analysis are performed on the difference in operating frequency, and a final test report is generated. If a deviation occurs between the nominal frequency Fexp and Fi, and the deviation is above 2.5%, a deviation alarm report corresponding to the operating frequency deviation is generated. After the deviation alarm is generated, the user can process the fan speed, CPU operating temperature, CPU operating voltage, and CPU operating power consumption.

[0157] On the basis of achieving the beneficial effects of the first embodiment, the embodiment of the present invention generates a deviation alarm report corresponding to the operating frequency deviation through the operating frequency deviation result, uses the core idle state level and the test cycle to perform processor tests under different workloads, adjusts the processor to be tested to the target operating frequency, monitors the actual performance data, evaluates the performance-to-power consumption ratio of the processor under different workloads, improves the accuracy of performance testing, can accurately and effectively reflect the impact of different core idle state levels on processor performance, realizes the evaluation of the real-time performance of the server under different core utilizations, and evaluates the frequency stability of the processor under different loads by comparing the actual operating frequency of the processor with the target operating frequency, thereby obtaining the impact and analysis of different energy-saving technologies, i.e., different idle state switching, on the performance and power consumption of the whole machine, and the operating frequency deviation warning, and further ensuring the stability and reliability of the server.

[0158] In some embodiments, after the deviation alarm is generated, the server test end automatically adjusts the fan speed in the server, and maintains the stable operation of the CPU by monitoring the CPU operating temperature, voltage and power consumption. Specifically, when the CPU temperature exceeds the preset frequency reduction threshold, the ambient temperature and fan speed are monitored, and the user is prompted to adjust the heat dissipation strategy. If the CPU operating frequency cannot be overclocked, first check whether the overclocking setting is turned on, and check whether it is in a power capping state, and prompt the user to adjust the power consumption limit. If there is no abnormality in the above situation, check the CPU core operating voltage, and prompt the user to adjust the motherboard power supply. This embodiment can effectively prevent system instability caused by frequency deviation by real-time monitoring and adjustment of CPU operating parameters, ensure long-term stable operation of the server, use reasonable temperature management and voltage adjustment to reduce hardware damage caused by overheating or overvoltage, and extend the service life of the CPU and other hardware components. Through overclocking and power consumption management, accurate power consumption control can be achieved under the premise of ensuring safety, which helps to reduce unnecessary energy consumption and reduce operating costs. Timely alarms and adjustment prompts can help users quickly locate problems and take measures, reduce system failure time, and improve user experience.

[0159] Reference Figure 8 , shows a schematic diagram of the structure of a server performance evaluation device provided by an embodiment of the present invention, which is applied to a server test end, and the device includes:

[0160] The information acquisition module 601 is used to acquire the hardware information of the processor to be tested; wherein the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested;

[0161] The information processing module 602 is used to determine the test configuration parameters corresponding to the processor to be tested by using the number of logical cores and the nominal frequency; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle;

[0162] A performance testing module 603 is used to adjust the processor to be tested to a target operating frequency, and to perform a performance test on the processor to be tested according to the number of core idle state level traversals;

[0163] The performance monitoring module 604 is used to monitor the actual performance data of the processor to be tested, merge and calculate the actual performance data, and generate a performance test result; wherein the performance test result includes a test response time and a performance power consumption ratio within a test cycle;

[0164] The result generation module 605 is used to obtain the actual operating frequency of the processor under test within the test response time, compare the actual operating frequency with the nominal frequency, and generate an operating frequency deviation result.

[0165] Furthermore, the information processing module 602 includes:

[0166] The first determination submodule is used to determine the test thread by using the number of logical cores of the processor to be tested;

[0167] An adjustment submodule, used for adjusting the test thread according to the number of memory nodes acquired in advance;

[0168] The second determination submodule is used to determine the number of core idle state level traversals of the processor to be tested by using the core idle state level information in the nominal frequency;

[0169] The third determination submodule is used to obtain the core idle state residence rate in the nominal frequency and determine the test cycle of the processor to be tested.

[0170] Furthermore, the performance testing module 603 includes:

[0171] The first acquisition submodule is used to pre-acquire the historical operating frequencies of the processor to be tested at different core idle state residence rates, and determine the highest historical operating frequency as the target operating frequency;

[0172] A processing submodule, used for adjusting the initial operating frequency of the processor to be tested to a target operating frequency;

[0173] The test submodule is used to monitor that the processor to be tested is at a target operating frequency, and use the core idle state level traversal number to perform a performance test on the processor to be tested.

[0174] Furthermore, the test submodule includes:

[0175] a calibration unit, configured to calibrate the core utilization of the processor to be tested when the processor to be tested is at a target operating frequency;

[0176] An adjusting unit, configured to adjust a test time interval corresponding to a test cycle by using the core idle state level traversal number and the load level;

[0177] The testing unit is used to perform performance testing on the processor to be tested according to the adjusted testing cycle.

[0178] Furthermore, the test submodule also includes:

[0179] An acquiring unit, used for acquiring a core idle state residence rate of the processor to be tested;

[0180] A first determining unit, configured to determine a load level of a processor to be tested by using the core idle state residence rate;

[0181] The second determining unit is used to obtain the historical operating frequency of the processor under test when evaluating at different load levels, and determine the maximum operating frequency of the processor under test.

[0182] Furthermore, the monitoring performance module 604 includes:

[0183] A monitoring submodule, used to monitor actual performance data of the processor to be tested; wherein the actual performance data includes power consumption, core idle state level, core utilization, core operating frequency and core index percentage cycle;

[0184] A fourth determination submodule is used to determine the test response time and the test score of the processor under test at each core utilization rate;

[0185] A calculation submodule, used to calculate the performance-to-power ratio within a test cycle;

[0186] The generating submodule is used to generate a performance test result by using the test response time and the performance-to-power ratio.

[0187] Further, the fourth determining submodule includes:

[0188] A first processing unit is used to obtain the performance test duration under each core utilization rate, merge the performance test durations, and determine the test response time of the processor to be tested;

[0189] The second processing unit is used to obtain the performance score of the processor in each performance test duration, summarize the performance scores, and determine the test score of the processor to be tested.

[0190] Furthermore, the calculation submodule includes:

[0191] The calculation unit is used to average the power consumption within the test response time to generate a performance-to-power consumption ratio within the test cycle.

[0192] Furthermore, the generating result module 605 includes:

[0193] A second acquisition submodule is used to acquire the actual operating frequency of the processor under test within the test response time and the nominal frequency of the processor under test;

[0194] A comparison submodule, used to compare the actual operating frequency with the nominal frequency to determine an operating frequency deviation between the actual operating frequency and the nominal frequency;

[0195] The fifth determining submodule is used to determine the operating frequency deviation as the operating frequency deviation result of the processor to be tested.

[0196] Furthermore, the nominal frequency is determined by the following formula:

[0197]

[0198] in, is the nominal frequency at which the processor runs during the test time, is the nominal frequency in the non-directive license, , are the nominal frequencies in the instruction permit, is the percentage of core indicator cycles in non-instruction grants, , are the percentage of core indicator cycles in instruction permission, , and The sum of is 1.

[0199] Furthermore, the device also includes:

[0200] The alarm reporting module is used to generate a deviation alarm report corresponding to the operating frequency deviation according to the operating frequency deviation result.

[0201] The server performance evaluation device provided by the embodiment of the present invention obtains hardware information of the processor to be tested, the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested, uses the number of logical cores and the nominal frequency to determine the test configuration parameters corresponding to the processor to be tested, the test configuration parameters include the number of core idle state level traversals and the test cycle, adjusts the processor to be tested to a target operating frequency, performs a performance test on the processor to be tested according to the number of core idle state level traversals, monitors actual performance data of the processor to be tested, merges and calculates the actual performance data, generates a performance test result, the performance test result includes a test response time and a performance-power consumption ratio within the test cycle, obtains the actual operating frequency of the processor to be tested within the test response time, compares the actual operating frequency with the target operating frequency, and generates an operating frequency deviation result. The embodiment of the present invention obtains hardware information of the processor to be tested, such as the number of logical cores and the nominal frequency, accurately configures test parameters, ensures that the test environment matches the actual operating environment, uses the core idle state level and the test cycle to perform processor tests under different workloads, adjusts the processor to be tested to the target operating frequency, monitors actual performance data, evaluates the performance-to-power consumption ratio of the processor under different workloads, improves the accuracy of performance testing, and can accurately and effectively reflect the impact of different core idle state levels on processor performance, implements real-time performance evaluation of the server under different core utilization rates, and evaluates the frequency stability of the processor under different loads by comparing the actual operating frequency of the processor with the target operating frequency, thereby obtaining the impact and analysis of different energy-saving technologies, i.e., different idle state switching, on the performance and power consumption of the entire machine, and an operating frequency deviation warning, thereby further ensuring the stability and reliability of the server.

[0202] Reference Fig. 9 , an embodiment of the present invention further provides an electronic device, such as Fig. 9 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.

[0203] Memory 703, used for storing computer programs;

[0204] The processor 701 is used to execute the program stored in the memory 703 to implement the following steps:

[0205] Acquire hardware information of the processor to be tested; wherein the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested;

[0206] Determine the test configuration parameters corresponding to the processor to be tested by using the number of logical cores and the nominal frequency; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle;

[0207] Adjusting the processor to be tested to a target operating frequency, and performing a performance test on the processor to be tested according to the number of core idle state level traversals;

[0208] Monitor the actual performance data of the processor to be tested, combine and calculate the actual performance data, and generate a performance test result; wherein the performance test result includes a test response time and a performance-to-power ratio within a test cycle;

[0209] The actual operating frequency of the processor to be tested within the test response time is obtained, the actual operating frequency is compared with the target operating frequency, and an operating frequency deviation result is generated.

[0210] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0211] The communication interface is used for communication between the above terminal and other devices.

[0212] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0213] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0214] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes the server performance evaluation method described in any of the above embodiments.

[0215] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the server performance evaluation method described in any one of the above embodiments.

[0216] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0217] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0218] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0219] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A server performance evaluation method, characterized in that: Applied to the server test end, the method includes: Acquire hardware information of the processor to be tested; wherein the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested; Using the number of logical cores and the nominal frequency, determining the test configuration parameters corresponding to the processor to be tested, including: using the core idle state level information in the nominal frequency, determining the number of core idle state level traversals of the processor to be tested, obtaining the core idle state residence rate in the nominal frequency, and determining the test cycle of the processor to be tested; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle; Adjusting the processor to be tested to a target operating frequency, and performing a performance test on the processor to be tested according to the number of core idle state level traversals; Monitor the actual performance data of the processor to be tested, combine and calculate the actual performance data, and generate a performance test result; wherein the performance test result includes a test response time and a performance-to-power ratio within a test cycle; The actual operating frequency of the processor to be tested within the test response time is obtained, the actual operating frequency is compared with the target operating frequency, and an operating frequency deviation result is generated.

2. The method according to claim 1, characterized in that The method of using the number of logical cores and the nominal frequency to determine the test configuration parameters corresponding to the processor to be tested; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle, including: Use the number of logical cores of the processor to be tested to determine the test thread; The test thread is adjusted according to the number of memory nodes acquired in advance.

3. The method according to claim 1, characterized in that The step of adjusting the processor to be tested to a target operating frequency and performing a performance test on the processor to be tested according to the number of core idle state level traversals includes: Pre-acquire the historical operating frequencies of the processor to be tested at different core idle state residence rates, and determine the highest historical operating frequency as the target operating frequency; Adjusting the initial operating frequency of the processor to be tested to a target operating frequency; It is monitored that the processor under test is at a target operating frequency, and the core idle state level traversal number is used to perform a performance test on the processor under test.

4. The method according to claim 3, characterized in that The monitoring that the processor to be tested is at a target operating frequency and using the core idle state level traversal number to perform a performance test on the processor to be tested includes: When the processor to be tested is at a target operating frequency, calibrating the core utilization of the processor to be tested; The test time interval corresponding to the test cycle is adjusted by using the core idle state level traversal number and the load level; According to the adjusted test cycle, a performance test is performed on the processor to be tested.

5. The method according to claim 1, characterized in that: Before adjusting the processor to be tested to the target operating frequency and performing a performance test on the processor to be tested according to the number of core idle state level traversals, the method further includes: Obtaining a core idle state residence rate of the processor to be tested; Determine the load level of the processor to be tested by using the core idle state residence rate; The historical operating frequencies of the processor under test when evaluated at different load levels are obtained to determine the highest operating frequency of the processor under test.

6. The method according to claim 1, characterized in that The monitoring of actual performance data of the processor to be tested, combining and calculating the actual performance data, and generating a performance test result includes: Monitoring actual performance data of the processor to be tested; wherein the actual performance data includes power consumption, core idle state level, core utilization, core operating frequency, and core index percentage cycle; Determining a test response time and a test score of the processor under test at each core utilization rate; Calculate the performance-to-power ratio during the test cycle; The test response time and performance-to-power ratio are used to generate a performance test result.

7. The method according to claim 6, characterized in that Determining the test response time and the test score of the processor under test at each core utilization rate includes: Obtaining the performance test duration at each core utilization rate, merging the performance test durations, and determining the test response time of the processor to be tested; The performance scores of the processors in each performance test duration are obtained, the performance scores are summarized, and a test score of the processor to be tested is determined.

8. The method according to claim 6, characterized in that The performance-to-power ratio during the calculation test cycle includes: The power consumption within the test response time is averaged to generate a performance-to-power consumption ratio within the test cycle.

9. The method according to claim 1, characterized in that: The obtaining the actual operating frequency of the processor under test within the test response time, comparing the actual operating frequency with the nominal frequency, and generating an operating frequency deviation result includes: Obtaining the actual operating frequency of the processor under test within the test response time and the nominal frequency of the processor under test; Comparing the actual operating frequency with the nominal frequency to determine an operating frequency deviation between the actual operating frequency and the nominal frequency; The operating frequency deviation is determined as an operating frequency deviation result of the processor to be tested.

10. The method according to claim 9, characterized in that The nominal frequency is determined by the following formula: in, is the nominal frequency at which the processor runs during the test time, is the nominal frequency in the non-directive license, , are the nominal frequencies in the instruction permit, is the percentage of core indicator cycles in non-instruction grants, , are the percentage of core indicator cycles in instruction permission, , and The sum of is 1.

11. The method according to claim 1, characterized in that: After obtaining the actual operating frequency of the processor to be tested within the test response time, comparing the actual operating frequency with the nominal frequency, and generating an operating frequency deviation result, the method further includes: A deviation alarm report corresponding to the operating frequency deviation is generated according to the operating frequency deviation result.

12. A server performance evaluation device, characterized in that: Applied to the server test end, the device comprises: An information acquisition module, used to acquire hardware information of the processor to be tested; wherein the hardware information includes the number of logical cores and the nominal frequency of the processor to be tested; The information processing module is used to determine the test configuration parameters corresponding to the processor to be tested by using the number of logical cores and the nominal frequency, including: using the core idle state level information in the nominal frequency to determine the number of core idle state level traversals of the processor to be tested, obtaining the core idle state residence rate in the nominal frequency, and determining the test cycle of the processor to be tested; wherein the test configuration parameters include the number of core idle state level traversals and the test cycle; A performance testing module, used for adjusting the processor to be tested to a target operating frequency, and performing a performance test on the processor to be tested according to the number of core idle state level traversals; A performance monitoring module is used to monitor the actual performance data of the processor to be tested, merge and calculate the actual performance data, and generate a performance test result; wherein the performance test result includes a test response time and a performance power consumption ratio within a test cycle; The result generation module is used to obtain the actual operating frequency of the processor to be tested within the test response time, compare the actual operating frequency with the nominal frequency, and generate an operating frequency deviation result.

13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the instructions to implement the server performance evaluation method as described in any one of claims 1 to 11.

14. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the server performance evaluation method according to any one of claims 1 to 11 is implemented.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the server performance evaluation method according to any one of claims 1 to 11 is implemented.