CN105183605A - Server performance test method and device - Google Patents
Server performance test method and device Download PDFInfo
- Publication number
- CN105183605A CN105183605A CN201510717969.5A CN201510717969A CN105183605A CN 105183605 A CN105183605 A CN 105183605A CN 201510717969 A CN201510717969 A CN 201510717969A CN 105183605 A CN105183605 A CN 105183605A
- Authority
- CN
- China
- Prior art keywords
- server
- software
- performance
- test
- installation
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a server performance test method and device. The method includes the steps that server performance test software is classified through a shell script and packaged into an installation file; according to preset installation parameters, the installation file is installed in a server to be tested; the corresponding test software is called through a shell calling system, and the server is tested. It is indicated that by means of the test mode, all the test software can be installed on the server to be tested at a time, extra manual intervention is not needed in the installation process, installation efficiency can be greatly improved during large-scale testing, and the testing process is convenient and efficient.
Description
Technical field
The present invention relates to server performance field tests, more particularly, relate to a kind of server performance method of testing and device.
Background technology
Along with the development of the new techniques such as cloud computing, large data, more and more higher to performance requirements such as the bandwidth sum capacity that the processor of server, internal memory, data store, how efficiently the every key property of evaluating server has very great meaning to manufacturer server, server user.Traditional server performance test is by an installation testing software, this mode can only once one-side testing evaluation key property, need when large scale test by every testing software for each manual installation of every station server, testing efficiency is lower.
Therefore, how efficient test server is the problem needing now to solve.
Summary of the invention
The object of the present invention is to provide a kind of server performance method of testing and device, to realize testing server efficiently.
For achieving the above object, following technical scheme is embodiments provided:
A kind of server performance method of testing, comprising:
By shell script, server performance testing software is classified, and be packaged as installation file;
According to the installation parameter preset, described installation file is installed in server to be tested;
By the corresponding testing software of shell invoke system call, server is tested.
Preferably, describedly by shell script, server performance testing software to be classified, and is packaged as installation file, comprising:
By shell script, server performance testing software is classified, be divided into cpu performance testing software class, internal memory performance testing software class, disk performance testing software class, applied in network performance test software class and power consumption test software class, and be packaged as installation file.
Preferably, described installation file is installed in server to be tested, comprises:
By the software erecting tools Make in linux system, described installation file is installed in server to be tested.
Preferably, after server is tested, also comprise:
The test log produce described Performance measurement software in test process and test result are carried out classification and are preserved.
Preferably, also comprise:
Inquire about test log and test result that described Performance measurement software produces in test process; And/or the test log produce described Performance measurement software in test process and test result derive.
A kind of server performance proving installation, comprising:
Installation module, for being classified by server performance testing software by shell script, is packaged as installation file, according to the installation parameter preset, described installation file is installed in server to be tested;
Testing software calling module, for by the corresponding testing software of shell invoke system call, tests server.
Preferably, described installation module comprises:
Installation file generation unit, for server performance testing software being classified by shell script, be divided into cpu performance testing software class, internal memory performance testing software class, disk performance testing software class, applied in network performance test software class and power consumption test software class, and be packaged as installation file.
Preferably, described installation module specifically for:
By the software erecting tools Make in linux system, described installation file is installed in server to be tested.
Preferably, also comprise:
Logger module, carries out classification for the test log that produced in test process by described Performance measurement software and test result and preserves.
Preferably, described logger module, comprising:
Query unit, for inquiring about the test log and test result that described Performance measurement software produces in test process;
Lead-out unit, derives for the test log that produced in test process by described Performance measurement software and test result.
Known by above scheme, a kind of server performance method of testing that the embodiment of the present invention provides and device, being comprised: classified by server performance testing software by shell script, and be packaged as installation file; According to the installation parameter preset, described installation file is installed in server to be tested; By the corresponding testing software of shell invoke system call, server is tested, visible this test mode provided by the present invention, can disposable all testing softwares be all installed on server to be tested, and in installation process, do not need extra human intervention, when large scale test, energy significant increase installation effectiveness, makes test process convenient, efficiently.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of server performance method of testing schematic flow sheet disclosed in the embodiment of the present invention;
Fig. 2 is a kind of server performance proving installation structural representation disclosed in the embodiment of the present invention;
Fig. 3 is another kind of server performance proving installation structural representation disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of server performance method of testing and device, to realize testing server efficiently.
See Fig. 1, a kind of server performance method of testing that the embodiment of the present invention provides, comprising:
S101, by shell script, server performance testing software to be classified, and be packaged as installation file;
It should be noted that, for convenience of describing, hereinafter this shell calling system being called MainShell, Performance measurement software is referred to as SubSoftware.
Concrete, this server performance method of testing that the present embodiment provides is the server performance method of testing of x86_64 processor architecture.
Preferably, describedly by shell script, server performance testing software to be classified, and is packaged as installation file, comprising:
By shell script, server performance testing software is classified, be divided into cpu performance testing software class, internal memory performance testing software class, disk performance testing software class, applied in network performance test software class and power consumption test software class, and be packaged as installation file.
Concrete, generic testing software is divided into same class, does not affect mutually between different testing softwares, once perform the testing software that a test can call different group, call software start test after, carry out testing according to the requirement of called software.
Concrete, the present embodiment passes through server key property testing tool software, namely the software of CPU, internal memory, network, disk, power consumption is tested respectively, a software package is packaged into by shell script, i.e. installation file, for every key property test of server, such method can make testing software installation process more simple, and test process is more convenient.
Concrete, Performance measurement software can be cpu performance testing software SPECCPU2006, internal memory performance testing software Lmbench, disk performance testing software fio, applied in network performance test software netperf, power consumption test software SPECPower2008.
The installation parameter that S102, basis are preset, is installed to described installation file in server to be tested;
Preferably, described installation file is installed in server to be tested, comprises:
By the software erecting tools Make in linux system, described installation file is installed in server to be tested.
Concrete, shell calling system is called disposable for Performance measurement software SubSoftware by script, and the feedback information in preset software installation process, software erecting tools Make conventional in linux system is used to install by writing Makefile file, disposable all SubSoftware all can be installed on destination server, the installation realizing SubSoftware does not need extra human intervention, the significant increase installation effectiveness when large scale test.
Concrete, disposable by after the installation of all properties testing software according to installation file, when installing different destination servers, only needing to change corresponding parameter can complete installation.In test process, the software different by this shell invoke system call is tested.
S103, by the corresponding testing software of shell invoke system call, server to be tested.
Concrete, testing software calling system by providing a selection function in MainShell, the startup item of testing software is provided in every class Performance measurement software, only need to select corresponding startup item in test process, revise Performance measurement software parameter as required, can starting to carry out the performance test without the need to additionally intervening, making test process convenient, efficient.
Concrete, performance test efficiency can significantly improve by the short-cut method of the test of the server performance based on x86_64 processor architecture that the present embodiment proposes, by SubSoftware is tied on MainShell, by control script, SubSoftware is classified, reach the object that disposable Fast Installation is tested, test log classification is checked, test result derives fast.
A kind of server performance method of testing that the embodiment of the present invention provides, being comprised: classified by server performance testing software by shell script, and be packaged as installation file; According to the installation parameter preset, described installation file is installed in server to be tested; By the corresponding testing software of shell invoke system call, server is tested, visible this test mode provided by the present invention, can disposable all testing softwares be all installed on server to be tested, and in installation process, do not need extra human intervention, when large scale test, energy significant increase installation effectiveness, makes test process convenient, efficiently.
Preferably, in an alternative embodiment of the invention, after server is tested, also comprise:
The test log produce described Performance measurement software in test process and test result are carried out classification and are preserved.
Concrete, this method also comprises:
Inquire about test log and test result that described Performance measurement software produces in test process; And/or the test log produce described Performance measurement software in test process and test result derive.
Concrete, in the present embodiment, by shell script by the test log in Performance measurement software Installation And Test process, namely the test log produced by SubSoftware and test result classification store again, test log after storage and test result can be inquired about by diary record system and be presented in terminal, or export as text, to facilitate slip-stick artist's analytical test problem and logging test results.
It is clear that diary record system has classification, the features such as inquiry is convenient, setting is called by shell script, server key property can be divided into some groups, the different testing softwares for same test item can be increased in each group, when in organizing, certain testing software cannot test, without the need to locating concrete trouble spot, in same group capable of fast starting, other instrument is tested.
See Fig. 2, a kind of server performance proving installation that the embodiment of the present invention provides, comprising:
Installation module 100, for being classified by server performance testing software by shell script, is packaged as installation file, according to the installation parameter preset, described installation file is installed in server to be tested;
Testing software calling module 200, for by the corresponding testing software of shell invoke system call, tests server.
A kind of server performance proving installation that the embodiment of the present invention provides, comprising: installation module 100, for being classified by server performance testing software by shell script, being packaged as installation file, according to the installation parameter preset, described installation file is installed in server to be tested; Testing software calling module 200, for passing through the corresponding testing software of shell invoke system call, server is tested, visible this test mode provided by the present invention, disposable all testing softwares all can be installed on server to be tested, and not need extra human intervention in installation process, the energy significant increase installation effectiveness when large scale test, make test process convenient, efficiently.
Preferably, in an alternative embodiment of the invention, described installation module 100 comprises:
Installation file generation unit, for server performance testing software being classified by shell script, be divided into cpu performance testing software class, internal memory performance testing software class, disk performance testing software class, applied in network performance test software class and power consumption test software class, and be packaged as installation file.
Preferably, in an alternative embodiment of the invention, described installation module 100 specifically for:
By the software erecting tools Make in linux system, described installation file is installed in server to be tested.
See Fig. 3, the another kind of server performance proving installation that the embodiment of the present invention provides, comprising:
Installation module 100, for being classified by server performance testing software by shell script, is packaged as installation file, according to the installation parameter preset, described installation file is installed in server to be tested;
Testing software calling module 200, for by the corresponding testing software of shell invoke system call, tests server;
Logger module 300, carries out classification for the test log that produced in test process by described Performance measurement software and test result and preserves;
Wherein, described logger module 300, comprising:
Query unit, for inquiring about the test log and test result that described Performance measurement software produces in test process;
Lead-out unit, derives for the test log that produced in test process by described Performance measurement software and test result.
Concrete, logger module is only for depositing the catalogue of testing software, the daily record of testing software and test result.For example, when carrying out a performance test, first to be called by this testing software by testing software calling system and perform test, then the journal file of testing software itself and test result file can be redirected in daily record below Log Directory and result.For the ease of managing these daily records and result, raw data and the data result information through filtering are stored in diary record system.
Performance test efficiency can significantly improve by the server performance proving installation based on x86_64 processor architecture that the present embodiment proposes, by SubSoftware is tied on MainShell, by control script, SubSoftware is classified, reach the object that disposable Fast Installation is tested, test log classification is checked, test result derives fast.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.
Claims (10)
1. a server performance method of testing, is characterized in that, comprising:
By shell script, server performance testing software is classified, and be packaged as installation file;
According to the installation parameter preset, described installation file is installed in server to be tested;
By the corresponding testing software of shell invoke system call, server is tested.
2. server performance method of testing according to claim 1, is characterized in that, is describedly classified by server performance testing software by shell script, and is packaged as installation file, comprising:
By shell script, server performance testing software is classified, be divided into cpu performance testing software class, internal memory performance testing software class, disk performance testing software class, applied in network performance test software class and power consumption test software class, and be packaged as installation file.
3. server performance method of testing according to claim 1, is characterized in that, described installation file is installed in server to be tested, comprises:
By the software erecting tools Make in linux system, described installation file is installed in server to be tested.
4. according to the server performance method of testing in claim 1-3 described in any one, it is characterized in that, after server is tested, also comprise:
The test log produce described Performance measurement software in test process and test result are carried out classification and are preserved.
5. server performance method of testing according to claim 1, is characterized in that, also comprise:
Inquire about test log and test result that described Performance measurement software produces in test process; And/or the test log produce described Performance measurement software in test process and test result derive.
6. a server performance proving installation, is characterized in that, comprising:
Installation module, for being classified by server performance testing software by shell script, is packaged as installation file, according to the installation parameter preset, described installation file is installed in server to be tested;
Testing software calling module, for by the corresponding testing software of shell invoke system call, tests server.
7. server performance proving installation according to claim 6, is characterized in that, described installation module comprises:
Installation file generation unit, for server performance testing software being classified by shell script, be divided into cpu performance testing software class, internal memory performance testing software class, disk performance testing software class, applied in network performance test software class and power consumption test software class, and be packaged as installation file.
8. server performance proving installation according to claim 7, is characterized in that, described installation module specifically for:
By the software erecting tools Make in linux system, described installation file is installed in server to be tested.
9., according to the server performance proving installation in claim 6-8 described in any one, it is characterized in that, also comprise:
Logger module, carries out classification for the test log that produced in test process by described Performance measurement software and test result and preserves.
10. server performance proving installation according to claim 9, is characterized in that, described logger module, comprising:
Query unit, for inquiring about the test log and test result that described Performance measurement software produces in test process;
Lead-out unit, derives for the test log that produced in test process by described Performance measurement software and test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510717969.5A CN105183605A (en) | 2015-10-29 | 2015-10-29 | Server performance test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510717969.5A CN105183605A (en) | 2015-10-29 | 2015-10-29 | Server performance test method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105183605A true CN105183605A (en) | 2015-12-23 |
Family
ID=54905697
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510717969.5A Pending CN105183605A (en) | 2015-10-29 | 2015-10-29 | Server performance test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105183605A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106371956A (en) * | 2016-08-29 | 2017-02-01 | 浪潮电子信息产业股份有限公司 | Method for automatically testing memory performance |
CN106775968A (en) * | 2016-11-29 | 2017-05-31 | 上海斐讯数据通信技术有限公司 | A kind of server test method, apparatus and system |
CN106951349A (en) * | 2017-03-16 | 2017-07-14 | 郑州云海信息技术有限公司 | A kind of method and apparatus for carrying out cpu test to domestic server using SPEC CPU |
CN107451063A (en) * | 2017-08-14 | 2017-12-08 | 凌云天博光电科技股份有限公司 | A kind of script method of testing and device |
CN108304325A (en) * | 2018-01-25 | 2018-07-20 | 郑州云海信息技术有限公司 | It is a kind of to realize that Linpack tests the method and system quickly executed |
CN108984405A (en) * | 2018-07-12 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of performance test methods, device and computer readable storage medium |
CN109101409A (en) * | 2018-07-24 | 2018-12-28 | 郑州云海信息技术有限公司 | A method of promoting SPEC CPU2006 execution efficiency |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279416A (en) * | 2013-05-30 | 2013-09-04 | 浪潮(北京)电子信息产业有限公司 | Storage software automated testing system and method |
CN103294579A (en) * | 2013-06-09 | 2013-09-11 | 浪潮电子信息产业股份有限公司 | Method for testing high-performance computing cluster application performance |
CN103324572A (en) * | 2013-06-28 | 2013-09-25 | 广东电网公司电力科学研究院 | Operating system performance test method and device for power secondary system |
CN103793305A (en) * | 2014-02-24 | 2014-05-14 | 浪潮电子信息产业股份有限公司 | Method for testing parallel pressure of server subsystems |
-
2015
- 2015-10-29 CN CN201510717969.5A patent/CN105183605A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279416A (en) * | 2013-05-30 | 2013-09-04 | 浪潮(北京)电子信息产业有限公司 | Storage software automated testing system and method |
CN103294579A (en) * | 2013-06-09 | 2013-09-11 | 浪潮电子信息产业股份有限公司 | Method for testing high-performance computing cluster application performance |
CN103324572A (en) * | 2013-06-28 | 2013-09-25 | 广东电网公司电力科学研究院 | Operating system performance test method and device for power secondary system |
CN103793305A (en) * | 2014-02-24 | 2014-05-14 | 浪潮电子信息产业股份有限公司 | Method for testing parallel pressure of server subsystems |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106371956A (en) * | 2016-08-29 | 2017-02-01 | 浪潮电子信息产业股份有限公司 | Method for automatically testing memory performance |
CN106775968A (en) * | 2016-11-29 | 2017-05-31 | 上海斐讯数据通信技术有限公司 | A kind of server test method, apparatus and system |
CN106951349A (en) * | 2017-03-16 | 2017-07-14 | 郑州云海信息技术有限公司 | A kind of method and apparatus for carrying out cpu test to domestic server using SPEC CPU |
CN107451063A (en) * | 2017-08-14 | 2017-12-08 | 凌云天博光电科技股份有限公司 | A kind of script method of testing and device |
CN107451063B (en) * | 2017-08-14 | 2021-04-27 | 凌云天博光电科技股份有限公司 | Script testing method and device |
CN108304325A (en) * | 2018-01-25 | 2018-07-20 | 郑州云海信息技术有限公司 | It is a kind of to realize that Linpack tests the method and system quickly executed |
CN108984405A (en) * | 2018-07-12 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of performance test methods, device and computer readable storage medium |
CN108984405B (en) * | 2018-07-12 | 2022-06-07 | 郑州云海信息技术有限公司 | Performance test method, device and computer readable storage medium |
CN109101409A (en) * | 2018-07-24 | 2018-12-28 | 郑州云海信息技术有限公司 | A method of promoting SPEC CPU2006 execution efficiency |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105183605A (en) | Server performance test method and device | |
US9444896B2 (en) | Application migration between clouds | |
US9898395B2 (en) | Unit-level formal verification for vehicular software systems | |
CN104423961B (en) | A kind of method and system for generating test script | |
CN106874207A (en) | The automated testing method and device of a kind of web page | |
CN109818934A (en) | A kind of method, apparatus and calculating equipment of automation daily record processing | |
CN102413010B (en) | Testing environment deployment method and device | |
CN105760184A (en) | Method and device for loading component | |
CN108958744B (en) | Deployment method, device, medium and electronic equipment of big data distributed cluster | |
US10394788B2 (en) | Schema-free in-graph indexing | |
US20170060968A1 (en) | Compiling extract, transform, and load job test data cases | |
CN109408064A (en) | A kind of visual micro services system automation dispositions method of layout and system | |
Lydia et al. | Big data analysis using hadoop components like flume, mapreduce, pig and hive | |
CN109766206A (en) | A kind of log collection method and system | |
CN109522042A (en) | A kind of patch update method, system and associated component | |
CN102779160B (en) | Mass data information index system and index structuring method | |
CN108268609A (en) | A kind of foundation of file path, access method and device | |
CN102541994A (en) | Method for deploying and sharing NFS (network file system) automatically and quickly | |
CN104391697A (en) | System and method for managing cloud resources of application program | |
CN105763604A (en) | Lightweight distributed file system and method for recovering original name of downloaded file | |
US20190140894A1 (en) | System and method for enabling hybrid integration platform through runtime auto-scalable deployment model for varying integration | |
CN114064707A (en) | Data query method and device for data virtualization server and storage medium | |
CN101996249B (en) | Grid environment-based geospatial data service issuing method | |
CN103853536A (en) | Method and device for realizing service tracking based on state transition diagram | |
CN104717091A (en) | Server quality verification method and system |
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: 20151223 |