Method and device for improving SSD performance, equipment and medium

By writing the summary data of the mapping table to the HMB in the SSD and restoring it when exiting the low-power state, the problem of space occupation and power consumption during the recovery process of the mapping table is solved, and the performance and device life of the SSD are improved.

CN118732949APending Publication Date: 2024-10-01SUZHOU UNIONMEMORY INFORMATION SYST LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410808601.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When existing SSDs enter and exit low-power states, a large HMB space is occupied during the recovery process of the mapping table, which affects performance. Frequent writing to the non-volatile storage area consumes more power and shortens the life of the device.

Method used

By obtaining the command to enter the low-power state, save the mapping table and determine whether there is new data written, and if so, write the summary data to the HMB; when exiting the low-power state, restore the summary data from the HMB and merge it into the mapping table , reducing data size and recovery time.

Benefits of technology

It reduces the size of HMB saved and restored data, improves the performance of SSD entering and exiting low-power states, reduces power consumption and extends device life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118732949A_ABST
    Figure CN118732949A_ABST
Patent Text Reader

Abstract

The invention relates to a method, device and equipment for improving SSD performance and a medium, and the method comprises the steps: obtaining a command for entering a low-power-consumption state, and storing a mapping table; judging whether new data is written after the mapping table is stored; if new data is written after the mapping table is stored, abstract data corresponding to the new data after the mapping table which is stored for the last time is written into the HMB; and entering the low-power-consumption state. According to the method, only the abstract data needs to be written into the HMB, the size of the data stored in the HMB is reduced, in the subsequent data reading process, the SSD can recover the abstract data from the HMB, the mapping relation corresponding to the abstract data is merged into the mapping table so as to recover the mapping table, the size of the read data for recovering mapping from the HMB is reduced, and the performance of the SSD in advancing and retreating the low-power-consumption state is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of improving SSD performance, and in particular to a method, device, equipment and medium for improving SSD performance. Background Art

[0002] SSD (solid state drive) is widely used in various occasions. Currently in the PC market, it has gradually replaced the traditional HDD (mechanical hard disk), providing users with a better experience in terms of reliability and performance.

[0003] In existing SSDs, in order to improve the performance of GC (Garbage collection), the LPA (Logical Page Address) of these data pages can be written to a summary page every several data pages. When performing GC, only the summary page needs to be read to confirm the storage location of valid data of several data pages, thereby reducing the time spent on reading invalid data during the GC process.

[0004] When the SSD enters a low power state, the power supply of most modules (including RAM) will be turned off. When exiting the low power state, the mapping table will be read from the NAND, and the user data written after the mapping table is saved will be scanned to restore the complete mapping table. In order to speed up the recovery of the mapping table when exiting the low power state, when the HMB (Host Memory Buffer) is available, the mapping table entries that have been changed but not yet written to the NAND (called dirty entries) are generally saved to the HMB before entering the low power state, and the dirty entries are read and restored from the HMB when exiting the low power state, thereby avoiding the step of scanning user data and improving the recovery speed. Since the table entries of the mapping table are generally maintained at least in the NAND logical page size, with a 4KByte logical page size, one mapping occupies 4Byte, and 1024 logical addresses jointly occupy one mapping table entry. In the case of random logical address writing, each logical address write will occupy 4KB of HMB space for storing the mapping table entry, resulting in a large HMB storage space. The read data for restoring the mapping from the HMB is large, thereby affecting the performance of the SSD in and out of the low power state. Summary of the invention

[0005] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method, device, equipment and medium for improving SSD performance.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0007] In a first aspect, this embodiment provides a method for improving SSD performance, comprising the following steps:

[0008] Get the command to enter low power state and save the mapping table;

[0009] Determine whether new data is written after the mapping table is saved;

[0010] If new data is written after the mapping table is saved, the summary data corresponding to the new data after the last saved mapping table is written into the HMB;

[0011] Executes into a low power state.

[0012] A further technical solution is: after the step of entering the low power consumption state is executed, the method further comprises:

[0013] Get the command to exit the low power state and read the mapping table from NAND;

[0014] Determine whether summary data is stored in the HMB;

[0015] If summary data is stored in the HMB, the summary data is restored from the HMB, and the mapping relationship corresponding to the summary data is merged into the mapping table to obtain a restored mapping table.

[0016] Its further technical solution is: after the step of recovering the summary data from the HMB and merging the mapping relationship corresponding to the summary data into the mapping table to obtain the restored mapping table, it also includes: after enabling the HMB, allocating a storage space from the HMB for saving the summary data when the SSD enters a low power consumption state next time.

[0017] A further technical solution is: before the step of obtaining the command to enter the low power consumption state and saving the mapping table, it also includes: pre-setting a section of available storage space in the HMB.

[0018] In a second aspect, this embodiment provides a device for improving SSD performance, including: an acquisition and storage unit, a first judgment unit, a writing unit, and an execution unit;

[0019] The acquisition and storage unit is used to acquire a command to enter a low power consumption state and store the mapping table;

[0020] The first determination unit is used to determine whether new data is written into the mapping table after it is saved;

[0021] The writing unit is used to write summary data corresponding to the new data after the last saved mapping table into the HMB if new data is written after the mapping table is saved;

[0022] The execution unit is used to execute entering into a low power consumption state.

[0023] Its further technical solution is: the device further comprises: an acquisition and reading unit, a second judgment unit and a recovery and merging unit;

[0024] The acquisition and reading unit is used to obtain a command to exit the low power consumption state and read a mapping table from the NAND;

[0025] The second determination unit is used to determine whether summary data is stored in the HMB;

[0026] The restoring and merging unit is used to restore the summary data from the HMB if the summary data is stored in the HMB, and merge the mapping relationship corresponding to the summary data into the mapping table to obtain a restored mapping table.

[0027] A further technical solution is: the device further includes: an allocation unit, which is used to allocate a storage space from the HMB after enabling the HMB, for saving summary data when the SSD enters a low power consumption state next time.

[0028] A further technical solution is as follows: the device further comprises: a setting unit, which is used to pre-set a section of available storage space in the HMB.

[0029] In a third aspect, this embodiment provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method for improving SSD performance as described above is implemented.

[0030] In a fourth aspect, this embodiment provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method for improving SSD performance as described above can be implemented.

[0031] Compared with the prior art, the advantageous effects of the present invention are as follows: by obtaining a command to enter a low power state, the mapping table is saved, and it is determined whether new data is written after the mapping table is saved; if new data is written after the mapping table is saved, the summary data corresponding to the new data after the last saved mapping table is written into the HMB; the execution enters a low power state, that is, only the summary data needs to be written into the HMB, thereby reducing the size of the data saved in the HMB; in subsequent data reading, the SSD can restore the summary data from the HMB, and merge the mapping relationship corresponding to the summary data into the mapping table to restore the mapping table, thereby reducing the size of the read data restored from the HMB, and improving the performance of the SSD in entering and exiting the low power state.

[0032] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0034] Figure 1 A flow chart of a method for improving SSD performance provided by an embodiment of the present invention;

[0035] Figure 2 A schematic block diagram of a device for improving SSD performance provided by an embodiment of the present invention;

[0036] Figure 3 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] 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 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.

[0038] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0039] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0040] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0041] See also Figure 1 In the specific embodiment shown, the present invention discloses a method for improving SSD performance, comprising the following steps:

[0042] S1, obtain a command to enter a low power state and save the mapping table;

[0043] Specifically, for most SSDs and operating systems, there is no direct user interface command to trigger the SSD to enter a low power state. This is usually triggered automatically by the operating system or driver under specific conditions, such as when the system enters standby, hibernation, or sleep mode. In some cases, the SSD can be requested to enter a low power state through a specific system call or API. The mapping table is an important data structure inside the SSD for tracking the location of data blocks. Before the SSD enters a low power state, the mapping table needs to be saved to a non-volatile memory (such as NVRAM) to ensure that the data can be accessed correctly when it is restored.

[0044] S2, determining whether new data is written into the mapping table after it is saved; if no new data is written into the mapping table after it is saved, directly executing to enter the low power consumption state;

[0045] Specifically, the SSD firmware can directly know whether new data is written after the mapping table is saved, that is, it is realized through the mapping table function module of the firmware.

[0046] S3, if new data is written after the mapping table is saved, the summary data corresponding to the new data after the last saved mapping table is written into the HMB;

[0047] Specifically, when the SSD enters low power mode or performs certain operations that require saving the current state, the mapping table (usually used to record the correspondence between logical addresses and physical addresses) will be saved. If new data is written after the mapping table is saved, writing the summary information of these new data into the HMB can ensure that the newly written data will not be lost when the system is restored or the mapping table is reloaded, thereby maintaining data consistency. In addition, compared to saving the entire newly written data block in non-volatile storage, only saving summary data (such as hash values, checksums, etc.) can greatly save storage space. When the system needs to restore or verify these data, the complete data block can be quickly located and restored through these summary data, thereby improving recovery efficiency. In addition, frequently writing a large amount of data to the non-volatile storage area will consume more power and may shorten the life of the storage device. By only writing the summary information of the new data, the number and quantity of write operations can be reduced, thereby reducing power consumption and extending the life of the device. In addition, if the storage device fails or needs to restore data, since the summary information of the new data has been saved, the data can be located and restored faster, reducing the risk of data loss and recovery time.

[0048] S4, execution enters low power consumption state.

[0049] In one embodiment, after the step of entering the low power consumption state is executed, the method further includes:

[0050] Get the command to exit the low power state and read the mapping table from NAND;

[0051] Specifically, the SSD will automatically exit the low power state when it needs to perform read and write operations. This is achieved through an internal mechanism and does not require the user to manually send commands. If the SSD is in a deep sleep state, a wake-up signal or command may be required to activate it. This wake-up signal is usually sent by the host system. When the system tries to access the SSD, it will automatically send this signal. In addition, the mapping table is a data structure inside the SSD that records the correspondence between logical addresses and physical addresses. When the SSD is working, this mapping table is frequently accessed to ensure the correct reading and writing of data. When the SSD recovers from a low power state, the firmware will automatically handle the reading and updating of the mapping table, which usually involves reading the latest mapping table information from the NAND flash memory into the SSD cache (such as DRAM). This process is transparent to the user and does not require manual operation. The firmware and hardware design of the SSD ensure that the mapping table can be correctly and efficiently read and updated after recovering from a low power state.

[0052] Determine whether the summary data is stored in the HMB; if the summary data is not stored in the HMB, directly map the table;

[0053] Specifically, the SSD firmware will record the firmware's use of HMB, which can directly determine whether summary data is saved. Before entering low power consumption, the firmware will record the HMB usage to NAND or RAM inside the SSD, and read it from NAND or RAM when exiting low power consumption.

[0054] If summary data is stored in the HMB, the summary data is restored from the HMB, and the mapping relationship corresponding to the summary data is merged into the mapping table to obtain a restored mapping table.

[0055] Specifically, when summary data is stored in the HMB, it means that the SSD can use this part of the data in the host memory to speed up the access speed. Since the host memory usually has a higher read and write speed than the SSD's own storage medium (such as NAND flash memory), by recovering the summary data from the HMB, the SSD can respond to the host's read and write requests more quickly. In addition, the SSD uses a mapping table to record the correspondence between logical addresses and physical addresses. When the SSD needs to read or write data, it will look up the mapping table to determine the location of the data on the physical storage medium. By merging the mapping relationship corresponding to the summary data stored in the HMB into the mapping table, the SSD can update its mapping table to ensure accurate access to the data. In addition, if there is no summary data in the HMB, the SSD may need to read the entire mapping table or part of the mapping table from the NAND flash memory, which may cause delays. By recovering the summary data from the HMB and merging it into the mapping table, the SSD can access the required mapping information more quickly, thereby reducing access delays. In addition, in some cases, such as system crashes or power failures, the SSD may not be able to save its mapping table correctly. However, if summary data is saved in the HMB, the SSD can restore part or all of the mapping table from these summary data after restart, thereby improving the reliability of the system. In addition, the HMB uses part of the host memory as a buffer, which usually only takes up a small part of the memory space (such as 128MB). By using the HMB reasonably to save summary data, the SSD can improve performance without adding additional hardware costs.

[0056] In one embodiment, after the step of recovering the summary data from the HMB and merging the mapping relationship corresponding to the summary data into the mapping table to obtain the recovered mapping table, the method further includes: after enabling the HMB, allocating a storage space from the HMB for saving the summary data when the SSD enters a low power consumption state next time.

[0057] Specifically, when the SSD enters a low-power state, in order to save energy, it will save certain key data (such as part or all of the summary data of the mapping table) to a non-volatile memory, such as HMB. These summary data contain the mapping relationship between logical addresses and physical addresses, which is crucial for the SSD to respond quickly to read and write requests. In addition, when the SSD recovers from a low-power state, these summary data can be directly restored from the HMB, and the corresponding mapping relationship can be merged into the mapping table, so as to quickly obtain a complete and restored mapping table, which greatly shortens the time required for the SSD to recover from a low-power state to a normal working state and improves the response speed of the system. In addition, after enabling HMB, the SSD will allocate a storage space from the HMB specifically for saving summary data the next time it enters a low-power state, ensuring that the storage space in the HMB is used efficiently and does not cause performance degradation or data loss due to frequent writing and reading of data. In addition, since the data in the HMB will be saved when the SSD enters a low-power state, the SSD can rely on the data in the HMB to restore the mapping table in unexpected situations such as system restart or power failure, thereby improving the reliability of the system. Even if an unexpected situation occurs, the SSD can quickly recover to a normal working state to ensure the integrity and accessibility of the data. In addition, the SSD will shut down some hardware components in a low-power state to save energy. By saving the summary data in the HMB and quickly merging it into the mapping table when recovering, the SSD can recover to a normal working state faster, thereby reducing the waiting time in a low-power state and further reducing power consumption.

[0058] In one embodiment, the step of obtaining a command to enter a low power consumption state and before saving the mapping table further includes: pre-setting a section of available storage space in the HMB.

[0059] Specifically, when the SSD is about to enter a low power state, a place is needed to save the current mapping table summary data to ensure that the mapping table can be quickly restored when the SSD is restored from the low power state, so as to quickly respond to the host's read and write requests. Pre-setting a section of available storage space in the HMB is for this purpose. In addition, the HMB uses a part of the host memory as the SSD cache. By pre-setting a section of available storage space, the SSD can manage this part of the memory more efficiently, avoiding performance degradation or data loss due to insufficient memory when data needs to be saved. In addition, when the SSD is restored from a low power state, it can directly access the pre-set storage space in the HMB, read the summary data from it and quickly restore the mapping table. This ability to quickly restore the mapping table can significantly improve the response speed and overall performance of the SSD. In addition, the mapping table is a very important data structure in the SSD. It records the mapping relationship between the logical address and the physical address. If the mapping table is wrong or lost when the SSD enters a low power state or recovers, it will cause data access failure or data loss. By pre-setting storage space in the HMB to save the mapping table summary data, the consistency and integrity of the data can be ensured. In addition, different systems and host configurations may have different memory capacities and performances. Pre-setting storage space in the HMB allows the SSD to adjust the size and usage of the cache according to the actual configuration of the system, thereby better adapting to different application scenarios.

[0060] Among them, take the case where the size of each mapping table entry is 4KB, and 128 random logical address data are newly written after the mapping is saved. If the 128 logical addresses are scattered in 128 mapping table entries, 128 4KB mapping data need to be saved to HMB when entering low power consumption, occupying 512KB. After adopting the technology of the present invention, it is necessary to save the summary data corresponding to 128 data to HMB, and each summary is the logical address of the data, with a size of 4Byte, occupying a total of 512Byte. In the scenario of random logical address writing, it can effectively reduce the data size saved in HMB by accelerating the recovery of mapping table entries, and reduce the time consumption of entering and exiting low power consumption.

[0061] The present invention obtains a command to enter a low power state, saves a mapping table, determines whether new data is written after the mapping table is saved, and if new data is written after the mapping table is saved, writes summary data corresponding to the new data after the mapping table saved for the last time into the HMB; executes entry into a low power state, that is, only summary data needs to be written into the HMB, thereby reducing the size of data saved in the HMB. In subsequent data reading, the SSD can restore the summary data from the HMB, and merge the mapping relationship corresponding to the summary data into the mapping table to restore the mapping table, thereby reducing the size of read data restored from the HMB, and improving the performance of the SSD in entering and exiting the low power state.

[0062] See also Figure 2 As shown, the present invention also discloses a device for improving SSD performance, comprising: an acquisition and storage unit 10, a first judgment unit 20, a writing unit 30 and an execution unit 40;

[0063] The acquisition and storage unit 10 is used to acquire a command to enter a low power consumption state and store the mapping table;

[0064] The first determination unit 20 is used to determine whether new data is written into the mapping table after it is saved;

[0065] The writing unit 30 is used to write summary data corresponding to the new data after the last saved mapping table into the HMB if new data is written after the mapping table is saved;

[0066] The execution unit 40 is used for executing entering into a low power consumption state.

[0067] In one embodiment, the device further comprises: an acquisition and reading unit, a second judgment unit and a recovery and merging unit;

[0068] The acquisition and reading unit is used to obtain a command to exit the low power consumption state and read a mapping table from the NAND;

[0069] The second determination unit is used to determine whether summary data is stored in the HMB;

[0070] The restoring and merging unit is used to restore the summary data from the HMB if the summary data is stored in the HMB, and merge the mapping relationship corresponding to the summary data into the mapping table to obtain a restored mapping table.

[0071] In one embodiment, the device further includes: an allocation unit, configured to allocate a storage space from the HMB after the HMB is enabled, for storing summary data when the SSD enters a low power consumption state next time.

[0072] In one embodiment, the device further comprises: a setting unit, configured to pre-set a section of available storage space in the HMB.

[0073] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned device for improving SSD performance and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0074] The above-mentioned device for improving SSD performance can be implemented in the form of a computer program. The computer program can be used in Figure 3 Runs on the computer device shown.

[0075] See also Figure 3 , Figure 3 is a schematic block diagram of a computer device provided in an embodiment of the present application; the computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.

[0076] See also Figure 3 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0077] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a method for improving SSD performance.

[0078] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0079] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for improving the performance of the SSD.

[0080] The network interface 505 is used to communicate with other devices over the network. Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0081] The processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps:

[0082] Get the command to enter the low power state, save the mapping table; determine whether new data is written after the mapping table is saved; if new data is written after the mapping table is saved, write the summary data corresponding to the new data after the last saved mapping table into the HMB; execute to enter the low power state.

[0083] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0084] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0085] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions, when executed by a processor, can implement the above-mentioned method for improving SSD performance. The storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions, when executed by a processor, can implement the above-mentioned method. The program instructions include the following steps:

[0086] Get the command to enter the low power state, save the mapping table; determine whether new data is written after the mapping table is saved; if new data is written after the mapping table is saved, write the summary data corresponding to the new data after the last saved mapping table into the HMB; execute to enter the low power state.

[0087] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0088] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0089] In the several embodiments provided by the present invention, 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 each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0090] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0091] 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 storage medium. Based on this understanding, the technical solution of the present invention 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0092] The above embodiments are preferred implementation schemes of the present invention. In addition, the present invention may also be implemented in other ways. Any obvious replacement without departing from the concept of the present technical solution is within the protection scope of the present invention.

Claims

1. A method for improving SSD performance, characterized in that: The following steps are involved: Get the command to enter low power state and save the mapping table; Determine whether new data is written after the mapping table is saved; If new data is written after the mapping table is saved, the summary data corresponding to the new data after the last saved mapping table is written into the HMB; Executes into a low power state.

2. The method for improving SSD performance according to claim 1, characterized in that: After the step of entering the low power consumption state is executed, the method further includes: Get the command to exit the low power state and read the mapping table from NAND; Determine whether summary data is stored in the HMB; If summary data is stored in the HMB, the summary data is restored from the HMB, and the mapping relationship corresponding to the summary data is merged into the mapping table to obtain a restored mapping table.

3. The method for improving SSD performance according to claim 2, characterized in that: After the step of recovering the summary data from the HMB and merging the mapping relationship corresponding to the summary data into the mapping table to obtain the recovered mapping table, the method further includes: after enabling the HMB, allocating a storage space from the HMB for saving the summary data when the SSD enters a low power consumption state next time.

4. The method for improving SSD performance according to claim 1, characterized in that: The step of obtaining a command to enter a low power consumption state and before saving the mapping table further includes: pre-setting a section of available storage space in the HMB.

5. A device for improving SSD performance, characterized in that: include: Acquire a storage unit, a first judgment unit, a writing unit, and an execution unit; The acquisition and storage unit is used to acquire a command to enter a low power consumption state and store the mapping table; The first determination unit is used to determine whether new data is written into the mapping table after it is saved; The writing unit is used to write summary data corresponding to the new data after the last saved mapping table into the HMB if new data is written after the mapping table is saved; The execution unit is used to execute entering into a low power consumption state.

6. The device for improving SSD performance according to claim 5, characterized in that: The device further comprises: an acquisition and reading unit, a second judgment unit and a recovery and merging unit; The acquisition and reading unit is used to obtain a command to exit the low power consumption state and read a mapping table from the NAND; The second determination unit is used to determine whether summary data is stored in the HMB; The restoring and merging unit is used to restore the summary data from the HMB if the summary data is stored in the HMB, and merge the mapping relationship corresponding to the summary data into the mapping table to obtain a restored mapping table.

7. The device for improving SSD performance according to claim 6, characterized in that: The device further includes: an allocation unit, which is used to allocate a storage space from the HMB after the HMB is enabled, for storing summary data when the SSD enters a low power consumption state next time.

8. The device for improving SSD performance according to claim 5, characterized in that: The device further includes: a setting unit, which is used to pre-set a section of available storage space in the HMB.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method for improving SSD performance according to any one of claims 1 to 4 when executing the computer program.

10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method for improving SSD performance according to any one of claims 1 to 4 can be implemented.