[go: up one dir, main page]

CN107391330B - A computer performance testing method and system under Itanium platform - Google Patents

A computer performance testing method and system under Itanium platform Download PDF

Info

Publication number
CN107391330B
CN107391330B CN201710605317.1A CN201710605317A CN107391330B CN 107391330 B CN107391330 B CN 107391330B CN 201710605317 A CN201710605317 A CN 201710605317A CN 107391330 B CN107391330 B CN 107391330B
Authority
CN
China
Prior art keywords
test
peak value
tested
performance
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710605317.1A
Other languages
Chinese (zh)
Other versions
CN107391330A (en
Inventor
崔夕军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710605317.1A priority Critical patent/CN107391330B/en
Publication of CN107391330A publication Critical patent/CN107391330A/en
Application granted granted Critical
Publication of CN107391330B publication Critical patent/CN107391330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

本发明涉及计算机测试技术领域,提供一种安腾平台下计算机性能测试方法及系统,所述方法包括下述步骤:安装软件测试包程序,并更新安装软件测试包程序过程中生成的HPL.Dat文件;根据安装的软件测试包程序和生成的HPL.Dat文件,对待测设备进行测试,并提取待测设备的最大CPU峰值;将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成待测设备的性能测试结果,并显示,从而实现在安腾平台下对CPU性能的测试,自动化程度高,避免了人机交互,提高了测试效率和准确率。

Figure 201710605317

The invention relates to the technical field of computer testing, and provides a method and system for testing computer performance under an Itanium platform. The method includes the following steps: installing a software testing package program, and updating the HPL.Dat generated in the process of installing the software testing package program file; according to the installed software test package program and the generated HPL.Dat file, test the device under test, and extract the maximum CPU peak value of the device under test; compare the extracted maximum CPU peak value of the device under test with the pre-calculated theoretical CPU The peak value is compared, the performance test results of the device under test are generated and displayed, so as to realize the test of the CPU performance under the Itanium platform, with a high degree of automation, avoiding human-computer interaction, and improving the test efficiency and accuracy.

Figure 201710605317

Description

一种安腾平台下计算机性能测试方法及系统A computer performance testing method and system under Itanium platform

技术领域technical field

本发明属于计算机测试技术领域,尤其涉及一种安腾平台下计算机性能测试方法及系统。The invention belongs to the technical field of computer testing, and in particular relates to a computer performance testing method and system under the Itanium platform.

背景技术Background technique

随着IT领域技术的不断发展,传统信息化服务以及日趋强大的云计算服务对服务器的性能和稳定性要求越来越高,而计算子系统的性能和稳定性测试是服务器整机测试的重要组成部分。而服务器研发种类越来越多,其中,基于安腾平台的服务器生产出货量也不断增加,但是基于安腾平台的测试工具相关压力测试的自动化、高效化程度较低。With the continuous development of technology in the IT field, traditional information services and increasingly powerful cloud computing services have higher and higher requirements on the performance and stability of servers, and the performance and stability testing of computing subsystems is an important part of server testing. component. There are more and more types of server research and development. Among them, the production and shipment of servers based on the Itanium platform are also increasing, but the automation and efficiency of stress testing related to testing tools based on the Itanium platform are low.

目前,同时进行多款服务器产品、批量服务器产品的压力测试的途径有两种,一种是增加测试人员,分别进行服务器产品测试,另一种是编写自动化测试工具,应用该自动化测试工具进行服务器产品测试。相比较而言,自动化测试工具在人力、时间、成本等资源方面具有较大优势。但是,以往安腾平台上CPU的压力测试往往需要测试人员手动安装编译器环境以及配置mpich2环境,需要人机交互的操作较多,操作人员一旦参与较多的测试过程,可能会导致手动误操作等问题,降低测试效率,同时也降低测试的准确率。At present, there are two ways to carry out stress testing of multiple server products and batch server products at the same time. One is to add testers to test server products separately, and the other is to write automated test tools and use the automated test tools to test servers. product testing. In comparison, automated testing tools have great advantages in resources such as manpower, time, and cost. However, in the past, the stress test of the CPU on the Itanium platform often required testers to manually install the compiler environment and configure the mpich2 environment, which required many human-computer interaction operations. And other problems, reduce the test efficiency, but also reduce the test accuracy.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种安腾平台下计算机性能测试方法,旨在解决现有技术中以往安腾平台上CPU的压力测试往往需要测试人员手动安装编译器环境以及配置mpich2环境,需要人机交互的操作较多,操作人员一旦参与较多的测试过程,可能会导致手动误操作等问题,降低测试效率,同时也降低测试的准确率的问题。The object of the present invention is to provide a computer performance testing method under the Itanium platform, aiming to solve the problem that the stress test of the CPU on the Itanium platform in the prior art often requires testers to manually install the compiler environment and configure the mpich2 environment, which requires man-machine There are many interactive operations. Once the operator participates in more testing processes, it may cause problems such as manual misoperation, reduce the test efficiency, and also reduce the test accuracy.

本发明是这样实现的,一种安腾平台下计算机性能测试方法,所述方法包括下述步骤:The present invention is achieved in this way, a computer performance testing method under an Itanium platform, the method comprising the following steps:

安装软件测试包程序,并更新安装软件测试包程序过程中生成的HPL.Dat文件;Install the software test package program and update the HPL.Dat file generated during the installation of the software test package program;

根据安装的软件测试包程序和生成的HPL.Dat文件,对待测设备进行测试,并提取待测设备的最大CPU峰值;Test the device under test according to the installed software test package program and the generated HPL.Dat file, and extract the maximum CPU peak value of the device under test;

将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成所述待测设备的性能测试结果,并显示。The extracted maximum CPU peak value of the device under test is compared with the pre-calculated theoretical CPU peak value, and a performance test result of the device under test is generated and displayed.

作为一种改进的方案,所述安装软件测试包程序的步骤具体包括下述步骤:As an improved solution, the step of installing the software test package program specifically includes the following steps:

对C compiler编译器进行安装;Install the C compiler;

对mpich软件进行安装;Install the mpich software;

对所述mpich软件的安装路径进行环境变量的添加。Add environment variables to the installation path of the mpich software.

作为一种改进的方案,所述对mpich软件进行安装步骤之后还包括下述步骤:As an improved solution, after the step of installing the mpich software, the following steps are also included:

当mpich软件安装完成时,生成HPL.Dat文件。When the mpich software is installed, the HPL.Dat file is generated.

作为一种改进的方案,所述更新安装软件测试包程序过程中生成的HPL.Dat文件的步骤具体包括下述步骤:As an improved solution, the step of updating the HPL.Dat file generated in the process of installing the software test package program specifically includes the following steps:

在待测设备开启运行后,获取待测设备的CPU核数和内存大小;After the device under test starts running, obtain the number of CPU cores and memory size of the device under test;

根据获取到的所述待测设备的CPU核数,计算P和Q值;Calculate the P and Q values according to the obtained number of CPU cores of the device under test;

根据获取到的所述待测设备的内存大小,计算NS值;Calculate the NS value according to the acquired memory size of the device under test;

根据计算得到的P、Q和NS值,修改生成的所述HPL.Dat文件中的P、Q和NS值。According to the calculated P, Q and NS values, modify the P, Q and NS values in the generated HPL.Dat file.

作为一种改进的方案,所述将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成所述待测设备的性能测试结果的步骤具体包括下述步骤:As an improved solution, the extracted maximum CPU peak value of the device under test is compared with the pre-calculated theoretical CPU peak value, and the step of generating the performance test result of the device under test specifically includes the following steps:

预先计算待测设备的理论CPU峰值和测试阈值;Pre-calculate the theoretical CPU peak value and test threshold of the device under test;

将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,判断最大CPU峰值与预先计算的理论CPU峰值的比值参数;Compare the extracted maximum CPU peak value of the device under test with the pre-calculated theoretical CPU peak value, and determine the ratio parameter of the maximum CPU peak value to the pre-calculated theoretical CPU peak value;

当所述比值参数大于等于所述测试阈值时,生成包含有测试通过的性能测试结果;When the ratio parameter is greater than or equal to the test threshold, generating a performance test result including a passing test;

当所述比值参数小于所述测试阈值时,生成包含有测试未通过的性能测试结果。When the ratio parameter is less than the test threshold, a performance test result including a test failure is generated.

本发明的另一目的在于提供一种安腾平台下计算机性能测试系统,所述系统包括:Another object of the present invention is to provide a computer performance testing system under the Itanium platform, the system comprising:

测试包程序安装模块,用于安装软件测试包程序;The test package program installation module is used to install the software test package program;

文件更新模块,用于更新安装软件测试包程序过程中生成的HPL.Dat文件;The file update module is used to update the HPL.Dat file generated during the installation of the software test package program;

测试模块,用于根据安装的软件测试包程序和生成的HPL.Dat文件,对待测设备进行测试;The test module is used to test the device under test according to the installed software test package program and the generated HPL.Dat file;

最大CPU峰值提取模块,用于提取待测设备的最大CPU峰值;The maximum CPU peak value extraction module is used to extract the maximum CPU peak value of the device under test;

性能测试结果生成模块,用于将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成所述待测设备的性能测试结果;A performance test result generation module, configured to compare the extracted maximum CPU peak value of the device under test with a pre-calculated theoretical CPU peak value, and generate a performance test result of the device under test;

测试结果显示模块,用于显示所述性能测试结果生成模块生成的所述待测设备的性能测试结果。A test result display module, configured to display the performance test result of the device under test generated by the performance test result generation module.

作为一种改进的方案,所述测试包程序安装模块具体包括:As an improved solution, the test package program installation module specifically includes:

编译器安装模块,用于对C compiler编译器进行安装;The compiler installation module is used to install the C compiler;

mpich软件安装模块,用于对mpich软件进行安装;The mpich software installation module is used to install the mpich software;

环境变量添加模块,用于对所述mpich软件的安装路径进行环境变量的添加。The environment variable adding module is used to add environment variables to the installation path of the mpich software.

作为一种改进的方案,所述系统还包括:As an improved solution, the system further includes:

文件生成模块,用于当mpich软件安装完成时,生成HPL.Dat文件。The file generation module is used to generate the HPL.Dat file when the mpich software is installed.

作为一种改进的方案,所述文件更新模块具体包括:As an improved solution, the file update module specifically includes:

待测设备信息获取模块,用于在待测设备开启运行后,获取待测设备的CPU核数和内存大小;The device under test information acquisition module is used to obtain the number of CPU cores and memory size of the device under test after the device under test starts running;

第一计算模块,用于根据获取到的所述待测设备的CPU核数,计算P和Q值;The first calculation module is used to calculate the P and Q values according to the obtained CPU core number of the device under test;

第二计算模块,用于根据获取到的所述待测设备的内存大小,计算NS值;The second calculation module is used to calculate the NS value according to the acquired memory size of the device under test;

文件参数修改模块,用于根据计算得到的P、Q和NS值,修改生成的所述HPL.Dat文件中的P、Q和NS值。The file parameter modification module is used for modifying the P, Q and NS values in the generated HPL.Dat file according to the calculated P, Q and NS values.

作为一种改进的方案,所述性能测试结果生成模块具体包括:As an improved solution, the performance test result generation module specifically includes:

预先计算模块,用于预先计算待测设备的理论CPU峰值和测试阈值;The pre-calculation module is used to pre-calculate the theoretical CPU peak value and test threshold of the device under test;

比较判断模块,用于将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,判断最大CPU峰值与预先计算的理论CPU峰值的比值参数;The comparison and judgment module is used to compare the extracted maximum CPU peak value of the device under test with the pre-calculated theoretical CPU peak value, and judge the ratio parameter of the maximum CPU peak value to the pre-calculated theoretical CPU peak value;

第一生成模块,用于当所述比值参数大于等于所述测试阈值时,生成包含有测试通过的性能测试结果;a first generation module, configured to generate a performance test result including a passing test when the ratio parameter is greater than or equal to the test threshold;

第二生成模块,用于当所述比值参数小于所述测试阈值时,生成包含有测试未通过的性能测试结果。The second generating module is configured to generate a performance test result including a test failure when the ratio parameter is smaller than the test threshold.

在本发明中,安装软件测试包程序,并更新安装软件测试包程序过程中生成的HPL.Dat文件;根据安装的软件测试包程序和生成的HPL.Dat文件,对待测设备进行测试,并提取待测设备的最大CPU峰值;将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成所述待测设备的性能测试结果,并显示,从而实现在安腾平台下对CPU性能的测试,自动化程度高,避免了人机交互,提高了测试效率和准确率。In the present invention, the software test package program is installed, and the HPL.Dat file generated in the process of installing the software test package program is updated; according to the installed software test package program and the generated HPL.Dat file, the device to be tested is tested and extracted The maximum CPU peak value of the device under test; compare the extracted maximum CPU peak value of the device under test with the pre-calculated theoretical CPU peak value, generate the performance test result of the device under test, and display it, so as to realize the implementation under the Itanium platform The test of CPU performance has a high degree of automation, avoids human-computer interaction, and improves test efficiency and accuracy.

附图说明Description of drawings

图1是本发明提供的安腾平台下计算机性能测试方法的实现流程图;Fig. 1 is the realization flow chart of computer performance testing method under Itanium platform provided by the invention;

图2是本发明提供的安装软件测试包程序的实现流程图;Fig. 2 is the realization flow chart of the installation software test package program provided by the present invention;

图3是本发明提供的更新安装软件测试包程序过程中生成的HPL.Dat文件的实现流程图;Fig. 3 is the realization flow chart of the HPL.Dat file generated in the update installation software test package program process provided by the present invention;

图4是本发明提供的将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成所述待测设备的性能测试结果的实现流程图;4 is a flow chart of the implementation provided by the present invention to compare the extracted maximum CPU peak value of the device under test with a pre-calculated theoretical CPU peak value to generate the performance test result of the device under test;

图5是本发明提供的安腾平台下计算机性能测试系统的结构框图。FIG. 5 is a structural block diagram of the computer performance testing system under the Itanium platform provided by the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

图1示出了本发明提供的安腾平台下计算机性能测试方法的实现流程图,其具体包括下述步骤:Fig. 1 shows the realization flow chart of the computer performance testing method under the Itanium platform provided by the present invention, and it specifically comprises the following steps:

在步骤S101中,安装软件测试包程序,并更新安装软件测试包程序过程中生成的HPL.Dat文件。In step S101, the software test package program is installed, and the HPL.Dat file generated in the process of installing the software test package program is updated.

在步骤S102中,根据安装的软件测试包程序和生成的HPL.Dat文件,对待测设备进行测试,并提取待测设备的最大CPU峰值。In step S102, the device under test is tested according to the installed software test package program and the generated HPL.Dat file, and the maximum CPU peak value of the device under test is extracted.

在该步骤中,根据安装的软件测试包程序和生成的HPL.Dat文件,对待测设备进行长时间段的测试,分别获取各个时间段的CPU峰值,然后统计每一个时间段的CPU峰值,提取出数值最大的CPU峰值作为检测判定CPU性能的参考数值,当然也可以采用其他方式,在此不再赘述。In this step, according to the installed software test package program and the generated HPL.Dat file, the device under test is tested for a long period of time, and the CPU peak value of each time period is obtained respectively, and then the CPU peak value of each time period is counted to extract The CPU peak value with the largest value is obtained as a reference value for detecting and judging the performance of the CPU. Of course, other methods may also be used, which will not be repeated here.

在步骤S103中,将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成所述待测设备的性能测试结果,并显示。In step S103, the extracted maximum CPU peak value of the device under test is compared with the pre-calculated theoretical CPU peak value, and a performance test result of the device under test is generated and displayed.

其中,该性能测试结果的显示可以通过显示屏进行直观显示,例如“测试合格”和“测试不合格”的界面显示,当然也可以伴随语音提醒,并保存该性能测试结果的信息,并继续后续的批量测试。Among them, the display of the performance test results can be visually displayed on the display screen, such as the interface display of "test qualified" and "test unqualified", of course, it can also be accompanied by a voice reminder, and save the information of the performance test results, and continue the follow-up batch testing.

其中,如图2所示,安装软件测试包程序的步骤具体包括下述步骤:Wherein, as shown in Figure 2, the step of installing the software test package program specifically includes the following steps:

在步骤S201中,对C compiler编译器进行安装。In step S201, the C compiler is installed.

在步骤S202中,对mpich软件进行安装。In step S202, the mpich software is installed.

在步骤S203中,对所述mpich软件的安装路径进行环境变量的添加。In step S203, an environment variable is added to the installation path of the mpich software.

在该步骤中,环境变量一般是指在操作系统中用来指定操作系统运行环境的一些参数,例如临时文件夹位置和系统文件夹位置等。其类似于DOS时期的默认路径,当运行某些程序时除了在当前文件夹中寻找外,还会到设置的默认路径中去查找。In this step, the environment variable generally refers to some parameters used in the operating system to specify the operating environment of the operating system, such as the location of the temporary folder and the location of the system folder. It is similar to the default path in the DOS period. When running some programs, in addition to searching in the current folder, it will also search in the default path set.

在该实施例中,上述mpich软件为mpich2,该mpich2安装的程序为:In this embodiment, the above-mentioned mpich software is mpich2, and the program installed by this mpich2 is:

Figure BDA0001358155440000051
Figure BDA0001358155440000051

在本发明实施例中,在执行完上述步骤S202之后,还包括下述步骤:In this embodiment of the present invention, after performing the above step S202, the following steps are further included:

当mpich软件安装完成时,生成HPL.Dat文件。When the mpich software is installed, the HPL.Dat file is generated.

在该实施例中,如图3所示,上述更新安装软件测试包程序过程中生成的HPL.Dat文件的步骤具体包括下述步骤:In this embodiment, as shown in Figure 3, the above-mentioned step of updating the HPL.Dat file generated in the process of installing the software test package program specifically includes the following steps:

在步骤S301中,在待测设备开启运行后,获取待测设备的CPU核数和内存大小。In step S301, after the device to be tested is started to run, the number of CPU cores and the memory size of the device to be tested are acquired.

在该步骤,该待测设备即为需要性能测试的服务器,当服务器开机运行后,获取服务器的基本信息,该基本信息包括CPU核数以及内存大小等信息,当然也可以根据测试的需要进行其他基本信息的获取,在此不再赘述。In this step, the device to be tested is the server that needs performance testing. After the server is turned on and running, the basic information of the server is obtained. The basic information includes information such as the number of CPU cores and memory size. Of course, other tests can also be performed according to the needs of the test. The acquisition of basic information will not be repeated here.

在步骤S302中,根据获取到的所述待测设备的CPU核数,计算P和Q值。In step S302, the P and Q values are calculated according to the acquired number of CPU cores of the device under test.

在该步骤中,通过服务器系统自身的程序指令的运行,计算P和Q值,在此不再赘述。In this step, the P and Q values are calculated by running the program instructions of the server system itself, which will not be repeated here.

在步骤S303中,根据获取到的所述待测设备的内存大小,计算NS值。In step S303, the NS value is calculated according to the acquired memory size of the device under test.

在该步骤中,通过服务器系统自身的程序指令的运行,计算NS值,在此不再赘述。In this step, the NS value is calculated by running the program instructions of the server system itself, which will not be repeated here.

在步骤S304中,根据计算得到的P、Q和NS值,修改生成的所述HPL.Dat文件中的P、Q和NS值。In step S304, the P, Q and NS values in the generated HPL.Dat file are modified according to the calculated P, Q and NS values.

根据计算得到的P、Q和NS值,修改HPL.Dat文件中的P、Q和NS值可以根据系统自带的程序指令,自动修改,完成该HPL.Dat文件的更新,从而实现自动化测试,一键测试。According to the calculated P, Q and NS values, modifying the P, Q and NS values in the HPL.Dat file can be automatically modified according to the program instructions that come with the system to complete the update of the HPL.Dat file, thereby realizing automated testing. One-click test.

在本发明实施例中,如图4所示,上述步骤S103:将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成所述待测设备的性能测试结果的步骤具体包括下述步骤:In the embodiment of the present invention, as shown in FIG. 4 , the above step S103 is a step of generating the performance test result of the device under test by comparing the extracted maximum CPU peak value of the device under test with the pre-calculated theoretical CPU peak value Specifically include the following steps:

在步骤S401中,预先计算待测设备的理论CPU峰值和测试阈值。In step S401, the theoretical CPU peak value and test threshold of the device under test are pre-calculated.

在该步骤中,上述理论CPU峰值可以根据待测设备实际配置进行计算,并根据测试标准要求进行测试阈值的计算,例如90%等,在此不再赘述,但不用以限制本发明。In this step, the above theoretical CPU peak value can be calculated according to the actual configuration of the device under test, and the test threshold value can be calculated according to the requirements of the test standard, such as 90%, etc., which are not repeated here, but are not intended to limit the present invention.

在步骤S402中,将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,判断最大CPU峰值与预先计算的理论CPU峰值的比值参数。In step S402, the extracted maximum CPU peak value of the device under test is compared with the pre-calculated theoretical CPU peak value, and a ratio parameter of the maximum CPU peak value to the pre-calculated theoretical CPU peak value is determined.

在步骤S403中,当所述比值参数大于等于所述测试阈值时,生成包含有测试通过的性能测试结果。In step S403, when the ratio parameter is greater than or equal to the test threshold, a performance test result including the test passing is generated.

在步骤S404中,当所述比值参数小于所述测试阈值时,生成包含有测试未通过的性能测试结果。In step S404, when the ratio parameter is smaller than the test threshold, a performance test result including a test failure is generated.

在该步骤中,该生成性能测试结果的过程可以理解为生成在显示屏上进行展示的界面内容的过程,例如数字显示、图表显示或其他显示方式,在此不用以限制本发明。In this step, the process of generating performance test results can be understood as the process of generating interface content displayed on the display screen, such as digital display, chart display or other display methods, which is not intended to limit the present invention.

图4示出了本发明提供的安腾平台下计算机性能测试系统的结构框图,为了便于说明,图中仅给出了与本发明实施例相关的部分。FIG. 4 shows a structural block diagram of the computer performance testing system under the Itanium platform provided by the present invention. For convenience of description, only the parts related to the embodiments of the present invention are shown in the figure.

测试包程序安装模块11安装软件测试包程序;文件更新模块12更新安装软件测试包程序过程中生成的HPL.Dat文件;测试模块13根据安装的软件测试包程序和生成的HPL.Dat文件,对待测设备进行测试;最大CPU峰值提取模块14提取待测设备的最大CPU峰值;性能测试结果生成模块15将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成所述待测设备的性能测试结果;测试结果显示模块16显示所述性能测试结果生成模块生成的所述待测设备的性能测试结果。The test package program installation module 11 installs the software test package program; the file update module 12 updates the HPL.Dat file generated in the process of installing the software test package program; the test module 13 treats the installed software test package program and the generated HPL.Dat file. The maximum CPU peak value extraction module 14 extracts the maximum CPU peak value of the device under test; the performance test result generation module 15 compares the extracted maximum CPU peak value of the device under test with the pre-calculated theoretical CPU peak value to generate the The performance test result of the device under test; the test result display module 16 displays the performance test result of the device under test generated by the performance test result generating module.

在该实施例中,测试包程序安装模块11具体包括:In this embodiment, the test package program installation module 11 specifically includes:

编译器安装模块17对C compiler编译器进行安装;mpich软件安装模块18对mpich软件进行安装;环境变量添加模块19对所述mpich软件的安装路径进行环境变量的添加。The compiler installation module 17 installs the C compiler; the mpich software installation module 18 installs the mpich software; the environment variable adding module 19 adds environment variables to the installation path of the mpich software.

在本发明实施例中,当mpich软件安装完成时,文件生成模块20生成HPL.Dat文件。In this embodiment of the present invention, when the installation of the mpich software is completed, the file generation module 20 generates the HPL.Dat file.

在本发明实施例中,文件更新模块12具体包括:In the embodiment of the present invention, the file update module 12 specifically includes:

待测设备信息获取模块21在待测设备开启运行后,获取待测设备的CPU核数和内存大小;第一计算模块22根据获取到的所述待测设备的CPU核数,计算P和Q值;第二计算模块23根据获取到的所述待测设备的内存大小,计算NS值;文件参数修改模块24根据计算得到的P、Q和NS值,修改生成的所述HPL.Dat文件中的P、Q和NS值。The device under test information acquisition module 21 acquires the number of CPU cores and memory size of the device under test after the device under test starts running; the first calculation module 22 calculates P and Q according to the acquired number of CPU cores of the device under test. value; the second calculation module 23 calculates the NS value according to the acquired memory size of the device under test; the file parameter modification module 24 revises the generated HPL.Dat file according to the P, Q and NS values obtained by calculation The P, Q and NS values of .

在本发明实施例中,性能测试结果生成模块15具体包括:In the embodiment of the present invention, the performance test result generation module 15 specifically includes:

预先计算模块25预先计算待测设备的理论CPU峰值和测试阈值;比较判断模块26将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,判断最大CPU峰值与预先计算的理论CPU峰值的比值参数;当所述比值参数大于等于所述测试阈值时,第一生成模块27生成包含有测试通过的性能测试结果;当所述比值参数小于所述测试阈值时,第二生成模块28生成包含有测试未通过的性能测试结果。The pre-calculation module 25 pre-calculates the theoretical CPU peak value of the device under test and the test threshold; the comparison and judgment module 26 compares the extracted maximum CPU peak value of the device under test with the pre-calculated theoretical CPU peak value, and judges the maximum CPU peak value and the pre-calculated peak value. The ratio parameter of the theoretical CPU peak value; when the ratio parameter is greater than or equal to the test threshold, the first generation module 27 generates a performance test result that includes the test passing; when the ratio parameter is less than the test threshold, the second generation Module 28 generates performance test results that include test failures.

其中,上述各个模块的功能如上述方法实施例所记载,在此不再赘述。The functions of the foregoing modules are as described in the foregoing method embodiments, which will not be repeated here.

在本发明中,安装软件测试包程序,并更新安装软件测试包程序过程中生成的HPL.Dat文件;根据安装的软件测试包程序和生成的HPL.Dat文件,对待测设备进行测试,并提取待测设备的最大CPU峰值;将提取到的待测设备的最大CPU峰值与预先计算的理论CPU峰值进行比较,生成所述待测设备的性能测试结果,并显示,从而实现在安腾平台下对CPU性能的测试,自动化程度高,避免了人机交互,提高了测试效率和准确率。In the present invention, the software test package program is installed, and the HPL.Dat file generated in the process of installing the software test package program is updated; according to the installed software test package program and the generated HPL.Dat file, the device to be tested is tested and extracted The maximum CPU peak value of the device under test; compare the extracted maximum CPU peak value of the device under test with the pre-calculated theoretical CPU peak value, generate the performance test result of the device under test, and display it, so as to realize the implementation under the Itanium platform The test of CPU performance has a high degree of automation, avoids human-computer interaction, and improves test efficiency and accuracy.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (8)

1. A computer performance testing method under an Itanium platform is characterized by comprising the following steps:
triggering and automatically installing a software test package program, and updating an HPL.dat file generated in the process of installing the software test package program;
testing equipment to be tested according to an installed software test package program and a generated HPL.dat file, and extracting a maximum CPU peak value of the equipment to be tested, wherein the equipment to be tested is tested for a long time period according to the installed software test package program and the generated HPL.dat file, the CPU peak values of all time periods are respectively obtained, then the CPU peak values of all time periods are counted, and the CPU peak value with the maximum value is extracted as a reference value for detecting and judging the CPU performance;
comparing the extracted maximum CPU peak value of the equipment to be tested with a pre-calculated theoretical CPU peak value to generate and display a performance test result of the equipment to be tested, wherein the performance test result is displayed visually through a display screen, an interface display comprising 'qualified test' and 'unqualified test' is displayed, the performance test result is reminded with voice, information of the performance test result is stored, and subsequent batch tests are continued;
the step of triggering and automatically installing the software test package program specifically comprises the following steps:
installing the C compiler;
installing mpich software;
and adding environment variables to the installation path of the mpich software.
2. The method for testing the performance of a computer under the Itanium platform according to claim 1, wherein the step of installing the mpich software further comprises the following steps:
when the mpich software installation is completed, an hpl.dat file is generated.
3. The method for testing the computer performance under the Itanium platform according to claim 2, wherein the step of updating the HPL.dat file generated in the process of installing the software test package program specifically comprises the following steps:
after the device to be tested is started to operate, acquiring the number of CPU cores and the size of an internal memory of the device to be tested;
calculating P and Q values according to the acquired CPU core number of the equipment to be detected;
calculating an NS value according to the acquired memory size of the equipment to be tested;
modifying P, Q and NS values in the generated HPL.dat file according to the calculated P, Q and NS values.
4. The method for testing the performance of the computer under the Itanium platform according to claim 3, wherein the step of comparing the extracted maximum CPU peak value of the device to be tested with a pre-calculated theoretical CPU peak value to generate the performance test result of the device to be tested specifically comprises the following steps:
pre-calculating a theoretical CPU peak value and a test threshold value of the equipment to be tested;
comparing the extracted maximum CPU peak value of the equipment to be tested with a pre-calculated theoretical CPU peak value, and judging a ratio parameter of the maximum CPU peak value and the pre-calculated theoretical CPU peak value;
when the ratio parameter is greater than or equal to the test threshold, generating a performance test result containing test passing;
and when the ratio parameter is smaller than the test threshold, generating a performance test result containing test failure.
5. A system for testing computer performance under an itanium platform, the system comprising:
the test package program installation module is used for triggering and automatically installing the software test package program;
the file updating module is used for updating the HPL.dat files generated in the process of installing the software test package program;
the test module is used for testing the equipment to be tested according to the installed software test package program and the generated HPL.dat file;
the maximum CPU peak value extraction module is used for extracting the maximum CPU peak value of the equipment to be tested, wherein the equipment to be tested is tested for a long time period according to an installed software test package program and a generated HPL.dat file, the CPU peak values of all the time periods are respectively obtained, then the CPU peak value of each time period is counted, and the CPU peak value with the maximum value is extracted to be used as a reference value for detecting and judging the CPU performance;
the performance test result generation module is used for comparing the extracted maximum CPU peak value of the equipment to be tested with a pre-calculated theoretical CPU peak value to generate a performance test result of the equipment to be tested;
the test result display module is used for displaying the performance test result of the equipment to be tested, which is generated by the performance test result generation module, wherein the performance test result is displayed visually through a display screen, the display screen comprises interface display of qualified test and unqualified test, the voice prompt is accompanied, the information of the performance test result is stored, and the subsequent batch test is continued;
the test package program installation module specifically comprises:
the compiler installation module is used for installing the C compiler;
the mpich software installation module is used for installing mpich software;
and the environment variable adding module is used for adding environment variables to the installation path of the mpich software.
6. The under the Itanium platform computer performance testing system of claim 5, further comprising:
and the file generation module is used for generating the HPL.dat file when the mpich software is installed.
7. The system for testing computer performance under the Itanium platform of claim 6, wherein the file updating module specifically comprises:
the device to be tested information acquisition module is used for acquiring the number of CPU cores and the size of the memory of the device to be tested after the device to be tested is started to operate;
the first calculation module is used for calculating P and Q values according to the acquired CPU core number of the equipment to be detected;
the second calculation module is used for calculating an NS value according to the acquired memory size of the equipment to be tested;
and the file parameter modification module is used for modifying P, Q and NS values in the generated HPL.dat files according to the calculated P, Q and NS values.
8. The system for testing the performance of a computer under an Itanium platform according to claim 7, wherein the performance test result generating module specifically comprises:
the pre-calculation module is used for pre-calculating a theoretical CPU peak value and a test threshold value of the equipment to be tested;
the comparison and judgment module is used for comparing the extracted maximum CPU peak value of the equipment to be tested with a pre-calculated theoretical CPU peak value and judging a ratio parameter of the maximum CPU peak value and the pre-calculated theoretical CPU peak value;
the first generation module is used for generating a performance test result containing a test passing when the ratio parameter is greater than or equal to the test threshold;
and the second generation module is used for generating a performance test result containing test failure when the ratio parameter is smaller than the test threshold.
CN201710605317.1A 2017-07-24 2017-07-24 A computer performance testing method and system under Itanium platform Active CN107391330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710605317.1A CN107391330B (en) 2017-07-24 2017-07-24 A computer performance testing method and system under Itanium platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710605317.1A CN107391330B (en) 2017-07-24 2017-07-24 A computer performance testing method and system under Itanium platform

Publications (2)

Publication Number Publication Date
CN107391330A CN107391330A (en) 2017-11-24
CN107391330B true CN107391330B (en) 2020-10-20

Family

ID=60335993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710605317.1A Active CN107391330B (en) 2017-07-24 2017-07-24 A computer performance testing method and system under Itanium platform

Country Status (1)

Country Link
CN (1) CN107391330B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786669A (en) * 2016-04-25 2016-07-20 浪潮电子信息产业股份有限公司 Method for testing stability of Rack server
CN106445754A (en) * 2016-09-13 2017-02-22 郑州云海信息技术有限公司 Method and system for inspecting cluster health status and cluster server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9454499B2 (en) * 2013-06-11 2016-09-27 Intel Corporation Asynchronous communication between devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786669A (en) * 2016-04-25 2016-07-20 浪潮电子信息产业股份有限公司 Method for testing stability of Rack server
CN106445754A (en) * 2016-09-13 2017-02-22 郑州云海信息技术有限公司 Method and system for inspecting cluster health status and cluster server

Also Published As

Publication number Publication date
CN107391330A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
WO2019169723A1 (en) Test case selection method, device and equipment, and computer-readable storage medium
CN117707983A (en) Test case code generation method and related equipment
CN105930257A (en) Method and apparatus for determining target test cases
CN116089258B (en) Data migration test method, device, equipment, storage medium and program product
CN105630674A (en) Test method and device capable of aiming at interface
CN110334385A (en) Test method, device and equipment for central controller of comprehensive energy system
CN117743396A (en) Data quality detection method, device, equipment and storage medium
US20250258223A1 (en) Dynamic selection method, system and device for data region applied to integrated circuit device and computer-readable storage medium
CN107391330B (en) A computer performance testing method and system under Itanium platform
CN114861820B (en) Sample data screening method, model training method, device and electronic equipment
CN107943635A (en) A kind of test method of storage device, device and medium
CN118802520A (en) A Nginx configuration detection method and device for network range system
CN111008140A (en) A cross-platform UI automation testing method and device
CN117609064A (en) Unit test method and device, electronic equipment and storage medium
CN116303098A (en) Application testing method and device, electronic equipment and storage medium
CN115061921A (en) Automatic test method, device, electronic equipment and readable storage medium
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN118568006B (en) Application interface awakening method, device, equipment, storage medium and program product
CN116303071B (en) Interface testing method, device, electronic equipment and storage medium
CN105335657A (en) Program bug detection method and device
CN118509355A (en) Protocol analysis test method, device, equipment and storage medium
CN117075861A (en) Method, device, equipment and medium for constructing backlight module
CN107491377B (en) Pop-up box processing method, device, terminal, and computer-readable storage medium
CN115686479A (en) Method for creating a file and related device
CN119128912A (en) Vulnerability repair method, device, equipment and medium based on security verification technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200921

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address