A solid state hard disk address mapping method, device and product

By setting access heat parameters for the mapping items in the cache mapping table of the solid state drive and executing the elimination strategy, the problem of not considering the time and space dimensions in the loading and elimination process of the mapping items in the existing technology is solved, and the read and write performance of the solid state drive is improved. performance.

CN118170327BActive Publication Date: 2024-09-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410593446.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-09-13
Estimated Expiration
2044-05-14

AI Technical Summary

Technical Problem

Existing SSD address mapping methods do not consider the time and space dimensions when loading or removing mapping items of logical pages and physical pages in the cache mapping table, resulting in a low request hit rate and reducing the read and write performance of the SSD.

Method used

By setting access heat parameters for each mapping item, updating these parameters based on the number of accesses and the distance between the logical page address range and the target request address range, executing the eviction strategy when the cache mapping table is full, and adding the target mapping item to the table, To improve the popularity and hit rate of mapping items.

Benefits of technology

The hit rate of mapping items in the cache mapping table is improved, and the read and write performance of the solid state drive is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118170327B
    Figure CN118170327B
Patent Text Reader

Abstract

The embodiment of the present application provides a method, device and product for address mapping of a solid-state hard disk. The method for address mapping of a solid-state hard disk is applied to a solid-state hard disk, and a cache mapping table is loaded in the memory of the solid-state hard disk. The method includes obtaining a target request, updating the access heat parameter corresponding to each mapping item in the cache mapping table, and the mapping item is used to characterize the mapping relationship between the page number of any logical page and the page number of the physical page. The access heat parameter corresponding to any mapping item is determined according to the number of accesses to the mapping item and the distance between the logical page address range of the mapping item and the access address range corresponding to the target request; when the target mapping item corresponding to the target request is not included in the cache mapping table and the cache mapping table is full, an eviction strategy is executed according to the access heat parameters corresponding to each mapping item; and the target mapping item corresponding to the target request is added to the cache mapping table. The embodiment of the present application aims to improve the read and write performance of the solid-state hard disk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of solid-state hard disks, and more specifically, to a solid-state hard disk address mapping method, device, and product. Background Art

[0002] Solid-state drives are a new type of widely used semiconductor storage device. Compared with traditional mechanical hard drives, solid-state drives have the advantages of low latency, shock and drop resistance, high reliability and a wide operating temperature range.

[0003] The solid-state drive is mainly composed of modules such as host interface logic, cache management layer, flash conversion layer and NAND flash chip array. Since the solid-state drive adopts the process of remote update, the flash memory physical address corresponding to the logical address issued by the operating system will often change. In order to ensure the integrity of the data, the solid-state drive needs to be responsible for the mapping between the logical address and the physical address.

[0004] Usually address mapping is divided into three basic types: page-level mapping, block-level mapping and hybrid mapping. The currently commonly used DFTL address mapping method has page-based mapping flexibility and also reduces the memory space required for the mapping table.

[0005] However, there are also many problems in the DFTL address mapping method. The process of loading or removing mapping items of logical pages and physical pages in CMT (Cached Mapping table) does not consider any request in the time dimension and space dimension, resulting in a low hit rate of requests in CMT, thereby reducing the read and write performance of the SSD. Summary of the invention

[0006] The embodiments of the present application provide a solid-state hard disk address mapping method, device and product, aiming to improve the read and write performance of the solid-state hard disk.

[0007] In a first aspect, an embodiment of the present application provides a solid state drive address mapping method, which is applied to a solid state drive, wherein a cache mapping table is loaded into a memory of the solid state drive, and the method comprises:

[0008] Obtaining a target request, and updating an access heat parameter corresponding to each mapping item in the cache mapping table, wherein the mapping item is used to characterize a mapping relationship between a page number of any logical page and a page number of a physical page, and the access heat parameter corresponding to any mapping item is determined according to the number of accesses to the mapping item and the distance between the logical page address range of the mapping item and the access address range corresponding to the target request;

[0009] When the target mapping item corresponding to the target request is not included in the cache mapping table and the cache mapping table is full, executing a removal strategy according to the access heat parameters corresponding to each mapping item;

[0010] Add the target mapping entry corresponding to the target request to the cache mapping table.

[0011] Optionally, updating the access heat parameter corresponding to each mapping item in the cache mapping table includes:

[0012] For any mapping item, obtaining the number of accesses of the mapping item in the cache mapping table;

[0013] Obtaining an intersection coefficient between a logical page address range of the mapping item and an access address range corresponding to the target request, wherein the intersection coefficient is used to characterize a distance between the logical page address range of the mapping item and the access address range corresponding to the target request;

[0014] The access heat parameter of the mapping item is updated according to the number of accesses corresponding to the mapping item, the intersection coefficient, and a preset attenuation coefficient.

[0015] Optionally, obtaining an intersection coefficient between a logical page address range of the mapping entry and an access address range corresponding to the target request includes:

[0016] When the logical page address range of the mapping item has no intersection with the access address range corresponding to the target request, the intersection coefficient is 0;

[0017] When the logical page address range of the mapping item intersects with the access address range corresponding to the target request, the intersection coefficient is calculated according to the minimum address and maximum address of the mapping item and the maximum access address and minimum access address corresponding to the target request.

[0018] Optionally, the formula for calculating the intersection coefficient is:

[0019]

[0020] Wherein, D is the intersection coefficient corresponding to the mapping item; is the minimum address corresponding to the mapping entry; is the maximum address corresponding to the mapping entry; the maximum access address requested for the target; a minimum access address requested for the target; is the capacity of the solid state drive.

[0021] Optionally, the calculation formula for the access heat parameter of any mapping item is:

[0022]

[0023] Wherein, n is the number of accesses of the mapping item in the cache mapping table, and when any mapping item is loaded into the cache mapping table, n=1; is the access heat parameter of the mapping item when the number of accesses in the cache mapping table is n, is the access heat parameter of the mapping item when the number of accesses in the cache mapping table is n-1; is the attenuation coefficient; D is the intersection coefficient of the mapping item.

[0024] Optionally, executing a culling strategy includes:

[0025] In the cache mapping table, determining a mapping item to be removed;

[0026] Acquire the mapping item to be eliminated in the translation block area of ​​the solid state drive, and compare the mapping item to be eliminated in the translation block area with the mapping item to be eliminated in the cache mapping table;

[0027] When the mapping entry to be eliminated in the translation block area is consistent with the mapping entry to be eliminated in the cache mapping table, the mapping entry to be eliminated is deleted in the cache mapping table.

[0028] Optionally, in the cache mapping table, determining a mapping item to be removed includes:

[0029] In the cache mapping table, the mapping item with the smallest access heat parameter is used as the mapping item to be removed.

[0030] Optionally, after comparing the mapping items to be eliminated in the translation block area with the mapping items to be eliminated in the cache mapping table, the method further includes:

[0031] When the mapping item to be eliminated in the translation block area is inconsistent with the mapping item to be eliminated in the cache mapping table, the translation block area update strategy is executed, and the mapping item to be eliminated is deleted in the cache mapping table.

[0032] Optionally, the translation block region update strategy includes:

[0033] Determine, according to a global conversion directory set in the solid-state drive, a translation page where the mapping item to be removed is located in the translation block area, wherein the global conversion directory includes a mapping relationship between a virtual conversion page where any mapping item is located and a translation page where the mapping item is located;

[0034] Merging the mapping item to be eliminated in the cache mapping table with the translation page where the mapping item to be eliminated is located, and writing them into a new translation page;

[0035] The mapping relationship of the page number of the virtual translation page corresponding to the mapping item to be removed in the global translation directory is replaced with the page number of the new translation page.

[0036] Optionally, after updating the access heat parameters corresponding to each mapping item in the cache mapping table, the method further includes:

[0037] Querying whether the cache mapping table contains a target mapping entry corresponding to the target request;

[0038] When the target mapping entry corresponding to the target request is not included in the cache mapping table and the cache mapping table is not full, the target mapping entry corresponding to the target request is added to the cache mapping table.

[0039] Optionally, adding a target mapping entry corresponding to the target request to the cache mapping table includes:

[0040] Determining, in a translation block area of ​​the solid-state hard disk, a translation page where a target mapping item corresponding to the target request is located according to a global translation directory set in the solid-state hard disk, wherein the global translation directory includes a mapping relationship between a virtual translation page where any mapping item is located and a translation page where the mapping item is located;

[0041] In the translation page where the target mapping entry is located, the target mapping entry corresponding to the target request is obtained and added to the cache mapping table.

[0042] Optionally, the process of determining the translation page where any mapping item is located in the translation block area of ​​the solid state drive according to the global translation directory set in the solid state drive includes:

[0043] Determine the page number of the virtual translation page where the mapping entry is located according to the page number of the logical page corresponding to the mapping entry;

[0044] According to the page number of the virtual conversion page where the mapping entry is located, query the page number of the translation page corresponding to the page number of the virtual conversion page where the mapping entry is located in the global conversion directory;

[0045] The translation page corresponding to the page number of the translation page where the mapping entry is located is used as the translation page where the mapping entry is located in the translation block area of ​​the solid state drive.

[0046] Optionally, the process of determining the page number of the virtual translation page where any mapping entry is located according to the page number of the logical page corresponding to the mapping entry includes:

[0047] The page number of the virtual translation page = [the page number of the logical page * the mapping entry size / the page size]

[0048] Among them, [ ] represents the rounding function.

[0049] Optionally, when the cache mapping table includes a target mapping entry corresponding to the target request, the method further includes:

[0050] Determine whether to change the target mapping entry corresponding to the target request in the cache mapping table according to the type of the target request.

[0051] Optionally, determining whether to change a target mapping item corresponding to the target request in the cache mapping table according to the type of the target request includes:

[0052] When the type of the target request is a write request, after executing the target request, the target mapping entry corresponding to the target request in the cache mapping table is updated.

[0053] Optionally, determining whether to change a target mapping item corresponding to the target request in the cache mapping table according to the type of the target request includes:

[0054] When the type of the target request is a read request, the target mapping entry corresponding to the target request in the cache mapping table is not updated.

[0055] In a second aspect, an embodiment of the present application provides a solid state drive address mapping device, which is applied to a solid state drive, wherein a cache mapping table is loaded into a memory of the solid state drive, and the device comprises:

[0056] An access heat parameter update module, used to obtain a target request and update an access heat parameter corresponding to each mapping item in the cache mapping table, wherein the mapping item is used to characterize a mapping relationship between a page number of any logical page and a page number of a physical page, and the access heat parameter corresponding to any mapping item is determined according to the number of accesses to the mapping item and the distance between the logical page address range of the mapping item and the access address range corresponding to the target request;

[0057] A mapping entry culling module, configured to execute a culling strategy according to access heat parameters corresponding to each mapping entry when the target mapping entry corresponding to the target request is not included in the cache mapping table and the cache mapping table is full;

[0058] A mapping entry adding module is used to add a target mapping entry corresponding to the target request into the cache mapping table.

[0059] In a third aspect, an embodiment of the present application provides a solid-state hard disk, which is used to execute the solid-state hard disk address mapping method described in the first aspect of the embodiment.

[0060] In a fourth aspect, an embodiment of the present application provides a computer device, comprising: at least one processor, and a memory, wherein the memory stores a computer program that can be run on the processor, wherein when the processor executes the program, the solid-state hard disk address mapping method described in the first aspect of the embodiment is executed.

[0061] In a fifth aspect, an embodiment of the present application provides a non-volatile readable storage medium, wherein the non-volatile readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the solid-state hard disk address mapping method described in the first aspect of the embodiment is executed.

[0062] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the solid-state hard disk address mapping method described in the first aspect of the embodiment.

[0063] Beneficial effects:

[0064] Obtain a target request and update access heat parameters corresponding to each mapping item in the cache mapping table. When the target mapping item corresponding to the target request is not included in the cache mapping table and the cache mapping table is full, execute an eviction strategy according to the access heat parameters corresponding to each mapping item, and then add the target mapping item corresponding to the target request to the cache mapping table.

[0065] The method sets an access heat parameter for each mapping item in the cache mapping table. The access heat parameter is determined based on the number of accesses to the mapping item and the distance between the logical page address range of the mapping item and the access address range corresponding to the target request. Therefore, the access heat parameter can be determined based on the access frequency of any mapping item in the time dimension, or based on the distance between any mapping item and the requested access address range in the space dimension. When the cache mapping table is full, the mapping item to be removed is determined based on the access heat parameter, and the target mapping item is added to the cache mapping table. This can make the mapping items contained in the cache mapping table have higher heat and are more likely to be hit by requests, thereby reducing the read and write performance of the solid-state hard disk. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0067] Figure 1 A flowchart showing the steps of the solid state drive address mapping method provided by an embodiment of the present application is shown;

[0068] Figure 2 A schematic diagram of a cache mapping table provided in an embodiment of the present application is shown;

[0069] Figure 3 A schematic diagram of obtaining a target mapping item provided in an embodiment of the present application is shown;

[0070] Figure 4 A schematic diagram showing a translation block region update process provided by an embodiment of the present application is shown;

[0071] Figure 5 The following is a flowchart of an implementation of a solid state drive address mapping method provided by an embodiment of the present application;

[0072] Figure 6 A functional module diagram of a solid state drive address mapping device provided in an embodiment of the present application is shown;

[0073] Figure 7 A schematic diagram of the architecture of a solid state drive provided in an embodiment of the present application is shown;

[0074] Figure 8 A schematic diagram of a computer device provided in an embodiment of the present application is shown;

[0075] Fig. 9 A schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0076] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0077] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in each embodiment of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not constitute any limitation, and the various embodiments can be combined with each other and referenced to each other without contradiction.

[0078] CMT: Cached Mapping table, cache mapping table;

[0079] GTD: Global Translation Directory, global translation directory;

[0080] DFTL: The classic flash translation layer (FTL) address mapping method DFTL (demand-based FTL) places the global mapping information in the flash memory and only caches the most recently used mapping information, solving the contradiction between the large mapping information and the limited cache capacity in the page-level mapping strategy.

[0081] Solid-state drives are a new type of semiconductor storage device that is widely welcomed by the market. Compared with traditional mechanical hard disks, solid-state drives have the advantages of low latency, shock resistance, high reliability and a wide operating temperature range. They are currently widely used in notebook computers and enterprise data centers. Solid-state drives are mainly composed of host interface logic, cache management layer, flash conversion layer and NAND flash chip array. The flash conversion layer hides the erase operation of the flash memory and simulates the solid-state drive into the form of a traditional hard disk with only read and write operations to adapt to the current file system. However, since solid-state drives use an off-site update method, off-site update means updating at the page granularity. When modifying the content of a logical page, the solid-state drive needs to rewrite on a new physical page instead of writing on the physical page currently corresponding to the logical page. Therefore, the flash physical address corresponding to the logical address issued by the operating system will often change. In order to ensure the integrity of the data, the solid-state drive needs to be responsible for the mapping between the logical address and the physical address.

[0082] Usually, address mapping is divided into three basic types: page-level mapping, block-level mapping and hybrid mapping; page-based address mapping maps each logical page to one physical page. This method is very flexible in processing requests, but the entire mapping table is stored in the memory, and the high cost of memory limits its practical application; block-based address mapping maps each logical block to one physical block. This method significantly reduces the size of the mapping table, but the logical page can only be mapped to a fixed page in the physical block, which greatly reduces the flexibility and space utilization of address mapping.

[0083] Hybrid mapping includes the currently commonly used DFTL address mapping method, which not only retains the flexibility of page-based mapping, but also reduces the memory space required for the mapping table. In the DFTL address mapping method, the physical block of the flash memory is divided into a translation block area and a data block area. The translation block area is used to store the global mapping table, which saves the mapping relationship between all logical page addresses and physical page addresses of the solid-state drive; the data block area is used to store regular data; some mapping items are dynamically loaded into the cache mapping table CMT of RAM according to demand to handle frequently accessed requests.

[0084] However, there are also many problems in the DFTL address mapping method. The process of loading or removing mapping items of logical pages and physical pages in CMT does not consider any request in the time dimension and space dimension, resulting in a low hit rate of requests in CMT, thereby reducing the read and write performance of the SSD.

[0085] In order to improve the read and write performance of a solid state drive, an embodiment of the present application provides a solid state drive address mapping method.

[0086] Reference Figure 1, shows a flowchart of the steps of a solid state drive address mapping method provided by an embodiment of the present application, which is applied to a solid state drive, wherein a cache mapping table CMT is loaded in the memory of the solid state drive, and the flash memory of the solid state drive includes a translation block area for storing mapping items between all logical page addresses and physical page addresses of the solid state drive, and the translation block area includes multiple translation pages. The method may include the following steps:

[0087] S101: Obtain a target request, and update access heat parameters corresponding to each mapping item in the cache mapping table.

[0088] Due to the limited memory space in the solid-state drive, the global mapping table that stores the mapping items between all logical page addresses and physical page addresses of the solid-state drive in the translation block area is generally large and cannot be put into the memory at one time. Therefore, part of the mapping table is dynamically loaded into the memory according to demand to handle frequent access requests. The cache mapping table, i.e. CMT, stores some mapping items in the memory. Any mapping item in CMT is used to represent the mapping relationship between the page number (D_LPN) of any logical page and the page number (D_PPN) of the physical page. The mapping items are shown in Table 1 below:

[0089] Table 1 Examples of mapping items

[0090]

[0091] As shown in Table 1, the page number of each logical page and the page number of the corresponding physical page have a mapping relationship. For example, physical page 0 is used to store the data of logical page 5, physical page 1 is used to store the data of logical page 6, physical page 2 is used to store the data of logical page 1, physical page 3 is used to store the data of logical page 4, physical page 4 is used to store the data of logical page 2, physical page 5 is used to store the data of logical page 3, and physical page 6 is used to store the data of logical page 0.

[0092] The page size is generally related to the settings of the solid-state drive. For example, the page size can be 2KB, and the size of each mapping item can be customized according to the needs of the actual application. For example, the mapping item size can be 4 bytes, and its addressing capacity is 8TB. ​​When the page number of any page is known, the page size can be mapped to the logical address range corresponding to each page.

[0093] Reference Figure 2, showing a schematic diagram of a cache mapping table provided in an embodiment of the present application. In this embodiment, taking into account that a mapping item may be accessed continuously in the time dimension, or in the space dimension, the probability of addresses near the access address range corresponding to a request being accessed is also higher. Therefore, in the cache mapping table, an access heat parameter is set for each mapping item. For example, the access heat parameter of the mapping items with D_LPN=3 and D_PPN=150 is 3.1, and the access heat parameter of the mapping items with D_LPN=1 and D_PPN=240 is 0.1. In actual application, all mapping items in the cache mapping table can be sorted according to the numerical value of the access heat parameter.

[0094] When the target request is issued, the access heat parameter is updated for each mapping item in the cache mapping table. The access heat parameter corresponding to any mapping item is determined based on the number of accesses to the mapping item and the distance between the logical page address range of the mapping item and the access address range corresponding to the target request.

[0095] In a feasible implementation manner, the process of updating the access heat parameter corresponding to each mapping item in the cache mapping table may include:

[0096] A1: For any mapping entry, obtain the number of accesses of the mapping entry in the cache mapping table.

[0097] Specifically, after a mapping entry is added to the cache mapping table, the number of accesses to the mapping entry in the cache mapping table may be recorded.

[0098] A2: Obtain the intersection coefficient of the logical page address range of the mapping entry and the access address range corresponding to the target request.

[0099] The intersection coefficient is used to characterize the distance between the logical page address range of the mapping item and the access address range corresponding to the target request.

[0100] When the logical page address range of the mapping entry has no intersection with the access address range corresponding to the target request, the intersection coefficient is 0.

[0101] When the logical page address range of the mapping item intersects with the access address range corresponding to the target request, the intersection coefficient is calculated according to the minimum address and maximum address of the mapping item and the maximum access address and minimum access address corresponding to the target request.

[0102] For example, the formula for calculating the intersection coefficient may be:

[0103]

[0104] Wherein, D is the intersection coefficient corresponding to the mapping item; is the minimum address corresponding to the mapping entry; is the maximum address corresponding to the mapping entry; the maximum access address requested for the target; a minimum access address requested for the target; is the capacity of the solid state drive.

[0105] A3: Update the access heat parameter of the mapping item according to the number of accesses corresponding to the mapping item, the intersection coefficient, and a preset attenuation coefficient.

[0106] Specifically, the formula for calculating the access heat parameter of each mapping item is:

[0107]

[0108] Wherein, n is the number of accesses of the mapping item in the cache mapping table, and when any mapping item is loaded into the cache mapping table, n=1; is the access heat parameter of the mapping item when the number of accesses in the cache mapping table is n, is the access heat parameter of the mapping item when the number of accesses in the cache mapping table is n-1; is the attenuation coefficient; D is the intersection coefficient of the mapping item.

[0109] After the target request is sent, the access heat parameter of each mapping item is comprehensively determined in terms of both the time dimension and the space dimension, which can reflect the probability of each mapping item being accessed subsequently.

[0110] S102: When the cache mapping table does not contain a target mapping item corresponding to the target request and the cache mapping table is full, executing an eviction strategy according to access heat parameters corresponding to each mapping item.

[0111] After updating the access heat parameters of all mapping items in the cache mapping table, it is queried whether the cache mapping table contains the target mapping item corresponding to the target request.

[0112] If the cache mapping table contains the target mapping entry corresponding to the target request, the target request may be executed, and it is determined whether to change the target mapping entry corresponding to the target request in the cache mapping table according to the type of the target request.

[0113] When the type of the target request is a read request, the data in the physical page can be directly read according to the target mapping entry, and the target mapping entry corresponding to the target request in the cache mapping table is not updated.

[0114] When the type of the target request is a write request, after executing the target request, since the off-site update will cause the relationship between the logical page address and the physical page address corresponding to the target request to change, it is also necessary to update the target mapping item corresponding to the target request in the cache mapping table, that is, to update the physical page address in the target mapping item.

[0115] If the cache mapping table does not contain the target mapping entry corresponding to the target request, it is necessary to add the target mapping entry corresponding to the target request stored in the translation block area into the cache mapping table.

[0116] In a feasible implementation, in order to facilitate the determination of the translation page where any mapping item is located in the translation block area, a global translation directory GTD is also provided in the solid-state hard disk. The GTD includes a mapping relationship between a virtual translation page where any mapping item is located and a translation page where the mapping item is located. Specifically, in this embodiment, the GTD stores a mapping relationship between the page number (M_VPN) of the virtual translation page and the page number (M_PPN) of the translation page. In addition, in this embodiment, the GTD is stored in a battery-powered SRAM (Static Random-Access Memory). As long as the SRAM remains powered on, the GTD stored therein can be constantly maintained.

[0117] In a feasible implementation manner, the process of determining the translation page where any mapping item is located in the translation block area of ​​the solid state drive according to the global translation directory set in the solid state drive includes:

[0118] B1: According to the page number of the logical page corresponding to the mapping entry, determine the page number of the virtual translation page where the mapping entry is located.

[0119] The conversion relationship between the page number of the logical page corresponding to the mapping entry and the page number of the virtual translation page is: the page number of the virtual translation page = [the page number of the logical page * the mapping entry size / the page size], where [ ] represents a rounding function.

[0120] Taking the page size of 2KB and the mapping entry size of 4 bytes as an example, if the page number of the logical page requested by the target is 1048, that is, D_LPN=1048, then the page number of the corresponding virtual translation page is: [1048*4 bytes / 2KB]=2.

[0121] B2: According to the page number of the virtual conversion page where the mapping entry is located, query the global conversion directory for the page number of the translation page corresponding to the page number of the virtual conversion page where the mapping entry is located.

[0122] The global conversion directory stores mapping relationships between page numbers of multiple virtual conversion pages and page numbers of translation pages. When the page number of the virtual conversion page where the mapping entry is located is determined, the page number of the corresponding translation page can be queried.

[0123] B3: The translation page corresponding to the page number of the translation page where the mapping item is located is used as the translation page where the mapping item is located in the translation block area of ​​the solid state drive.

[0124] After locating the translation page where the mapping item is located, the required mapping item can be read on the translation page.

[0125] Reference Figure 3 , showing a schematic diagram of obtaining a target mapping entry provided by an embodiment of the present application, assuming that the page number of the logical page of the target request is 1048, that is, D_LPN=1048, and the current cache mapping table does not contain a mapping entry of D_LPN=1048; according to D_LPN=1048, the corresponding virtual translation page page number M_VPN=[1048*4 bytes / 2KB]=2 is calculated, and after querying the global translation directory, the page number M_PPN=15 of the translation page corresponding to M_VPN=2 is determined, and then in the translation page of M_PPN=15 in the translation block area, the mapping entry corresponding to D_LPN=1048 is read, that is, the target mapping entry corresponding to the target request is D_LPN=1048, D_PPN=681, recorded as the target mapping entry (1048, 681).

[0126] When the target mapping item is not included in the cache mapping table, after the target mapping item is read on the translation page, the target mapping item needs to be added to the cache mapping table. First, it is necessary to determine whether the storage space of the cache mapping table is full. If the maximum storage space of the cache mapping table is , if the current storage space of the cache mapping table is greater than or equal to When the cache mapping table is full, it is necessary to delete the existing mapping items in the cache mapping table and allocate storage space for the target mapping items corresponding to the target request.

[0127] In a feasible implementation, when the cache mapping table is full, an eviction strategy is executed, and the eviction strategy includes the following steps:

[0128] C1: Determine a mapping entry to be removed in the cache mapping table.

[0129] Specifically, all mapping items in the cache mapping table are traversed, and the mapping item with the smallest access heat parameter is used as the mapping item to be removed. The smallest access heat parameter indicates that the mapping item has not been accessed in the short term or is too far away from the access address range of other requests in the short term, and the probability of being accessed next is small, so it can be deleted from the cache mapping table first.

[0130] C2: Obtain the mapping item to be eliminated in the translation block area of ​​the solid state drive, and compare the mapping item to be eliminated in the translation block area with the mapping item to be eliminated in the cache mapping table.

[0131] Because if it is a write-type request, after the write request is executed, the corresponding mapping item in the cache mapping table will be updated. At this time, the cache mapping table contains the latest mapping item, but the mapping item stored in the translation block area is still before the update. Therefore, it is necessary to compare whether the mapping item to be eliminated in the translation block area is consistent with the mapping item to be eliminated in the cache mapping table.

[0132] C3: When the mapping entry to be eliminated in the translation block area is consistent with the mapping entry to be eliminated in the cache mapping table, deleting the mapping entry to be eliminated in the cache mapping table.

[0133] If the mapping item to be eliminated in the translation block area is consistent with the mapping item to be eliminated in the cache mapping table, it means that the mapping relationship of the mapping item to be eliminated has not been updated, and the mapping item to be eliminated can be directly deleted from the cache mapping table.

[0134] C4: When the mapping item to be eliminated in the translation block area is inconsistent with the mapping item to be eliminated in the cache mapping table, the translation block area update strategy is executed, and the mapping item to be eliminated is deleted in the cache mapping table.

[0135] If the mapping item to be eliminated in the translation block area is inconsistent with the mapping item to be eliminated in the cache mapping table, it indicates that the mapping relationship of the mapping item to be eliminated has changed after the write operation is performed, and the mapping item to be deleted in the translation block area needs to be replaced with the changed mapping item to be deleted in the cache mapping table.

[0136] Specifically, the translation block area update strategy includes:

[0137] According to the global conversion directory set in the solid-state hard disk, determine the translation page where the mapping item to be eliminated is located in the translation block area, merge the mapping item to be eliminated in the cache mapping table with the translation page where the mapping item to be eliminated is located, and write them into a new translation page; replace the mapping relationship of the page number of the virtual translation page corresponding to the mapping item to be eliminated in the global conversion directory with the page number of the new translation page.

[0138] Reference Figure 4 , showing a schematic diagram of the translation block area update process provided by this embodiment. When the cache mapping table is full, the mapping item with the smallest access heat parameter in the cache mapping table is selected as the mapping item to be eliminated. The mapping item to be eliminated is the mapping item corresponding to the smallest access heat parameter 0.1: D_LPN=1, D_PPN=240, recorded as the mapping item to be eliminated (1, 240).

[0139] According to the page number of the virtual translation page = [page number of the logical page * mapping item size / page size], the page number M_VPN=0 of the virtual translation page where the mapping item to be eliminated (1, 240) is located is calculated, and the page number M_PPN=23 of the translation page corresponding to M_VPN=0 is determined in the global translation directory. Then, the mapping item with D_LPN=1 is obtained from the translation page with M_PPN=23 in the translation block area: (1, 120). The mapping item to be eliminated in the translation block area is inconsistent with the mapping item to be eliminated in the cache mapping table, indicating that the relationship between the logical page address and the physical page address of the mapping item to be eliminated has changed.

[0140] Then select a blank translation page in the translation block area, that is, the translation page with M_PPN=25, merge the remaining mapping entries in the translation page with M_PPN=23 and the mapping entries to be removed in the cache mapping table, and write them into a new translation page, that is, the translation page with M_PPN=25, and mark the translation page with M_PPN=23 invalid.

[0141] Finally, in the global translation directory, the mapping relationship of the virtual translation page number M_VPN=0 corresponding to the mapping entry to be removed (1, 240) is replaced with the new translation page number M_PPN=25.

[0142] In this embodiment, the corresponding mapping item in the translation block area is updated only when the mapping item with the smallest access heat parameter is eliminated from the cache mapping table, so as to avoid a mapping item being frequently changed in the cache mapping table, thereby causing a frequent update of the translation page. This method can update a stable mapping relationship to the translation page after a high-heat mapping item has changed multiple times, thereby improving the read and write performance of the solid-state hard disk and reducing the data processing process.

[0143] S103: Add the target mapping entry corresponding to the target request to the cache mapping table.

[0144] If the maximum storage space of the cache mapping table is , if the current storage space of the cache mapping table is less than When the target request is received, it indicates that the cache mapping table is not full, and the target mapping entry corresponding to the target request is directly added to the cache mapping table.

[0145] Alternatively, when the cache mapping table is full and the mapping item to be removed is deleted from the cache mapping table, the target mapping item corresponding to the target request is added to the cache mapping table.

[0146] In a feasible implementation, a target request may correspond to one target mapping item or multiple target mapping items. If there are multiple target mapping items, some of the target mapping items may be located in the cache mapping table, while some of the target mapping items may not be located in the cache mapping table. Multiple target mapping items that are not in the cache mapping table may be added to the cache mapping table.

[0147] Reference Figure 5 , shows an execution flow chart of the solid state drive address mapping method provided in an embodiment of the present application, which specifically includes the following steps:

[0148] S1: The SSD receives the target request and updates the access heat parameters of each mapping item in the cache mapping table.

[0149] S2: Determine whether the target mapping entry of the target request is in the cache mapping table.

[0150] If yes, execute the target request; if no, execute step S3.

[0151] S3: According to the page number of the logical page of the target mapping entry, the page number of the virtual conversion page corresponding to the target mapping entry is calculated, and the page number of the corresponding translation page is determined in the global conversion directory.

[0152] S4: According to the page number of the translation page, obtain the target mapping item in the corresponding translation page.

[0153] S5: Determine whether the cache mapping table is full.

[0154] If the cache mapping table is not full, execute S12.

[0155] If the cache mapping table is full, execute S6.

[0156] S6: Select the mapping item with the smallest access heat parameter as the mapping item to be removed.

[0157] S7: Calculate the page number of the virtual conversion page corresponding to the mapping entry to be removed according to the page number of the logical page of the mapping entry to be removed, and determine the page number of the corresponding translation page in the global conversion directory.

[0158] S8: According to the page number of the translation page, obtain the mapping item to be removed in the corresponding translation page.

[0159] S9: Determine whether the mapping item to be removed has changed.

[0160] If it is changed, execute S10.

[0161] If there is no change, execute S11.

[0162] S10: merging the mapping item to be removed in the cache mapping table with the translation page where the mapping item to be removed is located, writing into a new translation page, and replacing the mapping relationship of the page number of the virtual translation page corresponding to the mapping item to be removed in the global translation directory with the page number of the new translation page.

[0163] S11: Deleting the mapping item to be removed from the cache mapping table.

[0164] S12: Add a target mapping entry to the cache mapping table.

[0165] The method sets an access heat parameter for each mapping item in the cache mapping table. The access heat parameter is determined based on the number of accesses to the mapping item and the distance between the logical page address range of the mapping item and the access address range corresponding to the target request. Therefore, the access heat parameter can be determined based on the access frequency of any mapping item in the time dimension or the distance between any mapping item and the requested access address range in the space dimension. Then, the mapping items in the cache mapping table are eliminated based on the access heat parameter, thereby improving the hit rate of external requests to the mapping items in the cache mapping table and achieving the goal of improving the read and write performance of the solid-state hard disk.

[0166] Reference Figure 6 , shows a functional module diagram of a solid state drive address mapping device provided in an embodiment of the present application, which is applied to a solid state drive, wherein a cache mapping table is loaded in the memory of the solid state drive, and the device comprises:

[0167] An access heat parameter updating module 100 is used to obtain a target request and update an access heat parameter corresponding to each mapping item in the cache mapping table, wherein the mapping item is used to characterize a mapping relationship between a page number of any logical page and a page number of a physical page, and the access heat parameter corresponding to any mapping item is determined according to the number of accesses to the mapping item and the distance between the logical page address range of the mapping item and the access address range corresponding to the target request;

[0168] A mapping entry culling module 200, configured to execute a culling strategy according to access heat parameters corresponding to each mapping entry when the target mapping entry corresponding to the target request is not included in the cache mapping table and the cache mapping table is full;

[0169] The mapping entry adding module 300 is used to add the target mapping entry corresponding to the target request into the cache mapping table.

[0170] Optionally, the access heat parameter updating module includes:

[0171] An access count determining unit, configured to obtain, for any mapping item, the number of accesses of the mapping item in the cache mapping table;

[0172] An intersection coefficient determination unit, used to obtain an intersection coefficient between the logical page address range of the mapping item and the access address range corresponding to the target request, wherein the intersection coefficient is used to characterize the distance between the logical page address range of the mapping item and the access address range corresponding to the target request;

[0173] The access heat parameter determination unit is used to update the access heat parameter of the mapping item according to the number of accesses corresponding to the mapping item, the intersection coefficient and a preset attenuation coefficient.

[0174] Optionally, the intersection coefficient determination unit includes:

[0175] A first intersection coefficient determination subunit, configured to set the intersection coefficient to 0 when the logical page address range of the mapping item has no intersection with the access address range corresponding to the target request;

[0176] The second intersection coefficient determination subunit is used to calculate the intersection coefficient based on the minimum address and maximum address of the mapping item and the maximum access address and minimum access address corresponding to the target request when the logical page address range of the mapping item intersects with the access address range corresponding to the target request.

[0177] Optionally, the mapping item elimination module includes:

[0178] A mapping item to be removed determining unit, used to determine a mapping item to be removed in the cache mapping table;

[0179] A comparison unit, configured to obtain the mapping item to be eliminated in the translation block area of ​​the solid state drive, and compare the mapping item to be eliminated in the translation block area with the mapping item to be eliminated in the cache mapping table;

[0180] The elimination unit is used to delete the mapping item to be eliminated in the cache mapping table when the mapping item to be eliminated in the translation block area is consistent with the mapping item to be eliminated in the cache mapping table.

[0181] Optionally, the mapping item to be removed determining unit is used to:

[0182] In the cache mapping table, the mapping item with the smallest access heat parameter is used as the mapping item to be removed.

[0183] Optionally, the mapping item elimination module further includes:

[0184] The updating unit is used to execute the translation block area updating strategy and delete the mapping item to be eliminated in the cache mapping table when the mapping item to be eliminated in the translation block area is inconsistent with the mapping item to be eliminated in the cache mapping table.

[0185] Optionally, the updating unit is further configured to:

[0186] Determine, according to a global conversion directory set in the solid-state drive, a translation page where the mapping item to be removed is located in the translation block area, wherein the global conversion directory includes a mapping relationship between a virtual conversion page where any mapping item is located and a translation page where the mapping item is located;

[0187] Merging the mapping item to be eliminated in the cache mapping table with the translation page where the mapping item to be eliminated is located, and writing them into a new translation page;

[0188] The mapping relationship of the page number of the virtual translation page corresponding to the mapping item to be removed in the global translation directory is replaced with the page number of the new translation page.

[0189] Optionally, the device further comprises:

[0190] A query module, used for querying whether the cache mapping table contains a target mapping item corresponding to the target request;

[0191] The mapping entry adding module is further configured to add the target mapping entry corresponding to the target request to the cache mapping table when the target mapping entry corresponding to the target request is not included in the cache mapping table and the cache mapping table is not full.

[0192] Optionally, the mapping item adding module includes:

[0193] A mapping item adding unit is used to determine, in the translation block area of ​​the solid state drive, a translation page where a target mapping item corresponding to the target request is located, according to a global translation directory set in the solid state drive, wherein the global translation directory includes a mapping relationship between a virtual translation page where any mapping item is located and a translation page where the mapping item is located; obtain the target mapping item corresponding to the target request in the translation page where the target mapping item is located, and add it to the cache mapping table.

[0194] Optionally, the device further comprises:

[0195] A page number conversion module is used to determine the page number of a virtual conversion page where the mapping item is located according to the page number of a logical page corresponding to the mapping item; query the page number of a translation page corresponding to the page number of the virtual conversion page where the mapping item is located in the global conversion directory according to the page number of the virtual conversion page where the mapping item is located; and use the translation page corresponding to the page number of the translation page where the mapping item is located as the translation page where the mapping item is located in the translation block area of ​​the solid state drive.

[0196] Optionally, the device further comprises:

[0197] The target mapping entry updating module is used to determine whether to change the target mapping entry corresponding to the target request in the cache mapping table according to the type of the target request.

[0198] Optionally, the target mapping item updating module includes:

[0199] The first target mapping entry updating unit is configured to update the target mapping entry corresponding to the target request in the cache mapping table after executing the target request when the type of the target request is a write request.

[0200] Optionally, the target mapping item updating module includes:

[0201] The second target mapping entry updating unit is configured to not update the target mapping entry corresponding to the target request in the cache mapping table when the type of the target request is a read request.

[0202] Reference Figure 7 , showing an architectural schematic diagram of a solid-state hard disk provided in an embodiment of the present application, the solid-state hard disk includes a host interface module, a cache area management layer, a flash memory conversion layer and a NAND flash memory chip array, and includes an access heat parameter calculation unit, the solid-state hard disk is used to execute the solid-state hard disk address mapping method described in the embodiment, and the access heat parameter calculation unit is used to calculate the access heat parameter corresponding to any mapping item in the cache mapping table.

[0203] Reference Figure 8 , shows a schematic diagram of a computer device provided in an embodiment of the present application, including: at least one processor 801, and a memory 802, wherein the memory 802 stores a computer program that can be run on the processor 801, wherein the processor 801 executes the solid-state hard disk address mapping method described in the embodiment when executing the program.

[0204] Reference Fig. 9 , shows a schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application, wherein the non-volatile readable storage medium 900 stores a computer program 901, wherein the computer program 901, when executed by a processor, performs the solid-state hard disk address mapping method described in the embodiment.

[0205] An embodiment of the present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the solid-state hard disk address mapping method described in the embodiment.

[0206] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0207] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0208] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0209] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0210] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0211] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0212] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0213] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A solid state hard disk address mapping method, It is characterized in that Applied to a solid state drive, a cache mapping table is loaded into the memory of the solid state drive, and the method includes: Obtaining a target request, and updating an access heat parameter corresponding to each mapping item in the cache mapping table, wherein the mapping item is used to characterize a mapping relationship between a page number of any logical page and a page number of a physical page, and the access heat parameter corresponding to any mapping item is determined according to the number of accesses of the mapping item in the cache mapping table, an intersection coefficient of a distance between a logical page address range characterizing the mapping item and an access address range corresponding to the target request, and a preset attenuation coefficient; When the target mapping item corresponding to the target request is not included in the cache mapping table and the cache mapping table is full, executing a removal strategy according to the access heat parameters corresponding to each mapping item; Add the target mapping entry corresponding to the target request to the cache mapping table.

2. The method according to claim 1, It is characterized in that Updating the access heat parameters corresponding to each mapping item in the cache mapping table includes: For any mapping item, obtaining the number of accesses of the mapping item in the cache mapping table; Obtaining an intersection coefficient between a logical page address range of the mapping item and an access address range corresponding to the target request, wherein the intersection coefficient is used to characterize a distance between the logical page address range of the mapping item and the access address range corresponding to the target request; The access heat parameter of the mapping item is updated according to the number of accesses corresponding to the mapping item, the intersection coefficient, and a preset attenuation coefficient.

3. The method according to claim 2, It is characterized in that Obtaining the intersection coefficient of the logical page address range of the mapping entry and the access address range corresponding to the target request, including: When the logical page address range of the mapping item has no intersection with the access address range corresponding to the target request, the intersection coefficient is 0; When the logical page address range of the mapping item intersects with the access address range corresponding to the target request, the intersection coefficient is calculated according to the minimum address and maximum address of the mapping item and the maximum access address and minimum access address corresponding to the target request.

4. The method according to claim 3, It is characterized in that The formula for calculating the intersection coefficient is: Wherein, D is the intersection coefficient corresponding to the mapping item; is the minimum address corresponding to the mapping entry; is the maximum address corresponding to the mapping entry; the maximum access address requested for the target; a minimum access address requested for the target; is the capacity of the solid state drive.

5. The method according to any one of claims 2 to 4, It is characterized in that The calculation formula for the access heat parameter of any mapping item is: Wherein, n is the number of accesses of the mapping item in the cache mapping table, and when any mapping item is loaded into the cache mapping table, n=1; is the access heat parameter of the mapping item when the number of accesses in the cache mapping table is n, is the access heat parameter of the mapping item when the number of accesses in the cache mapping table is n-1; is the attenuation coefficient; D is the intersection coefficient of the mapping item.

6. The method according to claim 1, It is characterized in that Execution of culling strategies includes: In the cache mapping table, determining a mapping item to be removed; Acquire the mapping item to be eliminated in the translation block area of ​​the solid state drive, and compare the mapping item to be eliminated in the translation block area with the mapping item to be eliminated in the cache mapping table; When the mapping entry to be eliminated in the translation block area is consistent with the mapping entry to be eliminated in the cache mapping table, the mapping entry to be eliminated is deleted in the cache mapping table.

7. The method according to claim 6, It is characterized in that In the cache mapping table, determining a mapping item to be removed includes: In the cache mapping table, the mapping item with the smallest access heat parameter is used as the mapping item to be removed.

8. The method according to claim 6, It is characterized in that After comparing the mapping items to be eliminated in the translation block area with the mapping items to be eliminated in the cache mapping table, the method further includes: When the mapping item to be eliminated in the translation block area is inconsistent with the mapping item to be eliminated in the cache mapping table, the translation block area update strategy is executed, and the mapping item to be eliminated is deleted in the cache mapping table.

9. The method according to claim 8, It is characterized in that The translation block area update strategy includes: Determine, according to a global conversion directory set in the solid-state drive, a translation page where the mapping item to be removed is located in the translation block area, wherein the global conversion directory includes a mapping relationship between a virtual conversion page where any mapping item is located and a translation page where the mapping item is located; Merging the mapping item to be eliminated in the cache mapping table with the translation page where the mapping item to be eliminated is located, and writing them into a new translation page; The mapping relationship of the page number of the virtual translation page corresponding to the mapping item to be removed in the global translation directory is replaced with the page number of the new translation page.

10. The method according to claim 1, It is characterized in that After updating the access heat parameters corresponding to each mapping item in the cache mapping table, the method further includes: Querying whether the cache mapping table contains a target mapping entry corresponding to the target request; When the target mapping entry corresponding to the target request is not included in the cache mapping table and the cache mapping table is not full, the target mapping entry corresponding to the target request is added to the cache mapping table.

11. The method according to claim 1, It is characterized in that Adding the target mapping entry corresponding to the target request to the cache mapping table includes: Determining, in a translation block area of ​​the solid-state hard disk, a translation page where a target mapping item corresponding to the target request is located according to a global translation directory set in the solid-state hard disk, wherein the global translation directory includes a mapping relationship between a virtual translation page where any mapping item is located and a translation page where the mapping item is located; In the translation page where the target mapping entry is located, the target mapping entry corresponding to the target request is obtained and added to the cache mapping table.

12. The method according to claim 9 or 11, It is characterized in that The process of determining the translation page where any mapping item in the translation block area of ​​the solid state drive is located according to the global translation directory set in the solid state drive comprises: Determine the page number of the virtual translation page where the mapping entry is located according to the page number of the logical page corresponding to the mapping entry; According to the page number of the virtual conversion page where the mapping entry is located, query the page number of the translation page corresponding to the page number of the virtual conversion page where the mapping entry is located in the global conversion directory; The translation page corresponding to the page number of the translation page where the mapping entry is located is used as the translation page where the mapping entry is located in the translation block area of ​​the solid state drive.

13. The method according to claim 12, It is characterized in that The process of determining the page number of the virtual translation page where any mapping entry is located according to the page number of the logical page corresponding to the mapping entry includes: The page number of the virtual translation page = [the page number of the logical page * the mapping entry size / the page size] Among them, [ ] represents the rounding function.

14. The method according to claim 1, It is characterized in that When the cache mapping table includes a target mapping entry corresponding to the target request, the method further includes: Determine whether to change the target mapping entry corresponding to the target request in the cache mapping table according to the type of the target request.

15. The method according to claim 14, It is characterized in that Determining whether to change the target mapping item corresponding to the target request in the cache mapping table according to the type of the target request includes: When the type of the target request is a write request, after executing the target request, the target mapping entry corresponding to the target request in the cache mapping table is updated.

16. The method according to claim 14, It is characterized in that Determining whether to change the target mapping item corresponding to the target request in the cache mapping table according to the type of the target request includes: When the type of the target request is a read request, the target mapping entry corresponding to the target request in the cache mapping table is not updated.

17. A solid state hard disk address mapping device, It is characterized in that Applied to a solid state drive, a cache mapping table is loaded into the memory of the solid state drive, and the device comprises: An access heat parameter update module, used to obtain a target request and update an access heat parameter corresponding to each mapping item in the cache mapping table, wherein the mapping item is used to characterize a mapping relationship between a page number of any logical page and a page number of a physical page, and the access heat parameter corresponding to any mapping item is determined according to the number of accesses of the mapping item in the cache mapping table, an intersection coefficient of a distance between a logical page address range characterizing the mapping item and an access address range corresponding to the target request, and a preset attenuation coefficient; A mapping entry culling module, configured to execute a culling strategy according to access heat parameters corresponding to each mapping entry when the target mapping entry corresponding to the target request is not included in the cache mapping table and the cache mapping table is full; A mapping entry adding module is used to add a target mapping entry corresponding to the target request into the cache mapping table.

18. A solid state hard disk, It is characterized in that The solid state drive is used to execute the solid state drive address mapping method described in any one of claims 1-16.

19. A computer device, It is characterized in that include: At least one processor, and a memory, wherein the memory stores a computer program that can be run on the processor, wherein the processor executes the solid-state hard disk address mapping method according to any one of claims 1-16 when executing the program.

20. A non-volatile readable storage medium, It is characterized in that The non-volatile readable storage medium stores a computer program, wherein the computer program, when executed by a processor, performs the solid state drive address mapping method according to any one of claims 1 to 16.

21. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instruction is executed by a processor, the solid-state hard disk address mapping method described in any one of claims 1-16 is implemented.