CN104375914A - Automatic testing method for internal pressure change of server - Google Patents

Automatic testing method for internal pressure change of server Download PDF

Info

Publication number
CN104375914A
CN104375914A CN201410679346.9A CN201410679346A CN104375914A CN 104375914 A CN104375914 A CN 104375914A CN 201410679346 A CN201410679346 A CN 201410679346A CN 104375914 A CN104375914 A CN 104375914A
Authority
CN
China
Prior art keywords
server
run
automatic test
internal pressure
linpack
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
CN201410679346.9A
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 CN201410679346.9A priority Critical patent/CN104375914A/en
Publication of CN104375914A publication Critical patent/CN104375914A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for automatically testing the internal pressure change of a server, which comprises the following concrete implementation processes: executing an instruction by using a shell script under a linux operating system, capturing detailed information such as a system version, an IP address, a memory, a CPU, a device, a hostname and the like, analyzing the captured information, calling the information, automatically installing a linpack and setting parameters; the method achieves multi-cycle repeated multi-degree load pressure test by manually inputting the expected execution cycle times; the script program automatically runs the linpack program and automatically sets the load pressure degree and duration without manual multiple setting, so that the automatic change of the pressure load is realized. Compared with the prior art, the automatic testing method for the internal pressure change of the server completely realizes automation, is simple, time-saving and easy to operate, saves manpower, and simultaneously ensures the accuracy of the floating point operation testing performance.

Description

A kind of server internal pressure change automatic test approach
Technical field
The present invention relates to computer server technical field, specifically a kind of practical, server internal pressure change automatic test approach.
Background technology
Anthem CPU is often applied on high-end server, and high-end server is compared to generic server, has higher requirement to performance and stability.As server product provider, a server all needs to carry out system pressure test to product in development or production phase, thus the stability of this product of strict guarantee.And at present Itanium platform is used for the instrument of pressure test or method there is no different from generic server mostly, the stability that very difficult guarantee high-end server is higher thus.And, the stability adopting full load pressure to test CPU, internal memory in the past more, load during its real user's practical application just changes often repeatedly, based on this, now provide a kind of practical, be applicable to the automatic change CPU of Itanium platform, the method for testing of memory pressure load based on the linpack too development one of Intel.
Summary of the invention
Technical assignment of the present invention is for above weak point, provides a kind of practical, server internal pressure change automatic test approach.
A kind of server internal pressure change automatic test approach, its specific implementation process is:
In server, arrange automatic test script and run, the cycle index of shell script is expected in artificial input, and automatic test script reads this numerical value, and to the number of times that user points out shell script to perform;
Automatic test script performs instruction, collects operating system version, internal memory, CPU, peripheral hardware, the network information, according to the information configuration installation environment collected;
Linpack program is installed, and judges current number of run;
When current number of run is less than setting number of run, arrange linpack desired parameters, this parameter comprises Ns value, Nb value, Ps value, Qs value, and runs linpack program, outputs in text by operational process and result;
Terminate this operation, number of run adds 1, then returns previous step;
When number of run is not less than setting number of run, terminate whole test process.
Described automatic test script is shell script and server end under linux operating system runs.
While testing results, performed process orientation is outputted in the file under specified path, and use the file that tail order real time inspection is redirected simultaneously, realize real-time monitor (RTM) implementation status, preserve associated documents, when there being abnormal generation, the load being operated in which rank by the Fileview preserved is broken down.
A kind of server internal pressure change automatic test approach of the present invention, has the following advantages:
A kind of server internal pressure change automatic test approach of this invention passes through the special translation and compiling environment of SHELL script Auto-mounting Itanium platform, simultaneously according to system information Auto-mounting testing tool, remove artificial misoperation of installing from, and carry out the load change test of CPU, internal memory, simulate the application scenarios of client, press close to the practical application loading condition of client, more comprehensive many degree load testing is carried out to CPU, internal memory; Enormously simplify the operating process of pressure test simultaneously, particularly for high density server, easily achieve and test the unmanned change pressure of great deal of nodes, last test result is also comparatively directly perceived, directly can weigh CPU floating-point operation performance, whether reach industry internal standard; This method is for being unfamiliar with Anthem framework and needing the performance of server product of test Anthem framework and the technician of stability to have very actual meaning, and practicality is comparatively strong, applied widely, is easy to promote.
Accompanying drawing explanation
Accompanying drawing 1 is realization flow figure of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The invention provides a kind of server internal pressure change automatic test approach, as shown in Figure 1, its specific implementation process is:
One, in server, arrange automatic test script and run, by this automatic test script of command server terminal operating, expecting the cycle index of shell script according to artificial input, it is that cycle criterion is below prepared that shell script can read this numerical value.And to the number of times that user points out shell script to perform.Concrete operations are as follows:
please input the cycle times:
auto-linpackwill run n times。
Two, grasping system information configure installation environment.
After manually input performs cycle index, just carry out full automation process, script automatic execution instruction uname – a, ifconfig, cat/proc/meminfo, cat/proc/cpuinfo, demidecode, hostname.And by these informations, according to the information configuration installation environment collected, such as, be applicable to the translation and compiling environment of Itanium platform.
Three, linpack program is called and Lookup protocol parameter.
Linpack is installed, and the good relevant parameter of Lookup protocol (combined situation of different Ns values, Nb value, Ps value, Qs value) before runtime, automatically run linpack program afterwards and after end of run each time Reparametrization, and to rerun, move in circles.Until reach the number of run manually arranged, test procedure stops automatically.
Four, circulation performs auto-linpack shell script and directed output.
While testing results, performed process orientation is outputted in the file under specified path, shell script default setting is /home/auto-linpack/record.log, and use file that tail order real time inspection is redirected to realize simultaneously both can real-time monitor (RTM) implementation status, associated documents can be preserved again, if any exception, the load which rank the Fileview by preserving operates in is broken down.The direction that this shell script adopts text to add is redirected and is exported, therefore can all situations about performing that circulates of prewired program.
The whole process of above-mentioned method of testing mainly utilizes shell script under linux operating system, perform instruction uname – a, ifconfig, cat/proc/meminfo, cat/proc/cpuinfo, demidecode, hostname.The details such as grasping system version, IP address, internal memory, CPU, device, hostname, analyze the information of crawl, and call these information, and linpack is installed in robotization, and parameters.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.Manually the cycle index of execution is expected in input, reaches multi cycle many degree Load pressure test repeatedly.Shell script runs linpack program and Lookup protocol load pressure degree and duration automatically, and without the need to manually repeatedly arranging again, thus realize the automatic change of pressure load.In the process of all installations, execution, have except output display except performing window, the redirected setting simultaneously in shell script by all process records in specified file, can check analysis so that follow-up.The method fully achieves robotization, succinct, save time, easy to operate, save manpower, also ensure the accuracy of floating-point operation test performance simultaneously.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; claims of any a kind of server internal pressure change automatic test approach according to the invention and the those of ordinary skill of any described technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.

Claims (3)

1. a server internal pressure change automatic test approach, it is characterized in that, its specific implementation process is:
In server, arrange automatic test script and run, the cycle index of shell script is expected in artificial input, and automatic test script reads this numerical value, and to the number of times that user points out shell script to perform;
Automatic test script performs instruction, collects operating system version, internal memory, CPU, peripheral hardware, the network information, according to the information configuration installation environment collected;
Linpack program is installed, and judges current number of run;
When current number of run is less than setting number of run, arrange linpack desired parameters, this parameter comprises Ns value, Nb value, Ps value, Qs value, and runs linpack program, outputs in text by operational process and result;
Terminate this operation, number of run adds 1, then returns previous step;
When number of run is not less than setting number of run, terminate whole test process.
2. a kind of server internal pressure change automatic test approach according to claim 1, is characterized in that, described automatic test script is shell script and server end under linux operating system runs.
3. a kind of server internal pressure change automatic test approach according to claim 2, it is characterized in that, while testing results, performed process orientation is outputted in the file under specified path, and use the file that tail order real time inspection is redirected simultaneously, realize real-time monitor (RTM) implementation status, preserve associated documents, when there being abnormal generation, the load being operated in which rank by the Fileview preserved is broken down.
CN201410679346.9A 2014-11-24 2014-11-24 Automatic testing method for internal pressure change of server Pending CN104375914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410679346.9A CN104375914A (en) 2014-11-24 2014-11-24 Automatic testing method for internal pressure change of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410679346.9A CN104375914A (en) 2014-11-24 2014-11-24 Automatic testing method for internal pressure change of server

Publications (1)

Publication Number Publication Date
CN104375914A true CN104375914A (en) 2015-02-25

Family

ID=52554850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410679346.9A Pending CN104375914A (en) 2014-11-24 2014-11-24 Automatic testing method for internal pressure change of server

Country Status (1)

Country Link
CN (1) CN104375914A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045693A (en) * 2015-07-24 2015-11-11 浪潮电子信息产业股份有限公司 CPU and memory pressure change testing method based on PTU tool
CN105700982A (en) * 2016-01-19 2016-06-22 浪潮电子信息产业股份有限公司 Memory pressure and stability testing method based on high-performance linpack
CN105718365A (en) * 2016-01-19 2016-06-29 浪潮电子信息产业股份有限公司 Linpack test-based automatic evaluation method for performance of server
CN105786669A (en) * 2016-04-25 2016-07-20 浪潮电子信息产业股份有限公司 Method for testing stability of Rack server
CN106250309A (en) * 2016-07-22 2016-12-21 浪潮电子信息产业股份有限公司 A kind of memory pressure change method of testing and device
CN106445761A (en) * 2016-11-09 2017-02-22 上海斐讯数据通信技术有限公司 Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol
CN106775930A (en) * 2016-11-28 2017-05-31 中车株洲电力机车研究所有限公司 A kind of acquisition methods and device of network interface status information
CN107729193A (en) * 2017-09-14 2018-02-23 郑州云海信息技术有限公司 A kind of Linpack test Automatic Optimal collocation methods and system based on Purley platforms
CN108228406A (en) * 2018-01-09 2018-06-29 郑州云海信息技术有限公司 A kind of QAT pressure testing systems and method
CN108984358A (en) * 2018-07-18 2018-12-11 郑州云海信息技术有限公司 A kind of method and device of server CPU pressure test
CN109063022A (en) * 2018-07-12 2018-12-21 郑州云海信息技术有限公司 A kind of extracting method of server system information
CN109460334A (en) * 2018-11-13 2019-03-12 郑州云海信息技术有限公司 A kind of network interface card bit error rate automatic test device and method
CN109542777A (en) * 2018-11-07 2019-03-29 北京搜狗科技发展有限公司 A kind of method for testing pressure, device and readable medium
CN110175096A (en) * 2019-05-21 2019-08-27 苏州浪潮智能科技有限公司 A kind of GPU applied voltage test method, system, terminal and storage medium
CN113656313A (en) * 2021-08-19 2021-11-16 工银科技有限公司 Automatic test processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6530039B1 (en) * 1999-06-14 2003-03-04 Microsoft Corporation Porting engine for testing of multi-lingual software
CN102063354A (en) * 2009-11-18 2011-05-18 英业达股份有限公司 Pressure test method of server
CN103984612A (en) * 2014-05-28 2014-08-13 浪潮电子信息产业股份有限公司 Unattended pressure testing method based on HPL tool

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6530039B1 (en) * 1999-06-14 2003-03-04 Microsoft Corporation Porting engine for testing of multi-lingual software
CN102063354A (en) * 2009-11-18 2011-05-18 英业达股份有限公司 Pressure test method of server
CN103984612A (en) * 2014-05-28 2014-08-13 浪潮电子信息产业股份有限公司 Unattended pressure testing method based on HPL tool

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045693A (en) * 2015-07-24 2015-11-11 浪潮电子信息产业股份有限公司 CPU and memory pressure change testing method based on PTU tool
CN105700982A (en) * 2016-01-19 2016-06-22 浪潮电子信息产业股份有限公司 Memory pressure and stability testing method based on high-performance linpack
CN105718365A (en) * 2016-01-19 2016-06-29 浪潮电子信息产业股份有限公司 Linpack test-based automatic evaluation method for performance of server
CN105786669A (en) * 2016-04-25 2016-07-20 浪潮电子信息产业股份有限公司 Method for testing stability of Rack server
CN106250309A (en) * 2016-07-22 2016-12-21 浪潮电子信息产业股份有限公司 A kind of memory pressure change method of testing and device
CN106445761A (en) * 2016-11-09 2017-02-22 上海斐讯数据通信技术有限公司 Test method and system for regularly recording CPU and memory based on SSH (Secure Shell) protocol
CN106775930A (en) * 2016-11-28 2017-05-31 中车株洲电力机车研究所有限公司 A kind of acquisition methods and device of network interface status information
CN107729193A (en) * 2017-09-14 2018-02-23 郑州云海信息技术有限公司 A kind of Linpack test Automatic Optimal collocation methods and system based on Purley platforms
CN108228406A (en) * 2018-01-09 2018-06-29 郑州云海信息技术有限公司 A kind of QAT pressure testing systems and method
CN109063022A (en) * 2018-07-12 2018-12-21 郑州云海信息技术有限公司 A kind of extracting method of server system information
CN109063022B (en) * 2018-07-12 2022-02-18 郑州云海信息技术有限公司 Method for extracting server system information
CN108984358A (en) * 2018-07-18 2018-12-11 郑州云海信息技术有限公司 A kind of method and device of server CPU pressure test
CN109542777A (en) * 2018-11-07 2019-03-29 北京搜狗科技发展有限公司 A kind of method for testing pressure, device and readable medium
CN109542777B (en) * 2018-11-07 2022-03-04 北京搜狗科技发展有限公司 Pressure testing method and device and readable medium
CN109460334A (en) * 2018-11-13 2019-03-12 郑州云海信息技术有限公司 A kind of network interface card bit error rate automatic test device and method
CN109460334B (en) * 2018-11-13 2022-02-18 郑州云海信息技术有限公司 Automatic testing device and method for network card error rate
CN110175096A (en) * 2019-05-21 2019-08-27 苏州浪潮智能科技有限公司 A kind of GPU applied voltage test method, system, terminal and storage medium
CN113656313A (en) * 2021-08-19 2021-11-16 工银科技有限公司 Automatic test processing method and device

Similar Documents

Publication Publication Date Title
CN104375914A (en) Automatic testing method for internal pressure change of server
CN109302522B (en) Test method, test device, computer system, and computer medium
US9122671B2 (en) System and method for grammar based test planning
CN109408102B (en) Version comparison method and device, household electrical appliance and network equipment
CN104281518A (en) Terminal application test method, device, system and platform and mobile terminal
CN103019942B (en) Method and system for automatically testing applications to be tested based on android system
US20170075795A1 (en) Identifying test gaps using code execution paths
CN104980552B (en) Realize the method and system of Android mobile terminal automatic test
US8745727B2 (en) Graphical user interface tester
CN104268076A (en) Testing method suitable for automatically testing memory bandwidth of each processor platform
CN103984612A (en) Unattended pressure testing method based on HPL tool
CN112445708B (en) Pressure testing method and device and computing equipment
CN104123397A (en) Automatic test device and method for Web page
CN105204986A (en) Automated product testing method, server and mobile equipment
CN103729293A (en) GUI testing method based on UML activity diagrams
CN108304326A (en) Android intelligent terminal automatization test system and method
CN106445810B (en) A kind of test method and system of interactive software and equipment compatibility
CN105653455B (en) A kind of detection method and detection system of program bug
CN107480061B (en) Automatic regression testing method for constructing change module based on Jenkins CI
CN105224453A (en) The automatic test approach of system compatibility and device
CN103176903B (en) The test method and equipment of MapReduce distributed system program
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN112035346A (en) Automatic testing method, system and medium based on embedded DSP operating system
KR20100002564A (en) Automated software test system and method with assistive accessibility technology
CN105912467A (en) Performance test method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150225