CN106919483A - A kind of method and system of real-time display dd testing progress - Google Patents

A kind of method and system of real-time display dd testing progress Download PDF

Info

Publication number
CN106919483A
CN106919483A CN201710088063.0A CN201710088063A CN106919483A CN 106919483 A CN106919483 A CN 106919483A CN 201710088063 A CN201710088063 A CN 201710088063A CN 106919483 A CN106919483 A CN 106919483A
Authority
CN
China
Prior art keywords
real
orders
shell scripts
testing progress
shell
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
CN201710088063.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710088063.0A priority Critical patent/CN106919483A/en
Publication of CN106919483A publication Critical patent/CN106919483A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to hard disk performance testing field, a kind of method of real-time display dd testing progress is disclosed, comprised the following steps:The Shell scripts of real-time monitoring dd tests are write, the Shell scripts include defining the number of times of dd orders execution and call new window feedback test progress msg;The Shell scripts of real-time monitoring dd tests are performed, in real time display dd testing progress;Judge whether the number of times that dd orders are performed reaches the number of times that the dd orders of Shell script designs are performed, if so, then stop performing Shell scripts, if it is not, then continuing executing with Shell scripts.A kind of system of real-time display dd testing progress is also disclosed, including:Write module;Perform display module;Judge module.The present invention realizes the method and system of display dd testing progress in real time, convenient to grasp dd testing progress, for storage tester, operation maintenance personnel provide facility.

Description

A kind of method and system of real-time display dd testing progress
Technical field
The present invention relates to hard disk performance testing field, more particularly to a kind of real-time display dd testing progress method and be System.
Background technology
With internet+and the fast development of cloud service, storage device updates also increasingly sooner, storage device research and development The task of personnel is also very arduous, and the working time is of great value, the method for being badly in need of improving operating efficiency.Storage system is in test process In, the dd orders that linux system is carried are used in many cases, but the dd orders that system is carried can not in real time show test Progress, until terminating that a result could be fed back, delays the testing time of tester.
The content of the invention
A kind of weak point that the present invention develops for current needs and prior art, it is proposed that dd tests of display in real time The method and system of progress, convenient to grasp dd testing progress, the method provides facility for storage tester, operation maintenance personnel.
To achieve these goals, the present invention uses following technical scheme:
A kind of method of real-time display dd testing progress, comprises the following steps:
The Shell scripts of real-time monitoring dd tests are write, the Shell scripts include defining the number of times of dd orders execution and call New window feedback test progress msg;
The Shell scripts of real-time monitoring dd tests are performed, in real time display dd testing progress;
Judge whether the number of times that dd orders are performed reaches the number of times that the dd orders of Shell script designs are performed, if so, then stopping holding Row Shell scripts, if it is not, then continuing executing with Shell scripts.
Preferably, the real-time display dd testing progress, is included on new window output testing progress information in real time, wherein Testing progress information includes number of times, time interval and the data copy average speed that dd orders are performed.
Preferably, dd test refers to the test for carrying out hard disk performance under Linux/Unix systems with dd orders, including hard Disk reads or writes the test of performance.
Preferably, the Shell scripts include the script with order, circulation and logic judging function.
Present invention also offers a kind of system of real-time display dd testing progress, including:
Module is write, the Shell scripts for writing real-time monitoring dd tests, the Shell scripts include that defining dd orders holds Capable number of times and call new window feedback test progress msg;
Display module is performed, the Shell scripts for performing real-time monitoring dd tests show dd testing progress in real time;
Judge module, for judging whether the number of times that dd orders are performed reaches the number of times that the dd orders of Shell script designs are performed, If so, then stop performing Shell scripts, if it is not, then continuing executing with Shell scripts.
Beneficial effects of the present invention:
The present invention extends the function of system dd orders under linux system by Shell scripts, carried out with dd data reading or When writing, setting reads or writes number of times limitation, and according to certain period of time, the data volume that script meeting Real-time Feedback reads or writes, feedback is read Or number of times, the speed write, and print out on window, real-time monitoring testing progress and data, it is to store research and development under Linux to survey Examination and maintenance provide facility.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the method for real-time display dd testing progress of the present invention.
Fig. 2 is a kind of structural representation of the system of real-time display dd testing progress of the present invention.
Specific embodiment
In order to make it easy to understand, the part noun to occurring in the present invention makees explanation explained below:
Dd orders:Dd orders are the orders under Linux/Unix, and effect is one file of block copy with specified size, and is being copied The conversion specified while shellfish.
Shell scripts:Shell scripts are the programs write using the function of Shell, and this program is to use pure text Presents, the inside is write on by the grammer of some Shell and order, then uses normal representation method, pipeline order and data flow weight The function such as it is oriented to, to reach the processing intent that we want, Shell scripts additionally provide array, circulate, condition and logic The critical functions such as judgement, user directly can be write a program with Shell, without using the tradition such as similar c programming language The grammer of programming.
With reference to the accompanying drawings and examples, specific embodiment of the invention is described in further detail:
Embodiment one:
As shown in figure 1, a kind of method of real-time display dd testing progress of the invention, comprises the following steps:
Step S101:The Shell scripts of real-time monitoring dd tests are write, the Shell scripts include defining what dd orders were performed Number of times and call new window feedback test progress msg.
Step S102:The Shell scripts of real-time monitoring dd tests are performed, display dd testing progress exists in real time, in new window The testing progress information such as number of times, time interval and the data copy average speed that upper output dd in real time orders are performed.
Step S103:Judge whether the number of times that dd orders are performed reaches the number of times that the dd orders of Shell script designs are performed, If so, then stop performing Shell scripts, if it is not, then continuing executing with Shell scripts.
Embodiment two:
As shown in Fig. 2 a kind of system of real-time display dd testing progress of the invention, including:Write module 201, perform display Module 202, judge module 203, write module 201 and are sequentially connected execution display module 202 and judge module 203.
Module 201 is write, the Shell scripts for writing real-time monitoring dd tests, the Shell scripts include defining dd Order the number of times of execution and call new window feedback test progress msg;Display module 202 is performed, for performing real-time monitoring dd The Shell scripts of test, show dd testing progress in real time;Judge module 203, for judging whether the number of times that dd orders are performed reaches To the number of times that the dd orders of Shell script designs are performed, if so, then stop performing Shell scripts, if it is not, then continuing executing with Shell scripts.
Illustrated above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (5)

1. a kind of method of real-time display dd testing progress, it is characterised in that including:
The Shell scripts of real-time monitoring dd tests are write, the Shell scripts include defining the number of times of dd orders execution and call New window feedback test progress msg;
The Shell scripts of real-time monitoring dd tests are performed, in real time display dd testing progress;
Judge whether the number of times that dd orders are performed reaches the number of times that the dd orders of Shell script designs are performed, if so, then stopping holding Row Shell scripts, if it is not, then continuing executing with Shell scripts.
2. a kind of method of real-time display dd testing progress according to claim 1, it is characterised in that the real-time display Dd testing progress, is included on new window output testing progress information in real time, and wherein testing progress information is performed including dd orders Number of times, time interval and data copy average speed.
3. the method for a kind of real-time display dd testing progress according to claim 1, it is characterised in that the dd tests refer to The test of hard disk performance is carried out under Linux/Unix systems with dd orders, including hard disk reads or writes the test of performance.
4. a kind of method of real-time display dd testing progress according to claim 1, it is characterised in that the Shell pin This includes the script with order, circulation and logic judging function.
5. a kind of system of real-time display dd testing progress, it is characterised in that including:
Module is write, the Shell scripts for writing real-time monitoring dd tests, the Shell scripts include that defining dd orders holds Capable number of times and call new window feedback test progress msg;
Display module is performed, the Shell scripts for performing real-time monitoring dd tests show dd testing progress in real time;
Judge module, for judging whether the number of times that dd orders are performed reaches the number of times that the dd orders of Shell script designs are performed, If so, then stop performing Shell scripts, if it is not, then continuing executing with Shell scripts.
CN201710088063.0A 2017-02-19 2017-02-19 A kind of method and system of real-time display dd testing progress Pending CN106919483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710088063.0A CN106919483A (en) 2017-02-19 2017-02-19 A kind of method and system of real-time display dd testing progress

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710088063.0A CN106919483A (en) 2017-02-19 2017-02-19 A kind of method and system of real-time display dd testing progress

Publications (1)

Publication Number Publication Date
CN106919483A true CN106919483A (en) 2017-07-04

Family

ID=59453826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710088063.0A Pending CN106919483A (en) 2017-02-19 2017-02-19 A kind of method and system of real-time display dd testing progress

Country Status (1)

Country Link
CN (1) CN106919483A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268376A (en) * 2018-01-18 2018-07-10 郑州云海信息技术有限公司 One kind automates statistical method based on linux platform tests progress
CN108415812A (en) * 2018-02-11 2018-08-17 深圳市凯祥源科技有限公司 The processing progress of hard disk is subjected to the method for digital display and hard disk operation machine with digital display function
CN110544503A (en) * 2019-08-28 2019-12-06 深圳忆联信息系统有限公司 test method for evaluating total write-in quantity of SSD and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833493A (en) * 2010-03-24 2010-09-15 浪潮电子信息产业股份有限公司 Method for testing stability and reliability of server based on linux system
CN104360919A (en) * 2014-10-24 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically testing performance, function and stability of SSD (solid state drive)
CN104392748A (en) * 2014-10-28 2015-03-04 浪潮电子信息产业股份有限公司 Method for testing reading speed of hard disk under linux system
CN106095635A (en) * 2016-06-28 2016-11-09 浪潮电子信息产业股份有限公司 A kind of hard disk performance method of testing based on dd

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833493A (en) * 2010-03-24 2010-09-15 浪潮电子信息产业股份有限公司 Method for testing stability and reliability of server based on linux system
CN104360919A (en) * 2014-10-24 2015-02-18 浪潮电子信息产业股份有限公司 Method for automatically testing performance, function and stability of SSD (solid state drive)
CN104392748A (en) * 2014-10-28 2015-03-04 浪潮电子信息产业股份有限公司 Method for testing reading speed of hard disk under linux system
CN106095635A (en) * 2016-06-28 2016-11-09 浪潮电子信息产业股份有限公司 A kind of hard disk performance method of testing based on dd

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268376A (en) * 2018-01-18 2018-07-10 郑州云海信息技术有限公司 One kind automates statistical method based on linux platform tests progress
CN108415812A (en) * 2018-02-11 2018-08-17 深圳市凯祥源科技有限公司 The processing progress of hard disk is subjected to the method for digital display and hard disk operation machine with digital display function
CN108415812B (en) * 2018-02-11 2019-07-12 深圳市凯祥源科技有限公司 Hard disk operation machine and its digital display method with digital display function
CN110544503A (en) * 2019-08-28 2019-12-06 深圳忆联信息系统有限公司 test method for evaluating total write-in quantity of SSD and computer equipment

Similar Documents

Publication Publication Date Title
US20170337116A1 (en) Application testing on different device types
CN103425574B (en) A kind of method and device of test application program
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
CN105761563B (en) Student client, teacher's client and the server end of evaluating system are inscribed in programming
US10613964B2 (en) Conditional debugging of server-side production code
US8752023B2 (en) System, method and program product for executing a debugger
CN106919483A (en) A kind of method and system of real-time display dd testing progress
CN103984612A (en) Unattended stress testing method based on HPL tool
CN102402479B (en) For the intermediate representation structure of static analysis
CN104317712A (en) Linux-based storage server fatigue testing method
CN104866416B (en) The method and apparatus for realizing application program capacity analysis
CN106598859A (en) Appium multi-thread implementation system and method
CN103412815A (en) RMC software automated testing method mainly based on expect tool
US9792402B1 (en) Method and system for debugging a system on chip under test
CA2811617C (en) Commit sensitive tests
CN106778278A (en) A kind of malice document detection method and device
CN106649018B (en) A kind of test method of the storage system stability with extension cabinet
Hussain et al. Comparative Study of Android Native and Flutter App Development
Shamash et al. OnePetri: accelerating common bacteriophage Petri dish assays with computer vision
US8341538B1 (en) Systems and methods for reducing redundancies in quality-assurance reviews of graphical user interfaces
CN106598843B (en) A kind of software log behavior automatic identifying method based on program analysis
US8938646B2 (en) Mutations on input for test generation
US20140250251A1 (en) Automatically and transparently preserving testing state across sessions
CN105320510A (en) Method and device for automatically tracking data relation
CN107436842A (en) A kind of microcode adjustment method and veneer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20170704