CN104268076A - Testing method suitable for automatically testing memory bandwidth of each processor platform - Google Patents

Testing method suitable for automatically testing memory bandwidth of each processor platform Download PDF

Info

Publication number
CN104268076A
CN104268076A CN201410489430.4A CN201410489430A CN104268076A CN 104268076 A CN104268076 A CN 104268076A CN 201410489430 A CN201410489430 A CN 201410489430A CN 104268076 A CN104268076 A CN 104268076A
Authority
CN
China
Prior art keywords
memory bandwidth
test
testing
file
linux
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
CN201410489430.4A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201410489430.4A priority Critical patent/CN104268076A/en
Publication of CN104268076A publication Critical patent/CN104268076A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a testing method for automatically testing memory bandwidth, which is suitable for various processor platforms, and is characterized in that instructions including ifconfig, cat/proc/meminfo, cat/proc/cpuinfo, dememidode and hostname are executed under a linux operating system, detailed information of an IP address, a memory, a CPU, device and a hostname is captured, the captured information is analyzed, parameters required by memory bandwidth performance testing are automatically generated according to the information, and a testing program is directly executed after a parameter setting file is generated. The invention is suitable for testing the memory bandwidth performance under all the Linux OS at present, has good popularization and popularization, and provides a memory bandwidth performance testing method based on the Linux self-contained general command script, which is concise, time-saving and easy to operate. Can be directly used for each platform and CPU. In the Linux environment, the memory bandwidth performance index is considered. The performance of the CPU and the memory can be evaluated more scientifically and more effectively, and the overall quality of a company sales server platform is improved.

Description

A kind of method of testing being suitable for the automatic test memory bandwidth of each processor platform
Technical field
The present invention relates to a kind of method of testing being suitable for the automatic test memory bandwidth of each processor platform.
Background technology
Current industry is in memory bandwidth performance test, need manual installation icc compiler kit (the test effect that the gcc compiler that system carries cannot make stream reach best) more, and then manual installation compile Open-Source Tools stream and test, manual installation stream and investigate each processor platform memory bandwidth test performance, but different test parameters need be set according to the configuration of different disposal applicator platform difference.A kind of automatic test memory bandwidth performance method of testing being suitable for each processor platform, in order to realize succinct, save time, mode automatically, and being applicable to the various processor platform of current industry, result is traditional approach indifference comparatively, greatly reduces the cost of time and human resources.
Summary of the invention
The technical problem to be solved in the present invention is: provide a kind of method of testing being suitable for the automatic test memory bandwidth of each processor platform.
The technical solution adopted in the present invention is:
A kind of method of testing being suitable for the automatic test memory bandwidth of each processor platform, by performing instruction ifconfig, cat/proc/meminfo, cat/proc/cpuinfo, demidecode, hostname under linux operating system, capture IP address, internal memory, CPU, device, hostname details, the information of crawl is analyzed, and according to the parameter that such Automatic generation of information memory bandwidth performance test needs, after generating optimum configurations file, directly perform test procedure.
Adopt method of the present invention, need not manual installation testing tool in addition, be as the criterion with each information captured, artificial test parameter can not be produced mistake is set.The information such as any wrong internal memory, CPU all cannot make test proceed, and ensure that the steady state (SS) of test environment, and without the need to guard, automatic recording test time and log.Fully achieve robotization, succinct, save time, easy to operate, save manpower, program automatically performs 100 tests, averages, ensure that the accuracy of memory bandwidth test performance.
The automatic test memory bandwidth performance method of testing that the method for the invention is suitable for each processor platform is full auto-programs, without the need to artificial guard during the performance test of automated system operation memory bandwidth, and automatic logging test results, test log and test duration; This program, without the need to arranging any test parameter, meets the testing requirement of various processor platform.
Described method performing step is as follows:
1) Linux test platform (comprise Test Host platform, install (SuSE) Linux OS on Test Host) is got out;
2) power on Test Host start, enters operating system, uses root user to log in;
3) auto_run script and icc compiler are copied on linux system desktop;
4) under linux system, run terminal terminal program, under terminal, perform following operation:
#cd/root/Desktop carriage return
# ./auto_run_stream carriage return
Terminal is without prompting
5) process is checked
#top
Show the stream program corresponding with Thread Count, CPU usage reaches more than 90%;
6) there will be the Stream_res.txt file of writing time under now/root/Desktop/result file;
7) test machine continuous service memory bandwidth performance test;
8) after memory bandwidth performance test completes, under/root/Desktop/result, check Stream_res.csv file, memory bandwidth performance number in file record, unit is MB/s; / var/log/messages file, do not report an error record, and tester table stable operation in whole test process, there is not the abnormal occurrencies such as deadlock, power down.
Described method testing standard is: after memory bandwidth performance test completes, in the file of current script place /result under check Stream_result.csv file, memory bandwidth performance value is recorded in file record, unit MB/s, tester table stable operation in whole test process, there is not the abnormal occurrencies such as deadlock, power down, and survey that memory bandwidth performance number is greater than this platform internal memory bandwidth theory value 80%.
Beneficial effect of the present invention: the invention provides memory bandwidth method of testing, bash script is adopted to realize automatic capturing CPU information, memory information, hostname, IP address, the various information simultaneously captured automatic write memory bandwidth test parameters, meet each platform needs in current industry completely, succinctly, save time, easy to operate, realize real full-automatic memory bandwidth performance test, real result is accurate.Assess testing server platform internal memory bandwidth performance whereby and whether reach standard.
Be applicable to the memory bandwidth performance test under current all Linux OS, there is good universal and generalization, provide a kind of succinct, save time, the easy-operating memory bandwidth performance test methods carrying generic command script based on Linux.Can directly be used in each platform and CPU.In Linux environment, consider memory bandwidth performance index.Can more scientific, the more effective performance assessing CPU and internal memory, promote the total quality of Company server platform.
The present invention realizes the universal method of each processor platform each manufacturer internal memory first in memory bandwidth performance test, has broken the limitation of convential memory bandwidth performance test; Next improves the method to the test of internal memory bandwidth performance in current industry, complexity is simplified, manually can only build test environment, installation testing instrument, calculates test parameter and is improved as full automation; Last test result is also comparatively directly perceived, can directly weigh memory bandwidth performance, whether reach industry internal standard; This kind of method of testing is applicable to various Linux operations popular at present simultaneously.
Accompanying drawing explanation
Fig. 1 is auto_run script realization flow figure of the present invention;
Fig. 2 is method of testing test flow chart of the present invention.
Embodiment
Below according to Figure of description, in conjunction with specific embodiments, the present invention is further described:
A kind of method of testing being suitable for the automatic test memory bandwidth of each processor platform, by performing instruction ifconfig, cat/proc/meminfo, cat/proc/cpuinfo, demidecode, hostname under linux operating system, capture IP address, internal memory, CPU, device, hostname details, the information of crawl is analyzed, and according to the parameter that such Automatic generation of information memory bandwidth performance test needs, after generating optimum configurations file, directly perform test procedure.
Described method performing step is as follows:
1) Linux test platform (comprise Test Host platform, install (SuSE) Linux OS on Test Host) is got out;
2) power on Test Host start, enters operating system, uses root user to log in;
3) auto_run script and icc compiler are copied on linux system desktop;
4) under linux system, run terminal terminal program, under terminal, perform following operation:
#cd/root/Desktop carriage return
# ./auto_run_stream carriage return
Terminal is without prompting
5) process is checked
#top
Show the stream program corresponding with Thread Count, CPU usage reaches more than 90%;
6) there will be the Stream_res.txt file of writing time under now/root/Desktop/result file;
7) test machine continuous service memory bandwidth performance test;
8) after memory bandwidth performance test completes, under/root/Desktop/result, check Stream_res.csv file, memory bandwidth performance number in file record, unit is MB/s; / var/log/messages file, do not report an error record, and tester table stable operation in whole test process, there is not the abnormal occurrencies such as deadlock, power down.
Described method testing standard is: after memory bandwidth performance test completes, in the file of current script place /result under check Stream_result.csv file, memory bandwidth performance value is recorded in file record, unit MB/s, tester table stable operation in whole test process, there is not the abnormal occurrencies such as deadlock, power down, and survey that memory bandwidth performance number is greater than this platform internal memory bandwidth theory value 80%.
Test data is as follows:
The test result that Stream_result.csv deposits:
Stream result
Single: Multi:
Copy:4.059 Copy:9.55
Scale:4.053 Scale:9.415
Add:4.197 Add:11.547
Triad:4.16 Triad:11.653
The test duration record that Stream_result.txt deposits:
Thu Jan 24 10:39:46 EST 2013
Thu Jan 25 12:49:50 EST 2013。

Claims (3)

1. one kind is suitable for the method for testing of the automatic test memory bandwidth of each processor platform, it is characterized in that: by performing instruction ifconfig, cat/proc/meminfo, cat/proc/cpuinfo, demidecode, hostname under linux operating system, capture IP address, internal memory, CPU, device, hostname details, the information of crawl is analyzed, and according to the parameter that such Automatic generation of information memory bandwidth performance test needs, after generating optimum configurations file, directly perform test procedure.
2. a kind of method of testing being suitable for the automatic test memory bandwidth of each processor platform according to claim 1, it is characterized in that, described method performing step is as follows:
1) Linux test platform (comprise Test Host platform, install (SuSE) Linux OS on Test Host) is got out;
2) power on Test Host start, enters operating system, uses root user to log in;
3) auto_run script and icc compiler are copied on linux system desktop;
4) under linux system, run terminal terminal program, under terminal, perform following operation:
#cd/root/Desktop carriage return
# ./auto_run_stream carriage return
Terminal is without prompting
5) process is checked
#top
Show the stream program corresponding with Thread Count, CPU usage reaches more than 90%;
6) there will be the Stream_res.txt file of writing time under now/root/Desktop/result file;
7) test machine continuous service memory bandwidth performance test;
8) after memory bandwidth performance test completes, under/root/Desktop/result, check Stream_res.csv file, memory bandwidth performance number in file record, unit is MB/s; / var/log/messages file, do not report an error record, and tester table stable operation in whole test process, there is not the abnormal occurrence of deadlock, power down.
3. a kind of method of testing being suitable for the automatic test memory bandwidth of each processor platform according to claim 1 and 2, it is characterized in that, described method testing standard is: after memory bandwidth performance test completes, in the file of current script place /result under check Stream_result.csv file, memory bandwidth performance value is recorded in file record, unit MB/s, tester table stable operation in whole test process, do not occur crashing, the abnormal occurrence of power down, and survey that memory bandwidth performance number is greater than this platform internal memory bandwidth theory value 80%.
CN201410489430.4A 2014-09-23 2014-09-23 Testing method suitable for automatically testing memory bandwidth of each processor platform Pending CN104268076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410489430.4A CN104268076A (en) 2014-09-23 2014-09-23 Testing method suitable for automatically testing memory bandwidth of each processor platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410489430.4A CN104268076A (en) 2014-09-23 2014-09-23 Testing method suitable for automatically testing memory bandwidth of each processor platform

Publications (1)

Publication Number Publication Date
CN104268076A true CN104268076A (en) 2015-01-07

Family

ID=52159599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410489430.4A Pending CN104268076A (en) 2014-09-23 2014-09-23 Testing method suitable for automatically testing memory bandwidth of each processor platform

Country Status (1)

Country Link
CN (1) CN104268076A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572386A (en) * 2015-01-08 2015-04-29 浪潮电子信息产业股份有限公司 Method for automatically testing HBA card bandwidth under Linux
CN104601410A (en) * 2015-02-02 2015-05-06 浪潮电子信息产业股份有限公司 Server automatic HCA card bandwidth testing method
CN105068904A (en) * 2015-08-17 2015-11-18 浪潮电子信息产业股份有限公司 Method for automatically calculating theoretical bandwidth of memory under linux system
CN105117310A (en) * 2015-07-30 2015-12-02 浪潮电子信息产业股份有限公司 Linux system-based memory read-write bandwidth optimization test method
CN105187270A (en) * 2015-08-17 2015-12-23 浪潮电子信息产业股份有限公司 Method for realizing network card performance optimization of LINUX system
CN105740112A (en) * 2016-02-03 2016-07-06 浪潮电子信息产业股份有限公司 Method for automatically detecting hardware information during startup under Linux
CN106301981A (en) * 2015-05-29 2017-01-04 腾讯科技(深圳)有限公司 Network speed method of testing and device
CN106683706A (en) * 2017-01-05 2017-05-17 郑州云海信息技术有限公司 Testing method of NVDIMM_ADR function
CN107193724A (en) * 2017-05-25 2017-09-22 郑州云海信息技术有限公司 A kind of method based on Stream instrument automatic test internal memory performances
CN107291569A (en) * 2017-06-20 2017-10-24 郑州云海信息技术有限公司 It is a kind of to circulate the method for testing for restarting test memory bandwidth stability
CN109117328A (en) * 2018-07-24 2019-01-01 郑州云海信息技术有限公司 Memory bandwidth optimization method, device and the storage medium of isomery mixing memory system
CN112035332A (en) * 2020-11-06 2020-12-04 南京网眼信息技术有限公司 Server monitoring method and system and readable storage medium
CN112363884A (en) * 2020-12-08 2021-02-12 吉林大学 Method and system for testing memory performance of domestic operating system
CN115904839A (en) * 2022-11-15 2023-04-04 宁畅信息产业(北京)有限公司 Memory bandwidth detection method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵吉志: "内存带宽性能工具STREAM服务器性能测试利器(之二)", 《科技浪潮》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572386A (en) * 2015-01-08 2015-04-29 浪潮电子信息产业股份有限公司 Method for automatically testing HBA card bandwidth under Linux
CN104601410A (en) * 2015-02-02 2015-05-06 浪潮电子信息产业股份有限公司 Server automatic HCA card bandwidth testing method
CN106301981B (en) * 2015-05-29 2019-10-18 腾讯科技(深圳)有限公司 Network speed test method and device
CN106301981A (en) * 2015-05-29 2017-01-04 腾讯科技(深圳)有限公司 Network speed method of testing and device
CN105117310A (en) * 2015-07-30 2015-12-02 浪潮电子信息产业股份有限公司 Linux system-based memory read-write bandwidth optimization test method
CN105068904A (en) * 2015-08-17 2015-11-18 浪潮电子信息产业股份有限公司 Method for automatically calculating theoretical bandwidth of memory under linux system
CN105187270A (en) * 2015-08-17 2015-12-23 浪潮电子信息产业股份有限公司 Method for realizing network card performance optimization of LINUX system
CN105740112A (en) * 2016-02-03 2016-07-06 浪潮电子信息产业股份有限公司 Method for automatically detecting hardware information during startup under Linux
CN106683706A (en) * 2017-01-05 2017-05-17 郑州云海信息技术有限公司 Testing method of NVDIMM_ADR function
CN107193724A (en) * 2017-05-25 2017-09-22 郑州云海信息技术有限公司 A kind of method based on Stream instrument automatic test internal memory performances
CN107291569A (en) * 2017-06-20 2017-10-24 郑州云海信息技术有限公司 It is a kind of to circulate the method for testing for restarting test memory bandwidth stability
CN109117328A (en) * 2018-07-24 2019-01-01 郑州云海信息技术有限公司 Memory bandwidth optimization method, device and the storage medium of isomery mixing memory system
CN112035332A (en) * 2020-11-06 2020-12-04 南京网眼信息技术有限公司 Server monitoring method and system and readable storage medium
CN112035332B (en) * 2020-11-06 2021-02-12 南京网眼信息技术有限公司 Server monitoring method and system and readable storage medium
CN112363884A (en) * 2020-12-08 2021-02-12 吉林大学 Method and system for testing memory performance of domestic operating system
CN115904839A (en) * 2022-11-15 2023-04-04 宁畅信息产业(北京)有限公司 Memory bandwidth detection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104268076A (en) Testing method suitable for automatically testing memory bandwidth of each processor platform
CN111651366B (en) SDK test method, device, equipment and storage medium
CN103984613A (en) Method for automatically testing floating point calculation performance of CPU (Central Processing Unit)
CN105471675A (en) Method and system of testing nodes in batches
CN107076797B (en) Testing semiconductor memory power consumption based on executed access commands
CN103365770A (en) Mobile terminal software testing system and software testing method
CN104317684A (en) Method for synchronously and automatically testing bandwidths and transmission rates of multiple USB interfaces
CN104375914A (en) Automatic testing method for internal pressure change of server
CN105223889A (en) Method for automatically monitoring PMC RAID card log suitable for production line
US20180357143A1 (en) Testing computing devices
CN105022691A (en) Highly automatic software testing method based on UML diagram
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
CN112269697B (en) Equipment storage performance testing method, system and related device
CN105743707A (en) Method for testing BMC log analysis function based on Redhat system
CN106708716A (en) Software testing method, device and system
CN112068852B (en) Method, system, equipment and medium for installing open-source software based on domestic server
WO2013158788A2 (en) Devices for indicating a physical layer error
CN104601410A (en) Server automatic HCA card bandwidth testing method
CN103268289A (en) Method and system for transcribing and applying test script on mobile terminal
CN105204986A (en) Automated product testing method, server and mobile equipment
CN111949545A (en) Automatic testing method, system, server and storage medium
CN104123397A (en) Automatic test device and method for Web page
KR101976629B1 (en) Commit sensitive tests
CN109857637A (en) A kind of Java language method coverage rate and method input and output statistical method and device based on note
WO2021056913A1 (en) Fault locating method, apparatus and system based on i2c communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20150107