A method, device, equipment and medium for testing performance of compressed volumes of storage devices

By dividing the test area of ​​the compressed volume of the storage device by IO operation type, the problems of high read performance and garbage collection impacts in compressed volume performance tests are solved, and more accurate performance evaluation and product quality improvement are achieved.

CN115408221BActive Publication Date: 2025-08-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211046335.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2025-08-29
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

In the prior art, the performance test of the compressed volume of the storage device is high in the absence of data and garbage collection affects the write performance, making it difficult to accurately evaluate the performance.

Method used

By dividing the compressed volume into different test areas, each area corresponds to an IO operation type, data is written according to the IO type or test commands are issued directly to avoid duplicate data triggering garbage collection.

Benefits of technology

It improves the accuracy of compressed volume performance testing, avoids the impact of garbage collection, and improves the design level and quality of storage products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115408221B_ABST
    Figure CN115408221B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of storage technology, and in particular to a method, apparatus, device, and medium for testing the performance of a compressed volume of a storage device. The method comprises: obtaining the size of the compressed volume and calculating the number of sectors of the compressed volume based on the size of the compressed volume; dividing the compressed volume into a plurality of test areas based on the number of sectors, wherein each test area corresponds to an IO operation type; determining whether each test area includes a read test; in response to the IO operation type corresponding to a certain test area including a read test, first writing data to the certain test area before executing the read test, and then issuing a test command based on the IO operation type corresponding to the certain test area; in response to the IO operation type corresponding to a certain test area not including a read test, directly issuing a test command based on the IO operation type corresponding to the certain test area. The solution of the present invention improves the accuracy of compressed volume performance testing, improves the design level and quality of storage products, and enhances product competitiveness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage technology, and in particular to a method, device, equipment and medium for testing the performance of a compressed volume of a storage device. Background Art

[0002] Data compression is a technical method that reduces data volume to reduce storage space and improve transmission, storage, and processing efficiency without losing information. Alternatively, data can be reorganized according to a specific algorithm to reduce redundancy and storage space. With the rapid development of the mobile internet, compressed volumes provided by storage devices are widely used by organizations across various industries. The performance of compressed volumes must also meet the demands of these customers in a variety of demanding scenarios. Therefore, performance testing of compressed volumes is becoming increasingly important.

[0003] Currently, in traditional storage performance testing of compressed volumes, if there's no data in the compressed volume, when the test host sends a read I / O command, the compression module returns 0 directly, without decompressing the data. Therefore, read performance results on a data-free compressed volume can be very high. Furthermore, due to the garbage collection mechanism within the storage compression module, when a specified data block is repeatedly written, the compression module performs background garbage collection, impacting the write performance of the compressed volume. Therefore, accurately evaluating the performance of compressed volumes is a challenge that needs to be addressed. Summary of the Invention

[0004] In view of this, it is necessary to provide a storage device compressed volume performance testing method, device, equipment and medium to address the above technical problems.

[0005] According to a first aspect of the present invention, a method for testing the performance of a compressed volume of a storage device is provided, the method comprising:

[0006] Get the compressed volume size and calculate the number of sectors of the compressed volume based on the compressed volume size;

[0007] Dividing the compressed volume into a plurality of test areas based on the number of sectors, wherein each test area corresponds to an IO operation type;

[0008] Determine whether each test area includes a read test;

[0009] In response to the IO operation type corresponding to a certain test area including a read test, data is first written to the certain test area before performing the read test, and then a test command is issued according to the IO operation type corresponding to the certain test area;

[0010] In response to the IO operation type corresponding to a certain test area not including a read test, a test command is directly issued according to the IO operation type corresponding to the certain test area.

[0011] In some embodiments, dividing the compressed volume into a plurality of test areas based on the number of sectors includes:

[0012] Determine whether each IO operation type has a designated test area;

[0013] In response to no test area being specified for all IO operation types, evenly distributing the number of sectors into a plurality of test areas, such that each test area corresponds to one IO operation type and different test areas include the same number of sectors;

[0014] In response to all IO operation types having designated test areas, sectors corresponding to the designated test areas are used as test areas corresponding to a certain IO operation type.

[0015] In some embodiments, dividing the compressed volume into a plurality of test areas based on the number of sectors further comprises:

[0016] In response to the fact that some of all IO operation types have designated test areas and some of them do not have designated test areas, the corresponding test areas are first divided for the corresponding IO operation types based on the sectors corresponding to each designated test area, and then the remaining unallocated sectors are evenly allocated to the IO operation types corresponding to each unallocated test area.

[0017] In some embodiments, the IO operation types include random read of a preset IO size, random write of a preset IO size, random read and write of a preset IO size, sequential read of a preset IO size, sequential write of a preset IO size, and sequential read and write of a preset IO size.

[0018] According to a second aspect of the present invention, a device for testing the performance of a compressed volume of a storage device is provided, the device comprising:

[0019] an acquisition module configured to acquire a compressed volume size and calculate the number of sectors of the compressed volume according to the compressed volume size;

[0020] a partitioning module configured to partition the compressed volume into a plurality of test areas based on the number of sectors, wherein each test area corresponds to an IO operation type;

[0021] a determination module configured to determine whether each test area includes a read test;

[0022] a first issuing module configured to, in response to an IO operation type corresponding to a certain test area including a read test, first write data to the certain test area before performing the read test, and then issue a test command according to the IO operation type corresponding to the certain test area;

[0023] The second issuing module is configured to issue a test command directly according to the IO operation type corresponding to the test area in response to the IO operation type corresponding to the test area not including the read test.

[0024] In some embodiments, the partitioning module is further configured to:

[0025] Determine whether each IO operation type has a designated test area;

[0026] In response to no test area being specified for all IO operation types, evenly distributing the number of sectors into a plurality of test areas, such that each test area corresponds to one IO operation type and different test areas include the same number of sectors;

[0027] In response to all IO operation types having designated test areas, sectors corresponding to the designated test areas are used as test areas corresponding to a certain IO operation type.

[0028] In some embodiments, the partitioning module is further configured to:

[0029] In response to the fact that some of all IO operation types have designated test areas and some of them do not have designated test areas, the corresponding test areas are first divided for the corresponding IO operation types based on the sectors corresponding to each designated test area, and then the remaining unallocated sectors are evenly allocated to the IO operation types corresponding to each unallocated test area.

[0030] In some embodiments, the IO operation types include random read of a preset IO size, random write of a preset IO size, random read and write of a preset IO size, sequential read of a preset IO size, sequential write of a preset IO size, and sequential read and write of a preset IO size.

[0031] According to a third aspect of the present invention, a computer device is further provided, the computer device comprising:

[0032] at least one processor; and

[0033] The memory stores a computer program that can be run on the processor, and the processor executes the aforementioned storage device compressed volume performance test method when executing the program.

[0034] According to a fourth aspect of the present invention, a computer-readable storage medium is further provided. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the aforementioned storage device compressed volume performance test method is executed.

[0035] The above-mentioned method for testing the performance of compressed volumes of storage devices divides the compressed volumes into different test areas, ensuring that no duplicate data is generated in each test, avoiding triggering garbage collection and affecting test performance. At the same time, the adjustment of the test sequence and the pre-embedding of test data improve the accuracy of the compressed volume performance test, which helps to improve the design level and quality of storage products and enhance product competitiveness.

[0036] In addition, the present invention also provides a storage device compressed volume performance testing device, a computer device and a computer-readable storage medium, which can also achieve the above technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying any creative work.

[0038] Figure 1 A flowchart of a method for testing the performance of a compressed volume of a storage device provided by one embodiment of the present invention;

[0039] Figure 2 A flowchart of another storage device compressed volume performance testing method provided by another embodiment of the present invention;

[0040] Figure 3 A schematic structural diagram of a storage device compressed volume performance testing device provided by another embodiment of the present invention;

[0041] Figure 4 This is a diagram of the internal structure of a computer device in another embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0043] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. Subsequent embodiments will not explain this one by one.

[0044] In one embodiment, please refer to Figure 1 As shown, the present invention provides a method 100 for testing the performance of a compressed volume of a storage device. Specifically, the method includes the following steps:

[0045] Step 101, obtaining the size of the compressed volume and calculating the number of sectors of the compressed volume according to the size of the compressed volume;

[0046] Step 102: Divide the compressed volume into a plurality of test areas based on the number of sectors, wherein each test area corresponds to a type of IO operation;

[0047] Step 103, determining whether each test area includes a read test;

[0048] Step 104: In response to the IO operation type corresponding to a certain test area including a read test, data is first written to the certain test area before executing the read test, and then a test command is issued according to the IO operation type corresponding to the certain test area;

[0049] Step 105 : In response to the IO operation type corresponding to a certain test area not including a read test, a test command is directly issued according to the IO operation type corresponding to the certain test area.

[0050] The above-mentioned method for testing the performance of compressed volumes of storage devices divides the compressed volumes into different test areas, ensuring that no duplicate data is generated in each test, avoiding triggering garbage collection and affecting test performance. At the same time, the adjustment of the test sequence and the pre-embedding of test data improve the accuracy of the compressed volume performance test, which helps to improve the design level and quality of storage products and enhance product competitiveness.

[0051] In some embodiments, the aforementioned step 102 of dividing the compressed volume into a plurality of test areas based on the number of sectors includes:

[0052] Determine whether each IO operation type has a designated test area;

[0053] In response to no test area being specified for all IO operation types, evenly distributing the number of sectors into a plurality of test areas, such that each test area corresponds to one IO operation type and different test areas include the same number of sectors;

[0054] In response to all IO operation types having designated test areas, sectors corresponding to the designated test areas are used as test areas corresponding to a certain IO operation type.

[0055] In some embodiments, the aforementioned step 102 of dividing the compressed volume into a plurality of test areas based on the number of sectors further includes:

[0056] In response to the fact that some of all IO operation types have designated test areas and some of them do not have designated test areas, the corresponding test areas are first divided for the corresponding IO operation types based on the sectors corresponding to each designated test area, and then the remaining unallocated sectors are evenly allocated to the IO operation types corresponding to each unallocated test area.

[0057] In some embodiments, the IO operation types include random read of a preset IO size, random write of a preset IO size, random read and write of a preset IO size, sequential read of a preset IO size, sequential write of a preset IO size, and sequential read and write of a preset IO size.

[0058] In another embodiment, in order to facilitate understanding of the solution of the present invention, the following takes six specific IO operation types as examples: 2KB random read, 4KB random read, 8KB random read, 2KB random write, 4KB random write, 8KB random write as examples, please combine Figure 2 As shown, this embodiment provides another storage device compressed volume performance test method 200, and the specific implementation steps are as follows:

[0059] Step 201: Get the size of the compressed volume and calculate the number of sectors in the compressed volume;

[0060] Step 202: Divide different test areas according to the IO data type and sector quantity required for testing.

[0061] In step 203, if the compressed volume test area is not specified, the test area is evenly distributed according to the number of IO types tested. For example, assuming there are 12,000 sectors, each of the above six IO operation types corresponds to 2,000 sectors.

[0062] In step 204, if a test area for the compressed volume is specified, the test area is generated according to the specified rules. For example, it is pre-specified that 2KB random reads correspond to sectors 1 to 1000, 4KB random reads correspond to sectors 1001 to 3000, 8KB random reads correspond to sectors 3001 to 5000, 2KB random writes correspond to sectors 5001 to 6000, 4KB random writes correspond to sectors 6001 to 8000, and 8KB random writes correspond to sectors 8001 to 10000.

[0063] Step 205: Generate test sequence rules based on the IO test read / write type;

[0064] Step 206: If the IO test type is to test the compressed volume read performance, data is first written to the area divided in step 202. The pre-embedded data volume is the amount of data required to test the compressed volume read performance. Then, the read performance test is performed.

[0065] In step 207, if the IO test type is to test the compressed volume write performance, the data write performance test is directly performed based on the area divided in step 202. For example, 2KB random read, 4KB random read, and 8KB random read all include read tests, so data must be pre-written to the corresponding sectors before reading.

[0066] Step 208: Integrate the rules of steps 202 and 205 to generate compressed volume IO delivery rules;

[0067] In step 209, the IO delivery rules generated in step 208 are used to perform a performance test on the compressed volume. For example, the sectors corresponding to 2KB random read, 4KB random read, 8KB random read, and 2KB random write are first written to and then tested for data read. For 2KB random write, 4KB random write, and 8KB random write, data can be directly written to the corresponding sectors for testing.

[0068] This embodiment of a storage device compressed volume performance testing method divides the compressed volume into different test areas, ensuring that each test does not generate duplicate data, thus avoiding triggering garbage collection and impacting test performance. Furthermore, by adjusting the test sequence and pre-embedding test data, the accuracy of the compressed volume performance test is improved. This improves product design and quality, thereby enhancing product competitiveness.

[0069] In some embodiments, please refer to Figure 3 As shown, the present invention also provides a storage device compressed volume performance testing device 300, the device comprising:

[0070] An acquisition module 301 is configured to acquire the size of a compressed volume and calculate the number of sectors of the compressed volume according to the size of the compressed volume;

[0071] a partitioning module 302 configured to partition the compressed volume into a plurality of test areas based on the number of sectors, wherein each test area corresponds to a type of IO operation;

[0072] A determination module 303 is configured to determine whether each test area includes a read test;

[0073] A first issuing module 304 is configured to, in response to the IO operation type corresponding to a certain test area including a read test, first write data to the certain test area before performing the read test, and then issue a test command according to the IO operation type corresponding to the certain test area;

[0074] The second issuing module 305 is configured to issue a test command directly according to the IO operation type corresponding to a certain test area in response to the IO operation type corresponding to the certain test area not including a read test.

[0075] The above-mentioned storage device compressed volume performance testing device divides the compressed volume into different test areas, ensuring that no duplicate data is generated in each test, avoiding triggering garbage collection and affecting test performance. At the same time, the adjustment of the test sequence and the pre-embedding of test data improve the accuracy of the compressed volume performance test, which helps to improve the design level and quality of storage products and enhance product competitiveness.

[0076] In some embodiments, the partitioning module 302 is further configured to:

[0077] Determine whether each IO operation type has a designated test area;

[0078] In response to no test area being specified for all IO operation types, evenly distributing the number of sectors into a plurality of test areas, such that each test area corresponds to one IO operation type and different test areas include the same number of sectors;

[0079] In response to all IO operation types having designated test areas, sectors corresponding to the designated test areas are used as test areas corresponding to a certain IO operation type.

[0080] In some embodiments, the partitioning module 302 is further configured to:

[0081] In response to the fact that some of all IO operation types have designated test areas and some of them do not have designated test areas, the corresponding test areas are first divided for the corresponding IO operation types based on the sectors corresponding to each designated test area, and then the remaining unallocated sectors are evenly allocated to the IO operation types corresponding to each unallocated test area.

[0082] In some embodiments, the IO operation types include random read of a preset IO size, random write of a preset IO size, random read and write of a preset IO size, sequential read of a preset IO size, sequential write of a preset IO size, and sequential read and write of a preset IO size.

[0083] It should be noted that the specific limitations of the storage device compressed volume performance testing apparatus can be found in the limitations of the storage device compressed volume performance testing method described above and will not be further elaborated here. Each module in the aforementioned storage device compressed volume performance testing apparatus can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the aforementioned modules can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a computer device memory in software form, so that the processor can call and execute the corresponding operations of each of the aforementioned modules.

[0084] According to another aspect of the present invention, a computer device is provided. The computer device may be a server. Figure 4As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the above-mentioned storage device compressed volume performance test method is implemented. Specifically, the method includes the following steps:

[0085] Get the compressed volume size and calculate the number of sectors of the compressed volume based on the compressed volume size;

[0086] Dividing the compressed volume into a plurality of test areas based on the number of sectors, wherein each test area corresponds to an IO operation type;

[0087] Determine whether each test area includes a read test;

[0088] In response to the IO operation type corresponding to a certain test area including a read test, data is first written to the certain test area before performing the read test, and then a test command is issued according to the IO operation type corresponding to the certain test area;

[0089] In response to the IO operation type corresponding to a certain test area not including a read test, a test command is directly issued according to the IO operation type corresponding to the certain test area.

[0090] In some embodiments, dividing the compressed volume into a plurality of test areas based on the number of sectors includes:

[0091] Determine whether each IO operation type has a designated test area;

[0092] In response to no test area being specified for all IO operation types, evenly distributing the number of sectors into a plurality of test areas, such that each test area corresponds to one IO operation type and different test areas include the same number of sectors;

[0093] In response to all IO operation types having designated test areas, sectors corresponding to the designated test areas are used as test areas corresponding to a certain IO operation type.

[0094] In some embodiments, dividing the compressed volume into a plurality of test areas based on the number of sectors further comprises:

[0095] In response to the fact that some of all IO operation types have designated test areas and some of them do not have designated test areas, the corresponding test areas are first divided for the corresponding IO operation types based on the sectors corresponding to each designated test area, and then the remaining unallocated sectors are evenly allocated to the IO operation types corresponding to each unallocated test area.

[0096] In some embodiments, the IO operation types include random read of a preset IO size, random write of a preset IO size, random read and write of a preset IO size, sequential read of a preset IO size, sequential write of a preset IO size, and sequential read and write of a preset IO size.

[0097] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for testing the performance of a compressed volume of a storage device described above is implemented. Specifically, the method includes executing the following steps:

[0098] Get the compressed volume size and calculate the number of sectors of the compressed volume based on the compressed volume size;

[0099] Dividing the compressed volume into a plurality of test areas based on the number of sectors, wherein each test area corresponds to an IO operation type;

[0100] Determine whether each test area includes a read test;

[0101] In response to the IO operation type corresponding to a certain test area including a read test, data is first written to the certain test area before performing the read test, and then a test command is issued according to the IO operation type corresponding to the certain test area;

[0102] In response to the IO operation type corresponding to a certain test area not including a read test, a test command is directly issued according to the IO operation type corresponding to the certain test area.

[0103] In some embodiments, dividing the compressed volume into a plurality of test areas based on the number of sectors includes:

[0104] Determine whether each IO operation type has a designated test area;

[0105] In response to no test area being specified for all IO operation types, evenly distributing the number of sectors into a plurality of test areas, such that each test area corresponds to one IO operation type and different test areas include the same number of sectors;

[0106] In response to all IO operation types having designated test areas, sectors corresponding to the designated test areas are used as test areas corresponding to a certain IO operation type.

[0107] In some embodiments, dividing the compressed volume into a plurality of test areas based on the number of sectors further comprises:

[0108] In response to the fact that some of all IO operation types have designated test areas and some of them do not have designated test areas, the corresponding test areas are first divided for the corresponding IO operation types based on the sectors corresponding to each designated test area, and then the remaining unallocated sectors are evenly allocated to the IO operation types corresponding to each unallocated test area.

[0109] In some embodiments, the IO operation types include random read of a preset IO size, random write of a preset IO size, random read and write of a preset IO size, sequential read of a preset IO size, sequential write of a preset IO size, and sequential read and write of a preset IO size.

[0110] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0111] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0112] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A method for testing the performance of a compressed volume of a storage device, characterized in that: The method comprises: Get the compressed volume size and calculate the number of sectors of the compressed volume based on the compressed volume size; Dividing the compressed volume into a plurality of test areas based on the number of sectors, wherein each test area corresponds to an IO operation type; Determine whether each test area includes a read test; In response to the IO operation type corresponding to a certain test area including a read test, data is first written to the certain test area before performing the read test, and then a test command is issued according to the IO operation type corresponding to the certain test area; In response to the IO operation type corresponding to a certain test area not including a read test, a test command is directly issued according to the IO operation type corresponding to the certain test area; The method of dividing the compressed volume into a plurality of test areas based on the number of sectors includes: Determine whether each IO operation type has a designated test area; In response to no test area being specified for all IO operation types, evenly distributing the number of sectors into a plurality of test areas, such that each test area corresponds to one IO operation type and different test areas include the same number of sectors; In response to all IO operation types having designated test areas, a sector corresponding to the designated test area is used as a test area corresponding to a certain IO operation type; In response to the fact that some of all IO operation types have designated test areas and some of them do not have designated test areas, the corresponding test areas are first divided for the corresponding IO operation types based on the sectors corresponding to each designated test area, and then the remaining unallocated sectors are evenly allocated to the IO operation types corresponding to each unallocated test area.

2. The method for testing the performance of a compressed volume of a storage device according to claim 1, wherein: The IO operation types include random read of a preset IO size, random write of a preset IO size, random read and write of a preset IO size, sequential read of a preset IO size, sequential write of a preset IO size, and sequential read and write of a preset IO size.

3. A storage device compressed volume performance test device, characterized in that: The device comprises: an acquisition module configured to acquire a compressed volume size and calculate the number of sectors of the compressed volume according to the compressed volume size; a partitioning module configured to partition the compressed volume into a plurality of test areas based on the number of sectors, wherein each test area corresponds to an IO operation type; a determination module configured to determine whether each test area includes a read test; a first issuing module configured to, in response to an IO operation type corresponding to a certain test area including a read test, first write data to the certain test area before performing the read test, and then issue a test command according to the IO operation type corresponding to the certain test area; a second issuing module configured to issue a test command directly according to the IO operation type corresponding to a test area in response to the IO operation type corresponding to the test area not including a read test; The partitioning module is further configured to: Determine whether each IO operation type has a designated test area; In response to no test area being specified for all IO operation types, evenly distributing the number of sectors into a plurality of test areas, such that each test area corresponds to one IO operation type and different test areas include the same number of sectors; In response to all IO operation types having designated test areas, a sector corresponding to the designated test area is used as a test area corresponding to a certain IO operation type; In response to the fact that some of all IO operation types have designated test areas and some of them do not have designated test areas, the corresponding test areas are first divided for the corresponding IO operation types based on the sectors corresponding to each designated test area, and then the remaining unallocated sectors are evenly allocated to the IO operation types corresponding to each unallocated test area.

4. The storage device compressed volume performance test device according to claim 3, characterized in that: The IO operation types include random read of a preset IO size, random write of a preset IO size, random read and write of a preset IO size, sequential read of a preset IO size, sequential write of a preset IO size, and sequential read and write of a preset IO size.

5. A computer device, characterized in that: include: at least one processor; as well as A memory storing a computer program executable in the processor, wherein the processor executes the storage device compressed volume performance testing method according to any one of claims 1 to 2 when executing the program.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for testing the performance of a compressed volume of a storage device according to any one of claims 1 to 2 is executed.

Citation Information

Patent Citations

  • Data writing method and storage equipment

    CN107967121A

  • High-capacity flash memory chip test method and device, electronic equipment and storage medium

    CN114333976A