CN114218031A - Solid state disk testing method and system - Google Patents

Solid state disk testing method and system Download PDF

Info

Publication number
CN114218031A
CN114218031A CN202210157520.8A CN202210157520A CN114218031A CN 114218031 A CN114218031 A CN 114218031A CN 202210157520 A CN202210157520 A CN 202210157520A CN 114218031 A CN114218031 A CN 114218031A
Authority
CN
China
Prior art keywords
solid state
capacity
state disk
data
hard disk
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
CN202210157520.8A
Other languages
Chinese (zh)
Other versions
CN114218031B (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 CN202210157520.8A priority Critical patent/CN114218031B/en
Publication of CN114218031A publication Critical patent/CN114218031A/en
Application granted granted Critical
Publication of CN114218031B publication Critical patent/CN114218031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

Landscapes

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

Abstract

The invention discloses a method and a device for testing a solid state disk, wherein the method comprises the following steps: dividing the solid state disk into N parts according to the capacity, and recording the position information of each part of the capacity of the hard disk, wherein N is an integer greater than 1; sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk; and testing the solid state disk containing data with different writing time. The solid state disk is divided into a plurality of parts according to the capacity, and the data with the corresponding capacity is sequentially written into the capacity of each part of the hard disk at different time points, so that the writing time of each part of the capacity of the hard disk is different, the data holding time is also different, and the cold and hot data in the solid state disk are constructed. Furthermore, the solid state disk containing cold and hot data with different writing time is tested, the related algorithm and function of the firmware of the solid state disk can be accurately and comprehensively verified, and the flexibility and comprehensiveness of the solid state disk test are improved.

Description

Solid state disk testing method and system
Technical Field
The invention relates to the technical field of solid state disks, in particular to a method and a system for testing a solid state disk.
Background
With the continuous improvement of the informatization degree of the modern society, more and more data are generated and stored, and the modern society has entered the big data era from the internet era. Solid state disks are widely used as high-performance, large-capacity storage media. The solid state disk can be used as a cache disk sometimes, in the scene, data written into the solid state disk can be read only when the data is written, then new data is written and read, the data written earlier can be stored in the solid state disk for a long time, so that the data written earlier becomes cold data, and the data written newly is hot data.
Because the time for keeping the cold data and the hot data in the solid state disk is different, the longer the keeping time is, the higher the probability of error in the next reading is, and therefore the firmware of the solid state disk can adopt a certain algorithm to avoid the increase of the error probability. However, when a solid state disk is developed, the solid state disk is usually tested by circularly writing and reading the solid state disk, and the testing of cold and hot data in the solid state disk is lacked, so that the firmware function verification of the solid state disk is not complete.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method and a system for testing a solid state disk, and specifically, an embodiment of the present invention provides the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for testing a solid state disk, including:
dividing the solid state disk into N parts according to the capacity, and recording the position information of each part of the capacity of the hard disk, wherein N is an integer greater than 1;
sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk;
and testing the solid state disk containing data with different writing time.
Further, before the sequentially writing the data with the corresponding capacity into the respective capacities of the hard disk at different time points according to the location information of the respective capacities of the hard disk, the method further includes:
and carrying out full-disk writing of data on the solid state disk.
Further, the sequentially writing the data with the corresponding capacity into each capacity of the hard disk at different time points includes:
and sequentially writing data with corresponding capacity into each capacity of the hard disk according to the writing time interval corresponding to each capacity of the hard disk.
Further, the writing time interval corresponding to each capacity of the hard disk is determined by a preset time function, and the time function reflects the relationship between the writing time interval and the identification information of each capacity of the hard disk.
Further, the testing the solid state disk containing data with different writing times includes:
and after data with corresponding capacity is written into any hard disk, testing the solid state disk within a corresponding writing time interval.
Further, the testing includes: electrical resting test or read test.
Further, the function of time comprises a non-linear function.
In a second aspect, the present invention further provides a system for testing a solid state disk, including:
dividing a unit: the device comprises a solid state disk, a storage unit and a processing unit, wherein the solid state disk is divided into N parts according to capacity and position information of each part of capacity of the hard disk is recorded, and N is an integer greater than 1;
a storage unit: the data writing device is used for sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk;
a test unit: the solid state disk testing device is used for testing the solid state disk containing data with different writing time.
In a third aspect, the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for testing a solid state disk according to the first aspect when executing the program.
In a fourth aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for testing a solid state disk according to the first aspect.
According to the technical scheme, the solid state disk is divided into a plurality of parts according to the capacity, and the data with the corresponding capacity is sequentially written into the parts of the capacity of the hard disk at different time points, so that the writing time of each part of the capacity of the hard disk is different, the data retention time is different, and the cold and hot data in the solid state disk are constructed. Furthermore, the solid state disk containing cold and hot data with different writing time is tested, the problem that the firmware function of the solid state disk is not completely verified is solved, the related algorithm and function of the firmware of the solid state disk can be accurately and completely verified, and the flexibility and the comprehensiveness of the solid state disk test are improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flowchart of a method for testing a solid state disk according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a testing apparatus for a solid state disk according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a method for testing a solid state disk according to an embodiment of the present invention. As shown in fig. 1, the method for testing a solid state disk according to the embodiment of the present invention includes the following steps:
step S1: dividing the solid state disk into N parts according to the capacity, and recording the position information of each part of the capacity of the hard disk, wherein N is an integer greater than 1.
Specifically, the solid state disk is divided into N parts according to the capacity C, where N is an integer greater than 1, the division mode may be equal or unequal, each obtained part is the capacity of each hard disk, and then position information of the capacity of each hard disk obtained by the division is recorded, where the position information includes an offset parameter and a data size parameter. For example, when the capacity C of a solid state disk is equally divided into 10 copies and the position information of each copy of the capacity of the hard disk is set by the offset parameter and the size parameter, the data size of each copy of the capacity of the hard disk is size =10% C, and the offset amounts from the 1 st copy to the 10 th copy are offset =0% to offset =90% C in this order.
Step S2: and sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk.
Specifically, after the capacity of the solid state disk is divided, each capacity of the hard disk has a corresponding size, and then according to the position information of each capacity of the hard disk, data with corresponding capacity is sequentially written into each capacity of the hard disk at different time points, so that cold and hot data with different writing time are constructed in the solid state disk. For example, if the capacity C of a solid state disk is equally divided into N, the capacity corresponding to each capacity of the disk is equal to
Figure DEST_PATH_IMAGE001
At time t1, write to the 1 st copy of the solid state disk capacity
Figure 821147DEST_PATH_IMAGE001
The data of the size is written into the 2 nd copy of the solid state disk capacity at the time t2
Figure 488888DEST_PATH_IMAGE001
Size data, and repeating until the Nth copy of the solid state disk is written
Figure 626609DEST_PATH_IMAGE001
The data size is different, so that the writing time of each volume in the solid state disk is different, the data retention time is different, and cold and hot data are constructed in the solid state disk.
In an embodiment of the present invention, before sequentially writing data with corresponding capacities into the respective capacities of the hard disk at different time points according to the location information of the respective capacities of the hard disk in this step, the method further includes: and carrying out full-disk writing of data on the solid state disk.
Specifically, before writing data with corresponding capacity into each capacity of a hard disk in the solid state disk, the data of the solid state disk is written into the solid state disk in a full disk mode, and the solid state disk is written into the solid state disk in a full disk mode, so that the data in the solid state disk are guaranteed, and then the solid state disk can be tested after any one hard disk is written into the data with the corresponding capacity, and the testing time of the solid state disk is flexible.
In an embodiment of the present invention, sequentially writing data with corresponding capacities into each capacity of the hard disk at different time points in this step includes: and sequentially writing data with corresponding capacity into each capacity of the hard disk according to the writing time interval corresponding to each capacity of the hard disk.
Specifically, in the embodiment, different writing time intervals are set for each capacity of the hard disk in the solid state disk, so that data with corresponding capacity is written into each capacity of the hard disk sequentially at different time points, and then cold and hot data in the solid state disk is constructed. The writing time interval corresponding to each capacity of the hard disk can be randomly generated or determined according to a functional relationship, so that the process of storing data when a user actually uses the solid state disk is better simulated.
According to the solid state disk testing method provided by the embodiment of the invention, the capacity is divided into a plurality of parts from the capacity of the solid state disk, and each part is subjected to writing operation after different time intervals, so that the thought is simple and clear, the realization is easy, the retention time of cold data in the solid state disk is different, the effectiveness of the solid state disk testing method is ensured, and the testing flexibility is improved.
In an embodiment of the present invention, the write-in time interval corresponding to each capacity of the hard disk is determined by a preset time function, and the time function represents a relationship between the write-in time interval and the identification information of each capacity of the hard disk.
Specifically, the identification information of each hard disk capacity represents the sequence of writing data to each hard disk capacity, such as the number and serial number of each hard disk capacity, and has a corresponding relationship with the position information of each hard disk capacity. For example, the capacity C of the solid state disk is divided into N, and the identification information, which is the number corresponding to each capacity of the hard disk, is 12,3, …, N in sequence. The writing time interval corresponding to each capacity of the hard disk is t, a time function t = f (N), N =1,2 … N is set, the time function represents the relationship between the writing time interval t corresponding to each capacity of the hard disk and the identification information N of each capacity of the hard disk, and a specific function body can be set with different functions according to actual test requirements.
According to the test method of the solid state disk, provided by the embodiment of the invention, through setting different time interval functions, the structure is compact in the aspect of realizing logic, and the retention time of cold data in the solid state disk can be controlled, so that cold and hot data under different scenes can be simulated, and the firmware related functions of the solid state disk can be verified more comprehensively.
In one embodiment of the invention, the function of time comprises a non-linear function.
Specifically, the non-linear function, i.e., the function image, is not a function of a straight line, and includes an exponential function, a logarithmic function, a power function, a polynomial function, and the like. For example, the capacity C of the solid state disk is divided into 10 parts, and the numbers corresponding to the capacities of the hard disk parts, i.e., identification information, are 1,2,3, …, and 10 in sequence; setting a writing time interval t corresponding to each capacity of the hard disk as a power function, wherein t =
Figure 72502DEST_PATH_IMAGE002
N =1,2 … 10, with the unit being h (hours). Therefore, a nonlinear function relation is constructed to show different writing time intervals corresponding to each capacity of the hard disk. By setting the nonlinear function as the time function, the input process of cold and hot data in a real scene can be better simulated, the firmware function of the solid state disk can be verified more comprehensively, and the flexibility and the comprehensiveness of the test are improved.
Step S3: and testing the solid state disk containing data with different writing time.
Specifically, after the steps S1 and S2 are completed, the solid state disk is constructed with hot and cold data with different writing times, so that the solid state disk can be tested based on the hot and cold data, functions and algorithms of firmware of the solid state disk can be verified, and optimization is performed based on the test result. The test on the solid state disk can be based on any tool having a read-write function on the solid state disk, such as a fio tool.
In one embodiment of the present invention, the testing in this step comprises: electrical resting test or read test.
Specifically, the electric standing test is an electric standing test, which means that the solid state disk is electrified and is not operated; read tests include read-write tests, and the like.
In an embodiment of the present invention, the testing the solid state disk including data with different writing times in this step includes: and after data with corresponding capacity is written into any hard disk, testing the solid state disk within a corresponding writing time interval.
Specifically, after data with corresponding capacity is written into any hard disk, the solid state disk can be tested in a corresponding writing time interval, and the test comprises electric standing or reading test and the like.
On the basis of the foregoing embodiments, in a specific embodiment of the present invention, a specific flow of the test method for a solid state disk of the present invention is described as follows:
(1) the solid state disk is equally divided into 10 parts according to the capacity C, in the embodiment, a fio tool is adopted to perform read-write test on the solid state disk, and data with the size of C/10 can be written into the nth part (n =1,2 … 10) of the capacity of the solid state disk through the offset parameter and the size parameter setting, and all the data are expressed by percentage; setting a write time interval t =corresponding to each hard disk capacity
Figure 92411DEST_PATH_IMAGE002
N =1,2 … 10, with the unit h;
(2) firstly, writing the solid state disk once, and then electrically standing or performing a read test on the solid state disk at any time;
(3) then writing data with the size of C/10 into the 1 st part of the capacity of the solid state disk, and writing the data by using a fio tool, wherein the main parameters are as follows: offset =0%, size =10%, rw = write; after writing is finished, the solid state disk is electrically placed or read within the time t =2 h;
(4) then writing data with the size of C/10 into the 2 nd copy of the capacity of the solid state disk, and writing the data by using a fio tool, wherein the main parameters are as follows: offset =10%, size =10%, rw = write; after writing is finished, the solid state disk is electrically placed or read within the time t =4 h;
(5) then writing data with the size of C/10 into the 3 rd copy of the capacity of the solid state disk, and writing the data by using a fio tool, wherein the main parameters are as follows: offset =20%, size =10%, rw = write; after writing is finished, the solid state disk is electrically placed or read within the time t =8 h;
(6) and circulating in this way, changing the offset parameter and the time interval t of the fio test script until the 10 th part of the capacity of the solid state disk is written, so that the writing time of the 10 parts of data in the solid state disk is different, and the data holding time is also different.
(7) And testing the solid state disk containing cold and hot data with different storage times.
On the basis of the above embodiments, the solid state disk is divided into several parts according to the capacity, and data with corresponding capacity is sequentially written into the hard disk in each part of the capacity at different time points, so that the writing time of each part of the capacity of the hard disk is different, the data retention time is also different, and cold and hot data in the solid state disk is constructed. Furthermore, the solid state disk containing cold and hot data with different writing time is tested, the problem that the firmware function of the solid state disk is not completely verified is solved, the related algorithm and function of the firmware of the solid state disk can be accurately and completely verified, and the flexibility and the comprehensiveness of the solid state disk test are improved.
Corresponding to the above embodiments, another embodiment of the present invention further provides a testing apparatus for a solid state disk, wherein in this embodiment, the same or corresponding contents as those in the above embodiments refer to the above description, and are not repeated herein.
As shown in fig. 2, the testing apparatus for a solid state disk disclosed in the embodiment of the present invention includes a dividing unit 201, a storage unit 202, and a testing unit 203, where:
the dividing unit 201: the device comprises a solid state disk, a storage unit and a processing unit, wherein the solid state disk is divided into N parts according to capacity and position information of each part of capacity of the hard disk is recorded, and N is an integer greater than 1;
storage unit 202: the data writing device is used for sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk; the solid state disk is also used for carrying out full disk writing of data before sequentially writing the data with the corresponding capacity into the hard disk with the capacity of each part at different time points according to the position information of the capacity of each part of the hard disk; the step of sequentially writing the data with the corresponding capacity into each capacity of the hard disk at different time points comprises the following steps: writing data with corresponding capacity into each capacity of the hard disk in sequence according to the writing time interval corresponding to each capacity of the hard disk; the writing time interval corresponding to each capacity of the hard disk is determined by a preset time function, and the time function reflects the relationship between the writing time interval and the identification information of each capacity of the hard disk; the function of time comprises a non-linear function;
the test unit 203: the solid state disk is used for testing data containing different writing time;
the solid state disk is also used for testing the solid state disk in a corresponding writing time interval after data with corresponding capacity is written in any hard disk; the test comprises the following steps: electrical resting test or read test.
According to the solid state disk testing device provided by the embodiment of the invention, by adopting the solid state disk testing method in the embodiment, the solid state disk is divided into a plurality of parts according to the capacity, and the data with the corresponding capacity is sequentially written into the hard disk in each part of the capacity at different time points, so that the writing time of each part of the capacity of the hard disk is different, the data retention time is different, and the cold and hot data in the solid state disk are constructed. Furthermore, the solid state disk containing cold and hot data with different writing time is tested, the problem that the firmware function of the solid state disk is not completely verified is solved, the related algorithm and function of the firmware of the solid state disk can be accurately and completely verified, and the flexibility and the comprehensiveness of the solid state disk test are improved.
The testing device for the solid state disk provided by the embodiment of the invention can be used for executing the testing method for the solid state disk described in the embodiment, and the working principle and the beneficial effect are similar, so detailed description is omitted here, and specific contents can be referred to the introduction of the embodiment.
Based on the same inventive concept, another embodiment of the present invention provides an electronic device, which specifically includes the following components, with reference to fig. 3: a processor, a memory, a communication interface, and a communication bus;
the processor, the memory and the communication interface complete mutual communication through the communication bus;
the processor is configured to call a computer program in the memory, and when the processor executes the computer program, the processor implements all the steps of the method, for example, when the processor executes the computer program, the processor implements the following processes: dividing the solid state disk into N parts according to the capacity, and recording the position information of each part of the capacity of the hard disk, wherein N is an integer greater than 1; sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk; and testing the solid state disk containing data with different writing time.
It will be appreciated that the detailed functions and extended functions that the computer program may perform may be as described with reference to the above embodiments.
Based on the same inventive concept, yet another embodiment of the present invention provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor implements all the steps of the above method, for example, the processor implements the following processes when executing the computer program: dividing the solid state disk into N parts according to the capacity, and recording the position information of each part of the capacity of the hard disk, wherein N is an integer greater than 1; sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk; and testing the solid state disk containing data with different writing time.
It will be appreciated that the detailed functions and extended functions that the computer program may perform may be as described with reference to the above embodiments.
Based on the same inventive concept, a further embodiment of the present invention provides a computer program product comprising a computer program that, when being executed by a processor, performs all the steps of the above method, for example, when the processor executes the computer program, performs the following processes: dividing the solid state disk into N parts according to the capacity, and recording the position information of each part of the capacity of the hard disk, wherein N is an integer greater than 1; sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk; and testing the solid state disk containing data with different writing time.
In addition, the logic instructions in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions may be essentially or partially implemented in the form of software products, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the traffic auditing method according to various embodiments or some parts of embodiments.
Moreover, in the present invention, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Furthermore, in the present disclosure, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A test method of a solid state disk is characterized by comprising the following steps:
dividing the solid state disk into N parts according to the capacity, and recording the position information of each part of the capacity of the hard disk, wherein N is an integer greater than 1;
sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk;
and testing the solid state disk containing data with different writing time.
2. The method for testing a solid state disk according to claim 1, wherein before the step of sequentially writing the data with the corresponding capacity into the respective capacities of the hard disk at different time points according to the location information of the respective capacities of the hard disk, the method further comprises:
and carrying out full-disk writing of data on the solid state disk.
3. The method for testing the solid state disk of claim 1, wherein the step of sequentially writing the data with the corresponding capacity into the hard disk at different time points comprises the following steps:
and sequentially writing data with corresponding capacity into each capacity of the hard disk according to the writing time interval corresponding to each capacity of the hard disk.
4. The method for testing the solid state disk according to claim 3, wherein the writing time interval corresponding to each capacity of the hard disk is determined by a preset time function, and the time function represents a relationship between the writing time interval and the identification information of each capacity of the hard disk.
5. The method for testing the solid state disk according to claim 2, wherein the step of testing the solid state disk containing data with different writing times comprises:
and after data with corresponding capacity is written into any hard disk, testing the solid state disk within a corresponding writing time interval.
6. The method for testing the solid state disk according to claim 2, wherein the testing comprises: electrical resting test or read test.
7. The method of claim 4, wherein the function of time comprises a non-linear function.
8. A testing device for a solid state disk is characterized by comprising:
dividing a unit: the device comprises a solid state disk, a storage unit and a processing unit, wherein the solid state disk is divided into N parts according to capacity and position information of each part of capacity of the hard disk is recorded, and N is an integer greater than 1;
a storage unit: the data writing device is used for sequentially writing data with corresponding capacity into each capacity of the hard disk at different time points according to the position information of each capacity of the hard disk;
a test unit: the solid state disk testing device is used for testing the solid state disk containing data with different writing time.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method for testing a solid state disk according to any one of claims 1 to 7 are implemented when the program is executed by the processor.
10. A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method for testing a solid state disk according to any one of claims 1 to 7.
CN202210157520.8A 2022-02-21 2022-02-21 Solid state disk testing method and system Active CN114218031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210157520.8A CN114218031B (en) 2022-02-21 2022-02-21 Solid state disk testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210157520.8A CN114218031B (en) 2022-02-21 2022-02-21 Solid state disk testing method and system

Publications (2)

Publication Number Publication Date
CN114218031A true CN114218031A (en) 2022-03-22
CN114218031B CN114218031B (en) 2022-06-14

Family

ID=80709049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210157520.8A Active CN114218031B (en) 2022-02-21 2022-02-21 Solid state disk testing method and system

Country Status (1)

Country Link
CN (1) CN114218031B (en)

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)
CN108630285A (en) * 2017-03-16 2018-10-09 工业和信息化部电信研究院 A kind of method and apparatus of test solid state disk
CN110955392A (en) * 2019-12-03 2020-04-03 山东华芯半导体有限公司 Method for monitoring data storage time on line in SSD

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)
CN108630285A (en) * 2017-03-16 2018-10-09 工业和信息化部电信研究院 A kind of method and apparatus of test solid state disk
CN110955392A (en) * 2019-12-03 2020-04-03 山东华芯半导体有限公司 Method for monitoring data storage time on line in SSD

Also Published As

Publication number Publication date
CN114218031B (en) 2022-06-14

Similar Documents

Publication Publication Date Title
CN111737265B (en) Block data access method, block data storage method and device
CN110111835B (en) NVMe solid state disk IOPS test method, system and device
CN107168651B (en) Small file aggregation storage processing method
CN107402870B (en) Method and device for processing log segment in metadata server
CN111400099B (en) Flash memory data rereading method, device, equipment and computer readable storage medium
CN113220239A (en) Erasing and writing method, device and equipment for flash storage and readable storage medium
CN110504002B (en) Hard disk data consistency test method and device
CN112466378A (en) Solid state disk operation error correction method and device and related components
CN107256723A (en) A kind of method of testing and device for storing product
CN107678894B (en) Memory test method, device and system
CN107766067B (en) Method for improving compressed mirror image burning speed, storage medium and computer
CN108777156A (en) A kind of flash memory data processing method and device
CN114218031B (en) Solid state disk testing method and system
CN105808451B (en) Data caching method and related device
CN110287164B (en) Data recovery method and device and computer equipment
CN109445715B (en) Bad block processing method and device for combined block
CN105830067B (en) A kind of file information processing method, device and document handling apparatus, system
CN110658994A (en) Data processing method and device based on HDD (hard disk drive) and SSD (solid State disk) hybrid disk array
CN113805800B (en) RAID stripe-based IO writing method, device, equipment and readable medium
CN112882659B (en) Information obtaining method and device, electronic equipment and storage medium
CN112162699B (en) Data reading and writing method, device, equipment and computer readable storage medium
CN108958658B (en) Target data acquisition method and device
CN110837345A (en) Bad block table storage method and device
CN111367462B (en) Data processing method and device
CN116467122B (en) Method and device for testing data retention capacity of flash memory

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