[go: up one dir, main page]

CN107168836A - A kind of method and device of server memory bandwidth test - Google Patents

A kind of method and device of server memory bandwidth test Download PDF

Info

Publication number
CN107168836A
CN107168836A CN201710339508.8A CN201710339508A CN107168836A CN 107168836 A CN107168836 A CN 107168836A CN 201710339508 A CN201710339508 A CN 201710339508A CN 107168836 A CN107168836 A CN 107168836A
Authority
CN
China
Prior art keywords
test
script
parameter
sequence
configuration
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.)
Pending
Application number
CN201710339508.8A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710339508.8A priority Critical patent/CN107168836A/en
Publication of CN107168836A publication Critical patent/CN107168836A/en
Pending legal-status Critical Current

Links

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/2273Test methods

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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

本发明公开了一种服务器内存带宽测试的方法,通过利用参数配置脚本,自动生成测试参数序列;根据所述测试参数序列,利用测试脚本,自动运行steam可执行文件,得出测试结果。该方法通过编写测试脚本,按照测试参数序列,自动运行测试文件,即自动完成内存带宽测试,不用人工参与,实现完全自动化,从而不用耗费人力成本,且相较于人工方式测试,自动测试的效率更高。可见,该方法提高了内存带宽测试的效率,且降低了测试人员的门槛。此外,本发明还公开了一种服务器内存带宽测试的装置,与上述方法有一一对应的优点。

The invention discloses a method for testing server memory bandwidth, which automatically generates a test parameter sequence by using a parameter configuration script; according to the test parameter sequence, uses the test script to automatically run a steam executable file to obtain a test result. By writing a test script, the method automatically runs the test file according to the test parameter sequence, that is, automatically completes the memory bandwidth test without manual participation, and realizes complete automation, so that no labor costs are consumed, and compared with manual testing, the efficiency of automatic testing is higher. higher. It can be seen that this method improves the efficiency of memory bandwidth testing and lowers the threshold for testers. In addition, the invention also discloses a device for testing the memory bandwidth of the server, which has the advantage of one-to-one correspondence with the above method.

Description

一种服务器内存带宽测试的方法及装置Method and device for testing server memory bandwidth

技术领域technical field

本发明涉及测试领域,特别是涉及一种服务器内存带宽测试的方法及装置。The invention relates to the testing field, in particular to a method and device for testing server memory bandwidth.

背景技术Background technique

随着信息技术的迅猛发展,服务器架构设计也越来越复杂,使得服务器内存带宽的测试变得困难。With the rapid development of information technology, the design of server architecture is becoming more and more complex, making it difficult to test the server memory bandwidth.

基于服务器复杂的系统架构和并行化的计算方式,一般使用Stream Benchmark测试工具进行内存带宽的测试。其首先可以给定已知规模的数据量A,按照既定规则对内存带宽进行运算,统计花费的时间t,然后使用数据量A除以时间t,得到的值即为内存带宽B,即B=A/t。可以看出,内存带宽B与数据量A和测试时间t有关,而当A值固定时,测试时间t与开启的线程数量有关。因此,若要得到最好的内存带宽测试值,可以设置不同的A值和线程数量,反复进行测试,以得出最优值。Based on the server's complex system architecture and parallel computing methods, the Stream Benchmark test tool is generally used to test the memory bandwidth. It can firstly give a known scale of data A, calculate the memory bandwidth according to the established rules, count the time t spent, and then divide the data amount A by the time t, and the obtained value is the memory bandwidth B, that is, B= A/t. It can be seen that the memory bandwidth B is related to the amount of data A and the test time t, and when the value of A is fixed, the test time t is related to the number of threads opened. Therefore, if you want to get the best memory bandwidth test value, you can set different A values and the number of threads, and test repeatedly to get the optimal value.

但是,现有使用人工方式,设置不同的数据量A和线程数量,反复进行测试,从而使得内存带宽测试的过程需要耗费大量人力,且测试效率低下。However, in the existing manual method, different data volumes A and thread numbers are set, and tests are repeated, so that the process of memory bandwidth testing requires a lot of manpower, and the testing efficiency is low.

发明内容Contents of the invention

本发明的目的是提供一种服务器内存带宽测试的方法及装置,目的在于解决现有技术中使用人工方式测试内存带宽导致的效率低下的问题。The purpose of the present invention is to provide a method and device for testing memory bandwidth of a server, aiming at solving the problem of inefficiency caused by manually testing memory bandwidth in the prior art.

为解决上述技术问题,本发明提供一种服务器内存带宽测试的方法,该方法包括:In order to solve the above technical problems, the present invention provides a method for server memory bandwidth testing, the method comprising:

利用参数配置脚本,自动生成测试参数序列;Use parameter configuration scripts to automatically generate test parameter sequences;

根据所述测试参数序列,利用测试脚本,自动运行steam可执行文件,得出测试结果。According to the test parameter sequence, the steam executable file is automatically run by using the test script to obtain the test result.

可选地,所述利用参数配置脚本,自动生成测试参数序列包括:Optionally, using the parameter configuration script to automatically generate a test parameter sequence includes:

获取服务器的配置信息;Obtain server configuration information;

利用所述参数配置脚本,基于所述配置信息,自动生成所述测试参数序列。The test parameter sequence is automatically generated based on the configuration information by using the parameter configuration script.

可选地,所述利用参数配置脚本,自动生成测试参数序列包括:Optionally, using the parameter configuration script to automatically generate a test parameter sequence includes:

获取包含预设置参数序列的配置文件;Get a configuration file containing a sequence of preset parameters;

利用所述参数配置脚本,对所述配置文件进行解析,得出所述测试参数序列。The configuration file is analyzed by using the parameter configuration script to obtain the test parameter sequence.

可选地,在所述根据所述测试参数序列,利用测试脚本,自动运行steam可执行文件,得出测试结果之后还包括:Optionally, according to the test parameter sequence, using the test script to automatically run the steam executable file to obtain the test result, it also includes:

截取所述测试结果的关键信息;Intercept key information of the test results;

根据所述关键信息所包含的测试结果数值的大小,将所述测试结果进行排序;sorting the test results according to the magnitude of the test result values contained in the key information;

以预设输出方式,输出最大测试结果数值对应的测试参数。In the preset output mode, output the test parameters corresponding to the maximum test result value.

可选地,在所述利用参数配置脚本,自动生成测试参数序列之前还包括:Optionally, before the parameter configuration script is used to automatically generate the test parameter sequence, it also includes:

运行检测脚本,检测当前系统内是否配置YUM服务器,检测当前系统内是否具备stream内存测试所需软件;Run the detection script to detect whether the YUM server is configured in the current system, and to detect whether the current system has the software required for the stream memory test;

若否,自动配置所述YUM服务器,自动安装所需软件。If not, automatically configure the YUM server and automatically install the required software.

此外,本发明还提供了一种服务器内存带宽测试的装置,该装置包括:In addition, the present invention also provides a device for testing server memory bandwidth, the device comprising:

参数序列生成模块,用于利用参数配置脚本,自动生成测试参数序列;The parameter sequence generation module is used to utilize the parameter configuration script to automatically generate the test parameter sequence;

自动测试模块,用于根据所述测试参数序列,利用测试脚本,自动运行steam可执行文件,得出测试结果。The automatic test module is used to automatically run the steam executable file by using a test script according to the test parameter sequence to obtain a test result.

可选地,所述参数序列生成模块包括:Optionally, the parameter sequence generation module includes:

配置信息获取单元,用于获取服务器的配置信息;a configuration information obtaining unit, configured to obtain configuration information of the server;

生成单元,用于利用所述参数配置脚本,基于所述配置信息,自动生成所述测试参数序列。The generating unit is configured to use the parameter configuration script to automatically generate the test parameter sequence based on the configuration information.

可选地,所述参数序列生成模块包括:Optionally, the parameter sequence generation module includes:

配置文件获取单元,用于获取包含预设置参数序列的配置文件;A configuration file obtaining unit, configured to obtain a configuration file containing a sequence of preset parameters;

解析单元,用于利用所述参数配置脚本,对所述配置文件进行解析,得出所述测试参数序列。The parsing unit is configured to use the parameter configuration script to parse the configuration file to obtain the test parameter sequence.

可选地,还包括:Optionally, also include:

截取模块,用户截取所述测试结果的关键信息;An interception module, the user intercepts the key information of the test result;

排序模块,用于根据所述关键信息所包含的测试结果数值的大小,将所述测试结果进行排序;A sorting module, configured to sort the test results according to the magnitude of the test result values contained in the key information;

输出模块,用于以预设输出方式,输出最大测试结果数值对应的测试参数。The output module is used to output the test parameters corresponding to the maximum test result value in a preset output mode.

可选地,还包括:Optionally, also include:

检测模块,用于运行检测脚本,检测当前系统内是否配置YUM服务器,检测当前系统内是否具备stream内存测试所需软件;The detection module is used to run the detection script, detect whether the YUM server is configured in the current system, and detect whether the current system has the software required for the stream memory test;

配置模块,用于若否,自动配置所述YUM服务器,自动安装所需软件。The configuration module is used to automatically configure the YUM server if not, and automatically install the required software.

本发明所提供的一种服务器内存带宽测试的方法及装置,通过利用参数配置脚本,自动生成测试参数序列;根据所述测试参数序列,利用测试脚本,自动运行steam可执行文件,得出测试结果。本申请通过编写测试脚本,按照测试参数序列,自动运行测试文件,即自动完成内存带宽测试,不用人工参与,实现完全自动化,从而不用耗费人力成本,且相较于人工方式测试,自动测试的效率更高,且降低了测试人员的门槛。可见,本申请提高了内存带宽测试的效率。A method and device for testing server memory bandwidth provided by the present invention automatically generate a test parameter sequence by using a parameter configuration script; according to the test parameter sequence, use the test script to automatically run the steam executable file to obtain a test result . This application writes test scripts, according to the test parameter sequence, automatically runs the test file, that is, automatically completes the memory bandwidth test, without manual participation, and realizes complete automation, so that no labor costs are required, and compared with manual testing, the efficiency of automatic testing Higher, and lowered the threshold for testers. It can be seen that the present application improves the efficiency of the memory bandwidth test.

附图说明Description of drawings

为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例所提供的服务器内存带宽测试方法的一种具体实施方式的流程示意图;Fig. 1 is a schematic flow chart of a specific implementation of the server memory bandwidth testing method provided by the embodiment of the present invention;

图2为本发明实施例所提供的服务器内存带宽测试装置的结构框图。FIG. 2 is a structural block diagram of a server memory bandwidth testing device provided by an embodiment of the present invention.

具体实施方式detailed description

为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

请参见图1,图1为本发明实施例所提供的服务器内存带宽测试方法的一种具体实施方式的流程示意图,该方法包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a specific implementation method of a server memory bandwidth testing method provided by an embodiment of the present invention. The method includes the following steps:

步骤101:利用参数配置脚本,自动生成测试参数序列;Step 101: using the parameter configuration script to automatically generate a test parameter sequence;

需要说明的是,测试参数序列可以是指测试参数的先后测试顺序队列。而测试参数可以是指数据量A和线程数量,此时,测试参数序列可以是指不同的数据量A和线程数量数值,按照一定排列顺序,得出的序列。It should be noted that, the test parameter sequence may refer to a sequential test order queue of test parameters. The test parameters may refer to the amount of data A and the number of threads. At this time, the sequence of test parameters may refer to a sequence obtained according to a certain sequence of different values of the amount of data A and the number of threads.

上述参数配置脚本可以用于生成或读取测试参数序列的脚本,即测试参数序列可以预先配置,生成配置文件,参数配置脚本可以对配件文件进行解析,得出测试参数序列;也可以获取服务器的配置信息,参数配置脚本基于配置信息,来自动生成测试参数序列。The above parameter configuration script can be used to generate or read the script of the test parameter sequence, that is, the test parameter sequence can be pre-configured to generate a configuration file, and the parameter configuration script can analyze the accessory file to obtain the test parameter sequence; it can also obtain the server’s Configuration information, the parameter configuration script automatically generates test parameter sequences based on the configuration information.

作为一种具体实施方式,上述利用参数配置脚本,自动生成测试参数序列的过程可以具体为:获取服务器的配置信息;利用所述参数配置脚本,基于所述配置信息,自动生成所述测试参数序列。As a specific implementation manner, the above-mentioned process of automatically generating a test parameter sequence using a parameter configuration script may be specifically: obtaining configuration information of a server; using the parameter configuration script to automatically generate the test parameter sequence based on the configuration information .

可以理解的是,上述配置信息可以是指服务器的内存配置信息,例如,服务器的内存容量以及CPU配置等相关信息。具体地,配置信息的获取可以通过调用软件来获取。It can be understood that the above configuration information may refer to memory configuration information of the server, for example, related information such as memory capacity and CPU configuration of the server. Specifically, configuration information can be obtained by calling software.

可以看出,利用脚本,来生成测试参数序列,不用人工输入设置参数,使得内存带宽测试更加便捷,提高了内存带宽测试的效率。It can be seen that the use of scripts to generate test parameter sequences without manually inputting and setting parameters makes memory bandwidth testing more convenient and improves the efficiency of memory bandwidth testing.

作为一种具体实施方式,上述利用参数配置脚本,自动生成测试参数序列的过程还可以具体为:获取包含预设置参数序列的配置文件;利用所述参数配置脚本,对所述配置文件进行解析,得出所述测试参数序列。As a specific implementation, the above-mentioned process of automatically generating a test parameter sequence by using a parameter configuration script may also specifically include: obtaining a configuration file containing a preset parameter sequence; using the parameter configuration script to analyze the configuration file, The test parameter sequence is derived.

需要说明的是,上述配置文件中有预先设置的参数序列,参数配置脚本可以对配置文件解析,读取所需的参数序列。It should be noted that the above configuration file has a preset parameter sequence, and the parameter configuration script can parse the configuration file and read the required parameter sequence.

可以看出,利用脚本,自动获取测试参数序列,不用人工输入设置参数,使得内存带宽测试更加便捷,提高了内存带宽测试的效率。It can be seen that using the script to automatically obtain the test parameter sequence without manually inputting and setting the parameters makes the memory bandwidth test more convenient and improves the efficiency of the memory bandwidth test.

步骤102:根据所述测试参数序列,利用测试脚本,自动运行stream可执行文件,得出测试结果。Step 102: According to the test parameter sequence, use the test script to automatically run the stream executable file to obtain the test result.

具体地,利用测试脚本,来控制测试参数的使用顺序,依次自动编译和运行stream可执行文件,得出相应的测试结果。更具体地,测试脚本可以通过循环嵌套方式对测试参数的使用顺序进行控制。Specifically, test scripts are used to control the use sequence of test parameters, and the stream executable files are automatically compiled and run sequentially to obtain corresponding test results. More specifically, the test script can control the use order of the test parameters through loop nesting.

需要说明的是,可以将stream测试工具、源代码编译工具、工具运行环境以及预先编写的脚本全集成至一个AutoStream.tar.gz文件,以此实现stream内存带宽自动测试。It should be noted that the stream test tool, source code compilation tool, tool operating environment and pre-written scripts can be fully integrated into one AutoStream.tar.gz file, so as to realize the automatic test of stream memory bandwidth.

可以理解的是,可以将测试结果存储至日志文件中,且可以从测试结果中,选取出最优的测试参数方案,输出给用户。It can be understood that the test results can be stored in a log file, and the optimal test parameter scheme can be selected from the test results and output to the user.

本发明实施例所提供的服务器内存带宽测试方法,通过利用参数配置脚本,自动生成测试参数序列;根据所述测试参数序列,利用测试脚本,自动运行steam可执行文件,得出测试结果。该方法通过编写测试脚本,按照测试参数序列,自动运行测试文件,即自动完成内存带宽测试,不用人工参与,实现完全自动化,从而不用耗费人力成本,且相较于人工方式测试,自动测试的效率更高。The server memory bandwidth testing method provided by the embodiment of the present invention automatically generates a test parameter sequence by using a parameter configuration script; according to the test parameter sequence, uses the test script to automatically run the steam executable file to obtain a test result. By writing a test script, the method automatically runs the test file according to the test parameter sequence, that is, automatically completes the memory bandwidth test without manual participation, and realizes complete automation, so that no labor costs are consumed, and compared with manual testing, the efficiency of automatic testing is higher. higher.

基于上述技术方案,在上述根据所述测试参数序列,利用测试脚本,自动运行steam可执行文件,得出测试结果之后还可以包括:截取所述测试结果的关键信息;根据所述关键信息所包含的测试结果数值的大小,将所述测试结果进行排序;以预设输出方式,输出最大测试结果数值对应的测试参数。Based on the above-mentioned technical scheme, according to the above-mentioned test parameter sequence, using the test script to automatically run the steam executable file, after the test result is obtained, it can also include: intercepting the key information of the test result; sort the test results according to the numerical value of the test result; and output the test parameter corresponding to the largest test result value in a preset output mode.

需要说明的是,上述关键信息可以包含测试结果数值等相关信息。基于测试结果数值的大小,可以选取最大测试结果数值作为最优测试方案,则其对应的测试参数即为最优测试参数。It should be noted that the above key information may include related information such as test result values. Based on the size of the test result value, the maximum test result value can be selected as the optimal test scheme, and the corresponding test parameters are the optimal test parameters.

具体地,可以读取用于存储测试结果的日志文件,接着截取测试结果的关键信息,再基于测试结果数值的大小,选取出最优的测试参数,输出至屏幕。Specifically, the log file used to store the test results can be read, and then the key information of the test results can be intercepted, and then based on the value of the test results, the optimal test parameters can be selected and output to the screen.

可以理解的是,可以根据测试参数的不同,将相应测试结果存储至不同的日志文件中,且日志文件可以用测试参数的值进行标识,从而区分各个日志文件所存储的测试结果。It can be understood that the corresponding test results can be stored in different log files according to different test parameters, and the log files can be identified by the values of the test parameters, so as to distinguish the test results stored in each log file.

作为一种具体实施方式,在上述利用参数配置脚本,自动生成测试参数序列之前还可以包括:运行检测脚本,检测当前系统内是否配置YUM服务器,检测当前系统内是否具备stream内存测试所需软件;若否,自动配置所述YUM服务器,自动安装所需软件。As a specific implementation, before the above-mentioned parameter configuration script is used to automatically generate the test parameter sequence, it can also include: run the detection script, detect whether the YUM server is configured in the current system, and detect whether the current system has the required software for the stream memory test; If not, automatically configure the YUM server and automatically install the required software.

需要说明的是,上述检测脚本可以包括用于软件检测的程序、用于YUM服务器配置的程序以及用于软件安装的程序。It should be noted that the above detection script may include a program for software detection, a program for YUM server configuration and a program for software installation.

上述软件为stream内存带宽测试工具编译和运行过程中所必须的软件,以及相应脚本运行所需调用的软件。The above software is the software necessary for the compilation and operation of the stream memory bandwidth test tool, and the software required for the corresponding script to run.

上述YUM服务器的具体配置过程可以为:如果检测到当前操作系统内没有配置有YUM服务器,则要求用户上述系统镜像,接着自动配置YUM服务器。The specific configuration process of the above-mentioned YUM server can be: if it is detected that there is no YUM server configured in the current operating system, the above-mentioned system image of the user is required, and then the YUM server is automatically configured.

可以看出,利用AutoStream.tar.gz文件,自动检测内存带宽测试所需的编译环境和运行环境,减少了操作人员手动配置运行编译环境的过程。It can be seen that by using the AutoStream.tar.gz file, the compilation environment and running environment required for the memory bandwidth test are automatically detected, which reduces the process of manually configuring the running compilation environment for operators.

本发明实施例所提供的服务器内存带宽测试方法,对测试结果进行分析排序,输出最优的测试参数方案,提高了内存带宽测试效率。The server memory bandwidth test method provided by the embodiment of the present invention analyzes and sorts the test results, outputs the optimal test parameter scheme, and improves the memory bandwidth test efficiency.

下面对本发明实施例提供的服务器内存带宽测试装置进行介绍,下文描述的服务器内存带宽测试装置与上文描述的服务器内存带宽测试方法可相互对应参照。The server memory bandwidth testing device provided by the embodiment of the present invention is introduced below. The server memory bandwidth testing device described below and the server memory bandwidth testing method described above can be referred to in correspondence.

图2为本发明实施例所提供的服务器内存带宽测试装置的结构框图,参照图2服务器内存带宽测试装置可以包括:Fig. 2 is the structural block diagram of the server memory bandwidth testing device provided by the embodiment of the present invention, with reference to Fig. 2 server memory bandwidth testing device can comprise:

参数序列生成模块21,用于利用参数配置脚本,自动生成测试参数序列;Parameter sequence generation module 21, is used for utilizing parameter configuration script, automatically generates test parameter sequence;

自动测试模块22,用于根据测试参数序列,利用测试脚本,自动运行steam可执行文件,得出测试结果。The automatic test module 22 is used for automatically running the steam executable file by using a test script according to the test parameter sequence to obtain a test result.

可选地,上述参数序列生成模块包括:Optionally, the above parameter sequence generation module includes:

配置信息获取单元,用于获取服务器的配置信息;a configuration information obtaining unit, configured to obtain configuration information of the server;

生成单元,用于利用参数配置脚本,基于配置信息,自动生成所述测试参数序列。The generation unit is configured to use the parameter configuration script to automatically generate the test parameter sequence based on the configuration information.

可选地,上述参数序列生成模块包括:Optionally, the above parameter sequence generation module includes:

配置文件获取单元,用于获取包含预设置参数序列的配置文件;A configuration file obtaining unit, configured to obtain a configuration file containing a sequence of preset parameters;

解析单元,用于利用参数配置脚本,对配置文件进行解析,得出测试参数序列。The parsing unit is configured to use the parameter configuration script to parse the configuration file to obtain a test parameter sequence.

可选地,还包括:Optionally, also include:

截取模块,用户截取测试结果的关键信息;Interception module, the user intercepts the key information of the test results;

排序模块,用于根据关键信息所包含的测试结果数值的大小,将测试结果进行排序;The sorting module is used to sort the test results according to the size of the test result values contained in the key information;

输出模块,用于以预设输出方式,输出最大测试结果数值对应的测试参数。The output module is used to output the test parameters corresponding to the maximum test result value in a preset output mode.

可选地,还包括:Optionally, also include:

检测模块,用于运行检测脚本,检测当前系统内是否配置YUM服务器,检测当前系统内是否具备stream内存测试所需软件;The detection module is used to run the detection script, detect whether the YUM server is configured in the current system, and detect whether the current system has the software required for the stream memory test;

配置模块,用于若否,自动配置YUM服务器,自动安装所需软件。The configuration module is used to automatically configure the YUM server and automatically install the required software if not.

本发明实施例所提供的服务器内存带宽测试装置,利用参数配置脚本,自动生成测试参数序列;根据测试参数序列,利用测试脚本,自动运行steam可执行文件,得出测试结果。该装置通过编写测试脚本,按照测试参数序列,自动运行测试文件,即自动完成内存带宽测试,不用人工参与,实现完全自动化,从而不用耗费人力成本,且相较于人工方式测试,自动测试的效率更高,且降低了测试人员的门槛。The server memory bandwidth test device provided by the embodiment of the present invention uses a parameter configuration script to automatically generate a test parameter sequence; according to the test parameter sequence, uses the test script to automatically run the steam executable file to obtain a test result. By writing the test script, the device automatically runs the test file according to the test parameter sequence, that is, automatically completes the memory bandwidth test without manual participation, and realizes complete automation, so that no labor costs are required, and compared with manual testing, the efficiency of automatic testing is higher. Higher, and lowered the threshold for testers.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part.

专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

以上对本发明所提供的服务器内存带宽测试的方法及装置进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The method and device for testing server memory bandwidth provided by the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims (10)

1. a kind of method of server memory bandwidth test, it is characterised in that including:
Using parameter configuration script, test parameter sequence is automatically generated;
According to the test parameter sequence, using test script, automatic running steam executable files draw test result.
2. the method as described in claim 1, it is characterised in that the utilization parameter configuration script, automatically generates test parameter Sequence includes:
Obtain the configuration information of server;
Using the parameter configuration script, based on the configuration information, the test parameter sequence is automatically generated.
3. the method as described in claim 1, it is characterised in that the utilization parameter configuration script, automatically generates test parameter Sequence includes:
Obtain comprising the configuration file for pre-seting argument sequence;
Using the parameter configuration script, the configuration file is parsed, the test parameter sequence is drawn.
4. the method as described in claim 1, it is characterised in that described according to the test parameter sequence, using testing pin This, automatic running steam executable files, drawing also includes after test result:
Intercept the key message of the test result;
The size of the test result numerical value included according to the key message, the test result is ranked up;
To preset the way of output, the corresponding test parameter of output full test result value.
5. the method as described in any one of Claims 1-4, it is characterised in that in the utilization parameter configuration script, automatic raw Also include before into test parameter sequence:
Run in detection script, detection current system and whether configure in YUM servers, detection current system whether possess stream Software needed for memory test;
If it is not, the YUM servers are automatically configured, it is automatic that required software is installed.
6. a kind of device of server memory bandwidth test, it is characterised in that including:
Argument sequence generation module, for utilizing parameter configuration script, automatically generates test parameter sequence;
Automatic test module, for according to the test parameter sequence, using test script, the executable texts of automatic running steam Part, draws test result.
7. device as claimed in claim 6, it is characterised in that the argument sequence generation module includes:
Configuration information acquiring unit, the configuration information for obtaining server;
Generation unit, for utilizing the parameter configuration script, based on the configuration information, automatically generates the test parameter sequence Row.
8. device as claimed in claim 6, it is characterised in that the argument sequence generation module includes:
Configuration file acquiring unit, for obtaining comprising the configuration file for pre-seting argument sequence;
Resolution unit, for utilizing the parameter configuration script, parses to the configuration file, draws the test parameter Sequence.
9. device as claimed in claim 6, it is characterised in that also include:
Interception module, user intercepts the key message of the test result;
Order module, for the size of the test result numerical value included according to the key message, the test result is entered Row sequence;
Output module, for preset the way of output, exporting the corresponding test parameter of full test result value.
10. the device as described in any one of claim 6 to 9, it is characterised in that also include:
Whether detection module, configure in YUM servers, detection current system for running in detection script, detection current system Whether stream memory test needed for software is possessed;
Configuration module, for if it is not, automatically configure the YUM servers, it is automatic install needed for software.
CN201710339508.8A 2017-05-15 2017-05-15 A kind of method and device of server memory bandwidth test Pending CN107168836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710339508.8A CN107168836A (en) 2017-05-15 2017-05-15 A kind of method and device of server memory bandwidth test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710339508.8A CN107168836A (en) 2017-05-15 2017-05-15 A kind of method and device of server memory bandwidth test

Publications (1)

Publication Number Publication Date
CN107168836A true CN107168836A (en) 2017-09-15

Family

ID=59816172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710339508.8A Pending CN107168836A (en) 2017-05-15 2017-05-15 A kind of method and device of server memory bandwidth test

Country Status (1)

Country Link
CN (1) CN107168836A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117328A (en) * 2018-07-24 2019-01-01 郑州云海信息技术有限公司 Memory bandwidth optimization method, device and the storage medium of isomery mixing memory system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506823A (en) * 2002-12-13 2004-06-23 英业达股份有限公司 Test method of overall server performance
US7260630B1 (en) * 2003-08-18 2007-08-21 At&T Intellectual Property, Inc. Method, system, and storage medium for collecting SNMP bandwidth data
CN104699584A (en) * 2015-03-20 2015-06-10 浪潮集团有限公司 PCIE non-transparent bridge performance testing method
CN105117310A (en) * 2015-07-30 2015-12-02 浪潮电子信息产业股份有限公司 Linux system-based memory read-write bandwidth optimization test method
US20160379686A1 (en) * 2015-06-29 2016-12-29 Microsoft Technology Licensing, Llc Server systems with hardware accelerators including stacked memory

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1506823A (en) * 2002-12-13 2004-06-23 英业达股份有限公司 Test method of overall server performance
US7260630B1 (en) * 2003-08-18 2007-08-21 At&T Intellectual Property, Inc. Method, system, and storage medium for collecting SNMP bandwidth data
CN104699584A (en) * 2015-03-20 2015-06-10 浪潮集团有限公司 PCIE non-transparent bridge performance testing method
US20160379686A1 (en) * 2015-06-29 2016-12-29 Microsoft Technology Licensing, Llc Server systems with hardware accelerators including stacked memory
CN105117310A (en) * 2015-07-30 2015-12-02 浪潮电子信息产业股份有限公司 Linux system-based memory read-write bandwidth optimization test method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109117328A (en) * 2018-07-24 2019-01-01 郑州云海信息技术有限公司 Memory bandwidth optimization method, device and the storage medium of isomery mixing memory system

Similar Documents

Publication Publication Date Title
CN109491894B (en) Interface test method and equipment
CN102880546B (en) Software integration testing method and system based on extensible markup language (XML) database
US9454467B2 (en) Method and apparatus for mining test coverage data
CN106294120B (en) Method, apparatus and computer program product for testing code
CN108595341B (en) Method and system for automatically generating test cases
CN114546738B (en) Universal test method, system, terminal and storage medium for server
US10185650B1 (en) Testing service with control testing
US8387017B2 (en) Black box testing optimization using information from white box testing
CN106502896B (en) Method and device for generating function test code
US8140911B2 (en) Dynamic software tracing
CN106021111A (en) Interface testing method and system
US20200117587A1 (en) Log File Analysis
CN101014061A (en) Method and apparatus for generating testing script and testing method and apparatus and system
CN110362473A (en) Test optimization method and device, storage medium, the terminal of environment
CN110716866A (en) Code quality scanning method and device, computer equipment and storage medium
CN115656791B (en) Test Method and Test Platform for Chip Testability Design
CN112732567A (en) Mock data testing method and device based on ip, electronic equipment and storage medium
CN113495826A (en) Generation method of unit test code, unit test method and device
CN111427771A (en) A code coverage analysis method, device, server and readable storage medium
CN109086186B (en) Log detection method and device
CN113806231A (en) Code coverage rate analysis method, device, equipment and medium
CN117493188A (en) Interface testing methods and devices, electronic equipment and storage media
CN112597024A (en) Variation testing method, device, equipment and storage medium
CN113204350B (en) Code incremental coverage statistics method, device, electronic device and storage medium
CN115098401A (en) HTML report verification method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170915