CN108777158A - Test the method, apparatus and computer equipment of solid state disk Trim performances - Google Patents

Test the method, apparatus and computer equipment of solid state disk Trim performances Download PDF

Info

Publication number
CN108777158A
CN108777158A CN201810570199.XA CN201810570199A CN108777158A CN 108777158 A CN108777158 A CN 108777158A CN 201810570199 A CN201810570199 A CN 201810570199A CN 108777158 A CN108777158 A CN 108777158A
Authority
CN
China
Prior art keywords
trim
data
ssd
data space
operations
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
CN201810570199.XA
Other languages
Chinese (zh)
Other versions
CN108777158B (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.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System 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 Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN201810570199.XA priority Critical patent/CN108777158B/en
Publication of CN108777158A publication Critical patent/CN108777158A/en
Application granted granted Critical
Publication of CN108777158B publication Critical patent/CN108777158B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor

Abstract

The present invention relates to the method, apparatus and computer equipment of test solid state disk Trim performances, this method includes setting SSD connection status, obtains automatic test script;According to the corresponding test module of the parameter selection of SSD;According to parameter, Trim performance tests are carried out according to automatic test script content.The connection that the present invention passes through simplified SSD, a kind of general automatic test script is designed by the DriverMaster testing tools being arranged in server, carry out Trim performance tests, it obtains blank panel respectively and fills out the performance of more kinds of size datas of single Trim and continuous T rim in the case of disk latter two, solid state disk Trim performance tests can be efficiently accomplished, realization effectively improves Trim performance tests coverage rate and efficiency, reduces the cost of test.

Description

Test the method, apparatus and computer equipment of solid state disk Trim performances
Technical field
The present invention relates to solid state disks, more specifically refer to the method, apparatus and meter for testing solid state disk Trim performances Calculate machine equipment.
Background technology
In the research and development of solid state disk and in use, the very important characteristics of Trim.Trim is the life for being individually for SSD designs It enables, starts to have formulated the command standard of Trim, i.e. Data Set Management in ACS2 (ATA command set) standard Command.Windows7 started to support the Trim functions of SSD comprehensively in October, 2009, and Trim just starts well-known.Trim The purposes of order is to tell SSD:The data in certain section of space LBA are no longer useful to me, you can voluntarily be handled, it may be preferable to straight It connects and wipes out.Trim orders keep SSD garbage reclamations more efficient, and write performance and service life are also accordingly improved.But due to Trim orders need to carry out the operations such as a series of table update and possible garbage reclamation inside solid state disk, it is possible that It takes relatively long, the time of such as hard disk quick formatting operation is caused to be even up to several minutes.
Trim orders are defined in ACS but are not specified by the requirement of performance, and the existing testing standard of industry and method are Microsoft WHQL logo certifications provide that the Trim order deadlines under test item are less than 500ms, and test item is to fill out Trim 8 after disk The deadline of~65535*60 sector data, general logo testing need to be sent to third party Microsoft logo accredited laboratory expense With costliness;Or server and LAN as shown in Figure 1 are built, environment is complex and high cost.
Therefore, it is necessary to design a kind of new test method, realization effectively improves Trim performance tests coverage rate and efficiency, Reduce the cost of test.
Invention content
It is an object of the invention to overcome the deficiencies of existing technologies, method, the dress of test solid state disk Trim performances are provided It sets and computer equipment.
To achieve the above object, the present invention uses following technical scheme:The method for testing solid state disk Trim performances, it is described Method includes:
SSD connection status is set, automatic test script is obtained;
According to the corresponding test module of the parameter selection of SSD;
According to parameter, Trim performance tests are carried out according to automatic test script content.
Its further technical solution is:The step of SSD connection status is set, automatic test script is obtained, including it is following Specific steps:
SSD is connect with the server for being equipped with DriverMaster test softwares;
Obtain the automatic test script on server.
Its further technical solution is:According to parameter, Trim performance tests are carried out according to automatic test script content Step, including step in detail below:
Judge whether SSD supports Trim;
If so, obtaining the maximum size for supporting Trim data;
Wipe SSD;
In the data space of several non-overlapping copies of the overall user area sequential selections of SSD, the size of data space is obtained;
Judge whether the size of data space supports the size of Trim data and be not more than the overall capacity of SSD no more than maximum Divided by the number of data space;
If so, being spaced different time according to per between the operations of Trim twice, Trim is carried out for the data space of selection Operation, obtains different intervals and SSD disks are in the average value of all Trim orders deadlines under different conditions;
The size of data space is multiplied by setting value, returns to the erasing SSD steps;
If it is not, then judging the size of the data space divided by whether 8 be equal to the overall capacity of SSD divided by data space Number;
If the size of the data space divided by 8 not equal to the overall capacity of SSD divided by data space number, statistics is complete The time of progress Trim operations in the state of data is not written for disk;
The time of the progress Trim operations in the state of data is written in statistics totally;
If the size of the data space divided by 8 be equal to the overall capacity of SSD divided by data space number, enter and terminate Step.
Its further technical solution is:It is spaced different time according to per between the operations of Trim twice, for the data of selection Space carries out Trim operations, obtains different intervals and SSD disks are in all Trim orders deadlines under different conditions Average value the step of, including step in detail below:
It is spaced setting time according to per between the operations of Trim twice, Trim operations is carried out for the data space of selection, obtains Take the average value of all Trim orders deadlines;
It is spaced 0s according to per between the operations of Trim twice, Trim operations is carried out for the data space of selection, obtains all The average value of Trim order deadlines;
Random data is written to the data space of selection, setting time is spaced according to per between the operations of Trim twice, for The data space of selection carries out Trim operations, obtains the average value of all Trim orders deadlines;
Random data is written to the data space of selection, 0s is spaced according to per between the operations of Trim twice, for selection Data space carries out Trim operations, obtains the average value of all Trim orders deadlines.
Its further technical solution is:According to parameter, Trim performance tests are carried out according to automatic test script content After step, further include:
It exports the time for carrying out Trim operations in the state that data are not written totally and is written in the state of data totally Progress Trim operations time, form test result, write-in is in daily record.
Its further technical solution is:Time for carrying out Trim operations and complete is not written in the state of data totally for output The time of the progress Trim operations in the state of data is written in disk, forms test result, after write-in to the step in daily record, also Including:
Test result is shown by diagrammatic form.
The present invention also provides the devices of test solid state disk Trim performances, including connection setting unit, test selection list Member and performance test unit;
The connection setting unit obtains automatic test script for SSD connection status to be arranged;
The test selecting unit, for the corresponding test module of parameter selection according to SSD;
The performance test unit, for according to parameter, Trim performance tests to be carried out according to automatic test script content.
Its further technical solution is:The performance test unit includes supporting judgment module, data acquisition module, erasing Module, spatial choice module, space size judgment module, time average acquisition module, spatial processing module, capacity judge mould Block, the first statistical module and the second statistical module;
The support judgment module, for judging whether SSD supports Trim;
The data acquisition module is used for if so, obtaining the maximum size for supporting Trim data;
The erasing module, for wiping SSD;
The spatial choice module, for the data sky in several non-overlapping copies of the overall user area sequential selections of SSD Between, obtain the size of data space;
The space size judgment module, for judging the size of data space whether no more than maximum support Trim data Size and number no more than the overall capacity of SSD divided by data space;
The time average acquisition module, for if so, be spaced different time between operation according to per Trim twice, Trim operations are carried out for the data space of selection, different intervals is obtained and SSD disks is in all under different conditions The average value of Trim order deadlines;
The spatial processing module, for the size of data space to be multiplied by setting value;
The capacity determination module, for if it is not, then judge the data space size divided by 8 whether be equal to SSD it is complete The number of disk capacity divided by data space;
The time for carrying out Trim operations is not written in the state of data for counting totally for first statistical module;
Second statistical module, the time for counting the progress Trim operations in the state that data are written totally.
Its further technical solution is:The time average acquisition module includes the first acquisition submodule, the second acquisition Submodule, third acquisition submodule and the 4th acquisition submodule;
First acquisition submodule, for being spaced setting time according to per between the operations of Trim twice, for selection Data space carries out Trim operations, obtains the average value of all Trim orders deadlines;
Second acquisition submodule, it is empty for the data of selection for being spaced 0s according to per between the operations of Trim twice Between carry out Trim operations, obtain the average value of all Trim orders deadlines;
The third acquisition submodule is written random data for the data space to selection, is grasped according to per Trim twice It is spaced setting time between work, carries out Trim operations for the data space of selection, obtains all Trim orders deadlines Average value;
4th acquisition submodule is written random data for the data space to selection, is grasped according to per Trim twice It is spaced 0s between work, carries out Trim operations for the data space of selection, obtains the average value of all Trim orders deadlines.
The present invention also provides a kind of computer equipment, including memory, processor and it is stored on the memory simultaneously The computer program that can be run on the processor, the processor realize above-mentioned test when executing the computer program The method of solid state disk Trim performances.
Compared with the prior art, the invention has the advantages that:The present invention for above-mentioned test solid state disk Trim The method of energy is a kind of general by the DriverMaster testing tools design being arranged in server by simplifying the connection of SSD Automatic test script, carry out Trim performance tests, obtain blank panel and fill out single Trim and company in the case of disk latter two respectively The performance of more kinds of size datas of continuous Trim, can efficiently accomplish solid state disk Trim performance tests, and realization effectively improves Trim performances Test coverage and efficiency reduce the cost of test.
The invention will be further described in the following with reference to the drawings and specific embodiments.
Description of the drawings
Fig. 1 is the server of the prior art and the schematic block diagram that LAN is built;
Fig. 2 is the schematic flow diagram of the method for the test solid state disk Trim performances that one specific embodiment of the application provides;
Fig. 3 is the schematic flow diagram of the sub-step of Fig. 2;
Fig. 4 is the schematic flow diagram of the sub-step of Fig. 2;
Fig. 5 is the schematic flow diagram for the sub-step that Fig. 4 is;
Fig. 6 is the schematic block diagram that the server that one specific embodiment of the application provides and LAN are built;
Fig. 7 is the schematic block diagram of the device for the test solid state disk Trim performances that one specific embodiment of the application provides;
The schematic block diagram for the connection setting unit that Fig. 8 is Fig. 7;
Fig. 9 is the schematic block diagram of the performance test unit of Fig. 7;
Figure 10 is the schematic block diagram of the time average acquisition module of Fig. 9;
Figure 11 is a kind of schematic block diagram for computer equipment that one embodiment of the application provides.
Specific implementation mode
In order to more fully understand the present invention technology contents, with reference to specific embodiment to technical scheme of the present invention into One step introduction and explanation, but not limited to this.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
The specific embodiment as shown in Fig. 2~11, the method for test solid state disk Trim performances provided in this embodiment, dress It sets and computer equipment, can be used in the test process of SSD, realization effectively improves Trim performance tests coverage rate and effect Rate reduces the cost of test.
Referring to Fig. 2, Fig. 2 is showing for the method for the test solid state disk Trim performances that one specific embodiment of the application provides Meaning flow chart;As shown in Fig. 2, the method for test solid state disk Trim performances, including step S101~S103:
S101, setting SSD connection status, obtain automatic test script.
In the present embodiment, specifically according to the ends the PC-power supply and SATA- for being equipped with DriverMaster test softwares SSD connect with the ends PC for being equipped with DriverMaster test softwares, is surveyed by DriverMaster by the connection type of SSD A kind of general automatic test script of tool design is tried, blank panel can be tested and fills out single Trim and company in the case of disk latter two The performance of more kinds of size datas of continuous Trim.Only need the PC operation automatic test scripts of an installation DriverMaster softwares , test environment is referring to Fig. 5, plenty of time and expense can be saved.
S102, the corresponding test module of parameter selection according to SSD.
In the present embodiment, Trim performance test modules are specifically selected, Trim numbers are specifically supported according to the maximum of SSD According to size parameter and amount of capacity, select the size of Trim operations and the maximum size parameter for supporting Trim data of SSD And the test pattern that amount of capacity meets.
S103, according to parameter, carry out Trim performance tests according to automatic test script content.
In the present embodiment, specifically according to the size of the overall capacity of SSD, according to the content of automatic test script content Automatic test solid state disk blank panel and more kinds of size data performances of single Trim and continuous T rim in the case of disk latter two are filled out, with Solid state disk Trim performance tests are completed, Trim performance test coverage rates is effectively improved, ensures to carry while relatively low Environmental costs High test scope and efficiency.
Specifically, referring to Fig. 3, S101, setting SSD connection status, the step of obtaining automatic test script, including step Rapid S101~S1012:
S1011, SSD is connect with the server for being equipped with DriverMaster test softwares;
Automatic test script on S1012, acquisition server.
Specifically according to the ends the PC-power supply and the connection side of SATA-SSD for being equipped with DriverMaster test softwares SSD connect with the ends PC for being equipped with DriverMaster test softwares, can be designed by DriverMaster test softwares by formula A kind of general automatic test script carries out the test of Trim performances using automatic test script.
In addition, referring to Fig. 4, S103, according to parameter, carry out Trim performance tests according to automatic test script content Step, including step S103a~S103j:
S103a, judge whether SSD supports Trim.
Specifically check whether SSD supports Trim according to 169 word 0 in hard disk identification information, if 169 word 0 is 1, then SSD supports Trim, can continue to test, if 169 word 0 is that 0, SSD does not support Trim for 1, need to exit test;This reality Apply in example by support Trim's and capacity for the SSD of 800GB for.
S103b, if so, obtaining the maximum size for supporting Trim data.
Specifically, according to the size of data of the maximum Trim supported of 105 words inquiry in hard disk identification information, in the present embodiment For in the industry most common 8.Maximum support single Trim size of data corresponding at this time is 65535*8*512/8*512 words Section;And need to set Trim size of data i.e. variable size to 512 bytes (1 sector), proceed by following test.
S103c, erasing SSD.
Erasing order safe to use wipes SSD, and it is totally no mapping status to ensure and user area medium is erasing State in order to automatic test solid state disk blank panel and fills out more kinds of sizes of single Trim and continuous T rim in the case of disk latter two Data performance.
S103d, in the data space of several non-overlapping copies of the overall user area sequential selections of SSD, obtain data space Size.
In the present embodiment, specifically in the data space of overall 100 non-overlapping copies of user area sequential selection, each Data space size is equal to variable size, and the number of data space is then 100, if selecting the data space of non-overlapping copies for X, The number of the data space is then X.
S103e, judge the size of data space whether no more than the maximum size of Trim data and complete no more than SSD supported The number of disk capacity divided by data space;
S103f, if so, be spaced different time between operation according to per Trim twice, for selection data space into Row Trim operations, obtain being averaged for all Trim orders deadlines that different intervals and SSD disks are under different conditions Value.
In the present embodiment, under by the way that data are written and data mode is not written in SSD disks, when according to 5s or without interval Between rule, Trim operations are carried out to the data space of selection, you can get blank panel and fill out single in the case of disk latter two The performance of more kinds of size datas of Trim and continuous T rim, that is, enumerate the Trim performances under four concrete conditions.
S103g, the size of data space is multiplied by setting value, returns to the S103c steps.
In the present embodiment, variable size every time multiplies variable size in the range of supporting Trim sizes less than maximum With 8 times (being followed successively by 8,64,512,4096,32768,262144,2097152 sectors) and equal to being recycled back into after overall size S103c and the step of execute after S103c steps, obtains the average completion of the Trim different sizes data command under four kinds of situations Time, it is the Trim performances under the situation that variable size, which carries out Trim order average completion times,.
S103h, if it is not, then judging the size of the data space divided by 8 whether to be equal to the overall capacity of SSD divided by data empty Between number;
If S103i, the size of the data space divided by 8 are not equal to the number of the overall capacity of SSD divided by data space, The time of progress Trim operations in the state of data is not written totally for statistics;
The time of the progress Trim operations in the state of data is written in S103j, statistics totally.
If the size of the data space divided by 8 be equal to the overall capacity of SSD divided by data space number, enter and terminate Step.
The time that above-mentioned S103h~S103j is specifically asked particularly directed to four kinds sums, to form test result. It is exactly overall capacity that the space of 100 non-overlapping copies, which adds up, for the last time, is equal to the time for also having tested out overall Trim, As long as be multiplied by the number of data space the average Trim times of last time.
In addition, referring to Fig. 5, S103f, according to per Trim twice different time is spaced between operation, for the number of selection Trim operations are carried out according to space, when acquisition different intervals and SSD disks are in the completion of all Trim orders under different conditions Between average value the step of, including step S103f1~S103f4:
S103f1, it is spaced setting time according to per between the operations of Trim twice, Trim is carried out for the data space of selection Operation, obtains the average value of all Trim orders deadlines.
Specifically, in the present embodiment, in the data space of overall 100 non-overlapping copies of user area sequential selection of SSD, Each data space size is equal to variable size, carries out Trim operations to this 100 data spaces successively, Trim orders twice it Between be spaced 5 seconds, count the average value of this 100 Trim order deadlines, as correspondence (do not have within 5 seconds without mapping relations interval Thering is single under the blank panel being written to issue Trim orders) Trim size of data is equal to the average used time of variable size under situation.
S103f2, it is spaced 0s according to per between the operations of Trim twice, carries out Trim operations for the data space of selection, obtains Take the average value of all Trim orders deadlines.
Specifically, in the data space of overall 100 non-overlapping copies of user area sequential selection, each data space size Equal to variable size, Trim operations are carried out to this 100 data spaces successively, is not spaced, unites between every Trim orders twice The average value of this 100 Trim order deadlines is counted, is as corresponded to without mapping relations without interval (under the blank panel not being written Continuously issuing Trim orders) Trim size of data is equal to the average used time of variable size under situation.
S103f3, random data is written to the data space of selection, when according to per being spaced setting between the operations of Trim twice Between, Trim operations are carried out for the data space of selection, obtain the average value of all Trim orders deadlines.
Specifically, in the data space of overall 100 non-overlapping copies of user area sequential selection, each data space size Equal to variable size, write-in random data is carried out to this 100 data spaces first, then successively to this 100 data spaces Trim operations are carried out, is spaced 5 seconds between Trim orders twice, counts the average value of this 100 Trim order deadlines, as It is corresponding with the average used time that Trim data under 5 seconds (single issues Trim after the write-in) situations in mapping relations interval are equal to size.
S103f4, random data is written to the data space of selection, 0s is spaced according to per between the operations of Trim twice, for The data space of selection carries out Trim operations, obtains the average value of all Trim orders deadlines.
Specifically, in the data space of overall 100 non-overlapping copies of user area sequential selection, each data space size Equal to variable size, write-in random data is carried out to this 100 data spaces first, then successively continuously to this 100 data Space carries out Trim operations, per without interval, counting being averaged for this 100 Trim order deadlines between Trim orders twice Value is as corresponding with the average use that mapping relations are equal to size without Trim data under interval (continuously issuing Trim after write-in) situation When.
Above-mentioned setting time is that 5s can also be 6s etc. in other embodiments in the present embodiment.
Above-mentioned S103f1~S103f4 obtains in the case of blank panel that continuous T rim is more in the case of single Trim, blank panel respectively The performance of kind of size data and the performance for filling out more kinds of size datas of continuous T rim in the case of single Trim, blank panel after disk, in total The Trim performances of four kinds of concrete conditions, effectively improve Trim performance tests coverage rate and efficiency.
In addition, the method for above-mentioned test solid state disk Trim performances further includes step S104~S105, specifically, S103, further include after the step of the progress Trim performance tests of automatic test script content according to parameter:
S104, output carry out the time of Trim operations and the shape of overall write-in data in the state that data are not written totally The time of progress Trim operations under state, test result is formed, in write-in to daily record.
S105, test result is shown by diagrammatic form;
Test result is exported, is shown in graphical form, it can be in order to comparing.
For the method for above-mentioned test solid state disk Trim performances, by simplifying the connection of SSD, by being set in server The DriverMaster testing tools set design a kind of general automatic test script, carry out Trim performance tests, obtain respectively It takes blank panel and fills out the performance of more kinds of size datas of single Trim and continuous T rim in the case of disk latter two, it is hard solid-state to be efficiently accomplished Disk Trim performance tests, realization effectively improve Trim performance tests coverage rate and efficiency, reduce the cost of test.
Referring to Fig. 7, Fig. 7 is showing for the device for the test solid state disk Trim performances that one specific embodiment of the application provides Meaning property block diagram;As shown in fig. 7, the device of test solid state disk Trim performances, including connection setting unit 1, test selecting unit 2 And performance test unit 3.
Setting unit 1 is connected, for SSD connection status to be arranged, obtains automatic test script.
Selecting unit 2 is tested, for the corresponding test module of parameter selection according to SSD.
Performance test unit 3, for according to parameter, Trim performance tests to be carried out according to automatic test script content.
Specifically, as shown in figure 8, connection setting unit 1 includes link block 11 and script acquisition module 12.
Link block 11, for SSD to be connect with the server for being equipped with DriverMaster test softwares;
Script acquisition module 12, for obtaining the automatic test script on server.
In addition, as shown in figure 9, performance test unit 3 includes supporting judgment module 31, data acquisition module 32, erasing mould Block 33, space size judgment module 35, time average acquisition module 36, spatial processing module 37, holds spatial choice module 34 Measure judgment module 38, the first statistical module 39 and the second statistical module 391.
Judgment module 31 is supported, for judging whether SSD supports Trim.
Data acquisition module 32 is used for if so, obtaining the maximum size for supporting Trim data.
Module 33 is wiped, for wiping SSD.
Spatial choice module 34 is used for the data space in several non-overlapping copies of the overall user area sequential selections of SSD, Obtain the size of data space.
Space size judgment module 35, for judging the size of data space whether no more than maximum support Trim data Size and the number for being not more than the overall capacity of SSD divided by data space.
Time average acquisition module 36, for if so, being spaced different time, needle according to per between the operations of Trim twice Trim operations are carried out to the data space of selection, different intervals is obtained and SSD disks is in all Trim under different conditions Order the average value of deadline.
Spatial processing module 37, for the size of data space to be multiplied by setting value.
Capacity determination module 38, for if it is not, then judge the data space size divided by 8 whether be equal to SSD it is overall The number of capacity divided by data space.
The time for carrying out Trim operations is not written in the state of data for counting totally for first statistical module 39.
Second statistical module 391, the time for counting the progress Trim operations in the state that data are written totally.
Specifically, as shown in Figure 10, time average acquisition module 36 is obtained including the first acquisition submodule 361, second Submodule 362, third acquisition submodule 363 and the 4th acquisition submodule 364.
First acquisition submodule 361, for being spaced setting time according to per between the operations of Trim twice, for the number of selection Trim operations are carried out according to space, obtain the average value of all Trim orders deadlines.
Second acquisition submodule 362, for being spaced 0s according to per between the operations of Trim twice, for the data space of selection Trim operations are carried out, the average value of all Trim orders deadlines is obtained.
Third acquisition submodule 363 is written random data for the data space to selection, is operated according to per Trim twice Between be spaced setting time, for selection data space carry out Trim operations, obtain all Trim orders deadlines put down Mean value.
4th acquisition submodule 364 is written random data for the data space to selection, is operated according to per Trim twice Between be spaced 0s, for selection data space carry out Trim operations, obtain the average value of all Trim orders deadlines.
In addition, as shown in fig. 7, above-mentioned device further includes test result output unit 4 and display unit 5.
Test result output unit 4, be used to out not be written totally in the state of data the time for carrying out Trim operations and Totally the time of the progress Trim operations in the state of write-in data, test result is formed, in write-in to daily record.
Display unit 5 shows test result for passing through diagrammatic form.
It is apparent to those skilled in the art that for convenience of description and succinctly, the survey of foregoing description The specific work process of the device and unit of solid state disk Trim performances is tried, corresponding in preceding method embodiment can be referred to Journey, details are not described herein.
The device of above-mentioned test solid state disk Trim performances can be implemented as a kind of form of computer program, computer journey Sequence can be run on computer equipment as shown in figure 11
For the device of above-mentioned test solid state disk Trim performances, by simplifying the connection of SSD, by being set in server The DriverMaster testing tools set design a kind of general automatic test script, carry out Trim performance tests, obtain respectively It takes blank panel and fills out the performance of more kinds of size datas of single Trim and continuous T rim in the case of disk latter two, it is hard solid-state to be efficiently accomplished Disk Trim performance tests, realization effectively improve Trim performance tests coverage rate and efficiency, reduce the cost of test.
Please refer to Fig.1 the schematic block diagram that 1, Figure 11 is a kind of computer equipment provided by the embodiments of the present application.The calculating 700 equipment of machine equipment can be terminal or server.
Referring to Fig.1 1, which includes processor 720, memory and the net connected by system bus 710 Network interface 750, wherein memory may include non-volatile memory medium 730 and built-in storage 740.
The non-volatile memory medium 730 can storage program area 731 and computer program 732.The computer program 732 It is performed, the method that may make processor 720 to execute any one test solid state disk Trim performance.
The processor 720 supports the operation of entire computer equipment 700 for providing calculating and control ability.
The built-in storage 740 provides environment for the operation of the computer program 732 in non-volatile memory medium 730, should When computer program 732 is executed by processor 720, processor 720 may make to execute any one test solid state disk Trim The method of energy.
The network interface 750 such as sends the task dispatching of distribution for carrying out network communication.Those skilled in the art can manage It solves, structure is not constituted only with the block diagram of the relevant part-structure of application scheme to the application side shown in Figure 11 The restriction for the computer equipment 700 that case is applied thereon, specific computer equipment 700 may include more than as shown in the figure Or less component, it either combines certain components or is arranged with different components.Wherein, the processor 720 is for transporting Row program code stored in memory, to realize following steps:
SSD connection status is set, automatic test script is obtained;
According to the corresponding test module of the parameter selection of SSD;
According to parameter, Trim performance tests are carried out according to automatic test script content.
In one embodiment, the processor 720 is for running program code stored in memory to realize basis Parameter also realizes following steps after the step of the progress Trim performance tests of automatic test script content:
It exports the time for carrying out Trim operations in the state that data are not written totally and is written in the state of data totally Progress Trim operations time, form test result, write-in is in daily record.
In one embodiment, the processor 720 is for running program code stored in memory to realize output The time for carrying out Trim operations in the state of data and the carry out Trim behaviour in the state of overall write-in data is not written totally The time of work forms test result and also realizes following steps after write-in to the step in daily record:
Test result is shown by diagrammatic form.
Specifically, the processor 720 is for running program code stored in memory to realize setting SSD connections The step of state, acquisition automatic test script includes connecting SSD with the server for being equipped with DriverMaster test softwares It connects;And the automatic test script on acquisition server.
Specifically, the processor 720 is pressed for running program code stored in memory to realize according to parameter The step of Trim performance tests being carried out according to automatic test script content, including judge whether SSD supports Trim;If so, obtaining Maximum supports the size of Trim data;Wipe SSD;In the data of several non-overlapping copies of the overall user area sequential selections of SSD Space obtains the size of data space;Judge data space size whether no more than the maximum size for supporting Trim data and No more than the number of the overall capacity of SSD divided by data space;If so, when according to per being spaced different between the operations of Trim twice Between, Trim operations are carried out for the data space of selection, different intervals is obtained and SSD disks is in all under different conditions The average value of Trim order deadlines;The size of data space is multiplied by setting value, returns to the erasing SSD steps;If it is not, Then judge the size of the data space divided by the number whether 8 be equal to the overall capacity of SSD divided by data space;If the data The size in space divided by 8 not equal to the overall capacity of SSD divided by data space number, then statistics the state of data is not written totally The lower time for carrying out Trim operations;The time of the progress Trim operations in the state of data is written in statistics totally;And if described The size of data space divided by 8 be equal to the overall capacity of SSD divided by data space number, then enter end step.
Specifically, the processor 720 is for running program code stored in memory to realize according to per twice It is spaced different time between Trim operations, Trim operations is carried out for the data space of selection, obtains different intervals and SSD Disk is in the step of average value of all Trim orders deadlines under different conditions, including operates it according to per Trim twice Between be spaced 5s, for selection data space carry out Trim operations, obtain the average value of all Trim orders deadlines;According to It is spaced 0s per between the operations of Trim twice, Trim operations is carried out for the data space of selection, obtains all Trim orders and complete The average value of time;Random data is written to the data space of selection, 5s is spaced according to per between the operations of Trim twice, for choosing The data space selected carries out Trim operations, obtains the average value of all Trim orders deadlines;And it is empty to the data of selection Between random data is written, be spaced 0s between operation according to per Trim twice, carry out Trim operations for the data space of selection, obtain Take the average value of all Trim orders deadlines.
It should be appreciated that in the embodiment of the present application, processor 720 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or Person's processor can also be any conventional processor etc..
It will be understood by those skilled in the art that 700 structure of computer equipment shown in Figure 11 is not constituted to computer The restriction of equipment 700 may include either combining certain components or different components than illustrating more or fewer components Arrangement.
One of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of flow, be Relevant hardware can be instructed to complete by computer program, computer program can be stored in a storage medium, this is deposited Storage media is computer readable storage medium.In the embodiment of the present invention, which can be stored in computer system It in storage medium, and is executed by least one of computer system processor, to realize including such as above-mentioned each test solid-state The process step of the embodiment of the method for hard disk Trim performances.
The computer readable storage medium can be magnetic disc, CD, USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), the various media that can store program code such as magnetic disc or CD.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, depend on the specific application and design constraint of technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as exceeding scope of the present application.
In several embodiments provided herein, it should be understood that disclosed test solid state disk Trim performances Device and method, may be implemented in other ways.For example, the dress of test solid state disk Trim performances described above It is only schematical to set embodiment.For example, the division of each unit, only a kind of division of logic function, in actual implementation There may be another division manner.Such as multiple units or component can be combined or can be integrated into another system or one A little features can be ignored, or not execute.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.This Shen Unit that please be in embodiment device can be combined, divided and deleted according to actual needs.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, can also be during two or more units are integrated in one unit.It is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set Standby (can be personal computer, terminal or the network equipment etc.) execute each embodiment the method for the application whole or Part steps.
Above-mentioned a kind of computer equipment, by simplifying the connection of SSD, by the DriverMaster being arranged in server Testing tool designs a kind of general automatic test script, carries out Trim performance tests, obtains blank panel respectively and fills out two after disk The performance of more kinds of size datas of single Trim and continuous T rim, can efficiently accomplish solid state disk Trim performance tests in the case of kind, Realization effectively improves Trim performance tests coverage rate and efficiency, reduces the cost of test.
It is above-mentioned only with embodiment come the technology contents that further illustrate the present invention, in order to which reader is easier to understand, but not It represents embodiments of the present invention and is only limitted to this, any technology done according to the present invention extends or recreation, by the present invention's Protection.Protection scope of the present invention is subject to claims.

Claims (10)

1. the method for testing solid state disk Trim performances, which is characterized in that the method includes:
SSD connection status is set, automatic test script is obtained;
According to the corresponding test module of the parameter selection of SSD;
According to parameter, Trim performance tests are carried out according to automatic test script content.
2. the method for test solid state disk Trim performances according to claim 1, which is characterized in that setting SSD connection shapes The step of state, acquisition automatic test script, including step in detail below:
SSD is connect with the server for being equipped with DriverMaster test softwares;
Obtain the automatic test script on server.
3. the method for test solid state disk Trim performances according to claim 1, which is characterized in that according to parameter, according to Automatic test script content carries out the step of Trim performance tests, including step in detail below:
Judge whether SSD supports Trim;
If so, obtaining the maximum size for supporting Trim data;
Wipe SSD;
In the data space of several non-overlapping copies of the overall user area sequential selections of SSD, the size of data space is obtained;
Judge data space size whether no more than the maximum size for supporting Trim data and no more than the overall capacity of SSD divided by The number of data space;
If so, being spaced different time according to per between the operations of Trim twice, Trim operations are carried out for the data space of selection, It obtains different intervals and SSD disks is in the average value of all Trim orders deadlines under different conditions;
The size of data space is multiplied by setting value, returns to the erasing SSD steps;
If it is not, then judging the size of the data space divided by the number whether 8 be equal to the overall capacity of SSD divided by data space;
If the size of the data space divided by 8 not equal to the overall capacity of SSD divided by data space number, statistics is totally not The time of Trim operations is carried out in the state of write-in data;
The time of the progress Trim operations in the state of data is written in statistics totally;
If the size of the data space divided by 8 be equal to the overall capacity of SSD divided by data space number, enter and terminate step Suddenly.
4. the method for test solid state disk Trim performances according to claim 3, which is characterized in that according to per Trim twice It is spaced different time between operation, carries out Trim operations for the data space of selection, obtains different intervals and SSD Pan Chu The step of average value of all Trim orders deadlines under different conditions, including step in detail below:
It is spaced setting time according to per between the operations of Trim twice, Trim operations is carried out for the data space of selection, obtains institute There is the average value of Trim order deadlines;
It is spaced 0s according to per between the operations of Trim twice, Trim operations is carried out for the data space of selection, obtains all Trim Order the average value of deadline;
Random data is written to the data space of selection, setting time is spaced according to per between the operations of Trim twice, for selection Data space carry out Trim operations, obtain the average value of all Trim orders deadlines;
Random data is written to the data space of selection, 0s is spaced according to per between the operations of Trim twice, for the data of selection Space carries out Trim operations, obtains the average value of all Trim orders deadlines.
5. the method for test solid state disk Trim performances according to any one of claims 1 to 4, which is characterized in that according to Parameter, according to automatic test script content carry out Trim performance tests the step of after, further include:
Output be not written totally in the state of data in the state of the time for carrying out Trim operations and totally write-in data into The time of row Trim operations, test result is formed, in write-in to daily record.
6. the method for test solid state disk Trim performances according to claim 5, which is characterized in that output is not written totally The time of Trim operations is carried out in the state of data and the time of the progress Trim operations in the state of data, shape are written totally Further include after write-in to the step in daily record at test result:
Test result is shown by diagrammatic form.
7. test solid state disk Trim performances device, which is characterized in that including connection setting unit, test selecting unit and Performance test unit;
The connection setting unit obtains automatic test script for SSD connection status to be arranged;
The test selecting unit, for the corresponding test module of parameter selection according to SSD;
The performance test unit, for according to parameter, Trim performance tests to be carried out according to automatic test script content.
8. the device of test solid state disk Trim performances according to claim 7, which is characterized in that the performance test list Member includes supporting judgment module, data acquisition module, erasing module, spatial choice module, space size judgment module, time flat Mean value acquisition module, spatial processing module, capacity determination module, the first statistical module and the second statistical module;
The support judgment module, for judging whether SSD supports Trim;
The data acquisition module is used for if so, obtaining the maximum size for supporting Trim data;
The erasing module, for wiping SSD;
The spatial choice module is obtained for the data space in several non-overlapping copies of the overall user area sequential selections of SSD Take the size of data space;
Whether the space size judgment module, the size for judging data space are big no more than maximum support Trim data Number that is small and being not more than the overall capacity of SSD divided by data space;
The time average acquisition module, for if so, be spaced different time between operation according to per Trim twice, for The data space of selection carries out Trim operations, obtains different intervals and SSD disks are in the lives of all Trim under different conditions Enable the average value of deadline;
The spatial processing module, for the size of data space to be multiplied by setting value;
The capacity determination module, for if it is not, then judging the size of the data space divided by 8 whether holding totally equal to SSD The number of amount divided by data space;
The time for carrying out Trim operations is not written in the state of data for counting totally for first statistical module;
Second statistical module, the time for counting the progress Trim operations in the state that data are written totally.
9. the device of test solid state disk Trim performances according to claim 8, which is characterized in that the time average Acquisition module includes the first acquisition submodule, the second acquisition submodule, third acquisition submodule and the 4th acquisition submodule;
First acquisition submodule, for being spaced setting time according to per between the operations of Trim twice, for the data of selection Space carries out Trim operations, obtains the average value of all Trim orders deadlines;
Second acquisition submodule, for being spaced 0s between operation according to per Trim twice, for selection data space into Row Trim operations, obtain the average value of all Trim orders deadlines;
The third acquisition submodule is written random data for the data space to selection, it is operated according to per Trim twice Between be spaced setting time, for selection data space carry out Trim operations, obtain being averaged for all Trim orders deadlines Value;
4th acquisition submodule is written random data for the data space to selection, it is operated according to per Trim twice Between be spaced 0s, for selection data space carry out Trim operations, obtain the average value of all Trim orders deadlines.
10. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be The computer program run on the processor, the processor realize such as claim 1 to 6 when executing the computer program Any one of described in test solid state disk Trim performances method.
CN201810570199.XA 2018-06-05 2018-06-05 Method and device for testing Trim performance of solid state disk and computer equipment Active CN108777158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810570199.XA CN108777158B (en) 2018-06-05 2018-06-05 Method and device for testing Trim performance of solid state disk and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810570199.XA CN108777158B (en) 2018-06-05 2018-06-05 Method and device for testing Trim performance of solid state disk and computer equipment

Publications (2)

Publication Number Publication Date
CN108777158A true CN108777158A (en) 2018-11-09
CN108777158B CN108777158B (en) 2020-12-01

Family

ID=64024470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810570199.XA Active CN108777158B (en) 2018-06-05 2018-06-05 Method and device for testing Trim performance of solid state disk and computer equipment

Country Status (1)

Country Link
CN (1) CN108777158B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109979520A (en) * 2019-03-26 2019-07-05 深圳忆联信息系统有限公司 Chip functions automated testing method, device and computer equipment
CN110427326A (en) * 2019-07-31 2019-11-08 东莞记忆存储科技有限公司 Solid state hard disk password test method and apparatus based on Driver Master
CN113377588A (en) * 2021-06-08 2021-09-10 深圳忆联信息系统有限公司 Sustainable integration test method and device for hard disk and computer equipment
US11430536B2 (en) 2018-12-20 2022-08-30 Advantest Corporation Software-focused solution for arbitrary all-data odd sector size support
TWI779458B (en) * 2020-02-28 2022-10-01 日商愛德萬測試股份有限公司 Software-focused solution for arbitrary all-data odd sector size support
CN116955048A (en) * 2023-06-16 2023-10-27 上海水木蓝鲸半导体技术有限公司 Method, device and computer storage medium for chip calibration and debugging information management
CN116955048B (en) * 2023-06-16 2024-03-22 上海水木蓝鲸半导体技术有限公司 Method, device and computer storage medium for chip calibration and debugging information management

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411993A (en) * 2011-11-24 2012-04-11 曙光信息产业股份有限公司 Method and device for testing state solid disk (SSD)
CN103578568A (en) * 2012-07-24 2014-02-12 苏州捷泰科信息技术有限公司 Method and apparatus for testing performances of solid state disks
CN105487952A (en) * 2015-12-15 2016-04-13 浪潮电子信息产业股份有限公司 PCIE-SSD automatic test method based on FIO

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102411993A (en) * 2011-11-24 2012-04-11 曙光信息产业股份有限公司 Method and device for testing state solid disk (SSD)
CN103578568A (en) * 2012-07-24 2014-02-12 苏州捷泰科信息技术有限公司 Method and apparatus for testing performances of solid state disks
CN105487952A (en) * 2015-12-15 2016-04-13 浪潮电子信息产业股份有限公司 PCIE-SSD automatic test method based on FIO

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BOLVAR: "SSD横评测试:TRIM与RAID 0的故事", 《超能网》 *
SSDFANS: "【馊评测】DriverMaster NVMe Power State测试", 《手机搜狐网》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11430536B2 (en) 2018-12-20 2022-08-30 Advantest Corporation Software-focused solution for arbitrary all-data odd sector size support
CN109979520A (en) * 2019-03-26 2019-07-05 深圳忆联信息系统有限公司 Chip functions automated testing method, device and computer equipment
CN110427326A (en) * 2019-07-31 2019-11-08 东莞记忆存储科技有限公司 Solid state hard disk password test method and apparatus based on Driver Master
TWI779458B (en) * 2020-02-28 2022-10-01 日商愛德萬測試股份有限公司 Software-focused solution for arbitrary all-data odd sector size support
CN113377588A (en) * 2021-06-08 2021-09-10 深圳忆联信息系统有限公司 Sustainable integration test method and device for hard disk and computer equipment
CN116955048A (en) * 2023-06-16 2023-10-27 上海水木蓝鲸半导体技术有限公司 Method, device and computer storage medium for chip calibration and debugging information management
CN116955048B (en) * 2023-06-16 2024-03-22 上海水木蓝鲸半导体技术有限公司 Method, device and computer storage medium for chip calibration and debugging information management

Also Published As

Publication number Publication date
CN108777158B (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN108777158A (en) Test the method, apparatus and computer equipment of solid state disk Trim performances
CN102035697B (en) Concurrent connections performance testing system and method for file system
CN102640120B (en) Management system for calculating storage capacity to be increased/decreased
CN102568522B (en) The method of testing of hard disk performance and device
CN107894913A (en) Computer system and storage access device
CN104471524B (en) Storage system and storage controlling method
CN101799744A (en) The solid-state drive command grouping
CN103150261B (en) Method and device for simultaneously accessing multiple solid-state disks
CN101419844B (en) Flash memory simulating device and main control module evaluation method for the flash
CN108920276A (en) Linux system memory allocation method, system and equipment and storage medium
CN103514084A (en) Test method for reflecting hard-disk read-write energy efficiency of computer equipment
CN108388490A (en) A kind of method and system of test high-end server memory
CN109445691A (en) A kind of method and device improving FTL algorithm development and verification efficiency
CN108874502A (en) Method for managing resource, device and the equipment of cloud computing cluster
CN109656723A (en) Container resource regulating method and device
CN109196458B (en) Storage system available capacity calculation method and device
CN107741828A (en) A kind of memory space fill method and mobile terminal
CN109710025A (en) A kind of PCIE clock compatibility method, device, computer equipment and the storage medium of solid state hard disk
CN115408212A (en) System and method for parallel automatic testing of partitioned namespace solid state drives
CN110209597A (en) Handle method, apparatus, equipment and the storage medium of access request
CN107423110A (en) A kind of virtual machine method of real-time and its device based on libvirt
CN109101194A (en) One kind writing with a brush dipped in Chinese ink performance optimization method and storage system
CN110209357A (en) Improve method, apparatus, computer equipment and the storage medium of the big file write performance of SSD
US7137037B2 (en) Data storage system and method for testing the same
CN107836010A (en) The management method and computer system of computer system

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