Solid-state storage device steady-state entry method, device and equipment and storage medium

By constructing a steady -state mirror file library and quickly loading the corresponding device information, the problem of rapidly entering the steady -state test cycle and limitations of solid storage equipment can be solved. efficiency.

CN119336271APending Publication Date: 2025-01-21GUANGDONG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411559771.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

Existing solid-state storage devices have long test cycles that quickly enter steady state, many test limitations, and may be difficult to ensure test accuracy.

Method used

Read the target solid -state storage device information through the instructions of the target in different stability through the host. The device information is sent to the target solid state storage device to quickly enter the stable state.

Benefits of technology

This method can quickly realize the steady -state entry of solid -state storage equipment without consuming multiple steady -state entry time, reducing sample consumption and testing time, improving product design and development efficiency, and adapting to a variety of different stable scenarios. Test requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336271A_ABST
    Figure CN119336271A_ABST
Patent Text Reader

Abstract

The invention discloses a solid-state storage device steady state entering method and device, equipment and a storage medium, and the method comprises the steps that device information of a target solid-state storage device in different steady states is read through a host according to a preset reading instruction, and the device information comprises master control, cache and medium information; mirror image processing and format naming processing are carried out on the device information, and a steady-state mirror image file library is constructed and comprises a plurality of steady-state mirror image files; the target steady-state mirror image device information is sent to the target solid-state storage device through the host according to a preset write-in instruction, a stable state is quickly entered, and the target steady-state mirror image device information is selected from a steady-state mirror image file library. The method and the device can solve the technical problems that the test period for quickly entering the steady state of the existing solid-state storage device is long, the test limitation is many, and the test accuracy is possibly difficult to guarantee.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of hardware storage technology, and in particular to a method, apparatus, device and storage medium for steady-state entry of a solid-state storage device. Background Art

[0002] Solid-state storage products that use NAND FLASH as storage media, including SSD / UFS / eMMC / SD Cark / UDisk, etc., can form a variety of application scenarios because they have a variety of application requirements, a wide variety of performance indicator requirements, and reliability requirements under different life cycles.

[0003] Solid-state storage devices require algorithm design, function development, performance tuning, effect verification, and stability testing for the application scenarios under the above combinations during the product development phase. FOB (Fresh Out of Box) refers to the state of the solid-state storage device when it is just shipped from the factory. Its internal firmware data and NAND FLASH are all in the initial state, so it has the best performance indicators. In addition to FOB, the rest must be based on certain preconditions and application scenarios after NAND FLASH is used. We call them different steady states of solid-state storage devices.

[0004] Currently, two methods are used to allow solid-state storage devices to quickly enter a steady state. One is to perform wear tests based on real solid-state storage devices to allow the solid-state storage devices to enter a steady state with different preconditions; the other is to perform simulation tests based on solid-state storage device emulators to quickly enter different test conditions. However, the first method requires traversing more steady-state test scenarios and consumes more samples; the traversal test cycle is long and the trial and error cost is high. The second method has simulation limitations, such as not supporting simulation of multiple features; and there is always a deviation between the simulation test and the real solid-state storage device, making it difficult to guarantee accuracy; in addition, the simulation test also requires mapping, modeling, and parameter setting of the real device, which also takes a lot of time. Summary of the invention

[0005] The present application provides a method, apparatus, device and storage medium for solid-state storage device to enter steady state, which is used to solve the technical problems that the existing solid-state storage device has a long test cycle for quickly entering steady state, has many test limitations, and may be difficult to ensure test accuracy.

[0006] In view of this, a first aspect of the present application provides a method for steady-state entry of a solid-state storage device, comprising:

[0007] Reading device information of a target solid-state storage device in different steady states by a host according to a preset read instruction, wherein the device information includes master control, cache and medium information;

[0008] Performing image processing and format naming processing on the device information to build a steady-state image file library, wherein the steady-state image file library includes a plurality of steady-state image files;

[0009] The host sends the target stable state mirror device information to the target solid-state storage device according to a preset write instruction to quickly enter a stable state, and the target stable state mirror device information is selected from the stable state mirror file library.

[0010] Preferably, the process of reading the device information of the target solid-state storage device in different steady states by the host according to a preset read instruction also includes:

[0011] The target solid-state storage device is pre-tested to achieve different stable states.

[0012] Preferably, the mirroring and formatting of the device information to construct a stable mirror file library includes:

[0013] Mirroring the device information according to preset rules to obtain a mirror file;

[0014] The image files are named according to the format, and a steady-state image file library is constructed.

[0015] Preferably, the process of sending the target stable mirror device information to the target solid-state storage device according to a preset write instruction by the host to quickly enter a stable state includes:

[0016] The host queries the expected steady-state image file from the steady-state image file library to obtain target steady-state image device information;

[0017] The host sends the target stable mirror device information to the target solid-state storage device according to a preset write instruction, so as to prompt the device to complete the write operation and quickly enter a stable state.

[0018] A second aspect of the present application provides a solid-state storage device steady-state entry device, comprising:

[0019] An information reading unit, used to read device information of a target solid-state storage device in different steady states through a host according to a preset reading instruction, wherein the device information includes master control, cache and medium information;

[0020] An image building unit, used to perform image processing and format naming processing on the device information, and build a steady-state image file library, wherein the steady-state image file library includes a plurality of steady-state image files;

[0021] The writing steady-state unit is used to send the target steady-state mirror device information to the target solid-state storage device through the host according to the preset writing instruction, and quickly enter the stable state. The target steady-state mirror device information is selected from the steady-state mirror file library.

[0022] Preferably, it also includes:

[0023] The pre-test unit is used to perform a pre-test on the target solid-state storage device to achieve different stable states.

[0024] Preferably, the mirror image building unit is specifically used for:

[0025] Mirroring the device information according to preset rules to obtain a mirror file;

[0026] The image files are named according to the format, and a steady-state image file library is constructed.

[0027] Preferably, the writing steady-state unit is specifically used for:

[0028] The host queries the expected steady-state image file from the steady-state image file library to obtain target steady-state image device information;

[0029] The host sends the target stable mirror device information to the target solid-state storage device according to a preset write instruction, so as to prompt the device to complete the write operation and quickly enter a stable state.

[0030] A third aspect of the present application provides a solid-state storage device steady-state entry device, the device comprising a processor and a memory;

[0031] The memory is used to store program code and transmit the program code to the processor;

[0032] The processor is used to execute the solid-state storage device steady-state entry method described in the first aspect according to the instructions in the program code.

[0033] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store program code, and the program code is used to execute the solid-state storage device steady-state entry method described in the first aspect.

[0034] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0035] In the present application, a method for entering a steady state of a solid-state storage device is provided, comprising: reading device information of a target solid-state storage device in different steady states according to a preset read instruction by a host, the device information including master control, cache and medium information; performing image processing and format naming processing on the device information to build a steady-state image file library, the steady-state image file library including multiple steady-state image files; sending the target steady-state image device information to the target solid-state storage device according to a preset write instruction by the host, quickly entering a stable state, and the target steady-state image device information is selected from the steady-state image file library.

[0036] The solid-state storage device steady-state entry method provided by the present application converts the device information of the target solid-state storage device in different steady states into an image file to generate a steady-state image file library; then, when the solid-state storage device needs to enter a different steady state, the existing file in the write library, that is, the device information, is loaded; this process does not require multiple steady-state entry times; and the writing of device information in different steady states does not require too many samples, and the steady-state entry test can be implemented on one sample, which can adapt to the test needs of a variety of different steady-state scenarios, and can improve the design and development efficiency of the product. Therefore, the present application can solve the technical problems that the existing solid-state storage device has a long test cycle for rapid entry into a steady state, has many test limitations, and may be difficult to ensure the accuracy of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of a flow chart of a method for entering a solid-state storage device into a steady state provided in an embodiment of the present application;

[0038] Figure 2 A schematic diagram of the structure of a solid-state storage device steady-state entry device provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of a stable image file library construction process provided in an embodiment of the present application;

[0040] Figure 4 An example diagram of the image file storage format provided in the embodiment of the present application;

[0041] Figure 5 A schematic diagram of a solid-state storage device writing information into a steady state according to an embodiment of the present application;

[0042] Figure 6 This is an example diagram of the information storage status of a solid-state storage device written into an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] For easier understanding, see Figure 1 , an embodiment of a method for steady-state entry of a solid-state storage device provided by the present application includes:

[0045] Step 101: Read device information of a target solid-state storage device in different steady states through a host according to a preset read instruction, where the device information includes master control, cache and medium information.

[0046] Furthermore, step 101, before that, also includes:

[0047] Pre-test the target solid-state storage device to achieve different stable states.

[0048] It is understandable that solid-state storage devices are composed of four parts: main control, cache, NAND FLASH chip and PCBA. The first three have a major impact on solid-state storage devices. The main control has volatile memories such as TCM and SRAM, which are responsible for maintaining the running status of the firmware FW. The cache is generally composed of volatile memory, DRAM. The NAND FLASH chip is the data retention medium of the solid-state storage device, which stores user data, FW key tables and other information.

[0049] Before reading information from the target solid-state storage device, some preset pre-tests are required. The purpose of the test is to make the target solid-state storage device enter a steady state. Then the host responds to the preset read instruction and can read the device information of the target solid-state storage device in different steady states; each steady state is associated with its device information. The device information includes but is not limited to the master control, cache and media information.

[0050] Step 102: perform image processing and format naming processing on the device information to build a steady-state image file library, which includes multiple steady-state image files.

[0051] Furthermore, step 102 includes:

[0052] Mirror the device information according to preset rules to obtain a mirror file;

[0053] The image files are named according to the format and a steady-state image file library is constructed.

[0054] It should be noted that the preset rules can be set according to the actual situation and are not limited here. The preset rules are used to mirror the read device information to form an image file. The image file is then named according to the format, and each name corresponds to a different steady state and the corresponding device information. In this way, a steady-state image file library can be constructed. Naming the file can facilitate the subsequent quick search for the required image file, speed up the processing speed, and improve the efficiency of steady-state entry. For the specific steady-state image file library construction process, please refer to Figure 3 , is the process of collecting device information under different steady states and forming an image file library.

[0055] See also Figure 4 In the image file saving format, at the beginning of each segment of raw data, there is a header to describe its attributes. Memory_type is used to identify whether the data segment belongs to the master, cache or NAND FLASH. Load_address is used to indicate the specific data loading location. If the attribute is the master, it identifies which core it is and which addressing location of the core to load to. If the attribute is cache, it is the addressing location of the cache. If it is NAND FLASH, its specific physical address must be identified, including CHIP, DIE, BLOCK, PLANE, PAGE and other information.

[0056] The image file name consists of two parts: steady-state case + product model. The steady-state case needs to accurately describe the listed component preconditions. Because different products have different master control, cache, and particle selection, the product model needs to accurately indicate which product it is obtained from to avoid subsequent loading on the wrong product, resulting in execution errors.

[0057] Step 103: The host sends the target steady-state mirror device information to the target solid-state storage device according to a preset write instruction, and quickly enters a stable state. The target steady-state mirror device information is selected from the steady-state mirror file library.

[0058] Further, step 103 includes:

[0059] The host queries the expected steady-state image file from the steady-state image file library to obtain the target steady-state image device information;

[0060] The host sends the target steady-state mirror device information to the target solid-state storage device according to the preset write instruction, so that the device completes the write operation and quickly enters the stable state.

[0061] It should be noted that the preset read instructions and the preset write instructions are preset instructions agreed upon by the host and the target solid-state storage device, so the host's read operation is not performed randomly, but is an operation within certain constraints.

[0062] During the process of testing the target solid-state storage device, if the device needs to reach a certain steady state, the desired image file, that is, the expected steady-state image file, can be found in the steady-state image file library according to the format naming, which includes the target steady-state image device information; then the host can send the target steady-state image device information to the target solid-state storage device according to the preset write instruction, and the information sent includes the master control, cache and media information, etc.; after the target solid-state storage device receives the target steady-state image device information, it can write to the corresponding location as required, and the solid-state storage device can then perform the corresponding steady state. This method can be used to read and write steady states in different scenarios, and the more times the steady state is repeatedly entered, the more significant its efficiency. For the specific writing process, please refer to Figure 5 , that is, the process of the target solid-state storage device entering a steady state.

[0063] If the time to enter a steady state is A, the time to read and generate the image file is B, and the time to load the image file is C. Then 20 steady state experiments are performed. The time consumption of the first method in the background technology is 20 × A, and the time consumption of the method proposed in this embodiment is A+B+20×C. Given A is 72 hours, B is 1 hour, and C is 2 hours, the time consumption of method 1 is 1440 hours, while the time consumption of the method proposed in this embodiment is 113 hours, which shows that the degree of time saving is obvious.

[0064] See also Figure 6 , the state of the target solid-state storage device after writing the steady-state device information is the expected stable state, all sections of the image file are sent, the solid-state storage device is also written, and it enters the steady state successfully and quickly.

[0065] In this embodiment, when a solid-state storage device enters a specified stable state, by adding a specific read command in the FW, the host reads out all the memory, cache and NAND FLASH chip data of the solid-state storage master and saves them as a mirror file. After that, if the solid-state storage device needs to enter the same stable state again, the host loads a different stable state mirror file, and writes all the memory, cache and NAND FLASH information of the master in the mirror file to the corresponding device of the solid-state storage device through a specific write command of the FW. At this point, the solid-state storage has all the information in different stable states.

[0066] The steady-state entry test method proposed in this embodiment quickly restores the steady state by loading the image file to the sample, without the need to run a large number of pre-real tests, saving test samples and experimental time, reducing the life wear of the experimental samples, and reducing the experimental cost. Rapidly entering the steady state in the real sample, rather than just in the simulation, can obtain more comprehensive and accurate experimental results.

[0067] The solid-state storage device steady-state entry method provided by the embodiment of the present application converts the device information of the target solid-state storage device in different steady states into an image file to generate a steady-state image file library; then, when the solid-state storage device needs to enter different steady states, the existing files in the write library, i.e., the device information, are loaded; this process does not require multiple steady-state entry times; and the device information written in different steady states does not have too many requirements on the number of samples, and the steady-state entry test can be implemented on one sample, adapting to the test needs of a variety of different steady-state scenarios, and can improve the design and development efficiency of the product. Therefore, the embodiment of the present application can solve the technical problems that the existing solid-state storage device quickly enters the steady state with a long test cycle, many test limitations, and may be difficult to ensure the accuracy of the test.

[0068] For easier understanding, see Figure 2 The present application provides an embodiment of a solid-state storage device steady-state entry device, including:

[0069] An information reading unit 201 is used to read device information of a target solid-state storage device in different steady states through a host according to a preset reading instruction, wherein the device information includes master control, cache and medium information;

[0070] An image building unit 202 is used to perform image processing and format naming processing on device information, and build a stable image file library, which includes multiple stable image files;

[0071] The write steady-state unit 203 is used to send the target steady-state mirror device information to the target solid-state storage device through the host according to the preset write instruction, and quickly enter the stable state. The target steady-state mirror device information is selected from the steady-state mirror file library.

[0072] Furthermore, it also includes:

[0073] The pre-test unit 204 is used to perform a pre-test on the target solid-state storage device to achieve different stable states.

[0074] Furthermore, the image building unit 202 is specifically configured to:

[0075] Mirror the device information according to preset rules to obtain a mirror file;

[0076] The image files are named according to the format and a steady-state image file library is constructed.

[0077] Furthermore, the steady-state unit 203 is written, specifically used for:

[0078] The host queries the expected steady-state image file from the steady-state image file library to obtain the target steady-state image device information;

[0079] The host sends the target steady-state mirror device information to the target solid-state storage device according to the preset write instruction, so that the device completes the write operation and quickly enters the stable state.

[0080] The present application also provides a solid-state storage device steady-state entry device, the device comprising a processor and a memory;

[0081] The memory is used to store the program code and transmit the program code to the processor;

[0082] The processor is used to execute the solid-state storage device steady-state entry method in the above method embodiment according to the instructions in the program code.

[0083] The present application also provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the solid-state storage device steady-state entry method in the above method embodiment.

[0084] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0085] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0086] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0087] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program codes.

[0088] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for entering a solid-state storage device into a steady state, characterized in that: include: Reading device information of a target solid-state storage device in different steady states by a host according to a preset read instruction, wherein the device information includes master control, cache and medium information; Performing image processing and format naming processing on the device information to build a steady-state image file library, wherein the steady-state image file library includes a plurality of steady-state image files; The host sends the target stable mirror device information to the target solid-state storage device according to a preset write instruction to quickly enter a stable state, and the target stable mirror device information is selected from the stable mirror file library.

2. The method for entering a solid-state storage device into a steady state according to claim 1, characterized in that: The device information of the target solid-state storage device in different steady states is read by the host according to a preset read instruction, and the method also includes: The target solid-state storage device is pre-tested to achieve different stable states.

3. The method for entering a solid-state storage device into a steady state according to claim 1, characterized in that: The mirroring and formatting of the device information is performed to build a steady-state mirror file library, including: Mirroring the device information according to preset rules to obtain a mirror file; The image files are named according to the format, and a steady-state image file library is constructed.

4. The method for steady-state entry of a solid-state storage device according to claim 1, characterized in that: The host sends the target stable mirror device information to the target solid-state storage device according to a preset write instruction to quickly enter a stable state, including: The host queries the expected steady-state image file from the steady-state image file library to obtain target steady-state image device information; The host sends the target stable mirror device information to the target solid-state storage device according to a preset write instruction, so as to prompt the device to complete the write operation and quickly enter a stable state.

5. A solid-state storage device steady-state entry device, characterized in that: include: An information reading unit, used to read device information of a target solid-state storage device in different steady states through a host according to a preset reading instruction, wherein the device information includes master control, cache and medium information; An image building unit, used to perform image processing and format naming processing on the device information, and build a steady-state image file library, wherein the steady-state image file library includes a plurality of steady-state image files; The writing steady-state unit is used to send the target steady-state mirror device information to the target solid-state storage device through the host according to the preset writing instruction, and quickly enter the stable state. The target steady-state mirror device information is selected from the steady-state mirror file library.

6. The solid-state storage device steady-state entry device according to claim 5, characterized in that: Also includes: The pre-test unit is used to perform a pre-test on the target solid-state storage device to achieve different stable states.

7. The solid-state storage device steady-state entry device according to claim 5, characterized in that: The mirror image building unit is specifically used for: Mirroring the device information according to preset rules to obtain a mirror file; The image files are named according to the format, and a steady-state image file library is constructed.

8. The solid-state storage device steady-state entry device according to claim 5, characterized in that: The writing steady-state unit is specifically used for: The host queries the expected steady-state image file from the steady-state image file library to obtain target steady-state image device information; The host sends the target stable mirror device information to the target solid-state storage device according to a preset write instruction, so as to prompt the device to complete the write operation and quickly enter a stable state.

9. A solid-state storage device steady-state entry device, characterized in that: The device comprises a processor and a memory; The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the solid-state storage device steady-state entry method described in any one of claims 1-4 according to the instructions in the program code.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and the program codes are used to execute the solid-state storage device steady-state entry method according to any one of claims 1 to 4.