A solid state disk array system supporting cross-disk address remapping
By combining cross-disk address remapping management and deduplication technology in a solid-state drive array system, the problem of not being able to identify duplicate data between different SSDs in existing technologies is solved, achieving low-cost and efficient deduplication, and improving system performance and lifespan.
Patent Information
- Application Number
- CN202311792171.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-12-25
AI Technical Summary
Existing solid-state drive array systems cannot effectively achieve array-level deduplication, and existing technologies cannot identify duplicate data between different SSDs in host-side or disk-side deduplication systems, resulting in the loss of a large number of deduplication opportunities.
Cross-disk address remapping management is implemented within the SSDs of the solid-state drive array system. This is achieved by maintaining local and remote mapping tables within each solid-state drive and implementing a mapping conflict detection mechanism in the array controller. Cross-disk address remapping is supported by combining deduplication technology to offload the deduplication mapping table to the address mapping table.
It enables cross-disk deduplication, reducing system costs and performance overhead, and improving the success rate of deduplication and the lifespan of solid-state drives.
Smart Images

Figure CN117806550B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of data storage technology, and more specifically, relates to a solid-state disk array system that supports cross-disk address remapping. Background Technology
[0002] In the era of big data, driven by the rapidly increasing volume of data, deduplication technology has become an effective solution for reducing storage costs. This technology identifies data with identical content and stores only one copy, thus avoiding unnecessary storage space consumption from writing duplicate data.
[0003] Flash-based solid-state disk (SSD) arrays have become an indispensable infrastructure component of modern primary storage systems, and the application of deduplication technology to SSD arrays is attracting increasing attention. Due to the unique characteristics of flash memory, the garbage collection efficiency and lifespan of SSDs are closely related to the amount of data written. Therefore, in addition to reducing storage costs, SSD arrays can also benefit from performance and lifespan improvements through deduplication technology.
[0004] Existing deduplication technologies are either fully implemented on the host side or fully implemented in the flash translation layer (FTL) inside the SSD.
[0005] Figure 1This demonstrates an SSD array storage system that implements deduplication technology on the host side. The host-side deduplication system first divides the data stream written by upper-layer applications or the file system into small data blocks. Then, it uses hash functions (such as MD5, SHA-1, etc.) to calculate the fingerprint value of each data block. Next, it looks up the fingerprint values of these data blocks in a fingerprint index table. Finally, it determines whether each data block can be deduplicated based on the fingerprint matching result; that is, data can be deduplicated when the fingerprint matches successfully, and only data is written to the SSD array for storage when the fingerprint fails to match. The deduplication mapping table records the mapping relationship between user data indexes and the physical storage location of the data. The deduplication technology modifies the deduplication mapping table so that multiple user data indexes map to the same data, thereby avoiding the waste of storage space caused by duplicate data writing. The reference count table records the number of references to each piece of data, that is, how many user data are mapped to it. When the reference count of data is 0, it means that the data can be erased and reclaimed to release the storage space it consumed. The deduplication system eliminates duplicate data, but it also generates a significant overhead of deduplication metadata, namely fingerprint index, deduplication mapping, and reference counting. Existing storage systems typically integrate a large number of functions, resulting in insufficient host memory to cache all deduplicated metadata, leading to significant I / O overhead when cache misses occur. Furthermore, the persistence and consistency guarantees of deduplicated metadata further exacerbate this I / O overhead.
[0006] Figure 2 This demonstration showcases an SSD implementing an in-disk deduplication system. Compared to host-based deduplication systems, the in-disk deduplication system leverages the off-site update capability of the FTL (File Transfer Table) within the SSD to merge the FTL address mapping table and the deduplication mapping table. This removes the deduplication mapping table metadata, eliminating its overhead and reducing system costs. Specifically, the FTL address mapping table records the mapping relationship between the data index logical page number (LPN) and the written flash physical page number (PPN). When written data is identified as duplicate data by the in-disk deduplication system, it directly modifies the FTL deduplication mapping table, remapping the index LPN of the written data to the storage location PPN of the data to complete the deduplication. However, existing SSD FTLs can only manage address mapping relationships within the same disk, and the in-disk deduplication system can only identify duplicate data within its own disk, and cannot identify duplicate data between different SSDs in an SSD array. Therefore, compared to host-side deduplication systems, SSD designs that only support in-disk deduplication will lose a significant number of deduplication opportunities when applied to SSD array storage systems.
[0007] In summary, existing solid-state drive arrays cannot effectively achieve array-level deduplication with low overhead and cost. Summary of the Invention
[0008] To address the shortcomings and improvement needs of existing technologies, this invention provides a solid-state drive array system that supports cross-disk address remapping. Its purpose is to implement cross-disk address remapping management in the flash translation layer inside the SSD of the solid-state drive array system, so as to effectively achieve deduplication with low overhead and cost.
[0009] To achieve the above objectives, the present invention provides a solid-state disk array system that supports cross-disk address remapping, including an array composed of multiple solid-state disks and an array controller; In the array, each solid-state drive maintains a local mapping table, a remote mapping table, and a reference count table. The local mapping table records the mapping relationship from local logical page number to local physical page number, the remote mapping table records the mapping relationship from remote logical page number to local physical page number, and the reference count table records the reference count of each physical page number in the local solid-state drive. The array controller is used to write data blocks (Data) to logical page number a. a And the solid-state drives in the array are ARM-SSDs b Data has already been stored on it. a Duplicate data blocks b When the condition is met, determine whether the preset conflict mapping conditions are met. If not, execute the duplicate data deletion step. Conflict mapping conditions include: the initial disk InitSSD of logical page number a a With solid-state drive ARM-SSD b They are different, and logical page number a is in the solid-state drive ARM-SSD. b Entry E in the remote mapping table a The data is occupied; the deduplication steps include: If the mapping relationship of logical page number 'a' is stored in the OldSSD solid-state drive a With ARM-SSD b Same, and InitSSD a With ARM-SSD b If they are the same, then send to ARM-SSD b Submit the Remap(a,b,false) command; If OldSSD a With ARM-SSD b Same, and InitSSD a With ARM-SSD b If they are different, then choose ARM-SSD. bSubmit the Remap(a,b,true) command; If OldSSD a With ARM-SSD b They are different, and InitSSD a With ARM-SSD b If they are the same, then send to ARM-SSD b Submit the Remap(a,b,false) command and send it to OldSSD. a Submit the TRIM(a,false) command; If OldSSD a With ARM-SSD b They are different, and InitSSD a With ARM-SSD b If they are the same, then send to ARM-SSD b Submit Remap(a, b, true) and send it to OldSSD a Submit the TRIM(a,true) command; Each solid-state drive is also used to receive and execute commands submitted by the array controller; In the command Remap(LPN1, LPN2, RemoteFlag), LPN1 represents the logical page number of the data block to be written, LPN2 represents the logical page number corresponding to the duplicate data block to be written in the array, and RemoteFlag=true and RemoteFlag=false indicate operations on the remote mapping table and the local mapping table, respectively. The execution method of the command Remap(LPN1, LPN2, RemoteFlag) is as follows: Query the physical page number PPN2 corresponding to the logical page number LPN2 in the local mapping table, and increment the reference count of PPN2 in the reference count table by 1; if RemoteFlag=false, update the physical page number of the entry corresponding to the logical page number LPN1 in the local mapping table to PPN2; otherwise, update the physical page number of the entry corresponding to LPN1 in the remote mapping table to PPN2. In the command TRIM(LPN3,RemoteFlag), LPN3 represents the logical page number of the data block to be written; the execution method of the command TRIM(LPN3,RemoteFlag) is as follows: If RemoteFlag=false, then look up the physical page number Old-PPN3 corresponding to logical page number LPN3 in the local mapping table and set the corresponding table entry to null; otherwise, look up the physical page number Old-PPN3 corresponding to logical page number LPN3 in the remote mapping table and set the corresponding table entry to null. If Old-PPN3 is not empty, then decrement the reference count of physical page number Old-PPN3 in the reference count table by 1; The initial disk is the solid-state disk corresponding to the logical page number determined according to the array's organization.
[0010] Furthermore, the array controller is also used to write data blocks (Data) to logical page number a. a And the solid-state drives in the array are ARM-SSDs b Data has already been stored on it. a Duplicate data blocks b If the conflict mapping condition is met, the data writing step is executed; the data writing step includes: sending data to the InitSSD. a SubmitWrite(a,Data a ,false) command; In `Write(LPN4,Data4,RemoteFlag=false)`, `Data4` represents the data block to be written, and `LPN4` represents its logical page number. The execution method of `Write(LPN4,Data4,RemoteFlag=false)` is as follows: Allocate a free flash page with physical page number PPN5; if RemoteFlag=false, query the local mapping table for the physical page number Old-PPN4 corresponding to the local logical page number LPN4, and update the physical page number corresponding to this entry to PPN5; otherwise, query the remote mapping table for the physical page number Old-PPN4 corresponding to LPN4, and update the physical page number corresponding to this entry to PPN5. The reference count corresponding to PPN5 is incremented by 1, and the data Data4 is written to the flash page corresponding to PPN5. If Old-PPN4 is not empty, decrement its reference count by 1.
[0011] Furthermore, the array controller is also used to write data blocks (Data) to logical page number a. a And the array does not store data. a When encountering duplicate data blocks, perform the data writing step.
[0012] Furthermore, the array controller is also configured to perform a read request redirection step when reading a data block from logical page number a; the read request redirection step includes: Determine the mapping relationship of the solid-state drive (OldSSD) containing logical page number 'a'. a Initial disk InitSSD with logical page number a a If they are the same, then send the data to the OldSSD. aSubmit the Read(a,false) command; otherwise, send a command to OldSSD. a Submit the Read(a,true) command; In the `Read(LPN6,RemoteFlag)` command, `LPN6` represents the logical page number of the data block to be read. The `Read(LPN6,RemoteFlag)` command is executed as follows: If RemoteFlag=false, then query the physical page number PPN6 corresponding to the logical page number LPN6 in the local mapping table; otherwise, query the physical page number PPN6 corresponding to the logical page number LPN6 in the remote mapping table. Read the data stored on the flash page corresponding to physical page number PPN6 and return it.
[0013] Furthermore, the array controller also maintains a target disk number record table; the target disk number record table is used to record the target disk number for each logical page number; the target disk number is the solid-state disk number that stores the mapping relationship of the corresponding logical page number. Furthermore, the deduplication step also includes: updating the target disk number of logical page number a in the target disk number record table to ARM-SSD. b Disk number; Furthermore, the data writing step also includes: updating the target disk number of logical page number a in the target disk number record table to InitSSD. a Disk number.
[0014] Furthermore, if each data stripe in the array includes a parity data block, the deduplication step further includes: After updating the local or remote mapping table, update the checksum data block in the corresponding stripe; Furthermore, the data writing step also includes: writing data. a Then, update the checksum data block of the data stripe in which it is located.
[0015] Furthermore, the solid-state array system supporting cross-disk address remapping provided by the present invention also includes: a deduplication engine; The deduplication engine maintains a fingerprint index table and a data version number record table. The fingerprint index table records the fingerprint, logical page number, and data version number of the data blocks that have been written to the array. The data version number record table records the latest version number of the data block corresponding to each logical page number. The deduplication engine is used when writing data blocks to logical page number a. a At that time, perform the following steps: Compute data block Data a Fingerprint FP a ; Search for fingerprint FP in the fingerprint index table a If the search is successful, the corresponding logical page number b and data version number y are obtained, and the latest data version number z corresponding to logical page number b is queried in the data version number record table. If y = z, it is determined that the array has already stored the data version number corresponding to the logical page number b. a Duplicate data blocks b And cause the array controller to write data block Data to logical page number a. a .
[0016] Furthermore, the deduplication engine is also used to retrieve the latest data version number x corresponding to logical page number a from the data version number record table and update it to x+1 when y≠z, and to update the fingerprint FP in the fingerprint index table. a The corresponding logical page number is updated to 'a', and the corresponding data version number is updated to 'x+1'. It is then determined that the array does not store data matching the given data. a The duplicate data block causes the array controller to write the data block Data to logical page number a. a .
[0017] Furthermore, the deduplication engine is also used to handle fingerprints (FPs) that are not found in the fingerprint index table. a At that time, retrieve the latest data version number x corresponding to logical page number a from the data version number record table and update it to x+1, then insert the fingerprint value FP into the fingerprint index table. a For the corresponding entry, its logical page number and data version number are 'a' and x+1 respectively, and it is determined that the array does not store data related to Data. a The duplicate data block causes the array controller to write the data block Data to logical page number a. a .
[0018] Furthermore, the deduplication engine is also used to cause the array controller to perform a read request redirection step when reading a data block from logical page number a.
[0019] Furthermore, the deduplication engine is also used to accept IO requests from applications or the file system, split the IO requests into one or more data block requests, and execute each data block request.
[0020] In summary, the above-described technical solutions conceived in this invention can achieve the following beneficial effects: (1) The solid-state disk array system that supports cross-disk address remapping provided by the present invention maintains an extended remote mapping table from remote logical page number to local physical page number in each solid-state disk, and implements a mapping conflict detection mechanism in the array controller, thereby enhancing the address mapping management function, so that a local physical page number can be mapped by the local logical page number and also by the logical page number of other remote solid-state disks, thus realizing cross-disk address remapping.
[0021] (2) When the solid-state disk array system that supports cross-disk address remapping provided by the present invention is combined with deduplication technology, the hardware of the deduplication mapping table is offloaded to the address mapping table of the solid-state disk. This eliminates the memory and IO overhead caused by the deduplication mapping table. At the same time, since it supports cross-disk address remapping, it can support cross-disk deduplication. While reducing system cost and performance overhead, it achieves a high deduplication success rate, improves the performance of the deduplication system, and increases the service life of the solid-state disk. Attached Figure Description
[0022] Figure 1 A schematic diagram of an existing SSD array storage system that implements deduplication technology on the host side; Figure 2 A schematic diagram of an existing SSD system architecture that implements deduplication on-disk. Figure 3 A schematic diagram of the solid-state disk internal address mapping management structure and its array-level cross-disk mapping management scheme that supports cross-disk address remapping management provided by the present invention; Figure 4 This is a schematic diagram of fingerprint failure provided in an embodiment of the present invention; Figure 5 This is a schematic diagram illustrating the deduplication process performed by the solid-state disk array system supporting cross-disk address remapping provided by the present invention. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.
[0024] In this invention, the terms "first," "second," etc. (if present) in the invention and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0025] To achieve cross-disk address remapping management within the flash translation layer of an SSD in a solid-state drive (SSD) array system, enabling efficient deduplication with lower overhead and cost, this invention provides an SSD array system supporting cross-disk address remapping. The basic idea is to extend a remote address space outside the local logical address space of the SSD and maintain a remote mapping table to record the cross-disk address mapping relationships caused by cross-disk deduplication at logical page numbers of other SSDs. A corresponding mapping conflict detection mechanism is also designed. Based on this, the deduplication system engine software is modified to utilize the array-level cross-disk remapping interface of the device to achieve hardware offloading of the deduplication mapping table, eliminating its memory and I / O overhead, reducing the cost of the deduplication system, and improving system performance.
[0026] The solid-state disk array system supporting cross-disk address remapping provided by the present invention includes an array composed of multiple solid-state disks and an array controller; In the array, each solid-state drive maintains a local mapping table, a remote mapping table, and a reference count table. The local mapping table records the mapping relationship from local logical page number to local physical page number, the remote mapping table records the mapping relationship from remote logical page number to local physical page number, and the reference count table records the reference count of each physical page number in the local solid-state drive. The array controller receives commands from the upper layer and, based on the array configuration, parses and translates the received commands into operations on the SSDs in the array, and then sends the corresponding commands to the SSDs.
[0027] Based on the above concepts, this invention enhances the address mapping management function of solid-state drives (SSDs). Specifically, it maintains an extended remote mapping table of logical page numbers to physical page numbers in each SSD within the array. A single physical page number may be mapped to multiple logical page numbers with the same data content. Unlike existing SSDs that support intra-disk address remapping, this invention further implements cross-disk remapping, providing an array-level remapping interface to support cross-disk duplicate data deletion within the array. In this invention, the logical space within the SSD is divided into a local logical address space and a remote logical address space. The local logical address space refers to the original storage space of the SSD, while the remote logical address space is used to remap logical pages from other SSDs to physical pages of local data on the flash memory. These two spaces are managed by a local mapping table (local logical page number to physical page number) and a remote mapping table (remote logical page number to physical page number), respectively.
[0028] In an array, the correspondence between logical page numbers and solid-state drives (SSDs) is determined by the array organization. For example, in RAID 0, the SSD number corresponding to logical page number L is L%M, where "%" represents the modulo operation and M represents the number of SSDs in the array. In RAID 5, which is based on a left-symmetric layout, the SSD number corresponding to logical page number L is L%M. In this invention, the SSD corresponding to the logical page number determined by the array organization is called the initial disk. It is easy to understand that logical page number L is a local logical page number relative to its initial disk, and a remote logical page number relative to other SSDs.
[0029] Excessive cross-disk address mapping can lead to excessive memory consumption in the remote mapping table, causing its size to far exceed the caching capacity provided by the SSD. To address this issue, the remote mapping table maintained by each SSD in this invention has a configurable size limit, and the correspondence between remote logical page numbers and entries in the remote mapping table can be predetermined. Without loss of generality, in the following embodiments, remote logical page numbers are assigned entries in the remote mapping table through direct mapping. Let N represent the size of the remote mapping table in each SSD, then the remote logical page number L corresponds to the L%Nth entry in the remote mapping table. It should be noted that in practical applications, the correspondence between remote logical page numbers and remote mapping table entries can be flexibly adjusted to other methods, as long as it is ensured that each remote logical page number can be assigned a corresponding entry in any remote mapping table.
[0030] by Figure 3 For example, this RAID-0 array system contains three SSDs, namely ARM-SSD0, ARM-SSD1, and ARM-SSD2, and logical page LPNs. i This indicates the i-th logical page, and its corresponding address mapping is recorded in the ARM-SSD by default. (i%3) The local mapping table contains LPN4 on ARM-SSD1 and LPN5 on ARM-SSD2, which are duplicates of LPN0 and LPN3 on ARM-SSD0, respectively. Through cross-disk address remapping, LPN4 and LPN8 are mapped to the physical page number (PPN) of ARM-SSD0, respectively. x and PPN a The mapping relationship is recorded in entries (4%N) and (8%N) of the remote mapping table of the disk ARM-SSD0 where the data is located, instead of the local mapping table of the default disk ARM-SSD1 (not LPN4) or the default disk ARM-SSD2 (not LPN8). Since logical page numbers LPN4, LPN5, LPN6, and LPN8 have all undergone cross-disk remapping, their data is no longer stored on the original disk.
[0031] After expanding the logical address space, the underlying operations of the solid-state drive need to be modified accordingly. In this invention, the operations executed in the array controller include: the Remap command for deleting duplicate data, the TRIM command for deleting mapping relationships, the Write command for writing data, and the Read command for reading data; the format and execution method of each command are as follows; (1) In the command Remap(LPN1,LPN2,RemoteFlag), LPN1 represents the logical page number of the data block to be written, LPN2 represents the logical page number corresponding to the duplicate data block to be written in the array, and RemoteFlag=true and RemoteFlag=false represent operating on the remote mapping table and the local mapping table, respectively; the execution method of the command Remap(LPN1,LPN2,RemoteFlag) is as follows: Query the physical page number PPN2 corresponding to the logical page number LPN2 in the local mapping table, and increment the reference count of PPN2 in the reference count table by 1; if RemoteFlag=false, update the physical page number of the entry corresponding to the logical page number LPN1 in the local mapping table to PPN2; otherwise, update the physical page number of the entry corresponding to LPN1 in the remote mapping table to PPN2.
[0032] (2) In the TRIM(LPN3,RemoteFlag) command, LPN3 represents the logical page number of the data block to be written; the execution method of the TRIM(LPN3,RemoteFlag) command is as follows: If RemoteFlag=false, then query the local mapping table for the physical page number Old-PPN3 corresponding to the logical page number LPN3, and set the corresponding table entry to empty, to indicate that there is corresponding data for logical page number LPN3 in the middle of the solid-state drive; otherwise, query the remote mapping table for the physical page number Old-PPN3 corresponding to the logical page number LPN3, and set the corresponding table entry to empty. If Old-PPN3 is not empty, then the reference count of physical page number Old-PPN3 in the reference count table will be decremented by 1.
[0033] (3) In the Write(LPN4,Data4,RemoteFlag=false) command, Data4 represents the data block to be written, and LPN4 represents its logical page number; the execution method of Write(LPN4,Data4,RemoteFlag=false) is as follows: Allocate a free flash page with physical page number PPN5; if RemoteFlag=false, query the local mapping table for the physical page number Old-PPN4 corresponding to the local logical page number LPN4, and update the physical page number corresponding to this entry to PPN5; otherwise, query the remote mapping table for the physical page number Old-PPN4 corresponding to LPN4, and update the physical page number corresponding to this entry to PPN5. The reference count corresponding to PPN5 is incremented by 1, and the data Data4 is written to the flash page corresponding to PPN5. If Old-PPN4 is not empty, decrement its reference count by 1.
[0034] (4) In the Read(LPN6,RemoteFlag) command, LPN6 represents the logical page number of the data block to be read; the execution method of the Read(LPN6,RemoteFlag) command is as follows: If RemoteFlag=false, then query the physical page number PPN6 corresponding to the logical page number LPN6 in the local mapping table; otherwise, query the physical page number PPN6 corresponding to the logical page number LPN6 in the remote mapping table. Read the data stored on the flash page corresponding to physical page number PPN6 and return it.
[0035] Because of the limited capacity of remote mapping tables, multiple remote logical page numbers may map to the same entry in the same remote mapping table, causing mapping conflicts. If cross-disk address remapping is still allowed when a mapping conflict occurs, it may lead to errors such as data loss. To avoid these errors, this invention proposes a corresponding mapping conflict detection mechanism, which disallows cross-disk address remapping when a mapping conflict is detected. Specifically, when writing data blocks, if the currently written logical page number (initially on an ARM-SSD) is... i The corresponding data block is an ARM-SSD already stored on the solid-state drive. j When duplicate data occurs in (j≠i), cross-disk address remapping may happen. In this case, the array controller will confirm that the logical page number is in the ARM-SSD. j If an entry in the remote mapping table is occupied by another cross-disk mapping relationship, it means that the current cross-disk deduplication will cause a mapping conflict in the remote mapping table within the SSD. Therefore, the current cross-disk deduplication operation is canceled, and the current data is stored in the ARM-SSD instead. i This allows for the early detection of potential mapping conflicts, thus preventing their occurrence. Otherwise, it indicates that no mapping conflict will occur, and the mapping will proceed directly in the ARM-SSD. jThe remote mapping relationship is recorded in the corresponding entries of the remote mapping table to achieve cross-disk duplicate data deletion. It is easy to understand that when an array system uses an architecture such as RAID5 to store redundant parity data blocks to enhance data storage reliability, cross-disk remapping management may result in multiple data stored on the same SSD within a single parity stripe. In this case, if the SSD fails, it cannot be recovered from the parity data block calculation because multiple data copies on a single stripe are lost. To address this problem, in this invention, the array controller additionally groups the remote logical page numbers recorded in the same offset entries of the remote mapping table in each SSD into a stripe, and updates and maintains the parity data blocks on the corresponding stripe when cross-disk remapping occurs. This ensures the verification and recovery of cross-disk remapped data, thereby guaranteeing the storage reliability of all data.
[0036] After cross-disk address remapping occurs, the mapping relationship of logical page numbers may not be stored in their original disk, for example, Figure 3 In the example, since logical page numbers LPN4, LPN5, LPN6, and LPN8 have all undergone cross-disk remapping, their data is no longer stored in the initial disk. To facilitate the array controller's rapid and accurate acquisition of the logical page number mapping relationship, this invention maintains a target disk number record table in the array controller to record the target disk number for each logical page number; the target disk number is the solid-state disk number that stores the mapping relationship of the corresponding logical page number. Figure 3 In the example, the target disk number record table records the actual disk numbers #0, #1, #2, and #0 where the logical page numbers LPN4, LPN5, LPN6, and LPN8 are located.
[0037] Using the target disk number record table, determine the logical page number of a certain solid-state drive (ARM-SSD). j To determine whether an entry in the remote mapping table is occupied by another cross-disk mapping relationship, you can do so in the following way: Check the target disk number record table to see if a logical page number c satisfies (ca)%N=0, ARM-SSD. b =ARM-SSD c InitSSD a !=ARM-SSD b And InitSSD c !=ARM-SSD c ; Where 'a' represents the logical page number to be written, and 'b' represents the logical page number of the duplicate data block to be written. (ARM-SSD) b and ARM-SSD c These are the corresponding disk numbers recorded in the target disk number record table for logical page numbers b and c, respectively. (InitSSD) a and InitSSD cThe initial disks are logical page numbers a and c, respectively, and can be determined according to the array configuration. In the above judgment conditions, InitSSD... a !=ARM-SSD b And InitSSD c !=ARM-SSD c This indicates that logical page numbers a and c are both remotely mapped, ARM-SSD b =ARM-SSD c This indicates that the mapping relationship between logical page numbers a and c is stored on the same solid-state drive. (ca)%N=0 indicates that logical page numbers a and c have the same entry number in the remote mapping table. If these conditions are met simultaneously, it means that the entry used to store the remote mapping relationship of logical page number a is occupied by the remote mapping relationship of logical page number c.
[0038] It's easy to understand that if each data stripe in the array includes a parity data block, then after deduplication, while updating the remote mapping table, the parity data block of the corresponding stripe in the remote mapping table also needs to be updated; similarly, when writing data, the parity data block in the corresponding stripe also needs to be updated. The specific method for updating the parity depends on the array configuration.
[0039] With the combined effect of the aforementioned logical address space expansion and conflict mapping mechanisms, SSD arrays can support cross-disk address remapping. When combined with deduplication applications, duplicate data between different SSDs in the array can be identified within the SSD itself, thus effectively achieving deduplication with lower overhead and cost. To further integrate with deduplication applications, this invention proposes a lightweight deduplication system engine that employs a fingerprint management scheme based on user logical page numbers. This decouples the fingerprint index table from the deduplication mapping table and the reference count table, allowing the deduplication system engine to utilize the array-level remapping interface proposed by the SSD to offload the deduplication mapping table hardware to the SSD's address mapping table. This eliminates the memory and I / O overhead associated with the deduplication mapping table. However, the decoupled deduplication engine can only maintain the index mapping relationship from fingerprint values to logical page numbers. Data updates can lead to inconsistencies between fingerprints and data, resulting in erroneous deduplication and data loss. Figure 4As shown, before the data update, the fingerprint index table records the data storage location corresponding to the fingerprint of data A at logical page number LPN. Logical page number LPN in the solid-state drive points to data A. However, when logical page number LPN is updated, the data corresponding to logical page number LPN in the solid-state drive is changed from the old data A to the new data B. At this point, the old fingerprint index pointing to logical page number LPN for data A eventually points to the new data B, causing a fingerprint-data inconsistency problem. In other words, the fingerprint management scheme based on user logical page numbers can cause fingerprint invalidation when users update data. To address this issue, the deduplication system engine of this invention additionally records the data version number of each fingerprint in the fingerprint index table and maintains a data version number record table to record the latest data version number of each user logical page number. The validity of the fingerprint is verified by comparing the fingerprint's data version number with the latest data version number corresponding to the user logical page number mapped to the fingerprint, thus avoiding invalid fingerprints leading to erroneous deduplication.
[0040] The following uses typical RAID0 arrays without parity blocks and RAID5 arrays with parity blocks as examples to further explain the technical solution provided by this invention.
[0041] like Figure 5 As shown, in one embodiment of the present invention, a solid-state disk array system supporting cross-disk address remapping is provided. The solid-state disk array is a RAID 0 array, which includes a deduplication engine, an array controller, and a solid-state disk array. The method of processing requests includes the following steps: (1) The deduplication engine accepts IO requests from applications or the file system, splits the IO requests into one or more data block requests (e.g., splitting into 4KB blocks), and for each data block request, determines whether the request type is a read request (Read(a)) or a write request (Write(a, Data)). a ), where 'a' is the logical page number of the data block to be read / written, and Data a If the data requested is a write request, proceed to the duplicate data judgment step (2); otherwise proceed to the read request redirection step (11). (2) The deduplication engine uses a hash function (such as MD5, SHA-1, etc.) to calculate the data block being written. a fingerprint value FP a For each data block request, proceed to the fingerprint query step (3); (3) The deduplication engine queries the fingerprint value FP in the fingerprint index table. a If the fingerprint already exists, proceed to the fingerprint insertion step (4); otherwise proceed to the fingerprint verification step (5). (4) The lightweight deduplication system engine inserts metadata items (FP) into the fingerprint index table. a , a, x+1), where x is the latest data version number corresponding to logical page number a in the data version number record table, and proceed to the data writing step (8); (5) The deduplication engine queries the fingerprint value FP in the fingerprint index table. a The corresponding logical page number b and data version number y are obtained, and the latest data version number z of logical page number b is queried in the data version number record table. It is determined whether the fingerprint data version number y and the latest data version number z of logical page number b are equal. If they are not equal, the fingerprint update step (6) is entered; otherwise, the conflict detection step (7) is entered. (6) The lightweight deduplication system engine will use the fingerprint values FP in the fingerprint index table. a The corresponding logical page number and data version number are updated to a and x+1 respectively, and the data writing step (8) is entered. (7) The array controller checks the target disk number record table to see if there exists a logical page number c that satisfies (ca)%N=0, ARM-SSD b =ARM-SSD c InitSSD a !=ARM-SSD b And InitSSD c !=ARM-SSD c If there is a logical page number c that meets the above conditions, proceed to the data writing step (8); otherwise, proceed to the duplicate data deletion step (10). (8) If the deduplication fails, the deduplication engine will update the latest data version number x corresponding to the logical page number a in the data version number record table to the value (x+1) and enter the write request array forwarding step (9). (9) The array controller updates the disk number of logical page number a in the target disk number record table to a%M, and then sends the disk number to InitSSD. a SubmitWrite(a,Data a The `,false)` command enables InitSSD a Execute this command; (10) The duplicate data deletion was successful. The array controller queries the target disk number of logical page number a in the target disk number record table and updates it to ARM-SSD. b The disk number is used to determine the mapping relationship of the logical page number 'a' in the OldSSD. a ;Judge OldSSD a With ARM-SSD b Check if they are the same, and determine if InitSSD is the same. a With ARM-SSD bWhether they are the same, the following sub-steps are executed based on the judgment result: (10-1) If OldSSD a With ARM-SSD b The fact that they are the same indicates that the old mapping relationship of logical page number a and the new mapping relationship to be written are located in the same solid-state drive, and that InitSSD... a With ARM-SSD b If they are the same, it indicates a local mapping, then it is mapped to the ARM-SSD. b Submit the Remap(a,b,false) command to enable the ARM-SSD b Execute this command; (10-2) If OldSSD a With ARM-SSD b Same, and InitSSD a With ARM-SSD b If they are different, then choose ARM-SSD. b Submit the Remap(a,b,true) command to enable the ARM-SSD b Execute this command; (10-3) If OldSSD a With ARM-SSD b They are different, and InitSSD a With ARM-SSD b If they are the same, then send them to the ARM-SSD respectively. b and OldSSD a Submit the Remap(a,b,false) and TRIM(a,false) commands to enable the ARM-SSD. b and OldSSD a Execute the corresponding commands respectively; (10-4) If OldSSD a With ARM-SSD b They are different, and InitSSD a With ARM-SSD b If they are different, then send them to the ARM-SSD respectively. b and OldSSD a Submit the Remap(a,b, true) and TRIM(a,true) commands to enable ARM-SSD b and OldSSD a Execute the corresponding commands respectively; (11) The array controller queries the target disk number of logical page number a in the target disk number record table to determine the solid-state disk ARM-SSD that stores the mapping relationship of logical page number a. a And determine ARM-SSDa With InitSSD a If they are the same, then send a request to InitSSD. a Submit the Read(a,false) command to enable InitSSD a Execute the corresponding command; otherwise, send a command to the ARM-SSD. a Submit the Read(a,true) command to enable the ARM-SSD a Execute the corresponding command.
[0042] In another embodiment of the present invention, a solid-state disk array system supporting cross-disk address remapping is provided. The solid-state disk array is a RAID5 array, which includes a deduplication engine, an array controller, and a solid-state disk array. The method of processing requests includes the following steps: (1) The deduplication engine accepts IO requests from applications or the file system, splits the IO requests into one or more data block requests (e.g., splitting into 4KB blocks), and for each data block request, determines whether the request type is a read request (Read(a)) or a write request (Write(a, Data)). a ), where 'a' is the logical page number of the data block to be read / written, and Data a If the data requested is a write request, proceed to the duplicate data judgment step (2); otherwise proceed to the read request redirection step (11). (2) The deduplication engine uses a hash function (such as MD5, SHA-1, etc.) to calculate the data block being written. a fingerprint value FP a For each data block request, proceed to the fingerprint query step (3); (3) The deduplication engine queries the fingerprint value FP in the fingerprint index table. a If the fingerprint already exists, proceed to the fingerprint insertion step (4); otherwise proceed to the fingerprint verification step (5). (4) The deduplication engine inserts metadata items (FP) into the fingerprint index table. a , a, x+1), where x is the latest data version number corresponding to logical page number a in the data version number record table, and proceed to the data writing step (8); (5) The deduplication engine queries the fingerprint value FP in the fingerprint index table. a The corresponding logical page number b and data version number y are obtained, and the latest data version number z of logical page number b is queried in the data version number record table. It is determined whether the fingerprint data version number y and the latest data version number z of logical page number b are equal. If they are not equal, the fingerprint update step (6) is entered; otherwise, the conflict detection step (7) is entered. (6) The deduplication engine will deduplicat the fingerprint values FP in the fingerprint index table. a The corresponding logical page number and data version number are updated to a and x+1 respectively, and the data writing step (8) is entered. (7) The array controller checks the target disk number record table to see if there exists a logical page number c that satisfies (ca)%N=0, ARM-SSD b =ARM-SSD c InitSSD a !=ARM-SSD b And InitSSD c !=ARM-SSD c If there is a logical page number c that meets the above conditions, proceed to the data writing step (8); otherwise, proceed to the duplicate data deletion step (10). (8) If the deduplication fails, the lightweight deduplication system engine updates the latest data version number x corresponding to the logical page number a in the data version number record table to the value (x+1) and enters the write request array forwarding step (9). (9) The ARM-SSD array controller updates the disk number of logical page number a in the target disk number record table to InitSSD. a The disk number, and respectively sent to InitSSD a and ParitySSD a SubmitWrite(a,Data a `,false)` and `Write(p,ParityData)` a The `,false)` command makes `InitSSD`... a and ParitySSD a Execute the corresponding commands to write the new data. a And update its stripe's validation data to ParityData. a InitSSD a =(a%M), ParitySSD a ParitySSD is the disk number containing the parity data in the RAID-5 stripe containing logical page number a. a =(M-1)-(Stripe a %M), Stripe a The stripe number of the RAID-5 array containing logical page number 'a', its value is Stripe. a =a / (M-1), where " / " indicates integer division. The logical page number a is the data storage location after being converted by the RAID-5 controller. Its value a =Stripe a ×M+InitSSDa p is Stripe a The location for storing stripe verification data, with the value p=Stripe. a ×M+ParitySSD a ParityData a For data a Stripe after writing a The latest parity data value of the stripe, its value is ParityData. a =Data a XOR OldData a XOROldParityData a The symbol 'XOR' represents the exclusive OR operation (the same applies below). OldData a and OldParityData a Data a Write the old data from the previous logical page number a and Stripe a If the old parity data of the stripe is not stored in the cache, it needs to be sent to InitSSD separately. a and ParitySSD a Submit the Read(a,false) and Read(p,false) commands to read data; (10) The duplicate data deletion was successful. The array controller queries the target disk number of logical page number a in the target disk number record table and updates it to ARM-SSD. b The disk number is used to determine the mapping relationship of the logical page number 'a' in the OldSSD. a ;Judge OldSSD a With ARM-SSD b Check if they are the same, and determine if InitSSD is the same. a With ARM-SSD b Whether they are the same, the following sub-steps are executed based on the judgment result: (10-1) If OldSSD a With ARM-SSD b Same, and InitSSD a With ARM-SSD b If they are the same, then send them to the ARM-SSD respectively. b and ParitySSD a Submit Remap(a,b,false) and Write(p,ParityData) a The command `,false)` determines the data storage location of logical page number `b` after conversion by the RAID-5 controller. b =Stripe b ×M+InitSSD b Stripe b =b / (M-1); (10-2) If OldSSD a With ARM-SSD b Same, and InitSSD a With ARM-SSD b If they are different, then send them to the ARM-SSD respectively. b and RemoteParitySSD a Submit Remap(a,b,true) and Write(a,RemoteParityData) a The command, ,true), where RemoteParitySSD a =(M-1)-((a%N)%M),RemoteParityData a =OldRemoteData a XOROldRemoteParityData a XOR Data a OldRemoteData a and OldRemoteParityData a These are the old data of logical page number 'a' in the cross-disk remote mapping table and the old checksum data of the stripe containing its remote mapping entry, respectively. If these data values are not stored in the cache, they need to be sent to the ARM-SSD separately. b and RemoteParitySSD a Submit the Read(a,false) command to read data; (10-3) If OldSSD a With ARM-SSD b They are different, and InitSSD a With ARM-SSD b If they are the same, then send them to the ARM-SSD respectively. b ParitySSD a OldSSD a and RemoteParitySSD a Submit Remap(a,b,false),Write(p,LocalParityData a ,false), TRIM(a,true) and Write(a,RemoteParityData aThe command, ,true), where LocalParityData a =Data a XOROldParityData a RemoteParityData a =OldRemoteData a XOROldRemoteParityData a ; (10-4) If OldSSD a With ARM-SSD b They are different, and InitSSD a With ARM-SSD b They are different; determine if it is an OldSSD. a With InitSSD a Are they the same? If they are the same, then send them to the ARM-SSD respectively. b RemoteParitySSD a OldSSD a and ParitySSD a Submit Remap(a,b,true),Write(a,RemoteParityData a ,true), TRIM(a,false) and Write(p,LocalParityData a The command, ,false), where LocalParityData a =OldData a XOROldParityData a Otherwise, send them to the ARM-SSD respectively. b RemoteParitySSD a and OldSSD a Submit Remap(a,b,true),Write(a,RemoteParityData a The commands `RemoteParityData` and `TRIM(a,true)`, where `RemoteParityData` is true. a =Data a XOR OldRemoteData a XOR OldRemoteParityData a ; (11) The array controller queries the target disk number of logical page number a in the target disk number record table to determine the solid-state disk ARM-SSD that stores the mapping relationship of logical page number a. aAnd determine ARM-SSD a With InitSSD a If they are the same, then send a request to InitSSD. a Submit the Read(a,false) command to enable InitSSD a Execute the corresponding command; otherwise, send a command to the ARM-SSD. a Submit the Read(a,true) command to enable the ARM-SSD a Execute the corresponding command.
[0043] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A solid-state drive array system supporting cross-disk address remapping, characterized in that, This includes an array consisting of multiple solid-state drives, and an array controller; In the array, each solid-state drive maintains a local mapping table, a remote mapping table, and a reference count table. The local mapping table is used to record the mapping relationship from local logical page number to local physical page number, the remote mapping table is used to record the mapping relationship from remote logical page number to local physical page number, and the reference count table is used to record the reference count of each physical page number of the solid-state drive. The array controller is used to write data block Data to logical page number a. a And the solid-state drives in the array are ARM-SSDs b Data has already been stored on it. a Duplicate data blocks b When the condition is met, determine whether the preset conflict mapping conditions are met. If not, execute the duplicate data deletion step. The conflict mapping conditions include: the initial disk InitSSD of logical page number a. a With solid-state drive ARM-SSD b They are different, and logical page number a is in the solid-state drive ARM-SSD. b Entry E in the remote mapping table a The data is occupied; the deduplication step includes: If the mapping relationship of logical page number 'a' is stored in the OldSSD solid-state drive a With ARM-SSD b Same, and InitSSD a With ARM-SSD b If they are the same, then send to ARM-SSD b Submit the Remap(a,b,false) command; If OldSSD a With ARM-SSD b Same, and InitSSD a With ARM-SSD b If they are different, then choose ARM-SSD. b Submit the Remap(a,b,true) command; If OldSSD a With ARM-SSD b They are different, and InitSSD a With ARM-SSD b If they are the same, then send to ARM-SSD b Submit the Remap(a,b,false) command and send it to OldSSD. a Submit the TRIM(a,false) command; If OldSSD a With ARM-SSD b They are different, and InitSSD a With ARM-SSD b If they are different, then choose ARM-SSD. b Submit Remap(a, b, true) and send it to OldSSD a Submit the TRIM(a,true) command; Each solid-state drive is also used to receive and execute commands submitted by the array controller; In the `Remap(LPN1, LPN2, RemoteFlag)` command, `LPN1` represents the logical page number of the data block to be written, `LPN2` represents the logical page number corresponding to the duplicate data block to be written in the array, and `RemoteFlag=true` and `RemoteFlag=false` indicate operations on the remote mapping table and the local mapping table, respectively. The execution method of the `Remap(LPN1, LPN2, RemoteFlag)` command is as follows: Query the physical page number PPN2 corresponding to the logical page number LPN2 in the local mapping table, and increment the reference count of PPN2 in the reference count table by 1; if RemoteFlag=false, update the physical page number of the entry corresponding to the logical page number LPN1 in the local mapping table to PPN2; otherwise, update the physical page number of the entry corresponding to LPN1 in the remote mapping table to PPN2. In the TRIM(LPN3,RemoteFlag) command, LPN3 represents the logical page number of the data block to be written; the TRIM(LPN3,RemoteFlag) command is executed as follows: If RemoteFlag=false, then look up the physical page number Old-PPN3 corresponding to logical page number LPN3 in the local mapping table and set the corresponding table entry to null; otherwise, look up the physical page number Old-PPN3 corresponding to logical page number LPN3 in the remote mapping table and set the corresponding table entry to null. If Old-PPN3 is not empty, then decrement the reference count of physical page number Old-PPN3 in the reference count table by 1; The initial disk is the solid-state disk number corresponding to the logical page number determined according to the array's organization.
2. The solid-state drive array system supporting cross-disk address remapping as described in claim 1, characterized in that, The array controller is also used to write data blocks (Data) to logical page number a. a And the solid-state drives in the array are ARM-SSDs b Data has already been stored on it. a Duplicate data blocks b And when it is determined that the conflict mapping condition is met, the data writing step is executed; the data writing step includes: sending data to the InitSSD a SubmitWrite(a,Data a ,false) command; In the `Write(LPN4,Data4,RemoteFlag=false)` command, `Data4` represents the data block to be written, and `LPN4` represents its logical page number. The execution method of the `Write(LPN4,Data4,RemoteFlag=false)` command is as follows: Allocate a free flash page with physical page number PPN5; if RemoteFlag=false, query the local mapping table for the physical page number Old-PPN4 corresponding to the local logical page number LPN4, and update the physical page number corresponding to this entry to PPN5; otherwise, query the remote mapping table for the physical page number Old-PPN4 corresponding to LPN4, and update the physical page number corresponding to this entry to PPN5. The reference count corresponding to PPN5 is incremented by 1, and the data Data4 is written to the flash page corresponding to PPN5. If Old-PPN4 is not empty, decrement its reference count by 1.
3. The solid-state drive array system supporting cross-disk address remapping as described in claim 2, characterized in that, The array controller is also used to write data blocks (Data) to logical page number a. a And the array does not store data. a When duplicate data blocks are encountered, the data writing step is performed.
4. The solid-state drive array system supporting cross-disk address remapping as described in claim 3, characterized in that, The array controller is further configured to perform a read request redirection step when reading a data block from logical page number a; the read request redirection step includes: Determine the mapping relationship of the solid-state drive (OldSSD) that stores logical page number 'a'. a Initial disk InitSSD with logical page number a a If they are the same, then send the data to the OldSSD. a Submit the Read(a,false) command; otherwise, send a command to OldSSD. a Submit the Read(a,true) command; In the Read(LPN6,RemoteFlag) command, LPN6 represents the logical page number of the data block to be read; the execution method of the Read(LPN6,RemoteFlag) command is as follows: If RemoteFlag=false, then query the physical page number PPN6 corresponding to the logical page number LPN6 in the local mapping table; otherwise, query the physical page number PPN6 corresponding to the logical page number LPN6 in the remote mapping table. Read the data stored on the flash page corresponding to physical page number PPN6 and return it.
5. The solid-state disk array system supporting cross-disk address remapping as described in claim 4, characterized in that, The array controller also maintains a target disk number record table; the target disk number record table is used to record the target disk number of each logical page number. The target disk number is the solid-state disk number that stores the mapping relationship of the corresponding logical page number; Furthermore, the deduplication step further includes: updating the target disk number of logical page number a in the target disk number record table to ARM-SSD. b Disk number; Furthermore, the data writing step also includes: updating the target disk number of logical page number a in the target disk number record table to InitSSD. a Disk number.
6. The solid-state drive array system supporting cross-disk address remapping as described in claim 5, characterized in that, If each data stripe in the array includes a checksum data block, then the deduplication step further includes: After updating the local or remote mapping table, update the checksum data block in the corresponding stripe; Furthermore, the data writing step also includes: writing data. a Then, update the checksum data block of the data stripe in which it is located.
7. The solid-state disk array system supporting cross-disk address remapping as described in claim 6, characterized in that, Also includes: Deduplication engine; The deduplication engine maintains a fingerprint index table and a data version number record table; The fingerprint index table is used to record the fingerprints, logical page numbers, and data version numbers of the data blocks that have been written in the array; the data version number record table is used to record the latest version number of the data block corresponding to each logical page number; The deduplication engine is used to write data block Data to logical page number a. a At that time, perform the following steps: Compute data block Data a Fingerprint FP a ; Query the fingerprint FP in the fingerprint index table a If the search is successful, the corresponding logical page number b and data version number y are obtained, and the latest data version number z corresponding to logical page number b is queried in the data version number record table. If y = z, it is determined that the array has already stored the data version number corresponding to Data. a Duplicate data blocks b And cause the array controller to write data block Data to logical page number a. a .
8. The solid-state drive array system supporting cross-disk address remapping as described in claim 7, characterized in that, The deduplication engine is further configured to, when y≠z, retrieve the latest data version number x corresponding to logical page number a from the data version number record table and update it to x+1, and update the fingerprint FP in the fingerprint index table. a The corresponding logical page number is updated to 'a', and the corresponding data version number is updated to 'x+1'. It is then determined that the array does not store data matching the given data. a The duplicate data block causes the array controller to write the data block Data to logical page number a. a .
9. The solid-state drive array system supporting cross-disk address remapping as described in claim 8, characterized in that, The deduplication engine is also used to detect fingerprints (FPs) not found in the fingerprint index table. a At that time, the latest data version number x corresponding to logical page number a is obtained from the data version number record table and updated to x+1, and the fingerprint value FP is inserted into the fingerprint index table. a For the corresponding entry, its logical page number and data version number are 'a' and x+1 respectively, and it is determined that the array does not store data related to Data. a The duplicate data block causes the array controller to write the data block Data to logical page number a. a .
10. The solid-state disk array system supporting cross-disk address remapping as described in claim 9, characterized in that, The deduplication engine is also configured to cause the array controller to perform the read request redirection step when reading a data block from logical page number a.
