CN111427733A - Method, system, equipment and medium for testing stability of magnetic disk - Google Patents
Method, system, equipment and medium for testing stability of magnetic disk Download PDFInfo
- Publication number
- CN111427733A CN111427733A CN202010175309.XA CN202010175309A CN111427733A CN 111427733 A CN111427733 A CN 111427733A CN 202010175309 A CN202010175309 A CN 202010175309A CN 111427733 A CN111427733 A CN 111427733A
- Authority
- CN
- China
- Prior art keywords
- read
- file
- files
- writing
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000012360 testing method Methods 0.000 title claims abstract description 26
- 238000004088 simulation Methods 0.000 claims abstract description 27
- 238000003860 storage Methods 0.000 claims abstract description 25
- 230000004044 response Effects 0.000 claims abstract description 16
- 238000004590 computer program Methods 0.000 claims description 9
- 238000010998 test method Methods 0.000 claims description 3
- 238000009826 distribution Methods 0.000 abstract description 6
- 238000004519 manufacturing process Methods 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000000638 solvent extraction Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000009530 blood pressure measurement Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000009533 lab test Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Abstract
The invention discloses a method, a system, equipment and a storage medium for testing the stability of a magnetic disk, wherein the method comprises the following steps: writing a first number of basic files with different sizes in each disk at the same distance based on the capacity of the disk, and acquiring an identification value corresponding to each basic file; randomly writing a second number of files to be read in the interval, and acquiring an identification value of each file to be read; randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk, deleting the simulation files in response to the completion of writing, and reading the files to be read; and judging whether the identification values of the file to be read and the basic file are changed or not, and determining the stability of the disk based on the judgment result. The scheme provided by the invention simulates the data rule of actual production by writing the basic files with different sizes in each disk at the same distance, and greatly shortens the test time by making the files to be read discontinuous in physical distribution.
Description
Technical Field
The present invention relates to the field of disk testing, and more particularly, to a method, a system, a computer device, and a readable medium for testing disk stability.
Background
In the big data era, the integrity of data is of great importance. When the server is restarted or the disk is frequently read and written to delete data, the physical distribution of the data is discontinuous, and the original data in the disk can be damaged. In the server disk test stage, the simulation of the scene in production is difficult.
In the current laboratory test stage, when data read-write pressure measurement is performed on a disk or a file system, data are sequentially filled from the initial position of the disk according to the sequence. The written data is continuous, and if the item is urgent and the time is short, all the blocks of the disk cannot write the data. For example, in the SATA hard disk of 8T, if writing is performed with bs being 4k, iops (input/output per second) is about 200 to 300, and the bandwidth is about 800k to 1.2M, which takes a lot of time to write the entire disk, and obviously is not allowable in terms of items.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a system, a computer device, and a computer-readable storage medium for testing disk stability, in which basic files with different sizes are written in each disk at the same distance, so as to simulate a data rule of actual production, and make files to be read discontinuous in physical distribution, thereby greatly shortening the testing time.
In view of the above, an aspect of the embodiments of the present invention provides a method for testing disk stability, including the following steps: writing a first number of basic files with different sizes in each disk at the same distance based on the capacity of the disk, and acquiring an identification value corresponding to each basic file; randomly writing a second number of files to be read in the interval, and acquiring an identification value of each file to be read; randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the magnetic disk, deleting the simulation files in response to the completion of writing, and reading the files to be read; and judging whether the identification values of the file to be read and the basic file are changed or not, and determining the stability of the disk based on the judgment result.
In some embodiments, the randomly writing the second number of files to be read in the interval includes: judging whether the distance from the starting address of the file to be read to the current interval ending position is smaller than the size of the file to be read; and in response to that the distance from the starting address of the file to be read to the ending position of the current interval is smaller than the size of the file to be read, writing the part of the file to be read which is not completely written into the next adjacent interval.
In some embodiments, the randomly writing the second number of files to be read in the interval further includes: and judging whether adjacent parts exist among the second quantity of files to be read.
In some embodiments, the determining whether the identification values of the file to be read and the base file are changed, and determining the stability of the disk based on the determination result includes: and responding to the unchanged identification values of the file to be read and the basic file, randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk again, and judging whether the writing times reach a threshold value.
In another aspect of the embodiments of the present invention, a system for testing disk stability is further provided, including: the first writing module is configured to write a first number of basic files with different sizes into each disk at the same distance based on the capacity of the disk, and acquire an identification value corresponding to each basic file; the second writing module is configured to write a second number of files to be read randomly in the interval and acquire an identification value of each file to be read; the third writing module is configured to randomly write a third number of simulation files accounting for the preset proportion of the total amount of the disks, delete the simulation files in response to the completion of writing, and read the files to be read; and the judging module is configured to judge whether the identification values of the file to be read and the basic file are changed or not, and determine the stability of the disk based on the judgment result.
In some embodiments, the second write module is further configured to: judging whether the distance from the starting address of the file to be read to the current interval ending position is smaller than the size of the file to be read; and in response to that the distance from the starting address of the file to be read to the ending position of the current interval is smaller than the size of the file to be read, writing the part of the file to be read which is not completely written into the next adjacent interval.
In some embodiments, the second write module is further configured to: and judging whether adjacent parts exist among the second quantity of files to be read.
In some embodiments, the determining module is further configured to: and responding to the unchanged identification values of the file to be read and the basic file, randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk again, and judging whether the writing times reach a threshold value.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: basic files with different sizes are written in each disk at the same distance, the data rule of actual production is simulated, and the files to be read are not continuous in physical distribution, so that the test time is greatly shortened.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method for testing disk stability provided by the present invention;
fig. 2 is a schematic hardware structure diagram of an embodiment of a computer device for testing disk stability according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above objects, a first aspect of embodiments of the present invention provides an embodiment of a method for testing disk stability. FIG. 1 is a schematic diagram of an embodiment of a method for testing disk stability provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, writing a first number of basic files with different sizes in each disk at the same distance based on the capacity of the disk, and acquiring an identification value corresponding to each basic file;
s2, randomly writing a second number of files to be read in the interval, and acquiring the identification value of each file to be read;
s3, randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk, deleting the simulation files in response to the completion of writing, and reading the files to be read; and
and S4, judging whether the identification values of the file to be read and the basic file are changed or not, and determining the stability of the disk based on the judgment result.
And partitioning the whole disk, formatting a file system, and finishing system mounting. For example, the mkfs tool may be used for partitioning and mount.
And writing a first number of basic files with different sizes in each disk at the same distance based on the capacity of the disk, and acquiring an identification value corresponding to each basic file. According to the test time and the size of the disk, a certain proportion of data can be written into the disk data by using the dd command, for example, the data can be 10%, 20% or 50%, if the disk capacity is large, the data can be written by about 10%, and if the disk capacity is small, the data can be written by 50%. dd commands are commands on Unix and Unix-like systems, the primary function being to convert and copy files. The first number may be 10, and the sizes of the 10 elementary files may be 4k, 8k, 16k, 32k, 64k, 128k, 256k, 512k, 1024k, and 2048k, respectively, so as to cover the data block size in actual production as much as possible. And acquiring the md5 value corresponding to each basic file for subsequent consistency check.
And randomly writing a second number of files to be read in the interval, and acquiring the identification value of each file to be read. In some embodiments, the randomly writing the second number of files to be read in the interval includes: judging whether the distance from the starting address of the file to be read to the current interval ending position is smaller than the size of the file to be read; and in response to that the distance from the starting address of the file to be read to the ending position of the current interval is smaller than the size of the file to be read, writing the part of the file to be read which is not completely written into the next adjacent interval.
For example, for convenience of description, 10 base files may be referred to as a, b, c … … j, the interval between a and b is the same as the interval between b and c, a second number of files to be read are randomly written to the disk, the file to be read is referred to as A, B … … if the start address of a is between a and b and the distance from the start address of a to the start address of b is less than the size of a, the remaining part of a will continue to be written to the disk starting from the end address of b.
In some embodiments, the randomly writing the second number of files to be read in the interval further includes: and judging whether adjacent parts exist among the second quantity of files to be read. Continuing with the above example, if the end address of a is adjacent to the start address of B, indicating that there is an adjacent portion between the files to be read, the adjacent files to be read need to be rewritten so that the files to be read are not continuous in physical distribution.
And randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk, deleting the simulation files in response to the completion of writing, and reading the files to be read. In general, the data size of each write is 4K, so that it takes a long time to read if a large data block is encountered. In the present embodiment, the size of data written each time is increased, for example, bs is 8192K, so that the number of times and time of writing can be reduced. The analog file is a null write disk, and is also not continuous in physical distribution. The deletion of the data after the writing is finished simulates the reading and deletion of the data in the actual production.
And judging whether the identification values of the file to be read and the basic file are changed or not to determine whether the stability of the disk is good or not. In some embodiments, the determining whether the identification values of the file to be read and the base file are changed, and determining the stability of the disk based on the determination result includes: and responding to the unchanged identification values of the file to be read and the basic file, randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk again, and judging whether the writing times reach a threshold value. The writing and deleting of the simulation file can be repeated for many times, and when the threshold value is reached, if the identification values of the basic file and the file to be read are not changed, the stability of the disk is good.
It should be particularly noted that, the steps in the embodiments of the method for testing the stability of a magnetic disk described above can be mutually intersected, replaced, added, or deleted, and therefore, these reasonable permutations and combinations should also belong to the scope of the present invention, and should not limit the scope of the present invention to the embodiments.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided a system for testing stability of a magnetic disk, including: the first writing module is configured to write a first number of basic files with different sizes into each disk at the same distance based on the capacity of the disk, and acquire an identification value corresponding to each basic file; the second writing module is configured to write a second number of files to be read randomly in the interval and acquire an identification value of each file to be read; the third writing module is configured to randomly write a third number of simulation files accounting for the preset proportion of the total amount of the disks, delete the simulation files in response to the completion of writing, and read the files to be read; and the judging module is configured to judge whether the identification values of the file to be read and the basic file are changed or not, and determine the stability of the disk based on the judgment result.
In some embodiments, the second write module is further configured to: judging whether the distance from the starting address of the file to be read to the current interval ending position is smaller than the size of the file to be read; and in response to that the distance from the starting address of the file to be read to the ending position of the current interval is smaller than the size of the file to be read, writing the part of the file to be read which is not completely written into the next adjacent interval.
In some embodiments, the second write module is further configured to: and judging whether adjacent parts exist among the second quantity of files to be read.
In some embodiments, the determining module is further configured to: and responding to the unchanged identification values of the file to be read and the basic file, randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk again, and judging whether the writing times reach a threshold value.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, writing a first number of basic files with different sizes in each disk at the same distance based on the capacity of the disk, and acquiring an identification value corresponding to each basic file; s2, randomly writing a second number of files to be read in the interval, and acquiring the identification value of each file to be read; s3, randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk, deleting the simulation files in response to the completion of writing, and reading the files to be read; and S4, judging whether the identification values of the file to be read and the basic file are changed or not, and determining the stability of the disk based on the judgment result.
In some embodiments, the randomly writing the second number of files to be read in the interval includes: judging whether the distance from the starting address of the file to be read to the current interval ending position is smaller than the size of the file to be read; and in response to that the distance from the starting address of the file to be read to the ending position of the current interval is smaller than the size of the file to be read, writing the part of the file to be read which is not completely written into the next adjacent interval.
In some embodiments, the randomly writing the second number of files to be read in the interval further includes: and judging whether adjacent parts exist among the second quantity of files to be read.
In some embodiments, the determining whether the identification values of the file to be read and the base file are changed, and determining the stability of the disk based on the determination result includes: and responding to the unchanged identification values of the file to be read and the basic file, randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk again, and judging whether the writing times reach a threshold value.
Fig. 2 is a schematic hardware structure diagram of an embodiment of the computer apparatus for testing disk stability according to the present invention.
Taking the apparatus shown in fig. 2 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 2 illustrates the connection by a bus as an example.
The memory 302 is a non-volatile computer-readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for testing disk stability in the embodiments of the present application. The processor 301 executes various functional applications of the server and data processing by running nonvolatile software programs, instructions and modules stored in the memory 302, that is, implements the method for testing disk stability of the above-described method embodiment.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the method of testing the stability of the magnetic disk, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
Program instructions/modules corresponding to one or more methods of testing disk stability are stored in the memory 302 and, when executed by the processor 301, perform the method of testing disk stability in any of the above-described method embodiments.
Any embodiment of a computer apparatus for performing the method for testing disk stability described above may achieve the same or similar effects as any corresponding embodiment of the method described above.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for testing the stability of a magnetic disk can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be understood that the computer-readable storage media (e.g., memory) herein may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory, by way of example and not limitation, nonvolatile memory may include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory volatile memory may include Random Access Memory (RAM), which may serve as external cache memory, by way of example and not limitation, RAM may be available in a variety of forms, such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link DRAM (S L DRAM, and Direct Rambus RAM (DRRAM).
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof.A computer readable medium includes a computer storage medium and a communication medium including any medium that facilitates transfer of a computer program from one location to another.A storage medium may be any available medium that can be accessed by a general purpose or special purpose computer.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.
Claims (10)
1. A method of testing the stability of a magnetic disk, comprising the steps of:
writing a first number of basic files with different sizes in each disk at the same distance based on the capacity of the disk, and acquiring an identification value corresponding to each basic file;
randomly writing a second number of files to be read in the interval, and acquiring an identification value of each file to be read;
randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the magnetic disk, deleting the simulation files in response to the completion of writing, and reading the files to be read; and
and judging whether the identification values of the file to be read and the basic file are changed or not, and determining the stability of the disk based on the judgment result.
2. The method of claim 1, wherein the randomly writing a second number of files to be read in the interval comprises:
judging whether the distance from the starting address of the file to be read to the current interval ending position is smaller than the size of the file to be read; and
and in response to that the distance from the starting address of the file to be read to the ending position of the current interval is smaller than the size of the file to be read, writing the part of the file to be read which is not completely written into the next adjacent interval.
3. The method of claim 1, wherein the randomly writing a second number of files to be read in the interval further comprises:
and judging whether adjacent parts exist among the second quantity of files to be read.
4. The method according to claim 1, wherein the determining whether the identification values of the file to be read and the base file are changed and determining the stability of the disk based on the determination result comprises:
and responding to the unchanged identification values of the file to be read and the basic file, randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk again, and judging whether the writing times reach a threshold value.
5. A system for testing the stability of a magnetic disk, comprising:
the first writing module is configured to write a first number of basic files with different sizes into each disk at the same distance based on the capacity of the disk, and acquire an identification value corresponding to each basic file;
the second writing module is configured to write a second number of files to be read randomly in the interval and acquire an identification value of each file to be read;
the third writing module is configured to randomly write a third number of simulation files accounting for the preset proportion of the total amount of the disks, delete the simulation files in response to the completion of writing, and read the files to be read; and
and the judging module is configured to judge whether the identification values of the file to be read and the basic file are changed or not, and determine the stability of the disk based on the judgment result.
6. The system of claim 5, wherein the second write module is further configured to:
judging whether the distance from the starting address of the file to be read to the current interval ending position is smaller than the size of the file to be read; and
and in response to that the distance from the starting address of the file to be read to the ending position of the current interval is smaller than the size of the file to be read, writing the part of the file to be read which is not completely written into the next adjacent interval.
7. The system of claim 5, wherein the second write module is further configured to:
and judging whether adjacent parts exist among the second quantity of files to be read.
8. The system of claim 5, wherein the determination module is further configured to:
and responding to the unchanged identification values of the file to be read and the basic file, randomly writing a third number of simulation files accounting for the preset proportion of the total amount of the disk again, and judging whether the writing times reach a threshold value.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010175309.XA CN111427733A (en) | 2020-03-13 | 2020-03-13 | Method, system, equipment and medium for testing stability of magnetic disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010175309.XA CN111427733A (en) | 2020-03-13 | 2020-03-13 | Method, system, equipment and medium for testing stability of magnetic disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111427733A true CN111427733A (en) | 2020-07-17 |
Family
ID=71546349
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010175309.XA Withdrawn CN111427733A (en) | 2020-03-13 | 2020-03-13 | Method, system, equipment and medium for testing stability of magnetic disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111427733A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115543720A (en) * | 2022-11-30 | 2022-12-30 | 湖南国科亿存信息科技有限公司 | File system read-write correctness testing method and device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1975935A (en) * | 2006-12-15 | 2007-06-06 | 北京中星微电子有限公司 | External storing performance testing method and apparatus |
US20170060886A1 (en) * | 2015-08-31 | 2017-03-02 | International Business Machines Corporation | File deletion in storage devices based on the deletion priority rules |
CN109542701A (en) * | 2018-11-19 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of disk performance test method and device |
-
2020
- 2020-03-13 CN CN202010175309.XA patent/CN111427733A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1975935A (en) * | 2006-12-15 | 2007-06-06 | 北京中星微电子有限公司 | External storing performance testing method and apparatus |
US20170060886A1 (en) * | 2015-08-31 | 2017-03-02 | International Business Machines Corporation | File deletion in storage devices based on the deletion priority rules |
CN109542701A (en) * | 2018-11-19 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of disk performance test method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115543720A (en) * | 2022-11-30 | 2022-12-30 | 湖南国科亿存信息科技有限公司 | File system read-write correctness testing method and device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112835528A (en) | Dirty page refreshing method and device, electronic equipment and storage medium | |
CN114968130B (en) | Chain table initialization device, method, system, computer equipment and storage medium | |
CN110504002B (en) | Hard disk data consistency test method and device | |
CN113434470B (en) | Data distribution method and device and electronic equipment | |
CN111427733A (en) | Method, system, equipment and medium for testing stability of magnetic disk | |
CN106407123A (en) | Automated testing method and device of server interface | |
CN113760187A (en) | Method, system, terminal and storage medium for generating deduplication IO thread based on vdbench | |
CN110990207B (en) | BPS memory test method, system, terminal and storage medium based on Whitley platform | |
CN106681893A (en) | Realization method of NAND FLASH simulator | |
CN110928910B (en) | Method and device for reading and writing vector elements in Shapfile at high speed | |
CN114756523A (en) | Distributed storage method, device and medium | |
CN110874285B (en) | Method for realizing reducible write operation of EXT file system | |
CN112015672A (en) | Data processing method, device, equipment and storage medium in storage system | |
CN112000591A (en) | SSD (solid State disk) scanning method and device capable of appointing logical block address, computer equipment and storage medium | |
CN113468105A (en) | Data structure of data snapshot, related data processing method, device and system | |
CN110673999B (en) | Hard disk data moving test method and device, electronic equipment and storage medium | |
CN115933995B (en) | Method and device for writing data into solid state disk, electronic equipment and readable medium | |
CN116150212B (en) | Data processing method and device | |
CN117112452B (en) | Register simulation configuration method, device, computer equipment and storage medium | |
CN113132661B (en) | Video data storage method and device, storage medium and camera equipment | |
CN111427756B (en) | Method, system, equipment and medium for carrying out mixed pressure test on single hard disk | |
CN111625192B (en) | Metadata object access method, device, equipment and medium | |
CN114003431B (en) | Non-4 k aligned Trim data verification method, system and device for Nvme solid state disk | |
CN115408221A (en) | Method, device, equipment and medium for testing performance of compression coil of storage equipment | |
CN111435285B (en) | Data writing method and device for storage volume, electronic equipment and machine-readable storage medium |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200717 |
|
WW01 | Invention patent application withdrawn after publication |