Storage test equipment and test method thereof

Through storage testing devices and methods, the write cache capacity of general flash storage devices is accurately obtained, which solves the problem of poor read and write performance development, improves programming efficiency and performance, and is suitable for a variety of operating conditions.

CN119025358AInactive Publication Date: 2024-11-26合肥康芯威存储技术有限公司

Patent Information

Application Number
CN202411515244.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2024-11-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing general flash memory storage devices have not developed enough read and write performance, mainly because the read and write cache size is not a standard parameter, so it is difficult for R&D personnel to accurately obtain the write cache capacity of the storage device, which affects the efficiency of data processing logic programming.

Method used

A storage test equipment and testing method are designed. Through the combination of data writing module, analysis module, power-down module, cycle control module and statistics module, write commands and cycle tests, obtain the data processing volume of the machine to be tested, and draw Capacity probability distribution curve, thereby accurately obtaining the write cache capacity of the storage device.

Benefits of technology

It realizes accurate acquisition of the write cache capacity of the storage device, improves the efficiency of data processing logic programming, develops the read and write performance of the storage device, and is suitable for a variety of working conditions during the development, optimization and user usage stages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025358A_ABST
    Figure CN119025358A_ABST
Patent Text Reader

Abstract

The invention provides storage test equipment and a test method thereof, and the test method comprises the following steps: generating a write command, and writing preset data into a to-be-tested machine; after the to-be-tested machine completes the write command, feedback information is obtained and analyzed from the to-be-tested machine, and the data processing amount of the to-be-tested machine is obtained; setting test times, powering off the to-be-tested machine and then powering on the to-be-tested machine, and circulating the step of writing the preset data and the step of acquiring the data processing amount until the round of the write command reaches the test times; and making a capacity probability distribution curve of the to-be-tested machine according to the write command round of the preset data and the data processing amount of the to-be-tested machine. According to the storage test equipment and the test method thereof, the write cache capacity of the storage equipment can be accurately obtained, so that the data processing logic programming efficiency of the storage equipment is improved, and the read-write performance of the storage equipment is developed as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of storage testing, and in particular to a storage testing device and a testing method thereof. Background Art

[0002] Universal Flash Storage (UFS) is widely used in mobile phones and other high-end mobile communication devices due to its high read and write performance. The read and write performance of UFS devices is affected by many factors, such as the read and write cache size, flash communication frequency, UFS protocol communication frequency, and storage algorithm of the storage device. For universal flash storage devices, the read and write cache size will affect the data processing logic of the storage device. General programming algorithms cannot develop the full performance potential of storage hardware. The read and write cache size is not a standard parameter. Due to the influence of the process and the settings of upstream R&D personnel, the read and write cache size is completely a black box for R&D personnel. Therefore, the data processing logic of the storage device often does not fully develop the read and write performance of the storage device. Summary of the invention

[0003] The object of the present invention is to provide a storage testing device and a testing method thereof, which can accurately obtain the write cache capacity of the storage device, thereby improving the data processing logic programming efficiency of the storage device and developing the read and write performance of the storage device as much as possible.

[0004] To solve the above technical problems, the present invention is achieved through the following technical solutions: The present invention provides a storage test device, comprising: A data writing module, the data writing module outputs a write command and writes preset data into the machine to be tested; An analysis module is electrically connected to the feedback unit of the machine under test. After the machine under test completes the write command, the analysis module obtains feedback information from the feedback unit and analyzes the feedback information. The analysis module outputs the data processing amount of the machine under test in the current write command round. A power-off module, electrically connected to the power supply of the machine to be tested, and after obtaining the data processing amount, the power-off module controls the power supply to be powered off and then powered on; a loop control module, wherein the test times are stored in the loop control module, and after obtaining the data processing amount, the loop control module cyclically calls the data writing module, the parsing module and the power-off module until the round of the write command reaches the test times; and A statistical module is used to output a capacity probability distribution curve of the machine under test according to the write command round of the preset data and the data processing amount of the machine under test.

[0005] In one embodiment of the present invention, the storage testing device includes multiple storage units, some of which are divided into array storage units, wherein the array storage units store statistical arrays, and the statistical arrays store write command rounds of the storage testing device and the data processing volume of the machine under test under the current write command round.

[0006] In one embodiment of the present invention, the storage test device includes a data recording module, which is electrically connected to the data writing module and records the number of times the data writing module outputs the write command as the write command round of the loop control module.

[0007] The present invention provides a testing method for a storage testing device, comprising the following steps: Generate a write command to write the preset data into the machine under test; After the machine under test completes the write command, obtaining and parsing feedback information from the machine under test to obtain the data processing amount of the machine under test; Setting the number of tests, powering off and then powering on the machine to be tested, and looping the steps of writing the preset data and acquiring the data processing amount until the number of rounds of the write command reaches the number of tests; and A capacity probability distribution curve of the machine to be tested is generated according to the write command round of the preset data and the data processing amount of the machine to be tested.

[0008] In one embodiment of the present invention, the following steps are included: before the test starts, the preset data is set, the size of the preset data is the test value, and the test value is the preset value.

[0009] In an embodiment of the present invention, the step of writing the preset data includes: as the number of write command rounds increases, the size of the preset data increases.

[0010] In one embodiment of the present invention, the storage test device stores a statistical array, and the test method of the storage test device includes the following steps: Before testing starts, set up statistical arrays; After generating the write command, recording the write command round of the storage test device in the statistical array; After obtaining the data processing amount of the machine under test, the data processing amount of the machine under test is recorded in the statistical array, and an association is established between the data processing amount of the machine under test and the current write command round.

[0011] In one embodiment of the present invention, in the step of making the capacity probability distribution curve, the capacity probability distribution curve is generated by taking the write command round as the horizontal coordinate and taking the data processing amount of the machine under test in the current write command round as the vertical coordinate.

[0012] In one embodiment of the present invention, the testing method of the storage testing device comprises the following steps: the maximum data processing amount of the capacity probability distribution curve is set as the write cache capacity of the machine under test.

[0013] In one embodiment of the present invention, the test method of the storage test device includes the following steps: before the test starts, the power supply of the machine to be tested is turned off, and the machine to be tested is initialized.

[0014] As described above, the present invention provides a storage test device and a test method thereof, which can accurately and efficiently obtain the write cache capacity of a storage device, thereby improving the data processing logic programming efficiency of the storage device and developing the read and write performance of the storage device as much as possible. In addition, the storage test device and the test method provided by the present invention can perform cache capacity tests on storage devices in various stages such as the development stage, the optimization stage, and the user use stage, and under various working conditions such as host write and garbage collection write.

[0015] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0017] Figure 1 The figure is a schematic diagram of the connection structure between the storage test equipment and the machine to be tested in one embodiment of the present invention.

[0018] Figure 2 Schematic diagram of the structure of a host in one embodiment of the present invention.

[0019] Figure 3 The present invention is a flow chart of a testing method for a storage testing device in an embodiment of the present invention.

[0020] Figure 4 Schematic diagram of a capacity probability distribution curve in one embodiment of the present invention.

[0021] In the figure: 100, main controller; 200, memory; 300, storage test equipment; 310, host; 311, data recording module; 312, data writing module; 313, data reading module; 314, analysis module; 315, power-off control module; 316, cycle control module; 317, statistics module. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] See also Figure 1 and Figure 2 As shown, the storage test device 300 provided by the present invention is applied to the storage test of the universal flash memory, and can obtain the read and write cache capacity of the universal flash memory. Among them, the universal flash memory is based on serial data transmission technology, the interface bandwidth of UFS2.0 can reach 5.8GB / s, the interface bandwidth of UFS2.1 can reach 11.6GB / s, and the storage capacity of the universal flash memory can reach more than 2TB. Compared with the embedded Multi Media Card (embedded Multi Media Card, eMMC), the universal flash memory has a higher full load power and supports more partitions. In addition, the universal flash memory also supports data queues and multi-threaded tasks. All data channels of the universal flash memory can perform read and write operations simultaneously, and the response speed of data reading and writing is also superior to the eMMC flash memory. As Figure 1 As shown, the universal flash memory includes a main controller 100 and a memory 200, wherein the main controller 100 and the memory 200 are electrically connected, wherein the main controller 100 can read data from the memory 200, and can also write data to the memory 200, and the process of reading data and the process of writing data can be performed synchronously. In this embodiment, the universal flash memory is used as a test machine of the storage test device 300.

[0024] See also Figure 1 and Figure 2As shown, the present invention provides a storage test device 300, wherein the storage test device 300 is electrically connected to the machine under test. In this embodiment, the electrical connection between the storage test device 300 and the machine under test can be a wired electrical connection realized by a wiring harness, or a wireless electrical connection based on a local area network, the Internet and a wireless communication device. The machine under test can be a storage device in a digital device, such as a memory card in a mobile phone. In this embodiment, the storage test device 300 includes a host 310, wherein the host 310 is a debugging platform or a debugging system, and the host 310 can be a mobile phone, a tablet and other mobile devices. In this embodiment, a feedback unit 110 is set in the main controller 100. The feedback unit 110 is electrically connected to the host 310. The data transmission address and the data processing amount are stored in the feedback unit 110. The data transmission address includes the logical address of the data and the physical address of the data, and the data processing amount is the amount of data processed during the transmission process between the host 310 and the storage device. For example, the host 310 writes 32KB of data to the machine under test, and 4KB of data has been written at present, then the data processing amount is 4KB. If the host 310 writes 32KB of data to the machine under test, the data processing amount is 32KB. For example, if the host 310 writes 64KB of data to the machine under test, the data processing amount for the first time is 32KB, and the data processing amount for the second time is 32KB. The feedback unit 110 obtains the state of the machine under test and feeds back the state of the machine under test to the host 310. The state of the machine under test refers to whether the machine under test is in an idle state and whether the ongoing work process of the machine under test is completed. According to the information fed back by the feedback unit 110, the host 310 performs a test operation on the machine under test. The feedback information generated by the feedback unit 110 is transmitted to the host 310 in the form of an encrypted file.

[0025] See also Figure 1 and Figure 2As shown, in one embodiment of the present invention, the host 310 includes a data recording module 311, a data writing module 312, a data reading module 313, a parsing module 314, a power-off control module 315, a cycle control module 316 and a statistical module 317. The data recording module 311 stores a statistical array Arr[N]. Wherein N represents the number of times the host 310 issues a write command. In this embodiment, the statistical array Arr[N] also stores the data processing amount of the machine under test. In this embodiment, the data amount size of the statistical array Arr[N] is, for example, 4 bytes*N. Wherein 4 bytes is the storage capacity of a storage unit. The data writing module 312 is used to generate a write command and send the write command to the machine under test through a transmission channel. The data reading module 313 is used to generate a read command and send the read command to the machine under test through a transmission channel. After the main controller 100 of the machine under test receives the write command and the read command, it establishes a corresponding write task and a read task. The parsing module 314 is electrically connected to the feedback unit 110 and reads feedback information from the feedback unit 110. The analysis module 314 can analyze the feedback information so that the host 310 can timely grasp the real-time status of the machine under test. The power-off control module 315 is electrically connected to the power supply of the machine under test to control the power on and off of the machine under test. In this embodiment, the cycle control module 316 and the statistics module 317 are used to assist in implementing the test method for the storage device provided by the present invention.

[0026] See also Figure 1 and Figure 2 As shown, in one embodiment of the present invention, the host 310 includes a plurality of storage units. The plurality of storage units are divided into an array storage unit, a first test storage unit, and a second test storage unit. The array storage unit is used to store the statistical array Arr[N]. Whenever the data writing module 312 generates a write command, the record data of the statistical array Arr[N] is updated. For example, when the write command is generated for the third time and sent to the machine under test, N is updated from a value of 2 to a value of 3. The first test storage unit is used to store preset data. In this embodiment, the preset data is the test data set by the designer, the data volume of the preset data is set by the tester, and the content of the preset data can be set by the tester. In this embodiment, the data writing module 312 is electrically connected to the first test storage unit, and the preset data can be obtained from the first test storage unit. When the data writing module 312 generates a write instruction, the data writing module 312 transmits the preset data to the machine under test. The second test unit is used to store test data. The test data includes the output result data of the statistical module 317, such as a capacity probability density distribution diagram, and the cache capacity size of the machine under test.

[0027] See also Figures 1 to 3As shown, the present invention provides a test method for a storage test device, and the test method for the storage test device is used to obtain the read-write cache capacity of the machine to be tested. In this embodiment, the test method for the storage test device includes steps S10 to S40.

[0028] Step S10: Generate a write command to write the preset data into the device under test.

[0029] Step S20: After the machine under test completes the write command, feedback information is obtained and analyzed from the machine under test to obtain the data processing capacity of the machine under test.

[0030] Step S30, setting the number of tests, powering off and then powering on the machine to be tested, and looping the steps of writing preset data and obtaining the data processing amount until the number of rounds of write commands reaches the number of tests.

[0031] Step S40: Create a capacity probability distribution curve of the machine under test according to the write command round of preset data and the data processing volume of the machine under test.

[0032] See also Figures 1 to 3 As shown, in one embodiment of the present invention, before the test starts, the storage test device 300 and the machine to be tested are electrically connected. After the test starts, steps S10 to S40 are executed. Before the test starts, preset data is set, and the data volume size of the preset data is a test value, wherein the test value is a preset value set by the designer. Among them, the amount of preset data in each write command round is related to the write command round. In this embodiment, as the write command round increases, the size of the preset data increases. And in this embodiment, a preset increment is set, and the data volume difference between the preset data of the next write command round and the preset data of the previous write command round is the preset increment. For example, the data volume of the preset data is 1KB when the write command is executed for the first time, the data volume of the preset data is 2KB when the write command is executed for the second time, and the data volume of the preset data is NKB when the write command is executed for the Nth time. Before the test starts, the machine to be tested is debugged to the test storage mode. In the test storage mode, the data written to the machine to be tested must be written into the flash memory chip of the machine to be tested. It should be noted that in the machine to be tested, the memory 200 includes a flash memory chip and a cache chip. Under a write command, data is first written into the cache chip and then transferred to the flash memory chip.

[0033] See also Figures 1 to 3As shown, in one embodiment of the present invention, in step S10, the data writing module 312 generates a write command, and the data recording module 311 obtains the number of times the data writing module 312 generates a write command as the round of the current cyclic write process. When the write command is sent to the machine under test, the data writing module 312 writes the preset data of the corresponding data volume into the machine under test. After the machine under test completes the write command, feedback information is generated through the feedback unit 110, and the feedback information is sent to the storage test device 300. In step S20, the parsing module 314 obtains the feedback information, and parses the feedback information to obtain the data processing capacity of the machine under test. It should be noted that the machine under test can be debugged before the test so that the machine under test records the data processing capacity of each write command. The data writing module 312 continues to send the preset data until the preset data is sent. Before the feedback information returns to the parsing module 314, the host 310 is in a standby state. After the analysis module 314 is completed, the data processing amount of the machine under test under the current write command is output to the statistical array Arr[N], and an association is established between the data processing amount of the machine under test and the current write command round. For example, in the first write command round, the data processing amount of the machine under test is 2KB, then the statistical array Arr[1,2KB] is established.

[0034] See also Figures 1 to 3 As shown, in one embodiment of the present invention, in step S30, the power supply of the machine under test is controlled by the power-off control module 315. After completing the recording of the statistical array Arr[N], the power supply of the machine under test is controlled to be turned off. It should be noted here that before the power-off control module 315 turns off the power of the machine under test, the power-off control module 315 sends a power-off instruction to the machine under test. Under the power-off instruction, the machine under test is controlled to transfer the data in the cache chip to the flash memory chip. The time required for different machines under test to transfer data is different, and the internal operation logic is also unknown. In this embodiment, when the parsing module 314 receives the feedback information, the power-off control module 315 sends a power-off instruction to the machine under test to allow the machine under test to prepare for data backup or transfer before power off. After the statistical array Arr[N] is recorded, the power-off control module 315 powers off the machine under test. With power off and power on as the dividing line between two write command rounds, when power off occurs, the current write command round ends and all data in the cache chip is cleared. When the power is turned on again, a new round of write command starts. In this embodiment, the loop control module 316 compares the number of cycles with the set number of tests. If the number of cycles is less than or equal to the number of tests, the loop control module 316 calls the data writing module 312, the data recording module 311, the parsing module 314 and the power-off control module 315 to start a new round of write command. If the number of cycles is greater than the number of tests, the test ends after the power is turned on again. The number of cycles is the number of write commands.

[0035] See also Figures 1 to 3As shown, in one embodiment of the present invention, in step S40, the statistical module 317 reads the array storage unit to obtain a statistical array, wherein multiple groups of data are stored in the statistical array. In this embodiment, the write command round is used as the horizontal coordinate, and the data processing volume is used as the vertical coordinate to draw a capacity probability distribution curve of the data processing volume corresponding to the statistical array. In this embodiment, in the machine to be tested, the cache chip has a capacity threshold. When the stored data in the cache chip reaches the capacity threshold, the data in the cache chip is transferred to the flash memory chip. The capacity threshold is the cache size set by the machine to be tested, which is the black box value to be obtained in the present invention. The data processing volume is the amount of data currently processed by the machine to be tested. In the present invention, under a write command, if the amount of data of the preset data to be written exceeds the cache size of the machine to be tested, the parsing module 314 can receive feedback information multiple times and parse the feedback information. Under a round of a write command, multiple data processing volumes can be obtained.

[0036] See also Figures 1 to 4 As shown, in one embodiment of the present invention, in step S40, the preset increment is 2KB, and the number of initial preset data is 2KB as an example to illustrate the working process of the statistical module 317. In this embodiment, it is assumed that the capacity threshold is 32KB. The assumed capacity threshold is only used to help illustrate the principle of the solution. In fact, this capacity threshold is obtained through testing. In the first round of write commands, when the preset data is 2KB, the data processing amount of the feedback information is 2KB. In the second round of write commands, when the preset data is 4KB, the data processing amount of the feedback information is 4KB. And so on, until the 16th round of write commands, the preset data is 32KB, and the data processing amount of the feedback information is 32KB. In the 17th round of write commands, the preset data is 34KB. After the cache chip is filled with 32KB, the machine under test sends feedback information to the parsing module 314, and the data transmission amount is 32KB. After the data in the cache chip is transferred to the flash chip, the cache chip is vacated, and then the remaining 2KB of data is written to the cache chip, and the data transmission amount is 2KB. By analogy, in the 18th write command round, the first data transmission amount is 32KB, and the second data transmission amount is 4KB. Until the 33rd write command round, the amount of preset data is 66KB, the first data transmission amount is 32KB, the second data transmission amount is 32KB, and the third data transmission amount is 2KB. And so on, until the round of write commands reaches the test number. Among them, in order to ensure that the machine under test can complete the test steps provided by the present invention, the test firmware can be entered into the machine under test before the test, wherein the test firmware can assist in implementing the test steps of the present invention. Figure 4 As shown, in step S40, the capacity probability distribution curve converges to a value. Specifically, the maximum value of the capacity probability distribution curve can be used as the storage capacity of the cache chip. It should be noted that Figure 4What is shown is a schematic diagram of the test results in the absence of interference. In fact, during the test process, due to test errors, the convergence value of the capacity probability distribution curve may not be a straight line, but a curve. Therefore, the maximum value of the capacity probability distribution curve may also be the peak value of the capacity probability distribution curve. In this embodiment, an error threshold is set, and if the convergence line error is less than or equal to the error threshold, it is considered that the capacity probability distribution curve has converged, and the peak value in the convergence line of the capacity probability distribution curve is used as the storage capacity of the cache chip.

[0037] See also Figures 1 to 4 As shown, in one embodiment of the present invention, in the machine to be tested, in addition to writing data to the machine to be tested through the host 310, there is also a writing step of the garbage collection process inside the machine to be tested. In the garbage collection process (Garbage Collection, GC), when the storage space in the flash memory chip is insufficient, the storage block with the least number of valid data is used as the recovered block, and a storage block is selected as the target block, and the data of the recovered block is transferred to the target block. The transferred data is temporarily stored in the cache chip. The data transferred in the garbage collection process is marked as recovered data. Since the space occupied by the recovered data in the cache chip is unknown, in the test process, if the recovered data in the cache chip has not been transferred, the accuracy of the data obtained by the test is not high enough. For example, the size of the cache chip is actually 32KB, but there is 16KB of space to store the recovered data, and the maximum value of the capacity probability distribution curve finally obtained is 16KB. This test data is inaccurate. In this embodiment, before the test starts, the machine to be tested is powered off to clear the data in the cache chip, and the machine to be tested is powered off before each write command process starts, which can improve the accuracy of the test. If the data stored in the machine under test is user data, it may be considered to transfer the data out before testing, and then execute the test steps of the present invention. In another embodiment of the present invention, the machine under test may be input, and all the data of the cache chip may be transferred to the test firmware of the flash memory chip in an idle state. The idle state is defined as not receiving any command from the host 310 within a threshold time. Between two rounds of write commands, an interval time may be set to create time for the machine under test to enter an idle state. The interval time is greater than the threshold time, thereby completing the transfer of the recovered data by the machine under test. Through multiple cycles, the convergence of the cache chip can be continuously improved.

[0038] The present invention provides a storage test device and a test method thereof, wherein the storage test device comprises a data writing module, a parsing module, a power-off module, a loop control module and a statistical module. The data writing module outputs a write command and writes preset data into a machine to be tested. The parsing module is electrically connected to a feedback unit of the machine to be tested. After the machine to be tested completes the write command, the parsing module obtains feedback information from the feedback unit and parses the feedback information. The parsing module outputs the data processing amount of the machine to be tested in the current write command round. The power-off module is electrically connected to the power supply of the machine to be tested. After obtaining the data processing amount, the power-off module controls the power supply to be powered off and then powered on. The number of tests is stored in the loop control module. After obtaining the data processing amount, the loop control module cyclically calls the data writing module, the parsing module and the power-off module until the round of the write command reaches the number of tests. According to the write command round of preset data and the data processing amount of the machine to be tested, the statistical module outputs the capacity probability distribution curve of the machine to be tested. The present invention can accurately and efficiently obtain the write cache capacity of the storage device, thereby improving the data processing logic programming efficiency of the storage device and developing the read and write performance of the storage device as much as possible. Furthermore, the storage testing device and the testing method thereof provided by the present invention can perform cache capacity testing on storage devices in various stages such as the development stage, the optimization stage and the user use stage, and under various working conditions such as host writing and garbage collection writing.

[0039] The embodiments of the present invention disclosed above are only used to help illustrate the present invention. The embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A storage test device, characterized in that: include: A data writing module, the data writing module outputs a write command and writes preset data into the machine to be tested; An analysis module is electrically connected to the feedback unit of the machine under test. After the machine under test completes the write command, the analysis module obtains feedback information from the feedback unit and analyzes the feedback information. The analysis module outputs the data processing amount of the machine under test in the current write command round. A power-off module, electrically connected to a power supply of the machine to be tested, and after obtaining the data processing amount, the power-off module controls the power supply to be powered off and then powered on; A loop control module, wherein the test times are stored in the loop control module, and after obtaining the data processing amount, the loop control module cyclically calls the data writing module, the parsing module and the power-off module until the round of the write command reaches the test times; as well as A statistical module is used to output a capacity probability distribution curve of the machine under test according to the write command round of the preset data and the data processing amount of the machine under test.

2. A storage test device according to claim 1, characterized in that: The storage test device includes multiple storage units, some of which are divided into array storage units, wherein the array storage unit stores a statistical array, and the statistical array stores the write command round of the storage test device and the data processing amount of the machine under test under the current write command round.

3. A storage test device according to claim 1, characterized in that: The storage test device includes a data recording module, which is electrically connected to the data writing module and records the number of times the data writing module outputs the write command as the write command round of the cycle control module.

4. A testing method for a storage testing device, characterized in that: The following steps are involved: Generate a write command to write the preset data into the machine under test; After the machine under test completes the write command, obtaining and parsing feedback information from the machine under test to obtain the data processing amount of the machine under test; Setting the number of tests, powering off and then powering on the machine to be tested, and looping the steps of writing the preset data and obtaining the data processing amount until the number of rounds of the write command reaches the number of tests; as well as A capacity probability distribution curve of the machine to be tested is generated according to the write command round of the preset data and the data processing amount of the machine to be tested.

5. A method for testing a storage test device according to claim 4, characterized in that: The following steps are involved: Before the test starts, the preset data is set, the size of the preset data is the test value, and the test value is the preset value.

6. A method for testing a storage test device according to claim 4, characterized in that: The step of writing the preset data includes: as the number of write command rounds increases, the size of the preset data increases.

7. A method for testing a storage test device according to claim 4, characterized in that: The storage test device stores a statistical array, and the testing method of the storage test device comprises the following steps: Before testing starts, set up statistical arrays; After generating the write command, recording the write command round of the storage test device in the statistical array; After obtaining the data processing amount of the machine under test, the data processing amount of the machine under test is recorded in the statistical array, and an association is established between the data processing amount of the machine under test and the current write command round.

8. A method for testing a storage test device according to claim 4, characterized in that: In the step of making the capacity probability distribution curve, the capacity probability distribution curve is generated by taking the write command round as the horizontal coordinate and taking the data processing amount of the machine under test in the current write command round as the vertical coordinate.

9. A method for testing a storage test device according to claim 8, characterized in that: The testing method of the storage testing device comprises the following steps: the maximum data processing amount of the capacity probability distribution curve is set as the write cache capacity of the machine to be tested.

10. The test method of a storage test device according to claim 4, characterized in that: The testing method of the storage testing device comprises the following steps: before the test starts, the power supply of the machine to be tested is turned off, and the machine to be tested is initialized.

Citation Information

Patent Citations

  • Method and device for determining size of cache space of mapping table, equipment and medium

    CN117493225A

  • Harvard architecture data cache size measuring and calculating method based on cache organization form detection

    CN118034940A

Cited By

  • Test method and test device for memory chip

    CN119479769A