CN107391327A - A kind of performance test methods of storage device, device and server - Google Patents

A kind of performance test methods of storage device, device and server Download PDF

Info

Publication number
CN107391327A
CN107391327A CN201710524717.XA CN201710524717A CN107391327A CN 107391327 A CN107391327 A CN 107391327A CN 201710524717 A CN201710524717 A CN 201710524717A CN 107391327 A CN107391327 A CN 107391327A
Authority
CN
China
Prior art keywords
usage amount
file
storage device
space usage
target logic
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
CN201710524717.XA
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 CN201710524717.XA priority Critical patent/CN107391327A/en
Publication of CN107391327A publication Critical patent/CN107391327A/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/2273Test methods

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)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present invention provides a kind of performance test methods of storage device, device and server, in being rolled up by target logic from storage device, with the first space usage amount, delete target file;After calculating delete target file, the second space usage amount of the target logic volume;According to the size of first space usage amount, second space usage amount and the file destination, the performance test results of the storage device are calculated.The change of target logic volume space usage amount, the performance for the evaluation storage device that can be quantified, so as to effectively be assessed storage device before and after the embodiment of the present invention is deleted by calculating file destination.

Description

A kind of performance test methods of storage device, device and server
Technical field
The present invention relates to storage device technical field of measurement and test, more particularly to a kind of performance test methods of storage device, Device and server.
Background technology
Storage area network(English:Storage Area Network, referred to as:SAN)There is provided and be in computer and storage Data transfer between system.Storage device refers to one or more disk unit to storing computer data, SAN network by It is responsible for the communication structure of network connection, the management level for being responsible for tissue connection, memory unit and computer system to form, so that SAN technologies ensure the security and dynamics of data transfer.
With the development of memory technology, automatic reduction techniques can be pressed in a resource pool on the basis of SAN network The physical space that distributing user uses is needed, i.e., actual physical storage space is distributed when data write, and be supplied to user Bi Zhen The bigger virtual memory space of real physical space, effectively provides space availability ratio.The application of automatic reduction techniques so that storage is empty Between reasonable management and the requirement more and more higher that uses, be to ensure storage especially from the validity that volume space reclaims in real time is simplified The key of equipment performance.Therefore, how Validity Test is carried out to space reclamation and then assesses the performance of storage device, be this area The technical problem of technical staff's urgent need to resolve.
The content of the invention
In view of the above the shortcomings that prior art, it is an object of the invention to provide a kind of performance test of storage device Method, apparatus and server are used to realize that storage device performance is assessed.
In order to achieve the above objects and other related objects, according to the first aspect of the invention, the embodiment of the present invention provides one The performance test methods of kind storage device, this method comprise the following steps:
From storage device, have in the first space usage amount target logic volume, delete target file;
After calculating delete target file, the second space usage amount of the target logic volume;
According to the size of first space usage amount, second space usage amount and the file destination, it is calculated described The performance test results of storage device.
Alternatively, this method also includes:
By target logic volume formatter, and calculate the initial usage amount of the target logic volume;
Test file collection is written to the target logic volume, the test file collection includes file destination;
The performance test results that the storage device is calculated include, and are made according to the initial usage amount, the first space Dosage, second space usage amount, the size of the size of the test file collection and the file destination, described deposit is calculated Store up the performance test results of equipment.
Alternatively, this method also includes:
After the file destination is deleted, all remaining files during target logic is rolled up are deleted;
Calculate the 3rd space usage amount of the target logic volume after deleting all remaining files;
It is described the storage device performance test result is calculated to include, according to first space usage amount, second space Usage amount, the 3rd space usage amount, the size of the size of all remaining files and the file destination, are calculated institute State the performance test results of storage device.
Alternatively, this method also includes:
Before delete target file, the of alternative document in target logic volume in addition to the file destination is calculated respectively One check value;
After delete target file, the second check value of remaining file in the target logic volume is calculated respectively;
The performance test results that the storage device is calculated include, and are made according to the first space usage amount, second space The size of dosage, the file destination, and first check value and second check value, determine the storage device The performance test results.
Alternatively, before test file collection being written into the target logic volume, this method also includes:
According to the file size value generated at random, multiple files are established, and the test file collection is formed by the multiple file.
According to the second aspect of the invention, the embodiment of the present invention also provides a kind of performance testing device of storage device, should Device includes:
Removing module, in being rolled up for target logic from storage device, with the first space usage amount, delete target file;
Computing module, after calculating delete target file, the second space usage amount of the target logic volume;
Analysis module, for the size according to first space usage amount, second space usage amount and the file destination, The results of property of the storage device is calculated.
Alternatively, the device also includes:
Initialization module, initialized for target logic to be rolled up, and calculate the initial usage amount of the target logic volume;
Writing module, rolled up for test file collection to be written into the target logic, the test file collection includes file destination;
The analysis module, for according to initial usage amount, the first space usage amount, second space usage amount, the survey The size of file set and the size of the file destination are tried, the performance test results of the storage device are calculated.
Alternatively, the device also includes:
The removing module, it is additionally operable to after the file destination is deleted, all remaining files during target logic is rolled up are deleted;
The computing module, the 3rd space usage amount of the target logic volume for being additionally operable to calculate after deleting all remaining files;
The analysis module, be additionally operable to according to first space usage amount, second space usage amount, the 3rd space usage amount, The size of all remaining files and the size of the file destination, the performance test knot of the storage device is calculated Fruit.
Alternatively, the device also includes correction verification module, for before delete target file, calculating the target logic respectively First check value of the alternative document in volume in addition to the file destination;After delete target file, the mesh is calculated respectively Mark the second check value of remaining file in logical volume;
The analysis module, for according to first space usage amount, second space usage amount, the file destination it is big It is small, and first check value and second check value, determine the performance test results of the storage device.
According to the third aspect of the invention we, the embodiment of the present invention also provides a kind of server, and the server is included at least One processor;And
The memory being connected with least one processor communication;Wherein,
The memory storage has can be by the instruction of one computing device, and the instruction is by least one processor Perform, so that at least one processor can:
In target logic volume from storage device, with the first space usage amount, delete target file;
After calculating delete target file, the second space usage amount of the target logic volume;
According to the size of first space usage amount, second space usage amount and the file destination, it is calculated described The performance test results of storage device.
As described above, performance test methods, device and the server of a kind of storage device provided in an embodiment of the present invention, tool There is following beneficial effect:By the way that in target logic volume from storage device, with the first space usage amount, delete target is literary Part;After calculating delete target file, the second space usage amount of the target logic volume;According to first space usage amount, The size of second space usage amount and the file destination, the performance test results of the storage device are calculated.This hair Bright embodiment by calculate file destination delete before and after target logic volume space usage amount change, can quantify evaluation storage The performance of equipment, so as to effectively be assessed storage device.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the performance test methods of storage device provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the performance test methods of another storage device provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the performance test methods of another storage device provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the performance test methods of another storage device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of the performance testing device of storage device provided in an embodiment of the present invention;
Fig. 6 is a kind of hardware architecture diagram of server provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the present invention, below in conjunction with of the invention real The accompanying drawing in example is applied, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described implementation Example only part of the embodiment of the present invention, rather than whole embodiments.It is common based on the embodiment in the present invention, this area The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to protection of the present invention Scope.
Fig. 1 is referred to Fig. 6.It should be noted that the diagram provided in the present embodiment only illustrates this in a schematic way The basic conception of invention, the component relevant with the present invention is only shown in illustrating then rather than according to package count during actual implement Mesh, shape and size are drawn, and kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its Assembly layout kenel may also be increasingly complex.
In SAN, LUN(English:Logical Unit Number, referred to as:LUN)It is for physical store point The unique identifier matched somebody with somebody, a LUN can correspond to a RAID(English:Redundant Arrays of Independent Disks, Chinese:Disk array)Or one piece of hard disk or a logical partition.With LUN phase It is corresponding, virtual logical unit number(English:virtual LUN)It is a kind of table of the storage region of no binding physical storage distribution Show, virtual logical unit number is used for san management in automatic simplify configuration, and virtual logical unit number also referred to as simplifies logic list Member number(English:thin LUN);Because virtual logical unit number and physical equipment or distribution are not in contact with, therefore can create big The virtual logical unit number only distributed in data access of amount, so as to optimize space utilisation.In embodiments of the present invention, may be used With by testing the logical volume for simplifying Thin LUN spaces corresponding to LUN, so as to assess the property of storage device Energy.Certainly, it is necessary to which explanation, the performance test methods of storage device provided in an embodiment of the present invention can also be applied to other The storage device of any framework, while the test of other memory spaces can also be applied to, so as to enter to the performance of storage device Row is assessed, and is not limited in embodiments of the present invention.
Embodiment one
It is a kind of schematic flow sheet of the performance test methods of storage device provided in an embodiment of the present invention referring to Fig. 1.Such as Fig. 1 Shown, this method comprises the following steps:
Step S101:In target logic volume from storage device, with the first space usage amount, delete target file.
In embodiments of the present invention, so that target logic volume is to simplify the logical volume corresponding to logic unit as an example in detail The performance test methods of storage device are described.
The target logic volume can correspond to the corresponding one or more distributed after SAN environment is completed in configuration and simplify logic Memory space corresponding to unit number.Moreover, be provided with test file collection, the test file in advance in target logic volume The spatial registration of the shared target logic volume of collection is the first space usage amount S1.Concentrate selection one or more from test file Test file is as file destination, so as to carry out follow-up testing process.
In one exemplary embodiment, the test file collection configured in the target logic volume can include 400 tests File;Under the first performance, the size of the test file can be with identical, and the size of the test file can be between 4KB is between 1MB;Under second of performance, the size of the test file can be different, and the test file can be Between 4KB to any random value between 1MB.Further, it is possible to randomly choosed out from test file concentration any number of Test file is as file destination, such as randomly chooses out 200 test files as file destination.
Step S102:After calculating delete target file, the second space usage amount of the target logic volume.
The test file collection and file destination determined according to step S101, delete target file is concentrated from test file Afterwards, after calculating delete target file, the second space usage amount of target logic volume.
In one exemplary embodiment, test file collection has 400 test files, is selected by step S101 200 file destinations, after test file concentrates delete target file, then remaining 200 test files, then can calculate residue 200 test files take the second space usage amount S2 of target logic volume.
Step S103:According to the size of first space usage amount, second space usage amount and the file destination, The performance test results of the storage device are calculated.
Pass through step S101 and step S102, it may be determined that the first space usage amount S1, second space usage amount S2, and By counting the size of file destination, the size T1 of all file destinations can be calculated.
Equally, in above-mentioned example embodiment, test file collection includes 400 test files, and the test file collection accounts for The memory space of target logic volume, in the case where 400 test files be present, the first space of target logic volume uses Measure as S1;Concentrated from test file and 200 file destinations are determined, because the size of file destination is, it is known that can then calculate really The size of fixed all file destinations is T1;File destination is concentrated from test file and deleted, i.e., is deleted from target logic volume After file destination, the second space usage amount of target logic volume is S2.If the sky of the smart LUN of target logic volume Between be released success, then the difference of the first space usage amount and second space usage amount should be equal to the size of file destination, that is, deposit In following relation:T1=S1-S2.As T1=S1-S2, then it can determine that the target logic volume space of storage device discharges successfully, The performance test results of storage device are to pass through;As T1 ≠ S1-S2, then the target logic volume space of storage device can be determined Release failure, the performance test results of storage device are failure.
From the description of above-described embodiment, a kind of performance test methods of storage device provided in an embodiment of the present invention, In being rolled up by target logic from storage device, with the first space usage amount, delete target file;Calculate delete target text After part, the second space usage amount of the target logic volume;According to first space usage amount, second space usage amount and The size of the file destination, the performance test results of the storage device are calculated.The embodiment of the present invention is by calculating mesh The change of target logic volume space usage amount before and after file is deleted is marked, the performance for the evaluation storage device that can be quantified, so as to right Storage device is effectively assessed.
Embodiment two
It is the schematic flow sheet of the performance test methods of another storage device provided in an embodiment of the present invention referring to Fig. 2.Such as figure Shown in 2, on the basis of the performance test methods of the storage device shown in Fig. 1, the embodiment of the present invention, which also show, patrols target Collect the test process after volume is initialized:
Step S201:By target logic volume formatter, and calculate the initial usage amount of the target logic volume.
In initialization procedure, formatting lines are involved in target logic, performance is rolled up to target logic to remove alternative document Influence, so as to improve measuring accuracy.After target logic volume formatter, the initial usage amount S0 of target logic volume is calculated.
Step S202:Test file collection is written to the target logic volume, the test file collection includes file destination.
The test file collection can include multiple test files generated at random, and the size of the test file is also Random arrangement.In one exemplary embodiment, 400 file size values can be randomly generated, further, according to random raw Into file size value, establish multiple files with corresponding document sizes values size, and described in being made up of the multiple file Test file collection.So, because the sizes values of test file integrated test file are random distributions, further in subsequent step The size of the file destination of middle determination also has randomness;And in storage device in use, use file size sheet Body has randomness, passes through the test file collection for setting random file to form so that the operation to target logic volume more coincide The operating process of actual storage device, further improve the precision of storage device performance test.
After the test file collection is written into target logic volume, target logic volume has the first space usage amount S1.
Step S203:In target logic volume from storage device, with the first space usage amount, delete target file.
Step S204:After calculating delete target file, the second space usage amount of the target logic volume.
Step S205:According to the initial usage amount, the first space usage amount, second space usage amount, the test text The size of the size of part collection and the file destination, the performance test results of the storage device are calculated.
Under storage device normal use situation, initial usage amount, the first space usage amount and test file collection it is big There is corresponding relation between small, initial usage amount is designated as S0, the first space usage amount is designated as the big short biography of S1, test file collection For T0, then T0=S1-S0;Also in conjunction with the description of embodiment one, the first space usage amount, second space usage amount and target Also there is corresponding relation between the size of file, second space usage amount is designated as S2, the size of file destination is designated as T1, then T1 =S1-S2.As T0=S1-S0, and when two Rule of judgment of T1=S1-S2 are set up simultaneously, the performance test knot of storage device is determined Fruit is to pass through;When any one in two Rule of judgment of T0=S1-S0 and T1=S1-S2 is invalid, storage device is determined The performance test results are failure.
From the description of above-described embodiment, the embodiment of the present invention is by increasing target logic volume initialization process, together The judgement of Shi Zengjia initialization procedures, further increase the precision of the performance test of storage device.
Embodiment three
It is the schematic flow sheet of the performance test methods of another storage device provided in an embodiment of the present invention referring to Fig. 3.Such as figure Shown in 3, on the basis of the performance test methods of the storage device shown in Fig. 1, the embodiment of the present invention also show target logic Roll up the test process after being emptied:
Step S301:In target logic volume from storage device, with the first space usage amount, delete target file.
Step S302:After calculating delete target file, the second space usage amount of the target logic volume.
Step S303:After the file destination is deleted, all remaining files during target logic is rolled up are deleted.
In one exemplary embodiment, test file, which is concentrated, includes 400 test files, and wherein file destination is 200, will File destination is after test file concentrates deletion, remaining 200 test files.Count the size of remaining 200 test files For T2.By remaining 200 test files, deleted from target logic volume.
Step S304:Calculate the 3rd space usage amount of the target logic volume after deleting all remaining files.
Calculate after deleting remaining 200 test files, the 3rd space usage amount S3 of target logic volume.
Step S305:According to first space usage amount, second space usage amount, the 3rd space usage amount, the institute There are the size of remaining file and the size of the file destination, the performance test results of the storage device are calculated.
In storage device under normal use, second space usage amount S2, the 3rd space usage amount S3 and step There is corresponding relation in S303 between the sizes values T2 of remaining all test files:T2=S2-S3;Further combined with embodiment The one Rule of judgment T1=S1-S2 determined, when T2=S2-S3 and T1=S1-S2 meets simultaneously, determine that the performance of storage device is surveyed Test result is to pass through;When any one in T2=S2-S3 and T1=S1-S2 is unsatisfactory for, the performance test of storage device is determined As a result fail.
From the description of above-described embodiment, the embodiment of the present invention, which adds, judges bar corresponding to situation test file collection Part, so as to further increase the precision of storage device performance test.
Example IV
It is the schematic flow sheet of the performance test methods of another storage device provided in an embodiment of the present invention referring to Fig. 4.Such as figure Shown in 4, on the basis of the performance test methods of the storage device shown in Fig. 1, the embodiment of the present invention also show to test text The process that part is verified:
Step S401:The first verification of the alternative document in the target logic volume in addition to the file destination is calculated respectively Value.
In one exemplary embodiment, test file, which is concentrated, includes 400 test files, 200 test files therein For file destination, the first check value of other test files in addition to file destination is calculated, that is, calculates remaining 200 tests First check value of each test file in file.In the specific implementation, first check value can be understood as each test Md5 values corresponding to file or hash check value, are not limited in embodiments of the present invention.
Step S402:In target logic volume from storage device, with the first space usage amount, delete target file.
Step S403:After calculating delete target file, the second space usage amount of the target logic volume.
Step S404:After delete target file, the second verification of remaining file in the target logic volume is calculated respectively Value.
Concentrate after deleting 200 file destinations, further calculate each in remaining 200 test files from test file Second check value of test file.
Step S405:According to first space usage amount, second space usage amount, the size of the file destination, with And first check value and second check value, determine the performance test results of the storage device.
In the case of storage device normal use, the first space usage amount S1, second space usage amount S2 and target The size T1 of file has corresponding relation:T1=S1-S2;Meanwhile other tests except file destination are calculated in step S401 First check value of file, it is corresponding consistent with the second test value of the step S404 remaining test files being calculated, specific During implementation, the file name of each test file can be concentrated different with test file, it is each in such differentiating measurement file set Test file, further in step S401, also include test file A in addition to file destination, test text has been calculated Part A the first check value, in step s 404, after delete target file, test file still be present in remaining test file A, test file A the second check value is calculated, when the first check value and consistent the second check value, determines test file A Verification passes through, and so all test files are both needed to verify successfully.As T1=S1-S2, and corresponding test file verifies into Work(, it is determined that the performance test results of storage device are to pass through;As T1=S1-S2, and corresponding test file verifies into Work(, there is one in two decision conditions when being unsatisfactory for, the performance test results for determining storage device are failure.
From the description of above-described embodiment, a kind of performance test methods of storage device provided in an embodiment of the present invention, The verification of test file is further increased as decision condition, so as to be further increased to the performance test of storage device essence Degree.
Certainly it should be noted that above-described embodiment is only an exemplary embodiment, can use in the specific implementation more The combination of individual embodiment, realize the performance test methods of storage device.Such as process described by multiple embodiment one is carried out, or Person carries out the process described by multiple example IV, or in embodiment two, embodiment three and example IV it is any number of With reference to all should belong to protection scope of the present invention, be repeated no more in inventive embodiments.
The description of embodiment of the method more than, it is apparent to those skilled in the art that the present invention can Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware, but in many cases the former It is more preferably embodiment.Based on such understanding, technical scheme substantially makes tribute to prior art in other words The part offered can be embodied in the form of software product, and the computer software product is stored in a storage medium, bag Some instructions are included to cause a computer equipment(Can be personal computer, server, or network equipment etc.)Perform The all or part of step of each embodiment methods described of the present invention.And foregoing storage medium includes:Read-only storage (ROM), random access memory(RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Corresponding with the performance test methods embodiment of storage device provided by the invention, present invention also offers one kind to deposit Store up the performance testing device of equipment.
It is a kind of structural representation of the performance testing device of storage device provided in an embodiment of the present invention referring to Fig. 5.Such as Shown in Fig. 5, the device includes:
Removing module 11, in target logic volume from storage device, with the first space usage amount, delete target to be literary Part;
Computing module 12, after calculating delete target file, the second space usage amount of the target logic volume;
Analysis module 13, for according to the big of first space usage amount, second space usage amount and the file destination It is small, the results of property of the storage device is calculated.
Under the first performance, on the basis of the device shown in Fig. 5, the device can also include:
Initialization module 14, for by target logic volume formatter, and calculate the initial usage amount of the target logic volume;
Writing module 15, rolled up for test file collection to be written into the target logic, the test file collection includes target text Part.
In embodiments of the present invention, the analysis module 13, for being used according to the initial usage amount, the first space Amount, second space usage amount, the size of the size of the test file collection and the file destination, are calculated the storage The performance test results of equipment.
Under second of performance, on the basis of the device shown in Fig. 5, the device can also include:
The removing module 11, it is additionally operable to after the file destination is deleted, all remaining files during target logic is rolled up are deleted Remove;
The computing module 12, the 3rd space usage amount of the target logic volume for being additionally operable to calculate after deleting all remaining files;
The analysis module 13, it is additionally operable to be used according to first space usage amount, second space usage amount, the 3rd space The size of amount, the size of all remaining files and the file destination, the performance that the storage device is calculated are surveyed Test result.
Under the third performance, on the basis of the device shown in Fig. 5, the device can also include:
Correction verification module 16, for before delete target file, calculate respectively in target logic volume except the file destination it First check value of outer alternative document;After delete target file, remaining file in the target logic volume is calculated respectively Second check value;
The analysis module 13, for according to first space usage amount, second space usage amount and the file destination Size, and first check value and second check value, determine the performance test results of the storage device.
Alternatively, said write module 15 can also establish multiple files according to the file size value that generates at random, and by The multiple file forms the test file collection.
It is a kind of hardware architecture diagram of server provided in an embodiment of the present invention referring to Fig. 6.As shown in fig. 6, the clothes Business device includes:
One or more processors 610 and memory 620, in Fig. 6 by taking a processor 610 as an example.
Performing the server of the performance test methods of storage device can also include:Input unit 630 and output device 640。
Processor 610, memory 620, input unit 630 and output device 640 can pass through bus or other modes Connect, in Fig. 6 exemplified by being connected by bus.
Memory 620 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storage non-volatile software journey Sequence, non-volatile computer executable program and module, such as the performance test methods of the storage device in the embodiment of the present application Corresponding programmed instruction/module(For example, removing module 11, computing module 12 and analysis module 13 shown in accompanying drawing 5).Processing Device 610 is stored in non-volatile software program, instruction and module in memory 620 by operation, so as to execute server Various function application and data processing, that is, realize the performance test methods of above method embodiment storage device.
Memory 620 can include storing program area and storage data field, wherein, storing program area can store operation system Application program required for system, at least one function;Storage data field can be stored according to the performance testing device of storage device Use created data etc..In addition, memory 620 can include high-speed random access memory, can also include non-volatile Property memory, a for example, at least disk memory, flush memory device or other non-volatile solid state memory parts.At some In embodiment, memory 620 is optional including relative to the remotely located memory of processor 610, and these remote memories can be with Pass through the performance testing device of network connection to storage device.The example of above-mentioned network includes but is not limited to internet, in enterprise Portion's net, LAN, mobile radio communication and combinations thereof.
Input unit 630 can receive the numeral or character information of input, and the performance test produced with storage device fills The key signals input that the user put is set and function control is relevant.Output device 640 may include the display devices such as display screen.
One or more of modules are stored in the memory 620, when by one or more of processors During 610 execution, the performance test methods of the storage device in above-mentioned any means embodiment are performed.
Above-mentioned server can perform the method that is provided of the embodiment of the present application, possess the corresponding functional module of execution method and Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme
Each embodiment in this specification is described by the way of progressive, and identical similar part is mutual between each embodiment Mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device or system For embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is implemented referring to method The part explanation of example.Apparatus and system embodiment described above is only schematical, wherein described as separation The unit of part description can be or may not be it is physically separate, can be as the part that unit is shown or It can not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality Border needs to select some or all of module therein to realize the purpose of this embodiment scheme.Those of ordinary skill in the art Without creative efforts, you can to understand and implement.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to Cover including for nonexcludability, so that process, method, article or equipment including a series of elements not only include those Key element, but also the other element including being not expressly set out, or also include for this process, method, article or set Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element in the process including the key element, method, article or equipment also be present.
Described above is only the embodiment of the present invention, is made skilled artisans appreciate that or realizing this hair It is bright.A variety of modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

1. a kind of performance test methods of storage device, it is characterised in that comprise the following steps:
In target logic volume from storage device, with the first space usage amount, delete target file;
After calculating delete target file, the second space usage amount of the target logic volume;
According to the size of first space usage amount, second space usage amount and the file destination, it is calculated described The performance test results of storage device.
2. the performance test methods of storage device according to claim 1, it is characterised in that also include:
By target logic volume formatter, and calculate the initial usage amount of the target logic volume;
Test file collection is written to the target logic volume, the test file collection includes file destination;
The performance test results that the storage device is calculated include, and are made according to the initial usage amount, the first space Dosage, second space usage amount, the size of the size of the test file collection and the file destination, described deposit is calculated Store up the performance test results of equipment.
3. the performance test methods of storage device according to claim 1, it is characterised in that also include:
After the file destination is deleted, all remaining files during target logic is rolled up are deleted;
Calculate the 3rd space usage amount of the target logic volume after deleting all remaining files;
The performance test results that the storage device is calculated include, according to first space usage amount, the second sky Between usage amount, the 3rd space usage amount, the size of the size of all remaining files and the file destination, be calculated The performance test results of the storage device.
4. the performance test methods of storage device according to claim 1, it is characterised in that also include:
Before delete target file, the of alternative document in target logic volume in addition to the file destination is calculated respectively One check value;
After delete target file, the second check value of remaining file in the target logic volume is calculated respectively;
The performance test results that the storage device is calculated include, according to first space usage amount, the second sky Between usage amount, the size of the file destination, and first check value and second check value, determine that the storage is set Standby the performance test results.
5. the performance test methods of storage device according to claim 2, it is characterised in that be written to test file collection The target logic volume, including:
According to the file size value generated at random, multiple files are established, and the test file collection is formed by the multiple file.
A kind of 6. performance testing device of storage device, it is characterised in that including:
Removing module, in being rolled up for target logic from storage device, with the first space usage amount, delete target file;
Computing module, after calculating delete target file, the second space usage amount of the target logic volume;
Analysis module, for the size according to first space usage amount, second space usage amount and the file destination, The results of property of the storage device is calculated.
7. the performance testing device of storage device according to claim 6, it is characterised in that also include:
Initialization module, for by target logic volume formatter, and calculate the initial usage amount of the target logic volume;
Writing module, rolled up for test file collection to be written into the target logic, the test file collection includes file destination;
The analysis module, for according to initial usage amount, the first space usage amount, second space usage amount, the survey The size of file set and the size of the file destination are tried, the performance test results of the storage device are calculated.
8. the performance testing device of storage device according to claim 6, it is characterised in that
The removing module, it is additionally operable to after the file destination is deleted, all remaining files during target logic is rolled up are deleted;
The computing module, the 3rd space usage amount of the target logic volume for being additionally operable to calculate after deleting all remaining files;
The analysis module, be additionally operable to according to first space usage amount, second space usage amount, the 3rd space usage amount, The size of all remaining files and the size of the file destination, the performance test knot of the storage device is calculated Fruit.
9. the performance testing device of storage device according to claim 6, it is characterised in that also including correction verification module, use In before delete target file, calculating first of the alternative document in target logic volume in addition to the file destination respectively Check value;After delete target file, the second check value of remaining file in the target logic volume is calculated respectively;
The analysis module, for according to first space usage amount, second space usage amount and the file destination Size, and first check value and second check value, determine the performance test results of the storage device.
10. a kind of server, it is characterised in that the server includes at least one processor;And
The memory being connected with least one processor communication;Wherein,
The memory storage has can be by the instruction of one computing device, and the instruction is by least one processor Perform, so that at least one processor can:
In target logic volume from storage device, with the first space usage amount, delete target file;
After calculating delete target file, the second space usage amount of the target logic volume;
According to the size of first space usage amount, second space usage amount and the file destination, it is calculated described The performance test results of storage device.
CN201710524717.XA 2017-06-30 2017-06-30 A kind of performance test methods of storage device, device and server Pending CN107391327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710524717.XA CN107391327A (en) 2017-06-30 2017-06-30 A kind of performance test methods of storage device, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710524717.XA CN107391327A (en) 2017-06-30 2017-06-30 A kind of performance test methods of storage device, device and server

Publications (1)

Publication Number Publication Date
CN107391327A true CN107391327A (en) 2017-11-24

Family

ID=60334833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710524717.XA Pending CN107391327A (en) 2017-06-30 2017-06-30 A kind of performance test methods of storage device, device and server

Country Status (1)

Country Link
CN (1) CN107391327A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683567A (en) * 2018-05-30 2018-10-19 郑州云海信息技术有限公司 A kind of switch port fault testing method and system based on MCS and server
CN110333975A (en) * 2019-04-18 2019-10-15 深圳市德名利电子有限公司 A kind of test method and device and equipment storing equipment
CN111240986A (en) * 2020-01-16 2020-06-05 四川九州电子科技股份有限公司 Artificial intelligence equipment detection system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7596588B2 (en) * 2006-01-06 2009-09-29 International Business Machines Corporation Managing files to be offloaded by multiple users into a common storage repository
US8271612B2 (en) * 2008-04-04 2012-09-18 International Business Machines Corporation On-demand virtual storage capacity
CN104035938A (en) * 2013-03-07 2014-09-10 阿里巴巴集团控股有限公司 Performance continuous integration data processing method and device
CN105867836A (en) * 2015-01-23 2016-08-17 中兴通讯股份有限公司 Storage management method and apparatus as well as stream media system
CN106503260A (en) * 2016-11-18 2017-03-15 北京奇虎科技有限公司 A kind of method and apparatus of the effective memory space for improving data base

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7596588B2 (en) * 2006-01-06 2009-09-29 International Business Machines Corporation Managing files to be offloaded by multiple users into a common storage repository
US8271612B2 (en) * 2008-04-04 2012-09-18 International Business Machines Corporation On-demand virtual storage capacity
CN104035938A (en) * 2013-03-07 2014-09-10 阿里巴巴集团控股有限公司 Performance continuous integration data processing method and device
CN105867836A (en) * 2015-01-23 2016-08-17 中兴通讯股份有限公司 Storage management method and apparatus as well as stream media system
CN106503260A (en) * 2016-11-18 2017-03-15 北京奇虎科技有限公司 A kind of method and apparatus of the effective memory space for improving data base

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩朴杰等: "《自动精简配置技术中空间回收方法的研究》", 《计算机与现代化》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108683567A (en) * 2018-05-30 2018-10-19 郑州云海信息技术有限公司 A kind of switch port fault testing method and system based on MCS and server
CN110333975A (en) * 2019-04-18 2019-10-15 深圳市德名利电子有限公司 A kind of test method and device and equipment storing equipment
CN111240986A (en) * 2020-01-16 2020-06-05 四川九州电子科技股份有限公司 Artificial intelligence equipment detection system and method
CN111240986B (en) * 2020-01-16 2023-04-28 四川九州电子科技股份有限公司 Artificial intelligent device detection system and method

Similar Documents

Publication Publication Date Title
CN100492316C (en) System and method for test automation
CN102576347B (en) Handle the affairs in the application based on figure
US9940221B2 (en) System and method for testing data representation for different mobile devices
CN104391787B (en) Monitoring method aiming at target method as well as thermal cutting-in method and device
CN101454751A (en) Execution of a secured environment initialization instruction on a point-to-point interconnect system
CN107391327A (en) A kind of performance test methods of storage device, device and server
CN103198122B (en) Restart the method and apparatus of memory database
CN102955861B (en) Method and device for generating index files based on backup files
CN108875061A (en) A kind of conformance test method and relevant apparatus of distributed file system
CN106649092A (en) Test script generation method, web page testing method, device and system
US20100169289A1 (en) Two Phase Commit With Grid Elements
CN107515716B (en) Billboard card management method, apparatus, computer equipment and storage medium
US20170083420A1 (en) Compare point detection in multi-threaded computing environments
CN102681838B (en) The method of safe, computer program and the device of the middle programming code performed by virtual machine
CN106201870A (en) A kind of method and device testing GPU
CN106021048A (en) Out-of-order verification method and device of disk pack
CN106484313A (en) Data message backup method, data back up method and device
JP2003196476A5 (en)
CN107402720A (en) A kind of processing method of hard disk, device and terminal
CN107480056A (en) A kind of method for testing software and device
CN109634524B (en) Data partition configuration method, device and equipment of data processing daemon
CN111124614B (en) Virtual machine migration flow control test method, device, equipment and storage medium
CN115408358B (en) Network disk online file management method and device, network disk and storage medium
CN103975309B (en) Data reconstruction method, Data Recapture Unit, memory and storage system
CN115840691A (en) Remote repair of crash processes

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: 20171124