Memory performance testing method, device and computer equipment
By configuring the processing core group and memory insertion method, optimizing the performance test environment, and turning off hyper-threading, the problem of low memory latency test performance in the existing technology is solved, and a more efficient and accurate memory performance evaluation is achieved.
Patent Information
- Application Number
- CN202310221391.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2043-03-09
AI Technical Summary
Memory latency test performance in the existing technology is low, making it difficult to accurately evaluate the memory performance of computer equipment.
By configuring different processing core group numbers and memory insertion methods according to the characteristic information of the memory access module node processing core in the computer device, the performance test environment is optimized, and hyper-threading is turned off before testing to achieve parallel processing and independent thread operation, improving Accuracy and efficiency of memory performance testing.
It improves the performance and accuracy of memory performance testing, is suitable for any type of processor, reduces manual participation and testing costs, reduces manual errors, and simplifies testing steps.
Smart Images

Figure CN116244129B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a memory performance testing method, device and computer equipment. Background Art
[0002] With the development of computer technology, more and more computer equipment is used to process data. Memory is one of the key components in computer equipment. All programs in computer equipment are run in memory, and during business processing, the processing data of the processor in the computer equipment will be temporarily stored in memory. Therefore, the performance of memory has a certain impact on the performance of computer equipment. When determining the performance of computer equipment, it is necessary to test the performance of memory.
[0003] Among them, memory latency is one of the performance indicators of memory. Taking the memory latency test of a computer device as an example, the memory latency test method provided in the related art may have the problem of low memory latency test performance. Summary of the invention
[0004] Based on this, it is necessary to provide a memory performance testing method, device and computer equipment to address the above technical problems, which can improve the testing performance of memory delay.
[0005] In a first aspect, an embodiment of the present application provides a memory performance testing method, the method comprising:
[0006] According to characteristic information of the processing core in the current memory access module node in the computer device, different numbers of processing core groups are configured for a variety of different performance test environments;
[0007] Conduct memory performance tests on computer equipment in various performance test environments;
[0008] Determine the optimal test results for the computer equipment based on the memory performance test results under each performance test environment.
[0009] The technical solution in the embodiment of the present application can configure different numbers of processing core groups for a variety of different performance test environments according to the characteristic information of the processing core in the current memory access module node in the computer device, perform memory performance tests on the computer device under each performance test environment, and determine the optimal test results of the computer device according to the memory performance test results under each performance test environment; the above method can be used to configure the performance test environment before the memory performance test, and all the processing cores in the memory access module node in the computer device can be configured as multiple processing core groups. During the memory performance test, parallel processing can be achieved through the multiple processing cores in the processing core group, thereby improving the test performance of the memory performance; at the same time, the above method can be applicable to computer devices with any model type of processor, thereby improving the versatility of the memory performance test method; in addition, the above method does not require manual participation in the test process, which can not only save testing costs, but also reduce manual errors and improve the accuracy of test results.
[0010] In one embodiment, according to the characteristic information of the processing core in the current memory access module node in the computer device, different numbers of processing core groups are configured for a variety of different performance test environments, including:
[0011] According to the characteristic information of the processing core in the memory access module node, a core binding operation is performed on the processing core in the memory access module node. The core binding operation is used to configure different numbers of processing core groups for a variety of different performance test environments.
[0012] The technical solution in the embodiment of the present application can perform a core binding operation on the processing cores in the memory access module node according to the characteristic information of the processing cores in the memory access module node; the above method can be used to perform a core binding operation on all the processing cores in each memory access module node in the computer device, and obtain multiple processing core groups in the memory access module node, so that during the memory performance test, parallel processing can be achieved through the multiple processing cores in the processing core group, thereby improving the test performance of the memory performance.
[0013] In one embodiment, the characteristic information includes the total number of processing cores; and performing a core binding operation on the processing cores in the memory access module node according to the characteristic information of the processing cores in the memory access module node includes:
[0014] According to the total number of processing cores in the memory access module node, all processing cores in the memory access module node are grouped to obtain multiple processing core groups in the memory access module node;
[0015] A core binding operation is performed on the processing cores in each processing core group.
[0016] The technical solution in the embodiment of the present application can group all the processing cores in the memory access module node according to the total number of processing cores in the memory access module node, obtain multiple processing core groups in the memory access module node, and perform core binding operations on the processing cores in each processing core group; the above method can group all the processing cores in the memory access module node according to the total number of processing cores in each memory access module node, so that the grouping process is simplified, and the grouping speed of the processing cores can be improved, thereby improving the speed of configuring different numbers of processing core groups.
[0017] In one embodiment, before performing a memory performance test on a computer device in each performance test environment, the method further includes:
[0018] According to the property information of the memory slot in the computer device, a plurality of different memory insertion methods are determined.
[0019] The technical solution in the embodiments of the present application can determine a variety of different memory insertion methods based on the attribute information of the memory slots in the computer device, and then perform memory performance tests on the computer device in different memory insertion methods to obtain the memory insertion method corresponding to the optimal test result. This facilitates the subsequent memory performance test by directly configuring the memory according to the internal insertion method corresponding to the optimal test result, and can obtain the optimal test result at one time, reducing the memory performance testing steps.
[0020] In one embodiment, the attribute information includes the total number of memory slots and the total number of memories that can be inserted into each memory slot; and according to the attribute information of the memory slots in the computer device, a plurality of different memory insertion methods are determined, including:
[0021] For each performance test environment configuration, obtain the total amount of memory to be inserted into the computer device;
[0022] According to the preset insertion rules, the insertion position of each memory into the corresponding memory slot is determined according to the total number of memories, the total number of memory slots and the total number of memories that can be inserted into each memory slot;
[0023] According to the insertion position of each memory, a plurality of different memory insertion methods are determined.
[0024] The technical solution in the embodiments of the present application can obtain the total number of memories to be inserted into the computer device according to each performance test environment configuration, and determine the insertion position of each memory into the corresponding memory slot according to the total number of memories, the total number of memory slots and the total number of memories that can be inserted into each memory slot according to the preset insertion rules, and determine a plurality of different memory insertion methods according to the insertion position of each memory; the above method can quickly determine a plurality of different memory insertion methods according to the total number of memories, the total number of memory slots and the total number of memories that can be inserted into each memory slot, and determine a plurality of different memory insertion methods according to the priority of each position on the memory slot in the preset insertion rules, and configure the optimal memory environment for the computer device based on the determined plurality of different memory insertion methods, thereby improving the test performance of memory performance.
[0025] In one embodiment, before performing a memory performance test on a computer device in each performance test environment, the method further includes:
[0026] According to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node, the system operation mode is configured for a variety of different performance test environments.
[0027] The technical solution in the embodiment of the present application can configure the system operation mode for a variety of different performance test environments according to the characteristic information of the processor and the characteristic information of the memory access module node in the computer device before executing the memory performance test, so as to further perform the memory performance test on the computer device under this system operation mode, thereby improving the test performance of the memory performance.
[0028] In one embodiment, according to the characteristic information of the processor and the characteristic information of the memory access module node in the computer device, the system operation mode is configured for a plurality of different performance test environments, including:
[0029] Determine a system operation mode according to the total number of processors and the total number of memory access module nodes in the computer device;
[0030] Based on the mode configuration interface, configure the system operation mode for a variety of different performance test environments.
[0031] The technical solution in the embodiment of the present application can determine the system operation mode according to the total number of processors and the total number of memory access module nodes in the computer device, and configure the system operation mode for a variety of different performance test environments based on the mode configuration interface; the above method can determine the system operation mode in real time according to the total number of processors in the computer device and the total number of current memory access module nodes, so that the determined system operation mode has high accuracy, and by configuring the system operation mode based on the mode configuration interface, the problem of the computer device not receiving the relevant configuration instructions of the system operation mode is avoided, ensuring that the computer device can receive and respond to the relevant configuration instructions of the system operation mode, thereby improving the test performance of memory performance.
[0032] In one embodiment, the method further comprises:
[0033] Detects whether hyperthreading is turned off on a computer device;
[0034] If the hyperthreading is not disabled, the hyperthreading is disabled, and the steps of configuring the system operation mode for a plurality of different performance test environments are performed according to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node.
[0035] The technical solution in the present application can detect whether the hyper-threading of a computer device has been turned off. When it is determined that the hyper-threading is not turned off, the hyper-threading will be turned off, and the steps of configuring the system operation mode for a variety of different performance test environments will be executed according to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node; the above method can ensure that the hyper-threading is turned off by detection before executing the memory performance test, so that the memory performance test thread can work independently, thereby improving the speed and efficiency of the memory performance test, and turning off the hyper-threading can avoid affecting the operation of the memory performance test thread, thereby improving the accuracy of the memory performance test results.
[0036] In a second aspect, an embodiment of the present application provides a memory performance testing device, the device comprising:
[0037] A configuration module, configured to configure different numbers of processing core groups for a variety of different performance test environments according to characteristic information of processing cores in current memory access module nodes in the computer device;
[0038] The performance test module is used to perform memory performance tests on computer devices under various performance test environments;
[0039] The test result determination module is used to determine the optimal test result of the computer device according to the memory performance test results under each performance test environment.
[0040] In a third aspect, an embodiment of the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of any one of the embodiments of the first aspect when executing the computer program.
[0041] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method of any embodiment in the above-mentioned first aspect are implemented.
[0042] In a fifth aspect, an embodiment of the present application further provides a computer program product, the computer program product comprising a computer program, which, when executed by a processor, implements the steps of the method of any embodiment of the first aspect above.
[0043] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is an internal structure diagram of a computer device in one embodiment;
[0045] Figure 2 A schematic diagram of a memory performance testing method according to an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of a flow chart of a memory performance testing method in another embodiment;
[0047] Figure 4 A schematic diagram of a flow chart of a memory performance testing method in another embodiment;
[0048] Figure 5 A schematic diagram of a flow chart of a memory performance testing method in another embodiment;
[0049] Figure 6 A schematic diagram of a flow chart of a memory performance testing method in another embodiment;
[0050] Figure 7 A structural block diagram of a memory performance testing device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] In computer technology, memory is one of the important components in computer equipment. In order to meet the performance requirements of computer equipment, the most critical thing is to ensure the performance of memory in computer equipment through memory performance testing technology.
[0053] Among them, memory latency is one of the main performance indicators of memory. Take the memory latency test of computer devices as an example. In the related art, memory latency and bandwidth test tools are used to test the memory latency of computer devices. However, the related art has the problem of low memory latency test performance. Based on this, the embodiment of the present application provides a memory performance test method, which can be applied to Figure 1 Optionally, the computer device may be, but is not limited to, various personal computers, laptops, smart phones, and tablet computers, and may also be implemented using an independent server or a server cluster consisting of multiple servers. This embodiment does not limit the specific form of the computer device.
[0054] In the embodiment of the present application, the above memory performance test method can be applied to computer devices with any type of processor (Central Processing Unit, CPU), and the embodiment of the present application does not limit this. The memory performance test method is described below with the computer device as the execution subject.
[0055] like Figure 2 FIG. 1 is a flow chart of a memory performance testing method provided in an embodiment of the present application, and the method can be implemented by the following steps:
[0056] S100. According to characteristic information of a processing core in a current memory access module node in a computer device, different numbers of processing core groups are configured for a variety of different performance test environments.
[0057] The computer device may include at least one processor (Central Processing Unit, CPU), and each CPU may include multiple processing cores (i.e., CPU cores or CPU cores). Optionally, the characteristic information of the processing core may be clock frequency, component material, design structure, etc.
[0058] In practical applications, before executing the memory performance test method, all processing cores in the computer device can be grouped to obtain multiple memory access module nodes (Non-Uniform Memory Access node, NUMA node). Optionally, the memory access module node can also be called a non-uniform memory access node. It should be noted here that the computer device can group all processing cores in the computer device according to business processing requirements, and determine each group of processing cores as a memory access module node, wherein the total number of memory access module nodes obtained after all processing cores of the same computer device are grouped at different times can be the same or different.
[0059] Specifically, the computer device can group all processing cores in each current memory access module node in the computer device according to the characteristic information of the processing cores under the condition that the characteristic information of the processing cores is the same, and configure different numbers of processing core groups for a variety of different performance test environments according to the obtained number of groups.
[0060] In addition, the computer device can determine a preset grouping rule based on the characteristic information of the processing core in the current memory access module node in the computer device, and then group all the processing cores in each current memory access module node according to the grouping rule, and then configure different numbers of processing core groups for a variety of different performance test environments according to the obtained number of groups. Optionally, the grouping rule can be understood as a rule for grouping all the processing cores in each memory access module node.
[0061] Optionally, the above performance test environment can be generated after completing the configuration of the hardware modules in the computer device before executing the memory performance test. Among them, configuring different numbers of processing core groups is only a part of configuring the performance test environment. During the test, the numbers of processing core groups configured corresponding to different performance test environments can be the same or different. Optionally, the hardware module can be a processor, a processing core, a memory access module node, a memory, a network card, a graphics card, etc.
[0062] S200. Perform memory performance test on computer equipment under various performance test environments.
[0063] In actual applications, after configuring a performance test environment for a computer device each time, a performance test tool can be used to test the memory performance of the computer device. Optionally, memory performance may include memory bandwidth, memory pressure, internal audit application and speed, and memory bandwidth benchmark, etc. Correspondingly, the performance test tool may be a memory bandwidth test tool (such as Lmbench, mbw, Stream, etc.), a memory pressure test tool (such as RunMemtestpro, memtester, etc.), a memory application (sequential / random) and (read / write) speed test tool (such as sysbench), a memory bandwidth benchmark test tool (such as bendwidth), etc.
[0064] In the embodiment of the present application, if the memory performance is memory latency, the above-mentioned performance testing tool is Multichase.
[0065] S300. Determine an optimal test result for a computer device according to memory performance test results under various performance test environments.
[0066] Based on the memory performance test results in each performance test environment obtained in the above steps, the memory performance test results in each performance test environment can be processed to obtain the optimal test result of the computer device. Optionally, the memory performance test results may include memory performance test results between various hardware modules, such as memory performance test results between a graphics card and a processor, memory performance test results between a network card and a processor, memory performance test results between a graphics card and a processing core, memory performance test results between a network card and a processing core, memory performance test results between a graphics card and a memory access module node, and memory performance test results between a network card and a memory access module node.
[0067] In one embodiment, the memory performance test results under each performance test environment may be processed by pre-training an algorithm model, and then inputting the memory performance test results under each performance test environment into the algorithm model, which outputs the optimal test results.
[0068] In another embodiment, the memory performance test results in each performance test environment may be processed by comparing the memory performance test results in each performance test environment to obtain the optimal test result.
[0069] It should be noted here that the computer device may include a CPU, a memory access module node and a processing core. During the operation of the computer device, the CPU, the memory access module node and the processing core in the computer device all have data interaction with the memory. Therefore, the memory performance test of the computer device is actually a test of the memory performance when the CPUs in the computer device interact with each other, a test of the memory performance when the memory access module nodes interact with each other, and a test of the memory performance when the processing cores interact with each other. Naturally, the memory performance test results may include a first memory performance test result when the CPUs interact with each other, a second memory performance test result when the memory access module nodes interact with each other, and a third memory performance test result when the processing cores interact with each other.
[0070] In an embodiment of the present application, the memory performance test result can be a performance test index value. In practical applications, the computer device can sort the first memory performance test result, the second memory performance test result, and the third memory performance test result under each performance test environment, respectively, and then select the best set of first memory performance test results, second memory performance test results, and third memory performance test results from the sorted results according to the optimal screening condition, that is, the optimal test result. Optionally, the optimal screening condition can be generated by comprehensively considering the optimal memory performance when CPUs interact with each other in historical test results, the optimal memory performance when memory access module nodes interact with memory access module nodes, and the optimal memory performance when processing cores interact with processing cores.
[0071] Among them, after determining the optimal test result of the computer device, a test log file can be generated, and the log file includes the optimal test result obtained in the current test and the memory performance test results under the corresponding performance test environment, etc. In actual application, before executing the steps in S200 above, the log file generated by the previous test can be copied and stored to the target location to avoid the log file generated by the current test overwriting the log file generated by the previous test, which is used for comparison of subsequent multiple test results; it should be noted here that the log file generated by each test will be stored in the same location, which is different from the target location.
[0072] The technical solution in the embodiment of the present application can configure different numbers of processing core groups for a variety of different performance test environments according to the characteristic information of the processing core in the current memory access module node in the computer device, perform memory performance tests on the computer device under each performance test environment, and determine the optimal test results of the computer device according to the memory performance test results under each performance test environment; the above method can be used to configure the performance test environment before the memory performance test, and all the processing cores in the memory access module node in the computer device can be configured as multiple processing core groups. During the memory performance test, parallel processing can be achieved through the multiple processing cores in the processing core group, thereby improving the test performance of the memory performance; at the same time, the above method can be applicable to computer devices with any model type of processor, thereby improving the versatility of the memory performance test method; in addition, the above method does not require manual participation in the test process, which can not only save testing costs, but also reduce manual errors and improve the accuracy of test results.
[0073] In some scenarios, due to the high demand for memory performance testing, it is necessary to improve the test performance of memory performance. Based on this, a better performance test environment can be configured before the memory performance test. The following is an explanation of the processing core configuration process in the performance test environment. In one embodiment, the steps in S100 above may include: performing a core binding operation on the processing core in the memory access module node according to the characteristic information of the processing core in the memory access module node. Among them, the core binding operation is used to configure different numbers of processing core groups for a variety of different performance test environments.
[0074] Specifically, the computer device can group all the processing cores in each memory access module node according to the characteristic information of the processing cores in each memory access module node, and then perform core binding operations on the same type of processing cores in each memory access module node according to the grouping results, so as to configure different numbers of processing core groups for a variety of different performance testing environments.
[0075] At the same time, the computer device can also search for the characteristic information of the processing core in each memory access module node in the mapping relationship, and obtain the identification information of the processing core group corresponding to the characteristic information of the found processing core from the mapping relationship, and then perform the core binding operation on all processing cores with the same identification information to complete the configuration of different numbers of processing core groups for a variety of different performance test environments. Optionally, the above mapping relationship may include different processing cores, the characteristic information of each processing core, the identification information of the processing core group corresponding to each characteristic information, and the corresponding relationship between the three. Optionally, the identification information can be a character composed of at least one combination of numbers, letters, and symbols.
[0076] The core binding operation can be understood as an operation of binding multiple processing cores together, so that the multiple processing cores bound together during the test process can realize parallel processing, so as to improve the speed and efficiency of the memory performance test, that is, to improve the test performance of the memory performance. Optionally, the number of the above-mentioned processing core groups can be equal to the number of groups obtained by grouping all the processing cores in the memory access module node.
[0077] The technical solution in the embodiment of the present application can perform a core binding operation on the processing cores in the memory access module node according to the characteristic information of the processing cores in the memory access module node; the above method can be used to perform a core binding operation on all the processing cores in each memory access module node in the computer device, and obtain multiple processing core groups in the memory access module node, so that during the memory performance test, parallel processing can be achieved through the multiple processing cores in the processing core group, thereby improving the test performance of the memory performance.
[0078] The following is a description of the process of performing a core binding operation on the processing cores in the memory access module node according to the characteristic information of the processing cores in the memory access module node. In one embodiment, the characteristic information includes the total number of processing cores; Figure 3 As shown, the step of performing a core binding operation on the processing core in the memory access module node according to the characteristic information of the processing core in the memory access module node may include:
[0079] S110 . Group all processing cores in the memory access module node according to the total number of processing cores in the memory access module node to obtain a plurality of processing core groups in the memory access module node.
[0080] Specifically, the computer device can obtain the total number of processing cores in each memory access module node, and then group all processing cores in each memory access module node according to the total number of processing cores in each memory access module node to obtain multiple processing core groups in each memory access module node.
[0081] The total number of processing cores in each memory access module node may be obtained by the user viewing the property information of the computer device, or by calling a feature information viewing tool, wherein the feature information viewing tool may be the numactl tool.
[0082] S120: Perform a core binding operation on the processing cores in each processing core group.
[0083] Based on the multiple processing core groups in each memory access module node obtained in the above steps, the core binding operation can be performed on the processing cores in each processing core group respectively.
[0084] The technical solution in the embodiment of the present application can group all the processing cores in the memory access module node according to the total number of processing cores in the memory access module node, obtain multiple processing core groups in the memory access module node, and perform core binding operations on the processing cores in each processing core group; the above method can group all the processing cores in the memory access module node according to the total number of processing cores in each memory access module node, so that the grouping process is simplified, and the grouping speed of the processing cores can be improved, thereby improving the speed of configuring different numbers of processing core groups.
[0085] In actual applications, the memory performance test results corresponding to the memory insertion methods on the computer device will also be different. In order to obtain the best test results, multiple different memory insertion methods can be configured. The following is a description of how to configure multiple different memory insertion methods. In one embodiment, before executing the steps in S200 above, the method may further include: determining multiple different memory insertion methods according to the attribute information of the memory slots in the computer device.
[0086] It should be noted here that the step of determining a plurality of different memory insertion methods according to the attribute information of the memory slot in the computer device can be performed before the step in the above S200, or before the step in the above S100, and this embodiment of the present application does not limit this.
[0087] Specifically, the computer device can obtain the attribute information of all memory slots in the computer device, and then determine a plurality of different memory insertion methods according to the attribute information of each memory slot in the computer device. Optionally, the computer device may include at least one memory slot, and the attribute information of the memory slot may be information such as the type, material, color, shape, etc. of the memory slot.
[0088] For example, a method for determining multiple different memory insertion methods based on the attribute information of each memory slot in a computer device can be to pre-train an algorithm model, and then input the attribute information of each memory slot in the computer device into the algorithm model, and the algorithm model outputs multiple different memory insertion methods.
[0089] For example, the method of determining multiple different memory insertion methods based on the attribute information of each memory slot in a computer device can also be to determine the priority of inserting memory into each memory slot based on the attribute information of each memory slot in the computer device, and then determine multiple different memory insertion methods based on the priority of inserting memory into each memory slot.
[0090] The technical solution in the embodiments of the present application can determine a variety of different memory insertion methods based on the attribute information of the memory slots in the computer device, and then perform memory performance tests on the computer device in different memory insertion methods to obtain the memory insertion method corresponding to the optimal test result. This facilitates the subsequent memory performance test by directly configuring the memory according to the internal insertion method corresponding to the optimal test result, and can obtain the optimal test result at one time, reducing the memory performance testing steps.
[0091] The following is an explanation of the process of determining a plurality of different memory insertion methods based on the attribute information of the memory slots in the computer device. In one embodiment, the attribute information includes the total number of memory slots and the total number of memories that can be inserted into each memory slot; Figure 4 As shown, the above step of determining a plurality of different memory insertion modes according to the attribute information of the memory slot in the computer device may include:
[0092] S400: For each performance test environment configuration, obtain the total amount of memory to be inserted into the computer device.
[0093] In order to determine the optimal test result, different amounts of memory can be configured in different performance test environments in the process of configuring different performance test environments before the memory performance test. Correspondingly, the computer device can obtain the total amount of memory to be inserted into the computer device in different performance test environments.
[0094] Optionally, the total number of memories to be inserted into the computer device may be greater than or equal to 1, which is not limited in the embodiment of the present application.
[0095] S500: Determine the insertion position of each memory into the corresponding memory slot according to a preset insertion rule, the total number of memories, the total number of memory slots, and the total number of memories that can be inserted into each memory slot.
[0096] In actual applications, before executing the memory performance test, the computer device is fixed, and correspondingly, all the memory slots in the computer device are also fixed, that is, the total number of all the memory slots in the computer device and the total number of memories that can be inserted into each memory slot are fixed.
[0097] If there are multiple memories to be inserted into the memory slots in the computer device, the sizes of the multiple memories to be inserted may be the same or different. Optionally, each position on the memory slot can be inserted with a memory of any size.
[0098] Specifically, the preset insertion rules may include the total number of memories to be inserted, the total number of memory slots in the computer device, the total number of memories that can be inserted into each memory slot, the insertion position of each memory to be inserted into the corresponding memory slot, and the corresponding relationship between the four. Correspondingly, the computer device can search for the insertion position of each memory corresponding to the total number of memories, the total number of memory slots, and the total number of memories that can be inserted into each memory slot in the preset insertion rules.
[0099] In the embodiment of the present application, the computer device can determine the total number of memories to be inserted into each memory slot according to the total number of memories, the total number of memory slots, and the total number of memories that can be inserted into each memory slot, and then determine the insertion position of each memory into the corresponding memory slot according to the total number of memories to be inserted into each memory slot according to the preset insertion rule. Optionally, the total number of memories to be inserted into each memory slot can be equal or unequal.
[0100] Among them, the above-mentioned preset insertion rules can be user-defined, but in order to improve the accuracy of the determined memory insertion position, the preset insertion rules can be determined by historical test results; the above-mentioned insertion rules can include the priority of each insertable memory position on the memory slot.
[0101] It should be noted that inserting the memory into a higher level position on the memory slot corresponds to a higher memory performance test; inserting the memory into a lower level position on the memory slot corresponds to a lower memory performance test. Naturally, the insertion position of each memory to be inserted into the corresponding memory slot can be determined in sequence according to the priority of each insertable memory position on each memory slot in the preset insertion rule.
[0102] S600: Determine a plurality of different memory insertion modes according to the insertion positions of the memories.
[0103] The computer device may determine the insertion positions of the memories corresponding to the memories of different numbers to be inserted as a plurality of different memory insertion modes.
[0104] Correspondingly, the step of performing a memory performance test on the computer device in each performance test environment in S200 may include: performing a memory performance test on the computer device in each performance test environment in different memory insertion modes.
[0105] In an embodiment of the present application, a computer device can be configured with different amounts of memory in different memory insertion methods under different performance test environments, and then memory performance tests can be performed on the computer device under different memory insertion methods.
[0106] Optionally, configuring a computer device with different amounts of memory through different memory insertion methods can also be understood as configuring a part of different performance test environments. That is, each performance test environment can include a memory environment configured through any memory insertion method and / or a processing core environment configured after performing different core binding operations on all processing cores in each memory access module node. In the embodiment of the present application, regardless of the total number of processors in the computer device, the memory insertion method is the same.
[0107] For example, if a computer device has eight memory slots, the total number of memories that can be inserted into each memory slot is 2, and the memory slots are identified as memory slot A, memory slot B, memory slot C, ..., memory slot H, respectively. Correspondingly, the positions of memories that can be inserted into each memory slot can be 0 and 1, respectively. (1) When the total number of memories to be inserted into the computer device is 1, the insertion position of the memory to be inserted into the corresponding memory slot according to the preset insertion rule can be C0; (2) When the total number of memories to be inserted into the computer device is 2, the insertion position of the memory to be inserted into the corresponding memory slot according to the preset insertion rule can be C0 and D0; (3) when the total number of memories to be inserted into the computer device is 4, the insertion position of the memory inserted into the corresponding memory slot according to the preset insertion rule can be C0, D0, G0 and H0; (4) when the total number of memories to be inserted into the computer device is 6, the insertion position of the memory inserted into the corresponding memory slot according to the preset insertion rule can be A0, C0, D0, E0, G0 and H0; (5) when the total number of memories to be inserted into the computer device is 8, the insertion position of the memory inserted into the corresponding memory slot according to the preset insertion rule can be A0, B0, C0, D0, E0, F0, G0 and H0. Optionally, when setting the position of the memory inserted into the memory slot, it is not limited to inserting the first position 0 of the memory slot first, and the priority insertion position is determined specifically according to the preset insertion rule.
[0108] The technical solution in the embodiments of the present application can obtain the total number of memories to be inserted into the computer device according to each performance test environment configuration, and determine the insertion position of each memory into the corresponding memory slot according to the total number of memories, the total number of memory slots and the total number of memories that can be inserted into each memory slot according to the preset insertion rules, and determine a plurality of different memory insertion methods according to the insertion position of each memory; the above method can quickly determine a plurality of different memory insertion methods according to the total number of memories, the total number of memory slots and the total number of memories that can be inserted into each memory slot, and determine a plurality of different memory insertion methods according to the priority of each position on the memory slot in the preset insertion rules, and configure the optimal memory environment for the computer device based on the determined plurality of different memory insertion methods, thereby improving the test performance of memory performance.
[0109] In one embodiment, before executing the step in S200, the method may further include: configuring system operation modes for a plurality of different performance test environments according to characteristic information of a processor and characteristic information of a memory access module node in the computer device.
[0110] In an embodiment of the present application, the steps in the above S100, the steps of configuring the system operation mode (i.e., NPS) for a variety of different performance test environments, and the steps of determining a variety of different memory insertion methods based on the attribute information of the memory slots in the computer device, can be exchanged in the same execution order in the memory performance testing method. The embodiment of the present application does not limit this execution order, as long as it is completed before the execution of the steps in the above S200.
[0111] Among them, configuring the system operation mode can be a part of configuring the performance test environment, that is, each performance test environment can include a memory environment configured by any memory insertion method, a processing core environment configured after performing different core binding operations on all processing cores in each memory access module node, and / or a configured system operation mode. However, in actual applications, as long as the core binding operation is performed on all processing cores in each memory access module node in the computer device, the memory is configured according to different memory insertion methods, and any one of the system operation modes can be used to improve the test performance of memory performance. However, the test performance of memory performance can be greatly improved by executing the three. Optionally, the above-mentioned system operation mode can be understood as the configuration mode of the memory access module node.
[0112] Specifically, before executing the steps in S200 above, the computer device may also search for characteristic information of each processor in the computer device and characteristic information of each memory access module node in the computer device in the operation mode library, and then obtain the system operation mode corresponding to the characteristic information of each processor and the characteristic information of each memory access module node in the operation mode library, and then configure the same system operation mode for a plurality of different performance test environments according to the obtained system operation mode.
[0113] Optionally, the operation mode library may include different system operation modes, characteristic information of each processor in the computer device, characteristic information of each memory access module node in the computer device, and the correspondence between the three. Configuring the system operation mode may include the process of regrouping the memory access module nodes in the computer device according to the processor in the computer device and setting the memory shared access in the computer device during the memory performance test.
[0114] Optionally, the characteristic information of the above-mentioned processor may be information such as the processor's main frequency, external frequency, cache size, and idle time; the characteristic information of the above-mentioned memory access module node may include information such as the running speed of the memory access module node and the total number of processing cores included.
[0115] In addition, the computer device can also perform arithmetic operations on the characteristic information of the processor and the characteristic information of the memory access module node in the computer device to obtain the identification information of the system operation mode, and then configure the corresponding system operation mode for a variety of different performance test environments according to the identification information of the system operation mode. Optionally, the arithmetic operation can be addition, subtraction, multiplication, exponential operation and / or logarithmic operation, etc.
[0116] The technical solution in the embodiment of the present application can configure the system operation mode for a variety of different performance test environments according to the characteristic information of the processor and the characteristic information of the memory access module node in the computer device before executing the memory performance test, so as to further perform the memory performance test on the computer device under this system operation mode, thereby improving the test performance of the memory performance.
[0117] The following is a description of the process of configuring system operation modes for various performance test environments based on the characteristic information of the processor and the characteristic information of the memory access module node in the computer device. Figure 5 As shown, the above-mentioned step of configuring the system operation mode for a plurality of different performance test environments according to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node may include:
[0118] S700: Determine a system operation mode according to the total number of processors and the total number of memory access module nodes in the computer device.
[0119] Specifically, the computer device can obtain the total number of processors in the computer device and the total number of current memory access module nodes, then divide the total number of memory access module nodes by the total number of processors to obtain identification information of the system operation mode, and then determine the system operation mode based on the identification information of the system operation mode.
[0120] It should be noted here that the total number of memory access module nodes currently in the computer device in step S700 may be the same as or different from the total number of memory access module nodes in the computer device before the execution of the above memory performance test method. In the embodiment of the present application, the total number of the above processors can be understood as the total number of sockets (i.e., sockets) of the computer device; the identification information of the system operation mode is a number.
[0121] Optionally, since the total number of processors and the total number of memory access module nodes in different computer devices may be different, and the total number of memory access module nodes in the same computer device may also be different at different times, the above-mentioned system operation mode can be multiple. In actual applications, the corresponding system operation mode can be determined based on the identification information of the acquired system operation mode.
[0122] Among them, the identification information of the system operation mode can be equal to 1, 2, 4, etc. Correspondingly, the system operation mode can be NPS 1, NPS 2, NPS 4, etc. In addition, the system operation mode can also be NPS 0. NPS 0 is not applicable to the process of determining the system operation mode according to the total number of processors and the total number of memory access module nodes in the computer device. As long as the computer device is a dual CPU system, the system operation mode can be determined to be NPS 0.
[0123] In the embodiment of the present application, NPS 0 indicates that the dual CPU system is configured as 1 memory access module node, and all memories in the computer device can share interleaved access; NPS 1 indicates that each CPU in the computer device is configured as 1 memory access module node, and all memories connected to the same CPU can share interleaved access; NPS 2 indicates that each CPU in the computer device is configured as 2 memory access module nodes, and all processing cores in the computer device are configured to be connected to 2 4 memories, and these 2 4 memories can share interleaved access; NPS 4 indicates that each CPU in the computer device is configured as 4 memory access module nodes, and each memory access module node is configured to be connected to 2 memories, and the 2 memories corresponding to each memory access module node can share interleaved access. Optionally, multiple memories can share interleaved access, which can be understood as when data is written to the memory or read from the memory, the read and write functions of these multiple memories are not distinguished and are the same.
[0124] S800, based on the mode configuration interface, configures the system operation mode for a variety of different performance test environments.
[0125] Based on the system operation mode obtained in the above steps, the user can input relevant configuration instructions of the system operation mode to the computer device, and the computer device receives and responds to the relevant configuration instructions of the system operation mode to configure the system operation mode for each performance test environment respectively.
[0126] In the embodiment of the present application, the computer device can configure the system operation mode for a variety of different performance test environments based on the mode configuration interface. Optionally, the mode configuration interface can include a system operation mode setting area, a test time setting area, a confirmation and cancellation area, etc.
[0127] Among them, in each different performance testing environment, the computer device can receive and respond to the mode configuration interface opening instruction input by the user, output the mode configuration interface, and then receive and respond to the relevant configuration instructions of the system operation mode corresponding to the system operation mode setting area set by the user in the mode configuration interface, so as to complete the configuration of the system operation mode for the performance testing environment.
[0128] It should be noted that after the user has set the corresponding system operation mode in the system operation mode setting area in the mode configuration interface, the user can submit a confirmation instruction by triggering the confirmation control in the confirmation and cancellation area on the mode configuration interface, or input a confirmation instruction through other input methods, so that the computer device receives the set system operation mode. Optionally, the above input method can be an input method such as voice, gesture, action, etc.
[0129] The technical solution in the embodiment of the present application can determine the system operation mode according to the total number of processors and the total number of memory access module nodes in the computer device, and configure the system operation mode for a variety of different performance test environments based on the mode configuration interface; the above method can determine the system operation mode in real time according to the total number of processors in the computer device and the total number of current memory access module nodes, so that the determined system operation mode has high accuracy, and by configuring the system operation mode based on the mode configuration interface, the problem of the computer device not receiving the relevant configuration instructions of the system operation mode is avoided, ensuring that the computer device can receive and respond to the relevant configuration instructions of the system operation mode, thereby improving the test performance of memory performance.
[0130] In one embodiment, before performing all the above steps, Figure 6 As shown, the above method may also include:
[0131] S10. Detect whether the hyperthreading of the computer device is turned off.
[0132] Specifically, the computer device can receive and respond to the detection instruction input by the user to detect whether the hyperthreading (SMT) of the computer device has been turned off. At the same time, the computer device can also automatically trigger the detection instruction to detect whether the hyperthreading of the computer device has been turned off.
[0133] Among them, hyperthreading is also called simultaneous multithreading. In the embodiment of the present application, the above-mentioned hyperthreading can be understood as all other threads except the memory performance test thread currently running in the computer device.
[0134] S20: If the hyperthreading is not disabled, the hyperthreading is disabled, and a step of configuring a system operation mode for a plurality of different performance test environments is performed according to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node.
[0135] It should be noted here that when it is determined that hyper-threading is not turned off, the computer device can automatically turn off hyper-threading; in addition, when it is determined that hyper-threading is not turned off, the computer device can also output relevant prompt information that hyper-threading is not turned off, and then the user inputs an instruction to turn off hyper-threading according to the relevant prompt information, and the computer device receives and responds to the instruction to turn off hyper-threading.
[0136] In actual applications, if the system operation mode is configured first during the configuration of the performance test environment, if it is determined that the hyper-threading is not turned off, the hyper-threading can be turned off. After the shutdown is completed, the steps of configuring the system operation mode for a variety of different performance test environments are executed according to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node.
[0137] If the memory insertion position is configured first during the performance test environment configuration, after determining that the hyperthreading is not disabled, the hyperthreading can be disabled. After the hyperthreading is disabled, the steps of determining a plurality of different memory insertion methods according to the attribute information of the memory slot in the computer device are executed.
[0138] If the process of configuring the performance test environment gives priority to configuring the processing core group, after determining that the hyperthreading is not turned off, the hyperthreading can be turned off. After the hyperthreading is turned off, the steps of configuring different numbers of processing core groups for multiple different performance test environments according to the characteristic information of the processing core in the current memory access module node in the computer device are executed.
[0139] In an embodiment of the present application, before executing the above-mentioned memory performance test method, it is possible to detect whether the necessary program dependency package when the performance test tool is running on the computer device has been installed. If not installed, the program dependency package is installed first, and then the performance test tool is installed after the installation is completed. Optionally, the above-mentioned program dependency package may include a GCC compiler tool and a numactl tool, wherein the GCC compiler tool is a compiler suite developed by GNU, and the numactl tool is a tool that can view the configuration and running status of the memory access module node in the current computer device.
[0140] Among them, ensuring that the program dependency package has been installed before installing the performance testing tool is to ensure the smooth execution of the memory performance testing process; the process of installing the program dependency package can include first downloading the program dependency package, then decompressing the program dependency package to obtain the decompressed file, and then finding the corresponding installation package in the decompressed file to run the installation.
[0141] In addition, before executing the memory performance test, the number of large memory pages in the computer device can also be configured to reduce the number of memory addressing times of the CPU during the memory performance test, thereby improving the test performance of the computer device.
[0142] The technical solution in the present application can detect whether the hyper-threading of a computer device has been turned off. When it is determined that the hyper-threading is not turned off, the hyper-threading will be turned off, and the steps of configuring the system operation mode for a variety of different performance test environments will be executed according to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node; the above method can ensure that the hyper-threading is turned off by detection before executing the memory performance test, so that the memory performance test thread can work independently, thereby improving the speed and efficiency of the memory performance test, and turning off the hyper-threading can avoid affecting the operation of the memory performance test thread, thereby improving the accuracy of the memory performance test results.
[0143] In one embodiment, the present application also provides a memory performance testing method, which includes the following process:
[0144] (1) Check whether the hyperthreading of the computer device is turned off.
[0145] (2) If hyperthreading is not disabled, disable it.
[0146] (3) Determine the system operation mode based on the total number of processors and the total number of memory access module nodes in the computer device.
[0147] (4) Based on the mode configuration interface, configure the system operation mode for a variety of different performance test environments.
[0148] (5) For each performance test environment configuration, obtain the total amount of memory to be inserted into the computer device.
[0149] (6) According to a preset insertion rule, the insertion position of each memory into the corresponding memory slot is determined based on the total number of memories, the total number of memory slots, and the total number of memories that can be inserted into each memory slot.
[0150] (7) Determine a plurality of different memory insertion methods according to the insertion position of each memory.
[0151] (8) According to the total number of processing cores in the memory access module node, all processing cores in the memory access module node are grouped to obtain multiple processing core groups in the memory access module node.
[0152] (9) Perform core binding operations on the processing cores in each processing core group.
[0153] (10) Under each performance test environment, memory performance tests are performed on computer equipment using different memory insertion methods.
[0154] (11) Determine the optimal test results for the computer device based on the memory performance test results under each performance test environment.
[0155] The execution process of the above (1) to (11) can be specifically referred to the description of the above embodiment. The implementation principle and technical effect are similar and will not be repeated here.
[0156] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0157] Based on the same inventive concept, the embodiment of the present application also provides a memory performance test device for implementing the memory performance test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more memory performance test device embodiments provided below can refer to the limitations of the memory performance test method above, and will not be repeated here.
[0158] In one embodiment, Figure 7 This is a schematic diagram of the structure of a memory performance testing device in one embodiment of the present application. Figure 7 As shown, the memory performance testing device of the embodiment of the present application may include: a configuration module 11, a performance testing module 12 and a test result determination module 13, wherein:
[0159] A configuration module 11, configured to configure different numbers of processing core groups for a variety of different performance test environments according to characteristic information of processing cores in current memory access module nodes in the computer device;
[0160] The performance testing module 12 is used to perform memory performance testing on computer equipment under various performance testing environments;
[0161] The test result determination module 13 is used to determine the optimal test result of the computer device according to the memory performance test results in each performance test environment.
[0162] The memory performance testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned memory performance testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0163] In one embodiment, the configuration module 11 includes: a core binding unit, wherein:
[0164] The core binding unit is used to perform a core binding operation on the processing core in the memory access module node according to the characteristic information of the processing core in the memory access module node. The core binding operation is used to configure different numbers of processing core groups for a variety of different performance test environments.
[0165] The memory performance testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned memory performance testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0166] In one embodiment, the characteristic information includes the total number of processing cores; the core binding unit is specifically used for:
[0167] According to the total number of processing cores in the memory access module node, all processing cores in the memory access module node are grouped to obtain multiple processing core groups in the memory access module node;
[0168] A core binding operation is performed on the processing cores in each processing core group.
[0169] The memory performance testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned memory performance testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0170] In one embodiment, a memory performance testing device includes: a determination unit, wherein:
[0171] The determination unit is used to determine a plurality of different memory insertion modes according to the attribute information of the memory slot in the computer device.
[0172] The memory performance testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned memory performance testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0173] In one embodiment, the attribute information includes the total number of memory slots and the total number of memories that can be inserted into each memory slot; the determining unit is specifically configured to:
[0174] For each performance test environment configuration, obtain the total amount of memory to be inserted into the computer device;
[0175] According to the preset insertion rules, the insertion position of each memory into the corresponding memory slot is determined according to the total number of memories, the total number of memory slots and the total number of memories that can be inserted into each memory slot;
[0176] According to the insertion position of each memory, a plurality of different memory insertion methods are determined.
[0177] The memory performance testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned memory performance testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0178] In one embodiment, the performance testing module 12 is specifically used for:
[0179] In each performance test environment, the memory performance of the computer device is tested using different memory insertion methods.
[0180] The memory performance testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned memory performance testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0181] In one embodiment, a memory performance testing device comprises: a configuration unit, wherein:
[0182] The configuration unit is used to configure the system operation mode for a variety of different performance test environments according to the characteristic information of the processor and the characteristic information of the memory access module node in the computer device.
[0183] The memory performance testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned memory performance testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0184] In one embodiment, the configuration unit is specifically used to:
[0185] Determine a system operation mode according to the total number of processors and the total number of memory access module nodes in the computer device;
[0186] Based on the mode configuration interface, configure the system operation mode for a variety of different performance test environments.
[0187] The memory performance testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned memory performance testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0188] In one embodiment, the memory performance testing device includes:
[0189] Detects whether hyperthreading is turned off on a computer device;
[0190] If the hyperthreading is not disabled, the hyperthreading is disabled, and the steps of configuring the system operation mode for a plurality of different performance test environments are performed according to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node.
[0191] The memory performance testing device provided in the embodiment of the present application can be used to execute the technical solution in the above-mentioned memory performance testing method embodiment of the present application. Its implementation principle and technical effect are similar and will not be repeated here.
[0192] For the specific definition of the memory performance testing device, please refer to the definition of the memory performance testing method above, which will not be repeated here. Each module in the above-mentioned memory performance testing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0193] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 1 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide processing power. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store memory performance test results under various performance test environments and the optimal test results of the computer device. The network interface of the computer device is used to communicate with an external endpoint through a network connection. When the computer program is executed by the processor, a memory performance test method is implemented.
[0194] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0195] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0196] According to characteristic information of the processing core in the current memory access module node in the computer device, different numbers of processing core groups are configured for a variety of different performance test environments;
[0197] Conduct memory performance tests on computer equipment in various performance test environments;
[0198] Determine the optimal test results for the computer equipment based on the memory performance test results under each performance test environment.
[0199] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0200] According to characteristic information of the processing core in the current memory access module node in the computer device, different numbers of processing core groups are configured for a variety of different performance test environments;
[0201] Conduct memory performance tests on computer equipment in various performance test environments;
[0202] Determine the optimal test results for the computer equipment based on the memory performance test results under each performance test environment.
[0203] In one embodiment, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the following steps:
[0204] According to characteristic information of the processing core in the current memory access module node in the computer device, different numbers of processing core groups are configured for a variety of different performance test environments;
[0205] Conduct memory performance tests on computer equipment in various performance test environments;
[0206] Determine the optimal test results for the computer equipment based on the memory performance test results under each performance test environment.
[0207] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0208] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0209] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A memory performance testing method, characterized in that: The method comprises: According to the total number of processing cores in the current memory access module node in the computer device, the processing cores in the memory access module node are grouped to obtain multiple numbers of processing core groups, and different numbers of processing core groups are configured for multiple different performance test environments; and when it is determined that the hyperthreading of the computer device is turned off, according to the total number of processors in the computer device and the total number of the memory access module nodes, the system operation mode is configured for each performance test environment; the system operation mode represents the configuration mode of the memory access module node and memory shared access in the computer device; Under each of the performance test environments, the computer device is subjected to a memory performance test, including: under each of the performance test environments, the computer device is subjected to a memory performance test in different memory insertion modes; The optimal test result of the computer device is determined according to the memory performance test results under each of the performance test environments.
2. The method according to claim 1, characterized in that The method of configuring different numbers of processing core groups for various performance test environments according to the total number of processing cores in the current memory access module node in the computer device includes: According to the total number of processing cores in the memory access module node, a core binding operation is performed on the processing cores in the memory access module node, and the core binding operation is used to configure different numbers of processing core groups for a variety of different performance test environments.
3. The method according to claim 2, characterized in that The step of performing a core binding operation on the processing cores in the memory access module node according to the total number of processing cores in the memory access module node includes: According to the total number of processing cores in the memory access module node, grouping all processing cores in the memory access module node to obtain a plurality of processing core groups in the memory access module node; A core binding operation is performed on the processing cores in each processing core group.
4. The method according to any one of claims 1 to 3, characterized in that Before performing a memory performance test on the computer device under each of the performance test environments, the method further includes: According to the attribute information of the memory slot in the computer device, a plurality of different memory insertion modes are determined.
5. The method according to claim 4, characterized in that The attribute information includes the total number of the memory slots and the total number of memories that can be inserted into each memory slot; Determining a plurality of different memory insertion modes according to the attribute information of the memory slot in the computer device includes: For each of the performance test environment configurations, obtaining a total amount of memory to be inserted into the computer device; According to a preset insertion rule, the insertion position of each memory into the corresponding memory slot is determined according to the total number of the memories, the total number of the memory slots and the total number of memories that can be inserted into each memory slot; The multiple different memory insertion modes are determined according to the insertion position of each memory.
6. The method according to any one of claims 1 to 3, characterized in that The configuring system operation modes for a plurality of different performance test environments according to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node includes: Determining a system operation mode according to the total number of the processors in the computer device and the total number of the memory access module nodes; Based on the mode configuration interface, the system operation mode is configured for a variety of different performance test environments.
7. The method according to claim 6, characterized in that The method further comprises: Detecting whether the hyperthreading of the computer device is turned off; If the hyperthreading is not disabled, the hyperthreading is disabled, and the step of configuring the system operation mode for a plurality of different performance test environments according to the characteristic information of the processor in the computer device and the characteristic information of the memory access module node is performed.
8. A memory performance testing device, characterized in that: The device comprises: A configuration module, for grouping the processing cores in the memory access module nodes according to the total number of processing cores in the current memory access module nodes in the computer device, obtaining a plurality of processing core group numbers, and configuring different numbers of processing core groups for a plurality of different performance test environments; and, in the case of determining that the hyperthreading of the computer device is turned off, configuring a system operation mode for each of the performance test environments according to the total number of processors in the computer device and the total number of the memory access module nodes; the system operation mode represents a configuration mode of memory access module nodes and memory shared access in the computer device; A performance testing module, used for performing memory performance testing on the computer device in different memory insertion modes under each of the performance testing environments; The test result determination module is used to determine the optimal test result of the computer device according to the memory performance test results under each of the performance test environments.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
