Method and device for improving write performance of solid state disk in specific write mode

By identifying host write behavior patterns and enabling DSLC blocks in specific scenarios, the problem of degraded write performance of solid-state drives was solved, resulting in a significant improvement in write performance.

CN116301659BActive Publication Date: 2025-11-04SUZHOU UNIONMEMORY INFORMATION SYST LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310450246.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-24
Publication Date
2025-11-04
Estimated Expiration
2043-04-24

AI Technical Summary

Technical Problem

In solid-state drives (SSDs), when the number of DSLC blocks exceeds the design limit, write performance degrades, resulting in a write performance reduction of about 60%. Furthermore, the number of SSLC and DSLC blocks is limited and cannot meet high-performance requirements.

Method used

By identifying the host's write behavior patterns, DSLC blocks are enabled in specific scenarios to improve write performance; when the write model is not met, the system reverts to normal logic, balancing high performance and high stability.

Benefits of technology

Improve write performance by more than 80% in specific scenarios, such as significantly reducing encryption time in BitLocker's scenario of encrypting blank areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116301659B_ABST
    Figure CN116301659B_ABST
Patent Text Reader

Abstract

The application relates to a solid state disk write performance improvement method, device, computer equipment and storage medium under a specific write mode, wherein the method comprises the following steps: when a host write model has not been detected, determining whether to apply an AP of a DSLC according to a regular rule; the host performs data writing or data deletion; when the AP is about to be full, detecting an effective data proportion on the current AP; judging whether the proportion of the effective data of the current AP is not greater than a preset proportion; if the proportion of the effective data of the current AP is not greater than the preset proportion, a new AP directly uses a DSLC block. According to the application, the write behavior mode of the host is recognized, the DSLC block can be used again in a specific scene, and therefore the write performance can be improved by more than 80% in the specific scene.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of solid state disks, in particular to a method and device for improving the write performance of a solid state disk under a specific write mode, a computer device and a storage medium. BACKGROUND

[0002] As a new type of storage medium, a solid state disk (SSD) uses NAND particles as data storage and has been widely used in PCs, notebooks, servers and other fields and gradually replaced HDD (Hard Disk Drive) to become the mainstream application product in the storage field.

[0003] In the current solid state disk, there are two types of SLC blocks: SSLC (static SLC) and DSLC (dynamic SLC). Generally, SSLC is fixed and has high cost, so the number of SSLC blocks is not too large in design. However, in order to improve the write performance of the solid state disk, the TLC block is written in the SLC mode under certain conditions, which is DSLC. The consequence of this is that the available space of the disk will continue to decrease (only 1 / 3 of the designed capacity), so SSLC and DSLC are precious. Therefore, the number of SSLC and DSLC blocks allowed to be used in a general solid state disk is very small, generally not more than 50% of the disk capacity. When the user continuously writes, the SSLC and DSLC blocks are consumed, and the newly written data has to be written into the TLC block, and the write performance is reduced by about 60%. SUMMARY

[0004] Therefore, it is necessary to provide a method and device for improving the write performance of a solid state disk under a specific write mode, a computer device and a storage medium to solve the above technical problems.

[0005] A method for improving the write performance of a solid state disk under a specific write mode, the method comprising:

[0006] When the host write model has not been detected, determining whether to apply the DSLC AP according to the regular rules;

[0007] The host performs data writing or data deletion, and detects the proportion of valid data on the AP when the AP is about to be full;

[0008] Determining whether the proportion of valid data on the current AP is greater than or equal to a pre-set proportion;

[0009] If the proportion of valid data on the current AP is not greater than the pre-set proportion, the new AP directly uses the DSLC block.

[0010] In one of the embodiments, the method further comprises the following step after the step of judging whether the proportion of the current AP valid data is not greater than the preset proportion:

[0011] If the proportion of the current AP valid data is greater than the preset proportion, the new AP decides whether to use TLC block or DSLC block according to the conventional rule.

[0012] In one of the embodiments, the method further comprises the following steps:

[0013] The write mode of the host is identified, and it is judged whether the proportion of the current AP valid data conforms to the write model. If it conforms, the new AP directly uses DSLC block.

[0014] In one of the embodiments, the method further comprises the following step after the step of identifying the write mode of the host and the step of directly using DSLC block by the new AP in the scenario of encrypting the blank area by Bitlocker:

[0015] When it is detected that the write data no longer conforms to the write model, the forced write DSLC block mode is exited and returned to the conventional processing logic.

[0016] A solid state disk write performance improvement device in a specific write mode, the device comprises:

[0017] A conventional decision module is configured to decide whether to apply the AP of DSLC according to the conventional rule when the host write model has not been detected.

[0018] A data detection module is configured to detect the proportion of the valid data on the AP when the host writes data or deletes data and the AP is about to be full.

[0019] A judging module is configured to judge whether the proportion of the current AP valid data is not greater than the preset proportion.

[0020] A first execution module is configured to directly use DSLC block by the new AP if the proportion of the current AP valid data is not greater than the preset proportion.

[0021] In one of the embodiments, the device further comprises a second execution module configured to:

[0022] If the proportion of the current AP valid data is greater than the preset proportion, the new AP decides whether to use TLC block or DSLC block according to the conventional rule.

[0023] In one of the embodiments, the device further comprises a pattern recognition module, which is configured to:

[0024] The write pattern of the host is recognized, and it is determined whether the current AP valid data ratio conforms to the write model. If yes, the new AP directly enables the DSLC block.

[0025] In one of the embodiments, the pattern recognition module is further configured to:

[0026] When it is detected that the write data no longer conforms to the write model, the forced write DSLC block mode is exited and the normal processing logic is returned.

[0027] A computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of any one of the above methods.

[0028] A computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps of any one of the above methods.

[0029] The above-mentioned solid state disk write performance improvement method, device, computer device and storage medium in a specific write mode, in the case that the remaining free block number of the solid state disk is insufficient and cannot be started according to the normal logic DSLC, when the host data write behavior conforms to the set model (the host deletes or most of the data after writing data before the current AP is full), the application will use the DSLC block to form a new AP, thereby improving the write performance. In addition, once it is found that the host write behavior no longer conforms to the write model of the method, it is determined whether to continue to write to the DSLC flash block according to the normal logic, thereby balancing high performance and high stability. The application can enable the DSLC block again in a specific scenario by recognizing the write behavior pattern of the host, thereby ensuring that the write performance can be improved by more than 80% in a specific scenario. BRIEF DESCRIPTION OF DRAWINGS

[0030] Figure 1 It is a flowchart of the solid state disk write performance improvement method in a specific write mode in one embodiment;

[0031] Figure 2 It is a principle diagram of the solid state disk write performance improvement method in a specific write mode in one embodiment;

[0032] Figure 3 It is a flowchart of the solid state disk write performance improvement method in a specific write mode in another embodiment;

[0033] Figure 4 For another embodiment, the flowchart of the method for improving the write performance of the solid state disk in the specific write mode is shown in the figure.

[0034] Figure 5 For an embodiment, the structure block diagram of the device for improving the write performance of the solid state disk in the specific write mode is shown in the figure.

[0035] Figure 6 For another embodiment, the structure block diagram of the device for improving the write performance of the solid state disk in the specific write mode is shown in the figure.

[0036] Figure 7 For another embodiment, the structure block diagram of the device for improving the write performance of the solid state disk in the specific write mode is shown in the figure.

[0037] Figure 8 For an embodiment, the internal structure diagram of the computer device is shown in the figure. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical scheme and advantages of the present application more clear, the present application is further described in detail below in combination with the figures and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.

[0039] In the current solid state disk, there are two kinds of SLC blocks: SSLC and DSLC. Generally, SSLC is solidified, and the cost is high, so the number of SSLC will not be too much in the design. But in order to improve the write performance of the solid state disk, the TLC block has to be written in the SLC mode under certain conditions, which is DSLC. The consequence of this is that the available space of the disk will continue to decrease (only 1 / 3 of the designed capacity), so SSLC and DSLC are precious. Therefore, the number of SSLC and DSLC allowed to be used by the general solid state disk is very small, generally not more than 50% of the disk capacity. Then when the user continuously writes, the SSLC and DSLC are consumed, and the newly written data has to be written into the TLC block, and the write performance is reduced by about 60%.

[0040] In view of the problem of write performance reduction caused by the number of DSLC blocks exceeding the design upper limit in the current technology, the scheme can re-enable DSLC in a specific scenario by identifying the write behavior mode of the host, thereby ensuring that the write performance is improved by more than 80% in the specific scenario. For example, in the Bitlocker encryption scenario of a blank area, the write performance can be improved by 80% through the method, thereby greatly shortening the time for Bitlocker to encrypt the blank area. It should be noted that the technical solution provided by the present application is suitable for all SSDs of non-SLC flash particles, and the subsequent description in this paper is represented by TLC.

[0041] In order to more clearly explain the content of the present scheme, the English or abbreviations in the present scheme are explained as follows:

[0042]

[0043] In one embodiment, as shown in Figure 1 , a solid state disk write performance improvement method in a specific write mode is provided, which comprises:

[0044] Step 102, when the host write model has not been detected, whether to apply the AP of the DSLC is determined according to the conventional rule;

[0045] Step 104, the host performs data writing or data deletion, and detects the effective data ratio on the current AP when the AP is about to be full;

[0046] Step 106, whether the effective data ratio of the current AP is not greater than the pre-set ratio is judged;

[0047] Step 108, if the effective data ratio of the current AP is not greater than the pre-set ratio, the new AP directly uses the DSLC block.

[0048] In the present embodiment, a solid state disk write performance improvement method in a specific write mode is provided, and the implementation principle of the scheme is as shown in Figure 2 .

[0049] Specifically, first, when the host write model has not been detected, whether to apply the AP of the DSLC is determined according to the conventional rule. It should be noted that the AP applied at this time can be a TLC block or a DSLC block. The write model here refers to the host deleting or mostly deleting the data before the current AP is full after writing the data.

[0050] Then, the host performs data writing or data deletion, and detects the effective data ratio on the current AP when the AP is about to be full, and judges whether the effective data ratio of the current AP is not greater than the pre-set ratio.

[0051] If the proportion of current AP valid data is not greater than the pre-set proportion, the new AP directly uses the DSLC block. That is, in the embodiment, the processing mode of subsequent write data is: under the premise of ensuring the minimum idle block, the subsequent data is written to the DSLC block.

[0052] In one embodiment, after the step of judging whether the proportion of current AP valid data is not greater than the pre-set proportion, it further includes: if the proportion of current AP valid data is greater than the pre-set proportion, the new AP decides whether to use the TLC block or the DSLC block according to the normal rule.

[0053] Specifically, reference can be made to the flowchart of the solid state disk write performance improvement method in the specific write mode shown in FIG. 1. Figure 3 The specific implementation process is as follows:

[0054] 3.1. When the host write model has not been detected, it is decided according to the normal rule whether to apply for the AP of the DSLC, at this time, the applied AP can be the block of the TLC, and can also be the block of the DSLC.

[0055] 3.2. When the host writes in order, the current AP is about to be full, the proportion of valid data on the current AP is detected, if the proportion of current valid data is less than the set threshold, step 3.3 is entered, otherwise step 3.4 is entered.

[0056] 3.3. The new AP uses the DSLC block. Then continue to write data, skip step 3.4.

[0057] 3.4. The new AP decides whether to use the TLC block or the DSLC block according to the normal rule. Then continue to write data.

[0058] 3.5. Jump back to step 3.2, and so on.

[0059] In the above embodiment, in the case that the number of remaining free blocks of the solid state disk is insufficient to start the DSLC according to the normal logic, when the host data writing behavior is detected to conform to the set model (the host deletes or mostly deletes the data before the current AP is full after writing the data), the application will use the DSLC block to form a new AP, thereby improving the writing performance. In addition, once it is found that the host writing behavior no longer conforms to the writing model of the method, it is determined whether to continue writing to the DSLC flash block according to the normal logic, thereby balancing high performance and high stability. The above scheme can enable the DSLC block again in a specific scenario by identifying the host writing behavior mode, thereby ensuring that the writing performance can be improved by more than 80% in the specific scenario.

[0060] In one embodiment, as shown in Figure 4 , a solid state disk writing performance improvement method in a specific writing mode is provided, and the method further includes:

[0061] Step 402, identifying the writing mode of the host, and determining whether it conforms to the writing model according to the proportion of the current AP valid data. If it conforms, the new AP directly enables the DSLC block.

[0062] Step 404, when it is detected that the writing data no longer conforms to the writing model, exiting the forced writing DSLC block mode and returning to the normal processing logic.

[0063] In the present scheme, by identifying the host writing behavior mode, the DSLC can be enabled again in a specific scenario, thereby ensuring that the writing performance is improved by more than 80% in the specific scenario.

[0064] Specifically, for example, in the Bitlocker encryption scenario of the blank area, the writing performance can be improved by 80% through the method, thereby greatly shortening the time of Bitlocker encryption of the blank area. In addition, when it is detected that the writing data no longer conforms to the writing model, the present scheme will automatically exit the forced writing DSLC block mode and return to the normal processing logic.

[0065] It should be understood that, although Figures 1-4 the steps in the flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in sequence according to the arrows. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, Figures 1-4At least one of the steps in the method can comprise a plurality of sub-steps or a plurality of stages, which are not necessarily performed at the same time, but can be performed at different times, and the order of the sub-steps or stages is not necessarily sequential, but can be performed alternately or alternately with at least one of the other steps or sub-steps or stages of the other steps.

[0066] In one embodiment, as shown in FIG. 5, a solid state disk write performance improvement device 500 in a specific write mode is provided, and the device comprises: Figure 5

[0067] A conventional decision module 501 is configured to determine whether to apply the AP of the DSLC according to a conventional rule when the host write model has not been detected.

[0068] A data detection module 502 is configured to detect the proportion of valid data on the current AP when the AP is about to be full when the host writes data or deletes data.

[0069] A judgment module 503 is configured to determine whether the proportion of valid data on the current AP is greater than a preset proportion.

[0070] A first execution module 504 is configured to use the DSLC block directly if the proportion of valid data on the current AP is not greater than the preset proportion.

[0071] In one embodiment, as shown in FIG. 5, a solid state disk write performance improvement device 500 in a specific write mode is provided, and the device further comprises a second execution module 505 configured to: Figure 6 If the proportion of valid data on the current AP is greater than the preset proportion, the new AP determines whether to use the TLC block or the DSLC block according to the conventional rule.

[0072] In one embodiment, as shown in FIG. 5, a solid state disk write performance improvement device 500 in a specific write mode is provided, and the device further comprises a mode recognition module 506 configured to:

[0073] Figure 7 The mode recognition module 506 is configured to recognize the write mode of the host, determine whether the proportion of valid data on the current AP meets the write model, and use the DSLC block directly if the proportion of valid data on the current AP meets the write model.

[0074] In one embodiment, the mode recognition module 506 is further configured to:

[0075] In one embodiment, the mode recognition module 506 is further configured to:

[0076] ​​When it is detected that the write data no longer conforms to the write model, the forced write DSLC block mode is exited to return to the regular processing logic.

[0077] The specific limitation of the solid state disk write performance improvement device under the specific write mode can refer to the limitation of the solid state disk write performance improvement method under the specific write mode in the above, which will not be repeated here.

[0078] In one embodiment, a computer device is provided, and its internal structure diagram can be as shown in Figure 8 The computer device includes a processor, a memory and a network interface connected through 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 operating system and the computer program in the non-volatile storage medium to run. The network interface of the computer device is used to communicate with external terminals through network connection. The computer program is executed by the processor to implement a solid state disk write performance improvement method under a specific write mode.

[0079] Those skilled in the art can understand that Figure 8 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0080] In one embodiment, a computer device is provided, and it includes a memory, a processor and a computer program stored in the memory and executable on the processor. The processor executes the computer program to implement the steps in each of the above method embodiments.

[0081] In one embodiment, a computer readable storage medium is provided, and it stores a computer program. The computer program is executed by the processor to implement the steps in each of the above method embodiments.

[0082] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, storage, databases, or other media in the embodiments provided by the present 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. As an illustration but not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), 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), etc.

[0083] The technical features of the above embodiments can be combined in any way. In order to make the description simple, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist, they should be considered as the scope of the present application.

[0084] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, some modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of the patent of the present application should be subject to the appended claims.

Claims

1. A method for improving the write performance of a solid state disk in a specific write mode, the method comprising: determining whether to apply a DSLC AP according to a regular rule when a host write model has not been detected; the host write model refers to the host deleting data before the current AP is full after writing the data; the regular rule refers to the user continuously writing data, causing the SSLC and DSLC to be consumed, and the newly written data being written to a TLC block; and the AP refers to a combination of a group of blocks when the solid state disk writes data; detecting the proportion of valid data on the current AP when the AP is about to be full when the host writes data or deletes data; determining whether the proportion of valid data on the current AP is not greater than a preset proportion; if the proportion of valid data on the current AP is not greater than the preset proportion, then the new AP directly uses a DSLC block.

2. The method of claim 1, wherein the method is performed by a solid state drive (SSD) in a specific write mode. The method further comprises: identifying the write mode of the host, determining whether the write model is met according to the proportion of valid data on the current AP, and directly enabling the DSLC block for the new AP if the write model is met.

3. The method of claim 2, wherein the method is performed in a solid state drive (SSD) having a specific write mode. The method further comprises: identifying the write mode of the host, determining whether the write model is met according to the proportion of valid data on the current AP, and directly enabling the DSLC block for the new AP if the write model is met.

4. The method of claim 3, wherein the method is performed in a solid state drive (SSD) having a specific write mode. The device comprises: a regular decision module configured to determine whether to apply a DSLC AP according to a regular rule when a host write model has not been detected; the host write model refers to the host deleting data before the current AP is full after writing the data; the regular rule refers to the user continuously writing data, causing the SSLC and DSLC to be consumed, and the newly written data being written to a TLC block; and the AP refers to a combination of a group of blocks when the solid state disk writes data; 5. A device for improving the write performance of a solid state disk in a specific write mode, characterized by, a data detection module configured to detect the proportion of valid data on the current AP when the AP is about to be full when the host writes data or deletes data; a determination module configured to determine whether the proportion of valid data on the current AP is not greater than a preset proportion; a first execution module configured to use a DSLC block for the new AP if the proportion of valid data on the current AP is not greater than the preset proportion. The device further comprises a second execution module configured to: use a TLC block or a DSLC block for the new AP according to a regular rule if the proportion of valid data on the current AP is greater than the preset proportion.

6. The device for improving the write performance of a solid state disk in a specific write mode according to claim 5, wherein, ​ ​ 7. The device for improving the write performance of a solid state disk in a specific write mode according to claim 6, wherein, The device also comprises a pattern recognition module, which is used for: Recognizing the write pattern of the host, judging whether it conforms to the write model according to the proportion of the current AP effective data, and if it conforms, directly enabling the new AP to use the DSLC block.

8. The device for improving the write performance of a solid state disk in a specific write mode according to claim 7, characterized in that, The pattern recognition module is also used for: When it is detected that the write data no longer conforms to the write model, exiting the forced write DSLC block mode and returning to the regular processing logic.

9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the computer program to realize the steps of the method in any one of claims 1 to 4.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Dynamic memory cache size adjustment in a memory device

    CN103562883A

  • Method of improving writing performance of solid state disk

    CN107506137A