CN104035850A - Verification method for memory bandwidth and pressure gradual-change parallelism - Google Patents

Verification method for memory bandwidth and pressure gradual-change parallelism Download PDF

Info

Publication number
CN104035850A
CN104035850A CN201410310945.3A CN201410310945A CN104035850A CN 104035850 A CN104035850 A CN 104035850A CN 201410310945 A CN201410310945 A CN 201410310945A CN 104035850 A CN104035850 A CN 104035850A
Authority
CN
China
Prior art keywords
test
testing
triad
storage location
internal storage
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
CN201410310945.3A
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 CN201410310945.3A priority Critical patent/CN104035850A/en
Publication of CN104035850A publication Critical patent/CN104035850A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a verification method for memory bandwidth and pressure gradual-change parallelism. The method comprises the steps that setting up a testing platform, and preparing testing environment; setting environmental variables; setting running frequency; configuring a testing parameter file; deleting a process testing result file; obtaining hardware information; starting testing, wherein each thread conducts Copy, Scale, Add, Triad operation on a part of memory; monitoring the testing process; repeatedly conducting verification when abnormities appear in the testing process; collecting the testing result, judging that the test fails when the complete testing running is finished, no abnormities exist in a system, and the Triad value does not meet 70% of the theoretical value, and adjusting and optimizing the system for continuous testing; achieving the performance stability testing effect and judging that the test passes when the complete testing running is finished, no abnormities exist in the system, and the Triad value meets 70% of the theoretical value. The verification method has the advantages of being easy to operate, higher in practicability and the like, effectively ensures the stability of a server, and is quite effective for verifying the product quality.

Description

A kind of memory bandwidth and the parallel verification method of pressure gradual change
 
Technical field
The present invention relates to computer server technical field, specifically a kind of memory bandwidth and the parallel verification method of pressure gradual change.
Background technology
Along with social development, computer server has been applied to every field, and that in fields such as internet, finance, applies is general especially, and it is complicated various that the use of server becomes.This makes server occur various problems, and for example certain server is in application, and frequently occurring reports an error the significant trouble such as restarts, and this is unacceptable serious quality problems.Therefore, no matter server is at development or subsequent product maintenance phase, all needs product to carry out comprehensive system pressure test, thereby guarantees the stability of this product.
Server master board designs the power pack that a very important part is exactly mainboard, although POWER test team has a set of complete checking power supply checking, but it is thorough to be difficult to cover, system verification portion is the stability that don't fail to guarantee machine system as machine system checking team, the quality of 100% assurance machine system, past maximum system load and minimum load test all have and contain, can guarantee the quality of system eight or nine ten percent, in the face of more and more diversified application, remaining quality problems start progressively to manifest.
Red cap system is a kind of (or claiming a distribution version) of (SuSE) Linux OS.Because it possesses best graphical interfaces, be that installation, configuration or use are all very convenient, and also stable, it is most popular in Linux business distribution version always.
Summary of the invention
Technical assignment of the present invention is to provide a kind of memory bandwidth and the parallel verification method of pressure gradual change.
Technical assignment of the present invention is realized in the following manner, and verification method step is as follows:
1) build test platform, setup test environment;
2) set;
3) number of run is set;
4) configuration testing Parameter File;
5) delete procedure test result file;
6) obtain hardware information;
7) start test, each thread carries out Copy, Scale, Add, Triad computing to a part of internal memory;
8) control and measuring process;
9) in test process, there are deadlock, the abnormal conditions of makeing mistakes, according to test log information investigation, repeated authentication;
10) collect test result, complete test run is complete, and system is without abnormal but Triad value does not meet 70% theoretical value, test Fail, and tuning is proceeded to test;
11) collect test result, complete test run is complete, and system meets 70% theoretical value without abnormal and Triad value, reaches performance, stability test effect, test PASS.
Described Copy computing is: first access an internal storage location and read value wherein, then write values into another internal storage location.
Described Scale computing is: first from internal storage location, read value wherein, do a multiplying, then write results to another internal storage location.
Described Add computing is: first from internal storage location, read two values, do additive operation, then write results to another internal storage location.
Described Triad computing is: first from internal storage location, read two values, these two values are taken advantage of and added hybrid operation, then operation result is written to another internal storage location.
Compared to the prior art the parallel verification method of a kind of memory bandwidth of the present invention and pressure gradual change, has simple to operately, and the feature such as practicality is stronger, has effectively guaranteed the stability of server, is the very effective method of checking product quality.Can obtain memory bandwidth value more accurately, can reach double-deck verification the verifying results simultaneously.
Accompanying drawing explanation
Accompanying drawing 1 is the process flow diagram of the parallel verification method of a kind of memory bandwidth and pressure gradual change.
Embodiment
Embodiment 1:
This verification method step is as follows:
1) build test platform, setup test environment, installs red cap system, Python is installed;
2) set;
3) number of run is set;
4) configuration testing Parameter File;
5) delete procedure test result file;
6) obtain hardware information;
7) start test, each thread carries out Copy, Scale, Add, Triad computing to a part of internal memory;
Copy computing is: first access an internal storage location and read value wherein, then write values into another internal storage location; Scale computing is: first from internal storage location, read value wherein, do a multiplying, then write results to another internal storage location; Add computing is: first from internal storage location, read two values, do additive operation, then write results to another internal storage location; Add computing is: first from internal storage location, read two values, do additive operation, then write results to another internal storage location.
8) control and measuring process;
9) in test process, there are deadlock, the abnormal conditions of makeing mistakes, according to test log information investigation, repeated authentication;
10) collect test result, complete test run is complete, and system is without abnormal but Triad value does not meet 70% theoretical value (CPU frequency * port number * 64/8), test Fail, and tuning is proceeded to test;
11) collect test result, complete test run is complete, and system meets 70% theoretical value (CPU frequency * port number * 64/8) without abnormal and Triad value, reaches performance, stability test effect, test PASS.
Operate in the red cap system of x86 platform, can reach verification system can obtain memory bandwidth value more accurately for the effect while of electrical stability by CPU, memory pressure gradual change, specific implementation thes contents are as follows:
#!/bin/sh
Cur_Dir=`dirname?$0`
MPICH_DIR=$Cur_Dir/../dep/mpich
MPICH_RUN_DIR=$Cur_Dir/../dep/mpich/bin
STREAM_BIN=$Cur_Dir/bin/stream_c_mpi
RES_FILE=$Cur_Dir/result/stream_res.txt
RES_CSV=$Cur_Dir/result/stream_res.csv
LOOPS=400 according to the actual requirements, defines the number of times of circular flow
echo?$LOOPS
rm?-rf?/etc/mpd.conf
Chmod 600 MPICH_DIR/mpd.conf are that mpd.conf interpolation can be carried out authority
cp?$MPICH_DIR/mpd.conf?/etc/
ip=`ifconfig?eth0?|?grep?"inet?addr"?|?cut?-d:?-f2?|?cut?-d"?"?-f1`
host_name=`hostname`
sed?-i?"/$host_name/d"?/etc/hosts
echo?$ip?$host_name?>>?/etc/hosts
sleep?2
echo?"127.0.0.1?localhost"?>>?/etc/hosts
$MPICH_RUN_DIR/mpdallexit?>>/dev/null
$MPICH_RUN_DIR/mpd?&
sleep?5
#Clear?the?Result?File
If rm-rf $ Cur_Dir/result/* has existed test result, delete
NUM_PCORE=`cat/proc/cpuinfo | grep processor | wc-l` obtains CPU Thread Count
#Get?the?Mem?Size?to?config?stream?vector?size
MEM_SIZE_KB=`cat/proc/meminfo | grep " MemTotal " | { print $ 2}'` obtains memory size to awk '
VECTOR_SIZE=`echo " $ MEM_SIZE_KB/3/10/$ NUM_PCORE * 1024 " | the memory size that each thread of bc` will move
echo?"start?running?stream?test?$LOOPS?times?"
#Run?the?Stream?Benchmark
i=1
while?[?$i?-le?$LOOPS?]
do
echo?"it?is?runing?$i?times?of?$LOOP?"
$MPICH_RUN_DIR/mpirun?-np?$NUM_PCORE?$STREAM_BIN?${RES_FILE}${i}?$VECTOR_SIZE
i=$(($i+1))
Done carries out test: use the mpirun test under $ MPICH_RUN_DIR catalogue
#Get the CSV file obtains test result
Sum_s_copy=0
Sum_s_scale=0
Sum_s_add=0
Sum_s_triad=0
Sum_m_copy=0
Sum_m_scale=0
Sum_m_add=0
Sum_m_triad=0
echo?"Stream?test?finished,and?start?cal"
{?echo?"################The?Stream?Result?File?##################"
The summation of i=1 test result
while?[?$i?-le?$LOOPS?]
do
S_Copy_bw=`cat?${RES_FILE}${i}?|?grep?"^Single?STREAM?Copy"?|?awk?'{print?$5}'`
S_Scale_bw=`cat?${RES_FILE}${i}?|?grep?"^Single?STREAM?Scale"?|?awk?'{print?$5}'`
S_Add_bw=`cat?${RES_FILE}${i}?|?grep?"^Single?STREAM?Add"?|?awk?'{print?$5}'`
S_Triad_bw=`cat?${RES_FILE}${i}?|?grep?"^Single?STREAM?Triad"?|?awk?'{print?$5}'`
M_Copy_bw=`cat?${RES_FILE}${i}?|?grep?"^SUM?Copy"?|?awk?'{print?$4}'`
M_Scale_bw=`cat?${RES_FILE}${i}?|?grep?"^SUM?Scale"?|?awk?'{print?$4}'`
M_Add_bw=`cat?${RES_FILE}${i}?|?grep?"^SUM?Add"?|?awk?'{print?$4}'`
M_Triad_bw=`cat?${RES_FILE}${i}?|?grep?"^SUM?Triad"?|?awk?'{print?$4}'`
Sum_s_copy=`echo?"$Sum_s_copy?+?$S_Copy_bw"?|?bc`
Sum_s_scale=`echo?"$Sum_s_scale?+?$S_Scale_bw"?|?bc`
Sum_s_add=`echo?"$Sum_s_add?+?$S_Add_bw"?|?bc`
Sum_s_triad=`echo?"$Sum_s_triad?+?$S_Triad_bw"?|?bc`
Sum_m_copy=`echo?"$Sum_m_copy?+?$M_Copy_bw"?|?bc`
Sum_m_scale=`echo?"$Sum_m_scale?+?$M_Scale_bw"?|?bc`
Sum_m_add=`echo?"$Sum_m_add?+?$M_Add_bw"?|?bc`
Sum_m_triad=`echo?"$Sum_m_triad?+?$M_Triad_bw"?|?bc`
i=$(($i+1))
done
S_Copy_bw=`echo " scale=3; $ Sum_s_copy/$ LOOPS " | bc` test result mean value computation
S_Scale_bw=`echo?"scale=3;$Sum_s_scale?/?$LOOPS"?|?bc`
S_Add_bw=`echo?"scale=3;$Sum_s_add?/?$LOOPS"?|?bc`
S_Triad_bw=`echo?"scale=3;$Sum_s_triad?/?$LOOPS"?|?bc`
M_Copy_bw=`echo?"scale=3;$Sum_m_copy?/?$LOOPS"?|?bc`
M_Scale_bw=`echo?"scale=3;$Sum_m_scale?/?$LOOPS"?|?bc`
M_Add_bw=`echo?"scale=3;$Sum_m_add?/?$LOOPS"?|?bc`
M_Triad_bw=`echo?"scale=3;$Sum_m_triad?/?$LOOPS"?|?bc`
" Case, (GB/S) " shows test results echo for Benchmark, Mode
echo?"Stream,Single,Copy,$S_Copy_bw"
echo?",,Scale,$S_Scale_bw"
echo?",,Add,$S_Add_bw"
echo?",,Triad,$S_Triad_bw"
echo?",Multi,Copy,$M_Copy_bw"
echo?",,Scale,$M_Scale_bw"
echo?",,Add,$M_Add_bw"
echo?",,Triad,$M_Triad_bw"
}?>?$RES_CSV
By embodiment above, described those skilled in the art can be easy to realize the present invention.But should be appreciated that the present invention is not limited to above-mentioned embodiment.On the basis of disclosed embodiment, described those skilled in the art can the different technical characterictic of combination in any, thereby realizes different technical schemes.

Claims (5)

1. memory bandwidth and the parallel verification method of pressure gradual change, is characterized in that, verification method step is as follows:
1) build test platform, setup test environment;
2) set;
3) number of run is set;
4) configuration testing Parameter File;
5) delete procedure test result file;
6) obtain hardware information;
7) start test, each thread carries out Copy, Scale, Add, Triad computing to a part of internal memory;
8) control and measuring process;
9) in test process, there are deadlock, the abnormal conditions of makeing mistakes, according to test log information investigation, repeated authentication;
10) collect test result, complete test run is complete, and system is without abnormal but Triad value does not meet 70% theoretical value, test Fail, and tuning is proceeded to test;
11) collect test result, complete test run is complete, and system meets 70% theoretical value without abnormal and Triad value, reaches performance, stability test effect, test PASS.
2. a kind of memory bandwidth according to claim 1 and the parallel verification method of pressure gradual change, is characterized in that, described Copy computing is: first access an internal storage location and read value wherein, then write values into another internal storage location.
3. a kind of memory bandwidth according to claim 1 and the parallel verification method of pressure gradual change, it is characterized in that, described Scale computing is: first from internal storage location, read value wherein, do a multiplying, then write results to another internal storage location.
4. a kind of memory bandwidth according to claim 1 and the parallel verification method of pressure gradual change, is characterized in that, described Add computing is: first from internal storage location, read two values, do additive operation, then write results to another internal storage location.
5. a kind of memory bandwidth according to claim 1 and the parallel verification method of pressure gradual change, it is characterized in that, described Triad computing is: first from internal storage location, read two values, these two values are taken advantage of and added hybrid operation, then operation result is written to another internal storage location.
CN201410310945.3A 2014-07-02 2014-07-02 Verification method for memory bandwidth and pressure gradual-change parallelism Pending CN104035850A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410310945.3A CN104035850A (en) 2014-07-02 2014-07-02 Verification method for memory bandwidth and pressure gradual-change parallelism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410310945.3A CN104035850A (en) 2014-07-02 2014-07-02 Verification method for memory bandwidth and pressure gradual-change parallelism

Publications (1)

Publication Number Publication Date
CN104035850A true CN104035850A (en) 2014-09-10

Family

ID=51466624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410310945.3A Pending CN104035850A (en) 2014-07-02 2014-07-02 Verification method for memory bandwidth and pressure gradual-change parallelism

Country Status (1)

Country Link
CN (1) CN104035850A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407951A (en) * 2014-11-05 2015-03-11 浪潮电子信息产业股份有限公司 Method for automatically testing server
CN105045693A (en) * 2015-07-24 2015-11-11 浪潮电子信息产业股份有限公司 PTU (Parallel Transmission Unit) tool based CPU (Central Processing Unit) and memory pressure change test method
CN105786689A (en) * 2014-12-24 2016-07-20 昆达电脑科技(昆山)有限公司 Automatic testing method and system for efficacy of Linux server of ARM
CN109032874A (en) * 2018-08-15 2018-12-18 郑州云海信息技术有限公司 A kind of memory pressure test method, device, terminal and storage medium
CN113254322A (en) * 2021-06-07 2021-08-13 恒为科技(上海)股份有限公司 Method and system for evaluating ultimate throughput performance of Stream system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080250276A1 (en) * 2004-03-09 2008-10-09 Alcatel-Lucent Memory growth detection
CN103605589A (en) * 2013-11-19 2014-02-26 浪潮电子信息产业股份有限公司 Method for optimizing performance test on internal memory of Intel MIC (microphone) card

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080250276A1 (en) * 2004-03-09 2008-10-09 Alcatel-Lucent Memory growth detection
CN103605589A (en) * 2013-11-19 2014-02-26 浪潮电子信息产业股份有限公司 Method for optimizing performance test on internal memory of Intel MIC (microphone) card

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王松宇等: "基于龙芯 CPU 的服务器访存性能测试与分析", 《信息技术与标准化》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104407951A (en) * 2014-11-05 2015-03-11 浪潮电子信息产业股份有限公司 Method for automatically testing server
CN105786689A (en) * 2014-12-24 2016-07-20 昆达电脑科技(昆山)有限公司 Automatic testing method and system for efficacy of Linux server of ARM
CN105786689B (en) * 2014-12-24 2018-09-18 昆达电脑科技(昆山)有限公司 The efficiency automatic test approach and its system of the Linux server of ARM
CN105045693A (en) * 2015-07-24 2015-11-11 浪潮电子信息产业股份有限公司 PTU (Parallel Transmission Unit) tool based CPU (Central Processing Unit) and memory pressure change test method
CN109032874A (en) * 2018-08-15 2018-12-18 郑州云海信息技术有限公司 A kind of memory pressure test method, device, terminal and storage medium
CN113254322A (en) * 2021-06-07 2021-08-13 恒为科技(上海)股份有限公司 Method and system for evaluating ultimate throughput performance of Stream system

Similar Documents

Publication Publication Date Title
US10678656B2 (en) Intelligent restore-container service offering for backup validation testing and business resiliency
CN104035850A (en) Verification method for memory bandwidth and pressure gradual-change parallelism
CN104360919A (en) Method for automatically testing performance, function and stability of SSD (solid state drive)
US20150074055A1 (en) Auto-Snapshot Manager Analysis Tool
US9413818B2 (en) Deploying applications in a networked computing environment
Gupta et al. Context-aware time series anomaly detection for complex systems
US11435998B2 (en) Management system and methodology for disturbance monitoring equipment known as USI m9kadmin
US9652616B1 (en) Techniques for classifying non-process threats
CN106919485B (en) System based on hardware testing tool configured on server
US20180032322A1 (en) Automated devops application deployment
CN104407951A (en) Method for automatically testing server
US9792102B2 (en) Identifying issues prior to deploying software
US20230161869A1 (en) Generating an enrichment layer and populating a security graph based on configuration code of a cloud computing environment
US10614218B2 (en) Scan time reduction in application code security scanning
Cano et al. Characterizing private clouds: A large-scale empirical analysis of enterprise clusters
GB2522301A (en) Obtaining a configuration of a network
CN103092718A (en) Test data backup system and method
US9842044B2 (en) Commit sensitive tests
US11921604B2 (en) Evaluating system recovery using emulated production systems
CN109460187A (en) A kind of qcow2 file data consistency verification method and verifying terminal
US9946853B1 (en) Techniques for application code obfuscation
CN109669829A (en) A kind of diagnosis adjustment method, device and server based on BMC
US20170249571A1 (en) Automatic comparison of enterprise profile analytics
US10346237B1 (en) System and method to predict reliability of backup software
CN104268051A (en) Server complete-computer pressure testing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140910