CN107506292A - The automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage - Google Patents

The automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage Download PDF

Info

Publication number
CN107506292A
CN107506292A CN201710553114.2A CN201710553114A CN107506292A CN 107506292 A CN107506292 A CN 107506292A CN 201710553114 A CN201710553114 A CN 201710553114A CN 107506292 A CN107506292 A CN 107506292A
Authority
CN
China
Prior art keywords
ssh2
catalogue
random write
linux system
homogeneous
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.)
Granted
Application number
CN201710553114.2A
Other languages
Chinese (zh)
Other versions
CN107506292B (en
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 CN201710553114.2A priority Critical patent/CN107506292B/en
Publication of CN107506292A publication Critical patent/CN107506292A/en
Application granted granted Critical
Publication of CN107506292B publication Critical patent/CN107506292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3419Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment by assessing time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation

Landscapes

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

Abstract

The present invention relates to a kind of automated testing method of random write time delay under non-homogeneous catalogue of multistage, it is characterised in that comprises the following steps:Step S1:Randread is performed, the bibliographic structure specified before test is created first by DIRcrt examples;Step S2:Call ssh2_login to log in Linux system, and start the establishment monocular under bottom catalogue using Filecrt and record 100 64K files;Step S3:Completing to match somebody with somebody to postpone calls ssh2_logout to publish Linux system;Fileread modules are realized to the opening of specified file, reading, shutoff operation;Step S4:ReadALL catalogues realize random read operation by for circulations and are performed a plurality of times, while carry out timing to each random write using time_me modules and taken to feed back random write.

Description

The automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage
Technical field
The invention belongs to random write delay testing technical field in linux system, and in particular to a kind of multistage non-homogeneous mesh The automated testing method of the lower random write time delay of record.
Background technology
Time delay refers to a message or the time being grouped required for being sent to another end from one end of a network.It is wrapped Transmission delay, propagation delay, processing delay, queuing delay are included.It is a reliable performance indications for storage system, Show as the speed of user file operation response, and most intuitively performance indications in Consumer's Experience.
Random write typical case includes system level operation, such as start, system operation;Database behaviour in business transaction Make, the increasing of transaction, delete, change.The operation of random write in almost all of user's specification I/O model all be present.
So the delay performance of random write is an important test index in storage is tested, in general pressure test work Although also there is the test item of random write time delay in tool, because the test structure of its underaction causes that uniform mesh can only be tested The time delay of the lower random write of record.This is the deficiencies in the prior art part.
Therefore, for drawbacks described above of the prior art, there is provided random write time delay under a kind of multistage non-homogeneous catalogue of design Automated testing method.To solve above-mentioned technical problem, it is necessary.
The content of the invention
It is an object of the present invention in view of the above-mentioned drawbacks of the prior art, provide design a kind of multistage non-homogeneous mesh The automated testing method of the lower random write time delay of record, to solve above-mentioned technical problem.
To achieve the above object, the present invention provides following technical scheme:
The automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage, it is characterised in that comprise the following steps:
Step S1:Randread is performed, the bibliographic structure specified before test is created first by DIRcrt examples;
Step S2:Call ssh2_login to log in Linux system, and start the establishment list under bottom catalogue using Filecrt 100 64K files of catalogue;
Step S3:Completing to match somebody with somebody to postpone calls ssh2_logout to publish Linux system;Fileread modules are realized to specified file Opening, reading, shutoff operation;
Step S4:ReadALL catalogues realize random read operation by for circulations and are performed a plurality of times, while utilize time_me modules Timing is carried out to each random write to take to feed back random write.
Preferably, the step S1 comprises the following steps:
Step S11:Randread calls ssh2_login to log in Linux system first, then by ssh2_cmd to linux systems The lower send configuration instruction of system, the establishment of 1x2x3x4 bibliographic structure is realized by multilayer for circulations.
Preferably, the step S2 comprises the following steps:
Step S21:Filecrt calls ssh2_login to log in Linux system first, then by ssh2_cmd to linux systems The lower send configuration of system instructs, and seq instructs 100 circulate operations for realizing DD instructions in Linux system.
Preferably, the step S3 comprises the following steps:
Step S31:Fileread calls ssh2_login to log in Linux system first, then calls python OPEN to realize Reading to file is simultaneously printed, and close operations are performed after the completion of reading, ssh2_logout is called after completing reading process Publish Linux system.
The beneficial effects of the present invention are realize in linux system the automatic of random write time delay under multistage non-homogeneous catalogue Change test, the linking of all each configuration process is accurate.The inheritance feature of Python is made full use of, is created first related Lib storehouses, realize the associative operation to linux system, by way of funcall, called in whole configuration process Functional module in sshLib, finally realize the automatic test of random write time delay under multistage non-homogeneous catalogue in linux system.
In addition, design principle of the present invention is reliable, there is very extensive application prospect.
As can be seen here, the present invention compared with prior art, has prominent substantive distinguishing features and significantly improved, it is implemented Beneficial effect be also obvious.
Brief description of the drawings
Fig. 1 is example bibliographic structure in the present invention.
Fig. 2 is Python automatic test lib storehouses invoked procedure figure.
Embodiment
Below in conjunction with the accompanying drawings and the present invention will be described in detail by specific embodiment, and following examples are to the present invention Explanation, and the invention is not limited in implementation below.
As illustrated in fig. 1 and 2, under a kind of non-homogeneous catalogue of multistage provided by the invention random write time delay automatic test side Method, it is characterised in that comprise the following steps:
Step S1:Randread is performed, the bibliographic structure specified before test is created first by DIRcrt examples;
Step S2:Call ssh2_login to log in Linux system, and start the establishment list under bottom catalogue using Filecrt 100 64K files of catalogue;
Step S3:Completing to match somebody with somebody to postpone calls ssh2_logout to publish Linux system;Fileread modules are realized to specified file Opening, reading, shutoff operation;
Step S4:ReadALL catalogues realize random read operation by for circulations and are performed a plurality of times, while utilize time_me modules Timing is carried out to each random write to take to feed back random write.
In the present embodiment, the step S1 comprises the following steps:
Step S11:Randread calls ssh2_login to log in Linux system first, then by ssh2_cmd to linux systems The lower send configuration instruction of system, the establishment of 1x2x3x4 bibliographic structure is realized by multilayer for circulations.
The step S2 comprises the following steps:
Step S21:Filecrt calls ssh2_login to log in Linux system first, then by ssh2_cmd to linux systems The lower send configuration of system instructs, and seq instructs 100 circulate operations for realizing DD instructions in Linux system.
The step S3 comprises the following steps:
Step S31:Fileread calls ssh2_login to log in Linux system first, then calls python OPEN to realize Reading to file is simultaneously printed, and close operations are performed after the completion of reading, ssh2_logout is called after completing reading process Publish Linux system.
The specific of each function act as in the technical program:
Time_me functions, the main function of the function are to carry out timing and after the completion of operation to the whole process of each operation Feedback is time-consuming.
DIRcrt functions, the main function of the function are that the bibliographic structure specified is created under Linux system.Pass through calling Class realizes the establishment for the catalogue result that user specifies in lib storehouses.
Filecrt functions, the main function of the function are to create to specify size under specified catalogue under Linux system With the file of quantity.By the establishment for calling the file of the specified size and number of class realization in lib storehouses.
Fileread functions, the function provide the operation for reading specified file, function are carried by python, open One file, output file content, is then shut off file.
ReadALL functions, the function realize the random read operation of predetermined number of times.By random object implementatio8s to mesh The random combine in path is recorded, random read operation is realized then in conjunction with Fileread functions.
Ssh2_login functions, the main function of the function are the Linux systems specified by ssh service logins.According to The request of far call carries out this calling and returns to implementing result.
Ssh2_sendcmd functions, the main function of the function are the Linux systems specified by ssh service logins.Root This calling, which is carried out, according to the request of far call returns to implementing result.
Ssh2_sendcmd_with_interaction functions, the main function of the function are referred to by ssh service logins Fixed Linux system.This calling is carried out according to the request of far call and returns to implementing result.
Ssh2_logout functions, the main function of the function are to publish the Linux system specified by ssh services.According to The request of far call carries out this calling and returns to implementing result.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this area What technical staff can think does not have creative change, and some improvement made without departing from the principles of the present invention and Retouching, should all be within the scope of the present invention.

Claims (4)

1. the automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage, it is characterised in that comprise the following steps:
Step S1:Randread is performed, the bibliographic structure specified before test is created first by DIRcrt examples;
Step S2:Call ssh2_login to log in Linux system, and start the establishment list under bottom catalogue using Filecrt 100 64K files of catalogue;
Step S3:Completing to match somebody with somebody to postpone calls ssh2_logout to publish Linux system;Fileread modules are realized to specified file Opening, reading, shutoff operation;
Step S4:ReadALL catalogues realize random read operation by for circulations and are performed a plurality of times, while utilize time_me modules Timing is carried out to each random write to take to feed back random write.
2. the automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage according to claim 1, it is special Sign is that the step S1 comprises the following steps:
Step S11:Randread calls ssh2_login to log in Linux system first, then by ssh2_cmd to linux systems The lower send configuration instruction of system, the establishment of 1x2x3x4 bibliographic structure is realized by multilayer for circulations.
3. the automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage according to claim 1 or 2, its It is characterised by, the step S2 comprises the following steps:
Step S21:Filecrt calls ssh2_login to log in Linux system first, then by ssh2_cmd to linux systems The lower send configuration of system instructs, and seq instructs 100 circulate operations for realizing DD instructions in Linux system.
4. the automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage according to claim 3, it is special Sign is that the step S3 comprises the following steps:
Step S31:Fileread calls ssh2_login to log in Linux system first, then calls python OPEN to realize Reading to file is simultaneously printed, and close operations are performed after the completion of reading, ssh2_logout is called after completing reading process Publish Linux system.
CN201710553114.2A 2017-07-07 2017-07-07 Automatic test method for random read time delay under multilevel non-uniform directory Active CN107506292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710553114.2A CN107506292B (en) 2017-07-07 2017-07-07 Automatic test method for random read time delay under multilevel non-uniform directory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710553114.2A CN107506292B (en) 2017-07-07 2017-07-07 Automatic test method for random read time delay under multilevel non-uniform directory

Publications (2)

Publication Number Publication Date
CN107506292A true CN107506292A (en) 2017-12-22
CN107506292B CN107506292B (en) 2021-04-13

Family

ID=60679905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710553114.2A Active CN107506292B (en) 2017-07-07 2017-07-07 Automatic test method for random read time delay under multilevel non-uniform directory

Country Status (1)

Country Link
CN (1) CN107506292B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920381A (en) * 2018-07-27 2018-11-30 广东浪潮大数据研究有限公司 A kind of method, system and the equipment of the performance test of NFS operation word
CN109408390A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of BMC login user stability test method, apparatus, terminal and storage medium
US11726904B2 (en) 2021-09-23 2023-08-15 International Business Machines Corporation Controlled input/output in progress state during testcase processing

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850498A (en) * 2015-06-05 2015-08-19 上海斐讯数据通信技术有限公司 Filling information testing method and filling information testing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850498A (en) * 2015-06-05 2015-08-19 上海斐讯数据通信技术有限公司 Filling information testing method and filling information testing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LIAN_KEKE: "《CNSD》", 13 May 2017 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920381A (en) * 2018-07-27 2018-11-30 广东浪潮大数据研究有限公司 A kind of method, system and the equipment of the performance test of NFS operation word
CN109408390A (en) * 2018-11-02 2019-03-01 郑州云海信息技术有限公司 A kind of BMC login user stability test method, apparatus, terminal and storage medium
US11726904B2 (en) 2021-09-23 2023-08-15 International Business Machines Corporation Controlled input/output in progress state during testcase processing
US12001328B2 (en) 2021-09-23 2024-06-04 International Business Machines Corporation Controlled input/output in progress state during testcase processing

Also Published As

Publication number Publication date
CN107506292B (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN108536761B (en) Report data query method and server
US9122716B1 (en) Database upgrade management
CN110941621A (en) Method and device for synchronizing databases between internal network and external network
CN104036025A (en) Distribution-base mass log collection system
CN106534242B (en) The processing method and device requested in a kind of distributed system
US20110251931A1 (en) Accurate Method of Account Checking in the Situation of 7*24 Hours Transactions Between Telecom Multiple Systems
CN107506292A (en) The automated testing method of random write time delay under a kind of non-homogeneous catalogue of multistage
CN111429241A (en) Accounting processing method and device
CN105791178B (en) Message assemble method and device
CN104699723A (en) Data exchange adapter and system and method for synchronizing data among heterogeneous systems
CN103955510A (en) Massive electricity marketing data integration method uploaded by ETL cloud platform
CN112948492A (en) Data processing system, method and device, electronic equipment and storage medium
CN103049367A (en) Automatic testing method for software
CN106991177A (en) The nondestructive collection method and its system of real-time logs under a kind of distributed environment
CN104516809A (en) Automated testing system and method
CN104636242A (en) Method for automatically deleting repeated content in system logs on basis of Linux operating system
CN111163149B (en) Intelligent contract platform method based on block chain
CN106250429A (en) Data extraction method based on sqoop
CN109710263A (en) Compilation Method, device, storage medium and the electronic equipment of code
CN107807869A (en) A kind of test system and method for testing
CN103678314B (en) Mass data processing system, the device and method extracted based on correlation rule
CN115146000A (en) Database data synchronization method and device, electronic equipment and storage medium
CN110727700A (en) Method and system for integrating multi-source streaming data into transaction type streaming data
CN114297290A (en) Electric power marketing data sharing application platform
CN107704362A (en) A kind of method and device based on Ambari monitoring big data components

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
GR01 Patent grant
GR01 Patent grant