CN104820627A - Method for automatically testing CPU computing performance - Google Patents
Method for automatically testing CPU computing performance Download PDFInfo
- Publication number
- CN104820627A CN104820627A CN201510224347.9A CN201510224347A CN104820627A CN 104820627 A CN104820627 A CN 104820627A CN 201510224347 A CN201510224347 A CN 201510224347A CN 104820627 A CN104820627 A CN 104820627A
- Authority
- CN
- China
- Prior art keywords
- installation
- test
- testing
- speccpu
- expect
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 54
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000009434 installation Methods 0.000 claims abstract description 45
- 238000010998 test method Methods 0.000 claims description 10
- 230000008569 process Effects 0.000 abstract description 4
- 230000004913 activation Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000011056 performance test Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for automatically testing the CPU computing performance, which automatically tests the CPU computing performance based on bash and expect commands, realizes the automatic downloading, installation and operation of test files by utilizing the expect commands, and mainly comprises four parts: the method comprises the following steps of downloading and installing linpack test software, downloading and installing speccpu test software, configuring and running linpack tests, and configuring and running speccpu tests. The method is suitable for x 86-architecture red hats and Centos operating systems, is simple to operate, high in automation degree and high in practicability, can save manpower, effectively ensures the stability of the server, is a very effective method for verifying the product quality, automates a complex configuration process, reduces human errors, saves manpower, saves testing time, improves the product quality, and saves cost for companies.
Description
Technical field
The present invention relates to cpu performance technical field of measurement and test, be specifically related to the method for testing that CPU calculated performance is carried out in a kind of robotization.
Background technology
Tide, as largest domestic server provider, has opened up the application of every field server, such as internet, finance ... Deng; The requirement of client to server is also more and more higher.CPU is vital parts for server, and the performance height of these parts will directly affect the quality of server.
The test of CPU calculated performance originally needs manually to carry out the change of the installation of software, the amendment of respective profiles and BIOS option, and inefficiency, takies a large amount of manpower and time, and easily occur mistake.
Expect order by a series of expect-send to forming: the specific character of the middle output to be output such as expect, a normally prompt, then sends specific response.By the method, arrange accordingly in a program, read, the process of man-machine interactively required in software installation can be completed.
The Performance measurement software of CPU install and use expect, program by automatic decision reading output information, and provides and specifies input; When a certain step completes Install and configure, program will judge and enter next step.
Summary of the invention
The technical problem to be solved in the present invention is: the present invention is based on the performance test that CPU is carried out in bash and expect robotization, all can carry out integrated by this little work, without the need to carrying out complicated configuration again, reduces the mistake of test.
This method of testing improves the manual test process of existing CPU, automatically can download and install the testing software of CPU, and be configured, and collects result.Simple and convenient, test manpower and time can be saved.
The technical solution adopted in the present invention is:
The method of testing of CPU calculated performance is carried out in a kind of robotization, it is characterized in that: described method of testing carries out the test of CPU calculated performance automatically based on bash and expect order, utilize expect order to achieve robotization download, the installation and operation of test file, mainly comprise four partial contents: the configuration of the test of the configuration of the download of the download of linpack testing software and installation, speccpu testing software and installation, linpack test and operation, speccpu and operation.
Download and the installation content of described linpack testing software are as follows:
Download the installation kit of linpack;
From http server down loading mounting software;
Decompressing files;
Call expect and form branch installation l_ccompxe_intel64_2013.5.192.tgz;
Call expect and form branch installation l_fcompxe_intel64_2013.5.192;
Call expect and form branch installation l_mpi_p_4.1.1.036
Compiling and operation linpack program.
Download and the installation content of described speccpu testing software are as follows:
The file required for speccpu test is downloaded from http-server;
Decompressing files;
Speccpu-1.2 is installed;
Installation testing patch IC14;
Installation testing patch lib associated documents;
Run speccpu test.
Described method operation steps and implementation procedure as follows:
1) file required for linpack test is downloaded from http-server, and decompress(ion);
2) three files respectively required for installation testing: l_ccompxe_intel64_2013.5.192.tgz, l_fcompxe_intel64_2013.5.192, l_mpi_p_4.1.1.036;
3) compile and run linpack test procedure;
4) file required for speccpu test is downloaded from http-server, and decompress(ion);
5) speccpu-1.2 is installed;
6) patch of ic14 is installed;
7) patch of lib file is installed;
8) speccpu test is run.
Beneficial effect of the present invention is:
The inventive method is suitable for the red cap of x86 framework and Centos operating system, and simple to operate, automaticity is high, practicality is stronger, can save manpower, effectively ensure that the stability of server, be the very effective method of checking product quality, by the layoutprocedure robotization of complexity, reduce mistake, save manpower, save the test duration, Improving The Quality of Products, for company is cost-saving.
figure of description
Fig. 1 is the inventive method concrete operations process flow diagrams.
Embodiment
Below according to Figure of description, in conjunction with embodiment, the present invention is further described:
The method of testing of CPU calculated performance is carried out in a kind of robotization, described method of testing carries out the test of CPU calculated performance automatically based on bash and expect order, utilize expect order to achieve robotization download, the installation and operation of test file, mainly comprise four partial contents: the configuration of the test of the configuration of the download of the download of linpack testing software and installation, speccpu testing software and installation, linpack test and operation, speccpu and operation.
Download and the installation content code of described linpack testing software are as follows:
# downloads the installation kit of linpack
#!/bin/bash
a=$PWD
# is from http server down loading mounting software
wget http://192.168.12.223/ linpack/l_ccompxe_intel64_2013.5.192.tgz
sleep 1
wget http://192.168.12.223/linpack/l_fcompxe_intel64_2013.5.192.tgz
sleep 1
wget http://192.168.12.223/linpack/l_mpi_p_4.1.1.036.tgz
sleep 1
# decompressing files
tar -zxvf l_ccompxe_intel64_2013.5.192.tgz
tar -zxvf l_fcompxe_intel64_2013.5.192.tgz
tar -zxvf l_mpi_p_4.1.1.036.tgz
# calls expect and forms branch installation l_ccompxe_intel64_2013.5.192.tgz
expect<<- END
spawn sh l_ccompxe_intel64_2013.5.192/install.sh
expect "Step no: 1 of 7"
send "\r"
expect "Step no: 2 of 7"
send "' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '"
expect "back to the previous menu"
send "accept\r"
expect "back to the previous menu"
send "accept\r"
expect {
"I want to evaluate my product or activate later"
{
send "2\r"
expect "Trial activation completed successfully"
send "\r"
exp_continue
}
"Use existing trial license"
{
send "1\r"
exp_continue
}
}
expect "Step no: 4 of 7"
send "2\r"
expect "Start installation Now"
send "1\r"
expect "Finishing installation"
sleep 120
send "\r"
expect "accept default choice"
send "\r"
expect eof
exit
END
# calls expect and forms branch installation l_fcompxe_intel64_2013.5.192
expect<<- EOD
spawn sh l_fcompxe_intel64_2013.5.192/install.sh
expect "Step no: 1 of 7"
send "\r"
expect "Step no: 2 of 7"
send "' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '"
expect "back to the previous menu"
send "accept\r"
expect "back to the previous menu"
send "accept\r"
expect {
"I want to evaluate my product or activate later"
{
send "2\r"
expect "Trial activation completed successfully"
send "\r"
exp_continue
}
"Use existing trial license"
{
send "1\r"
exp_continue
}
}
expect "Step no: 4 of 7"
send "2\r"
expect "Start installation Now"
send "1\r"
expect "Finalizing installation"
sleep 120
send "\r"
expect "accept default choice"
send "\r"
expect eof
exit
EOD
# calls expect and forms branch installation l_mpi_p_4.1.1.036
expect<<- EPD
spawn sh l_mpi_p_4.1.1.036/install.sh
expect "Step no: 1 of"
send "\r"
expect "Step no: 2 of"
send "' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '"
expect "back to the previous menu"
send "accept\r"
expect "back to the previous menu"
send "accept\r"
expect {
"I want to evaluate my product or activate later"
{
send "2\r"
expect "Trial activation completed successfully"
send "\r"
exp_continue
}
"Use existing trial license"
{
send "1\r"
exp_continue
}
}
expect "Start installation Now"
send "1\r"
expect "Finish configuring cluster"
send "1\r"
expect "Finalizing installation"
sleep 90
send "1\r"
expect "accept default choice"
send "\r"
expect eof
exit
EPD
# compiling and operation linpack program
make
cd /opt/intel/mkl/benchmarks/mp_linpack
echo "export PATH=/opt/intel/impi/4.1.1.036/intel64/bin/:/opt/intel/composer_xe_2013.5.192/bin/intel64:$PATH" >> /root/.bashrc
source /root/.bashrc
make arch=intel64
cp -r bin/intel64 /opt/em64t
#run
cd /opt/em64t/intel64
cp $a/hpldatset.sh .
mpdboot
dos2unix hpldatset.sh
chmod 777 hpldatset.sh
./hpldatset.sh
Download and the installation content code of described speccpu testing software are as follows:
# downloads the file required for speccpu test from http-server
wget http://192.168.12.223/ks/ali/speccpu/cpu2006-1.2.iso
sleep 1
wget http://192.168.12.223/ks/ali/speccpu/cpu2006.1.2.ic14.0.linux64.for.OEMs.17oct2013.patched.tar.bz2
sleep 1
wget http://192.168.12.223/ks/ali/speccpu/lib.zip
sleep 1
# decompressing files
mkdir tmp
cp cpu2006.1.2.ic14.0.linux64.for.OEMs.17oct2013.patched.tar.bz2 tmp
cd tmp
tar -jxvf cpu2006.1.2.ic14.0.linux64.for.OEMs.17oct2013.patched.tar.bz2
cd ..
# installs speccpu-1.2
mount -o loop cpu2006-1.2.iso /mnt
expect<<- END
spawn sh /mnt/install.sh
expect "Enter the directory you wish to install to"
send "/opt/cpu2006\n"
expect "Is this correct?"
send "yes\n"
expect "Installation successful"
sleep 90
send "\n"
expect eof
exit
END
umount /mnt
# installation testing patch IC14
cd tmp
cp -Rpf benchspec/CPU2006/* /opt/cpu2006/benchspec/CPU2006/
cp config/* /opt/cpu2006/config/
cp -Rpf libs /opt/cpu2006/
cp Intel* nhmtopology.pl numa-detection.sh reportable-* Your* /opt/cpu2006
cp -Rpf sh /opt/cpu2006
# installation testing patch lib associated documents
cd ..
unzip lib.zip
cp -Rpf lib/32/* /opt/cpu2006/libs/32/
cp -Rpf lib/64/* /opt/cpu2006/libs/64/
# runs speccpu test
cd /opt/cpu2006
./reportable-ws-avx-smt-on-rate.sh
As shown in Figure 1, described method operation steps and implementation procedure as follows:
1) file required for linpack test is downloaded from http-server, and decompress(ion);
2) three files respectively required for installation testing: l_ccompxe_intel64_2013.5.192.tgz, l_fcompxe_intel64_2013.5.192, l_mpi_p_4.1.1.036;
3) compile and run linpack test procedure;
4) file required for speccpu test is downloaded from http-server, and decompress(ion);
5) speccpu-1.2 is installed;
6) patch of ic14 is installed;
7) patch of lib file is installed;
8) speccpu test is run.
Above embodiment is only for illustration of the present invention; and be not limitation of the present invention; the those of ordinary skill of relevant technical field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all equivalent technical schemes also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (4)
1. the method for testing of CPU calculated performance is carried out in a robotization, it is characterized in that: described method of testing carries out the test of CPU calculated performance automatically based on bash and expect order, utilize expect order to achieve robotization download, the installation and operation of test file, mainly comprise four partial contents: the configuration of the test of the configuration of the download of the download of linpack testing software and installation, speccpu testing software and installation, linpack test and operation, speccpu and operation.
2. the method for testing of CPU calculated performance is carried out in a kind of robotization according to claim 1, it is characterized in that: download and the installation content of described linpack testing software are as follows:
Download the installation kit of linpack;
From http server down loading mounting software;
Decompressing files;
Call expect and form branch installation l_ccompxe_intel64_2013.5.192.tgz;
Call expect and form branch installation l_fcompxe_intel64_2013.5.192;
Call expect and form branch installation l_mpi_p_4.1.1.036
Compiling and operation linpack program.
3. the method for testing of CPU calculated performance is carried out in a kind of robotization according to claim 1, it is characterized in that: download and the installation content of described speccpu testing software are as follows:
The file required for speccpu test is downloaded from http-server;
Decompressing files;
Speccpu-1.2 is installed;
Installation testing patch IC14;
Installation testing patch lib associated documents;
Run speccpu test.
4. carry out the method for testing of CPU calculated performance according to claim 1,2 or 3 arbitrary described a kind of robotizations, it is characterized in that, described method operation steps and implementation procedure as follows:
1) file required for linpack test is downloaded from http-server, and decompress(ion);
2) three files respectively required for installation testing: l_ccompxe_intel64_2013.5.192.tgz, l_fcompxe_intel64_2013.5.192, l_mpi_p_4.1.1.036;
3) compile and run linpack test procedure;
4) file required for speccpu test is downloaded from http-server, and decompress(ion);
5) speccpu-1.2 is installed;
6) patch of ic14 is installed;
7) patch of lib file is installed;
8) speccpu test is run.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510224347.9A CN104820627A (en) | 2015-05-05 | 2015-05-05 | Method for automatically testing CPU computing performance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510224347.9A CN104820627A (en) | 2015-05-05 | 2015-05-05 | Method for automatically testing CPU computing performance |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104820627A true CN104820627A (en) | 2015-08-05 |
Family
ID=53730928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510224347.9A Pending CN104820627A (en) | 2015-05-05 | 2015-05-05 | Method for automatically testing CPU computing performance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104820627A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708682A (en) * | 2017-01-20 | 2017-05-24 | 郑州云海信息技术有限公司 | Method for improving SPEC-CPU-speed test performance of server |
CN107729193A (en) * | 2017-09-14 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of Linpack test Automatic Optimal collocation methods and system based on Purley platforms |
CN112560041A (en) * | 2021-02-25 | 2021-03-26 | 北京微步在线科技有限公司 | Method, apparatus and computer storage medium for automated quality verification detection |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7610523B1 (en) * | 2006-02-09 | 2009-10-27 | Sun Microsystems, Inc. | Method and template for physical-memory allocation for implementing an in-system memory test |
CN103207821A (en) * | 2013-05-03 | 2013-07-17 | 北京百度网讯科技有限公司 | CPU (Central Processing Unit) performance evaluation method and device |
CN103970655A (en) * | 2014-05-08 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Expect-based automatic server cluster testing method |
CN104035876A (en) * | 2014-07-02 | 2014-09-10 | 浪潮电子信息产业股份有限公司 | Method for implementing LINPACK cluster test in IB network environment based on PXE, SHELL and EXPECT |
-
2015
- 2015-05-05 CN CN201510224347.9A patent/CN104820627A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7610523B1 (en) * | 2006-02-09 | 2009-10-27 | Sun Microsystems, Inc. | Method and template for physical-memory allocation for implementing an in-system memory test |
CN103207821A (en) * | 2013-05-03 | 2013-07-17 | 北京百度网讯科技有限公司 | CPU (Central Processing Unit) performance evaluation method and device |
CN103970655A (en) * | 2014-05-08 | 2014-08-06 | 浪潮电子信息产业股份有限公司 | Expect-based automatic server cluster testing method |
CN104035876A (en) * | 2014-07-02 | 2014-09-10 | 浪潮电子信息产业股份有限公司 | Method for implementing LINPACK cluster test in IB network environment based on PXE, SHELL and EXPECT |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708682A (en) * | 2017-01-20 | 2017-05-24 | 郑州云海信息技术有限公司 | Method for improving SPEC-CPU-speed test performance of server |
CN106708682B (en) * | 2017-01-20 | 2020-10-23 | 苏州浪潮智能科技有限公司 | Method for improving SPEC CPU speed test result of server |
CN107729193A (en) * | 2017-09-14 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of Linpack test Automatic Optimal collocation methods and system based on Purley platforms |
CN112560041A (en) * | 2021-02-25 | 2021-03-26 | 北京微步在线科技有限公司 | Method, apparatus and computer storage medium for automated quality verification detection |
CN112560041B (en) * | 2021-02-25 | 2021-05-25 | 北京微步在线科技有限公司 | Method, apparatus and computer storage medium for automated quality verification detection |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103365638B (en) | One-chip computer developing system based on ECUCoder and method | |
CN102591777B (en) | A kind of unit test code generation method and device | |
CN103218242B (en) | A kind of method of automatic renewal | |
CN101799506B (en) | Chip test method, device and system based on script control | |
CN107168275B (en) | Automatic identification configuration method and device for relay protection function module | |
Salvador et al. | Embedded Linux Development with Yocto Project | |
CN104820627A (en) | Method for automatically testing CPU computing performance | |
CN104035876A (en) | Method for implementing LINPACK cluster test in IB network environment based on PXE, SHELL and EXPECT | |
CN109189479A (en) | A kind of parallel automatic verification method for processor instruction set | |
CN104156252A (en) | Application software installation method and device | |
CN104461679A (en) | Automatic implementation method for binding network card to CPU | |
CN105591779A (en) | Method and device for inspecting network element | |
KR20240047468A (en) | ECU upgrade method and device, and readable storage medium | |
CN105094939A (en) | Method for realizing static analysis of software source files based on Makefile automatic compilation technology | |
CN104484201A (en) | Method and device for updating software tool development package of IOS (Internetwork Operating System) equipment | |
CN106933591A (en) | The method and device that code merges | |
CN106293849A (en) | A kind of application update method and terminal | |
CN108170588B (en) | Test environment construction method and device | |
CN104391733A (en) | Method for dynamically compiling software package according to dependence relationship | |
CN110275715A (en) | Unmanned aerial vehicle station software implementation method based on kylin operating system | |
CN105701429A (en) | User-defined adaptive method and system for RFID card | |
CN105095076A (en) | Method and device for testing compatibility between application software versions | |
CN105550008A (en) | Method for automatically and repeatedly updating BIOS + ME based on Linux | |
CN101169726A (en) | Embedded type Linux system on-line upgrading method based on MTD partition | |
CN103324496A (en) | Method for realizing local maintenance of centralized meter reading terminal by using U disk |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate 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: 20150805 |