CN111462805B - Method and device for comprehensively and rapidly testing NVME SSD Trim function - Google Patents

Method and device for comprehensively and rapidly testing NVME SSD Trim function Download PDF

Info

Publication number
CN111462805B
CN111462805B CN202010166406.2A CN202010166406A CN111462805B CN 111462805 B CN111462805 B CN 111462805B CN 202010166406 A CN202010166406 A CN 202010166406A CN 111462805 B CN111462805 B CN 111462805B
Authority
CN
China
Prior art keywords
trim
lba region
lba
region
verifying
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.)
Active
Application number
CN202010166406.2A
Other languages
Chinese (zh)
Other versions
CN111462805A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010166406.2A priority Critical patent/CN111462805B/en
Publication of CN111462805A publication Critical patent/CN111462805A/en
Application granted granted Critical
Publication of CN111462805B publication Critical patent/CN111462805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/06Acceleration testing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/08Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
    • G11C29/10Test algorithms, e.g. memory scan [MScan] algorithms; Test patterns, e.g. checkerboard patterns 
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/54Arrangements for designing test circuits, e.g. design for test [DFT] tools

Landscapes

  • Debugging And Monitoring (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention provides a method for comprehensively and rapidly testing NVME SSD Trim functions, which comprises the following steps: acquiring the number of a plurality of lba regions in the NVME SSD; performing Trim function verification on different block numbers of an initial lba region, a middle lba region and an ending lba region in the SSD, and executing Trim commands on the middle lba region one by one to verify Trim functions; and secondly, simultaneously executing Trim commands on the middle lba region to verify Trim functions, and the invention also provides a device for comprehensively and rapidly testing the NVME SSD Trim functions, thereby effectively solving the problems of long time and incomplete test of the Trim functions caused by the irregular trigger mechanism of the Trim functions, effectively improving the test efficiency and ensuring the accuracy and reliability of verification.

Description

Method and device for comprehensively and rapidly testing NVME SSD Trim function
Technical Field
The invention relates to the field of NVME SSD test verification, in particular to a method and a device for comprehensively and rapidly testing the Trim function of an NVME SSD.
Background
With the development of technologies such as internet, cloud computing, and internet of things, the Non-Volatile Memory Express (NVM Express standard storage system) SSD (Solid State drive) is widely used as a new generation of storage.
In the process of research and development testing of the solid state disk, the performance of the solid state disk is widely concerned, and whether a Trim function (a Data Set Management command) meets the requirement or not can directly influence the performance of the solid state disk, so that the testing of the Trim function is particularly important.
In actual operation, the Trim function marks invalid data on blocks in different lba regions of the SSD, and executes corresponding Trim commands on the lba regions according to the marked positions and the marked sequences, but the trigger mechanism of the Trim function is irregular trigger, and the Trim function is triggered only when the data of the invalid marks reach a certain amount (set threshold), and the invalid data is deleted uniformly, so that the time for triggering and testing the Trim function is long, which causes incomplete test results, and is not beneficial to improving verification and testing efficiency.
Disclosure of Invention
The invention aims to solve the problems in the prior art, and innovatively provides a method and a device for comprehensively and quickly testing the Trim function of the NVME SSD, so that the problems of long time and incomplete test of the Trim function caused by an irregular trigger mechanism of the Trim function are effectively solved, and the test efficiency is effectively improved.
The first aspect of the invention provides a method for comprehensively and rapidly testing NVME SSD Trim functions, which comprises the following steps:
acquiring the number of a plurality of lba regions in the NVME SSD;
reading the number of block sections in the initial lba region, executing a Trim command on the initial lba region, and verifying a Trim function;
reading the number of block sections in the middle lba region, and if the number of the block sections in the middle lba region is 1, executing a Trim command on the middle lba region to verify a Trim function; if the number of block sections in the middle lba region is not 1, firstly executing Trim commands to the middle lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands on the middle lba region and verifying Trim functions;
and reading the number of block sections in the end lba region, executing a Trim command on the end lba region, and verifying a Trim function.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the middle lba region sequentially includes a first lba region, a second lba region, and a third lba region, the number of block segments in the first lba region is read, and if the number of block segments in the first lba region is 1, a Trim command is executed on the first lba region, and a Trim function is verified; if the number of block segments in a first lba region is not 1, firstly executing Trim commands one by one on the first lba region, and verifying Trim functions; secondly, simultaneously executing Trim commands on the first lba region and verifying Trim functions;
reading the number of block segments in a second lba region, and if the number of the block segments in the second lba region is 1, executing a Trim command on the second lba region to verify a Trim function; if the number of block segments in a second lba region is not 1, firstly executing Trim commands to the second lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands to a second lba region to verify Trim functions;
reading the number of block segments in a third lba region, and if the number of the block segments in the third lba region is 1, executing a Trim command on the third lba region to verify a Trim function; if the number of block sections of a third lba region is not 1, firstly executing Trim commands to the third lba region one by one, and verifying Trim functions; and secondly, simultaneously executing Trim commands on a third lba region to verify Trim functions.
With reference to the first aspect, in a second possible implementation manner of the first aspect, the verifying the Trim function specifically includes: reading and recording current lba region data before the Trim command is executed, reading and recording the current lba region data again after the Trim command is executed, comparing whether the current lba region data before and after the Trim command is executed are consistent, if so, failing the Trim function verification, and if not, passing the Trim function verification.
Further, the Trim functions of the starting lba region, the ending lba region and the middle lba region are verified to pass, and then the NVME SSD Trim function is verified to pass; if any of the lba regions fails to verify, the NVME SSD Trim function fails to verify.
With reference to the first aspect, in a third possible implementation manner of the first aspect, the number of lba region block segments ranges from 1 to 256.
The second aspect of the present invention provides a device for comprehensively and rapidly testing NVME SSD Trim functions, comprising:
the acquisition module acquires the number of a plurality of lba regions in the NVME SSD;
the first reading and verifying module is used for reading the number of block sections in the initial lba region, executing a Trim command on the initial lba region and verifying Trim functions;
the second reading and verifying module reads the number of the block sections in the middle lba region, and if the number of the block sections in the middle lba region is 1, the second reading and verifying module executes a Trim command on the middle lba region to verify a Trim function; if the number of block sections in the middle lba region is not 1, firstly executing Trim commands to the middle lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands on the middle lba region and verifying Trim functions;
and the third reading and verifying module reads the number of the block sections in the end lba region, executes a Trim command on the end lba region and verifies the Trim function.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the second read verifying module includes:
the first lba region reading and verifying sub-module reads the number of block sections in the first lba region, and if the number of the block sections in the first lba region is 1, a Trim command is executed on the first lba region to verify a Trim function; if the number of block segments in a first lba region is not 1, firstly executing Trim commands one by one on the first lba region, and verifying Trim functions; secondly, simultaneously executing Trim commands on the first lba region and verifying Trim functions;
the second lba region reading and verifying sub-module reads the number of block segments in the second lba region, and if the number of the block segments in the second lba region is 1, a Trim command is executed on the second lba region to verify a Trim function; if the number of block sections of a second lba region is not 1, firstly executing Trim commands to the second lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands on a second lba region to verify Trim functions;
the third lba region reading and verifying sub-module reads the number of block sections in the third lba region, and if the number of the block sections in the third lba region is 1, a Trim command is executed on the third lba region to verify a Trim function; if the number of block sections of a third lba region is not 1, firstly executing Trim commands to the third lba region one by one, and verifying Trim functions; and secondly, simultaneously executing Trim commands on the third lba region to verify Trim functions.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the verifying the Trim function specifically includes: reading and recording current lba region data before the Trim command is executed, reading and recording the current lba region data again after the Trim command is executed, comparing whether the current lba region data before and after the Trim command is executed are consistent, if so, failing the Trim function verification, and if not, passing the Trim function verification.
Furthermore, the Trim functions of the first read verification module, the second read verification module and the third read verification module are verified to be passed, and then the NVME SSD Trim function is verified to be passed; if any of the lba regions fails to verify, the NVME SSD Trim function fails to verify.
With reference to the second aspect, in a third possible implementation manner of the second aspect, the number of lba region block segments ranges from 1 to 256.
The technical scheme adopted by the invention comprises the following technical effects:
1. the invention changes the irregular trigger mechanism of the Trim function into forced trigger, effectively solves the problems of long time and incomplete test of the Trim function caused by the irregular trigger mechanism of the Trim function, and effectively improves the test efficiency.
2. Firstly, executing Trim commands one by one on the middle lba region to verify Trim functions; and then, the Trim command is simultaneously executed on the middle lba region to verify the Trim function, and the Trim commands are simultaneously executed again after being executed one by one through different block sections of the lba region, so that the accuracy and reliability of verification are ensured, and the efficiency of test verification is also ensured.
3. According to the invention, trim function verification is carried out on different block segment numbers of the initial lba region, the middle lba region and the ending lba region in the SSD, the comprehensiveness of the SSD Trim function verification test is ensured, and the efficiency and the accuracy of the verification test are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the embodiments or technical solutions in the prior art are briefly described below, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a process according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first method for verifying lba testing in accordance with an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a second method for verifying lba testing in accordance with an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a third method for verifying lba testing in accordance with an embodiment of the present invention;
fig. 5 is a schematic flow chart illustrating a Trim function verification method according to an embodiment of the present invention;
fig. 6 is another schematic flow chart illustrating a Trim function verification method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a second embodiment of an apparatus according to the present invention;
FIG. 8 is a diagram illustrating a second read verify module of an embodiment of a second apparatus according to the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the present invention will be explained in detail by the following embodiments and the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
Example one
As shown in fig. 1, the present invention provides a method for comprehensively and rapidly testing NVME SSD Trim functions, which includes:
s11, acquiring the number of a plurality of lba regions in the NVME SSD;
s12, reading the number of block segments in the initial lba region, executing a Trim command on the initial lba region, and verifying a Trim function;
s13, reading the number of block sections in the middle lba region, judging whether the number of the block sections in the middle lba region is 1, and if so, executing the step S14; if the judgment result is negative, executing the step S15;
s14, executing a Trim command on the middle lba region, and verifying a Trim function;
s15, firstly, executing Trim commands one by one on the middle lba region and verifying Trim functions; secondly, simultaneously executing Trim commands to the middle lba region and verifying Trim functions;
and S16, reading the number of the block sections in the end lba region, executing a Trim command on the end lba region, and verifying the Trim function.
In step S11, the number of a plurality of lba regions and the number of block segments in different lba regions in the NVME SSD may be obtained through the NVME cli command of the open source. The number of the lba regions and the number of the block segments in different lba regions obtained in the present invention are both numbers in default settings, and related settings of the solid state disk may also be performed according to actual conditions, and after the setting is completed or the setting is updated, the number of the lba regions in the NVME SSD and the number of the block segments in different lba regions may be obtained again.
In steps S13-S15, the middle lba region may sequentially include a first lba region, a second lba region, a third lba region, and the number of block segments of the lba region ranges from 1 to 256.
Specifically, as shown in fig. 2, S1301, the number of block segments in the first lba region is read; s1302, judging whether the number of the block sections in the first lba region is 1, if so, executing a step S1303, and if not, executing a step S1304; s1303, executing a Trim command on the first lba region, and verifying a Trim function; s1304, firstly, executing Trim commands to the first lba region one by one to verify Trim functions; secondly, simultaneously executing Trim commands to the first lba region and verifying Trim functions;
as shown in fig. 3, S1311, read the number of block segments in the second lba region; s1312, judging whether the number of the block segments of the second lba region is 1, if so, executing a step S1313, and if not, executing a step S1314; s1313, executing a Trim command on the second lba region, and verifying a Trim function; s1314, first performing Trim commands on the second lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands on a second lba region to verify Trim functions;
as shown in fig. 4, S1321, reading the number of block segments in the third lba region; s1322, determining whether the number of block segments in the third lba region is 1, if so, executing step S1323, and if not, executing step S1324; s1323, executing a Trim command on the third lba region, and verifying a Trim function; s1324, firstly, executing Trim commands one by one on the third lba region, and verifying Trim functions; secondly, simultaneously executing Trim commands to a third lba region to verify Trim functions;
the invention is described by taking the example of including three lba regions, and certainly, the middle lba region may also include more than three lba regions in sequence, which is not limited herein.
In steps S12 to S16, as shown in fig. 5, the verifying Trim function specifically includes:
s21, reading and recording the current lba region data before the Trim command is executed, and reading and recording the current lba region data again after the Trim command is executed;
s22, comparing whether the current lba region data before and after the Trim command is executed are consistent, if so, executing a step S23, and if not, executing a step S24;
s23, the Trim function verification fails;
and S24, the Trim function passes verification.
Further, as shown in fig. 6, the method further includes: s25, judging whether Trim functions of the initial lba region, the end lba region and the middle lba region are verified, if so, executing a step S26, and if not, executing a step S27;
s26, the NVME SSD Trim function passes verification;
s27, the verification of the NVME SSD Trim function fails.
The invention changes the irregular trigger mechanism of the Trim function into forced trigger, effectively solves the problems of long time and incomplete test of the Trim function caused by the irregular trigger mechanism of the Trim function, and effectively improves the test efficiency.
Firstly, executing Trim commands one by one on the middle lba region to verify Trim functions; and then, the Trim command is simultaneously executed on the middle lba region to verify the Trim function, and the Trim commands are simultaneously executed again after being executed one by one through different block sections of the lba region, so that the accuracy and reliability of verification are ensured, and the efficiency of test verification is also ensured.
According to the invention, trim function verification is carried out on different block segment numbers of the initial lba region, the middle lba region and the ending lba region in the SSD, the comprehensiveness of the SSD Trim function verification test is ensured, and the efficiency and the accuracy of the verification test are improved.
Example two
As shown in fig. 7, an apparatus for comprehensively and rapidly testing NVME SSD Trim functions includes:
the acquiring module 101 acquires the number of a plurality of lba regions in the NVME SSD;
the first reading verification module 102 is used for reading the number of block sections in the initial lba region, executing a Trim command on the initial lba region and verifying Trim functions;
the second reading and verifying module 103 is used for reading the number of block segments in the middle lba region, and if the number of the block segments in the middle lba region is 1, executing a Trim command on the middle lba region to verify a Trim function; if the number of block sections in the middle lba region is not 1, firstly executing Trim commands to the middle lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands to the middle lba region and verifying Trim functions;
and the third reading and verifying module 104 reads the number of the block sections in the end lba region, executes a Trim command on the end lba region, and verifies the Trim function.
Specifically, as shown in fig. 8, the second read verification module 103 includes:
the first lba region reading and verifying sub-module 1031 reads the number of block segments in the first lba region, and if the number of block segments in the first lba region is 1, executes a Trim command on the first lba region to verify a Trim function; if the number of block segments in a first lba region is not 1, firstly executing Trim commands one by one on the first lba region, and verifying Trim functions; secondly, simultaneously executing Trim commands on the first lba region and verifying Trim functions;
the second lba region reading and verifying sub-module 1032 reads the number of block segments in the second lba region, and if the number of block segments in the second lba region is 1, executes a Trim command on the second lba region to verify a Trim function; if the number of block sections of a second lba region is not 1, firstly executing Trim commands to the second lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands to a second lba region to verify Trim functions;
the third lba region read verification sub-module 1033 reads the number of block segments in the third lba region, and if the number of block segments in the third lba region is 1, executes a Trim command on the third lba region to verify a Trim function; if the number of block sections of a third lba region is not 1, firstly executing Trim commands to the third lba region one by one, and verifying Trim functions; and secondly, simultaneously executing Trim commands on the third lba region to verify Trim functions.
The verification Trim function is specifically as follows: reading and recording current lba region data before a Trim command is executed, reading and recording the current lba region data again after the Trim command is executed, comparing whether the current lba region data before and after the Trim command is executed are consistent, if so, failing the Trim function verification, and if not, passing the Trim function verification.
The Trim functions of the first read verification module, the second read verification module and the third read verification module are verified to be passed, and then the NVME SSD Trim function is verified to be passed; if any of the lba regions fails to verify, the NVME SSD Trim function fails to verify.
The number of lba region block segments ranges from 1 to 256.
The invention changes the irregular trigger mechanism of the Trim function into forced trigger, effectively solves the problems of long time and incomplete test of the Trim function caused by the irregular trigger mechanism of the Trim function, and effectively improves the test efficiency.
Firstly, executing Trim commands one by one on the middle lba region to verify Trim functions; and then, the Trim command is simultaneously executed on the middle lba region to verify the Trim function, and the Trim commands are simultaneously executed again after being executed one by one through different block sections of the lba region, so that the accuracy and reliability of verification are ensured, and the efficiency of test verification is also ensured.
The invention carries out Trim function verification on different block segment numbers of the initial lba region, the middle lba region and the ending lba region in the SSD, ensures the comprehensiveness of the SSD Trim function verification test, and improves the efficiency and the accuracy of the verification test.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (8)

1. A method for comprehensively and quickly testing NVME SSD Trim functions is characterized by comprising the following steps:
acquiring the number of a plurality of lba regions in the NVME SSD;
reading the number of block sections in the initial lba region, executing a Trim command on the initial lba region, and verifying a Trim function;
reading the number of block sections in the middle lba region, and if the number of the block sections in the middle lba region is 1, executing a Trim command on the middle lba region to verify a Trim function; if the number of block sections in the middle lba region is not 1, firstly executing Trim commands to the middle lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands to the middle lba region and verifying Trim functions;
reading the number of block sections in the end lba region, executing a Trim command on the end lba region, and verifying a Trim function; the Trim function verification method specifically comprises the following steps: reading and recording current lba region data before the Trim command is executed, reading and recording the current lba region data again after the Trim command is executed, comparing whether the current lba region data before and after the Trim command is executed are consistent, if so, failing the Trim function verification, and if not, passing the Trim function verification.
2. The method of claim 1, wherein the middle lba region sequentially comprises a first lba region, a second lba region and a third lba region, the number of block sections in the first lba region is read, and if the number of block sections in the first lba region is 1, a Trim command is executed on the first lba region to verify the Trim function; if the number of block sections of a first lba region is not 1, firstly executing Trim commands on the first lba region one by one to verify Trim functions; secondly, simultaneously executing Trim commands on the first lba region and verifying Trim functions;
reading the number of block sections in a second lba region, and if the number of the block sections in the second lba region is 1, executing a Trim command on the second lba region to verify a Trim function; if the number of block sections of a second lba region is not 1, firstly executing Trim commands to the second lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands on a second lba region to verify Trim functions;
reading the number of block sections in a third lba region, and if the number of the block sections in the third lba region is 1, executing a Trim command on the third lba region to verify a Trim function; if the number of block segments in a third lba region is not 1, firstly executing Trim commands to the third lba region one by one, and verifying Trim functions; and secondly, simultaneously executing Trim commands on the third lba region to verify Trim functions.
3. The method for comprehensively and quickly testing the NVME SSD Trim function according to claim 1, wherein the Trim functions of the starting lba region, the ending lba region and the middle lba region are verified to be passed, and then the NVME SSD Trim function is verified to be passed; if any of the lba regions fails to verify, the NVME SSD Trim function fails to verify.
4. The method of claim 1, wherein the number of lba region block segments ranges from 1 to 256.
5. The utility model provides a device of comprehensive quick test NVME SSD Trim function, characterized by includes:
the acquisition module acquires the number of a plurality of lba regions in the NVME SSD;
the first reading and verifying module is used for reading the number of block sections in the initial lba region, executing a Trim command on the initial lba region and verifying Trim functions;
the second reading and verifying module reads the number of the block sections in the middle lba region, and if the number of the block sections in the middle lba region is 1, the second reading and verifying module executes a Trim command on the middle lba region to verify a Trim function; if the number of block sections in the middle lba region is not 1, firstly executing Trim commands to the middle lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands on the middle lba region and verifying Trim functions;
the third reading and verifying module reads the number of the block sections in the end lba region, executes a Trim command on the end lba region and verifies the Trim function; the Trim function verification method specifically comprises the following steps: reading and recording current lba region data before a Trim command is executed, reading and recording the current lba region data again after the Trim command is executed, comparing whether the current lba region data before and after the Trim command is executed are consistent, if so, failing the Trim function verification, and if not, passing the Trim function verification.
6. The apparatus of claim 5, wherein the second read verification module comprises:
the first lba region reading and verifying sub-module reads the number of block sections in the first lba region, and if the number of the block sections in the first lba region is 1, a Trim command is executed on the first lba region to verify a Trim function; if the number of block sections of a first lba region is not 1, firstly executing Trim commands on the first lba region one by one to verify Trim functions; secondly, simultaneously executing Trim commands to the first lba region and verifying Trim functions;
the second lba region reading and verifying sub-module reads the number of block sections in the second lba region, and if the number of the block sections in the second lba region is 1, a Trim command is executed on the second lba region to verify a Trim function; if the number of block sections of a second lba region is not 1, firstly executing Trim commands to the second lba region one by one, and verifying Trim functions; secondly, simultaneously executing Trim commands on a second lba region to verify Trim functions;
the third lba region reading and verifying sub-module reads the number of block segments in the third lba region, and if the number of the block segments in the third lba region is 1, a Trim command is executed on the third lba region to verify a Trim function; if the number of block sections of a third lba region is not 1, firstly executing Trim commands to the third lba region one by one, and verifying Trim functions; and secondly, simultaneously executing Trim commands on the third lba region to verify Trim functions.
7. The apparatus according to claim 5, wherein the Trim functions of the first read verification module, the second read verification module and the third read verification module are verified, and the verification of the NVME SSD Trim function is passed; if any of the lba regions fails to verify, the NVME SSD Trim function fails to verify.
8. The apparatus of claim 5, wherein the number of lba region block segments ranges from 1 to 256.
CN202010166406.2A 2020-03-11 2020-03-11 Method and device for comprehensively and rapidly testing NVME SSD Trim function Active CN111462805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010166406.2A CN111462805B (en) 2020-03-11 2020-03-11 Method and device for comprehensively and rapidly testing NVME SSD Trim function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010166406.2A CN111462805B (en) 2020-03-11 2020-03-11 Method and device for comprehensively and rapidly testing NVME SSD Trim function

Publications (2)

Publication Number Publication Date
CN111462805A CN111462805A (en) 2020-07-28
CN111462805B true CN111462805B (en) 2022-10-18

Family

ID=71682812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010166406.2A Active CN111462805B (en) 2020-03-11 2020-03-11 Method and device for comprehensively and rapidly testing NVME SSD Trim function

Country Status (1)

Country Link
CN (1) CN111462805B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003431B (en) * 2021-09-27 2024-01-12 苏州浪潮智能科技有限公司 Non-4 k aligned Trim data verification method, system and device for Nvme solid state disk

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467455A (en) * 2010-10-29 2012-05-23 三星电子株式会社 Memory system, data storage device, user device and data management method thereof
CN109240939A (en) * 2018-08-15 2019-01-18 杭州阿姆科技有限公司 A kind of method of quick processing solid state hard disk TRIM

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467455A (en) * 2010-10-29 2012-05-23 三星电子株式会社 Memory system, data storage device, user device and data management method thereof
CN109240939A (en) * 2018-08-15 2019-01-18 杭州阿姆科技有限公司 A kind of method of quick processing solid state hard disk TRIM

Also Published As

Publication number Publication date
CN111462805A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
US7743292B2 (en) Apparatus and method for memory card testing
CN104572422A (en) Memory monitoring achievement method based on startup and shutdown of Linux system
US20130111268A1 (en) Testing device capable of simulating plugging and unplugging operations and method thereof
CN111462805B (en) Method and device for comprehensively and rapidly testing NVME SSD Trim function
CN111737051B (en) Trim data verification test method, device and system of SSD (solid State disk)
CN105070321A (en) Quick test circuit and method for memory device
US20140033179A1 (en) Application testing
CN113065300A (en) Method, system and device for backtracking simulation waveform in chip EDA (electronic design automation) simulation
CN114880177A (en) Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment
CN107832176A (en) Hard disk pressure automatic test approach and system under a kind of Windows
CN107452427B (en) Method and system for testing data integrity of storage equipment
CN102572591B (en) Method and device for producing advanced security digital television set-top box
CN114664369A (en) Memory chip testing method and device
CN102629212A (en) Method for indirectly programming to NANDFLASH based on J-LINK
CN110764960B (en) Solid state disk firmware testing method
CN107562593A (en) A kind of automated testing method and system for verifying internal memory ECC functions
CN107357700A (en) A kind of method and system of test NVME hard disk order stability
US10705738B2 (en) Method, apparatus, storage medium, and terminal for optimizing memory card performance
CN110688268A (en) Fault positioning method, device, equipment and medium for NVME SSD
CN109390016B (en) Erasing method and device for NOR flash memory
CN115495297A (en) Server hard disk test method and device, electronic equipment and storage medium
US10922249B2 (en) Input/output control code filter
CN112445669B (en) Storage performance testing method and device and electronic equipment
CN114356218A (en) Data error correction method, device and medium for Flash memory
CN107943633B (en) Method and device for rapidly reproducing task abort problem of SAS card

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