Database management architecture for data storage devices

By implementing the database management architecture on SSD and utilizing the parallel reading and garbage collection mechanisms of multiple FIMs, the problem of low efficiency in managing SQL and non-SQL database operations on data storage devices is solved, and the efficiency of database operations and resource utilization are improved.

CN114489468BActive Publication Date: 2024-09-20SANDISK TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110681629.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-02-22
Filing Date
2021-06-18
Publication Date
2024-09-20
Estimated Expiration
2041-06-18

AI Technical Summary

Technical Problem

It is difficult to efficiently manage and perform operations on SQL databases and non-SQL databases on data storage devices with existing technology, and building a database file management system requires a lot of resources and time.

Method used

Implement the database management architecture on SSD by storing the records of the table in multiple FIMs for parallel reading, using unordered linked lists to organize huge blocks, and performing garbage collection to reorganize the records when the gap memory size reaches 20%.

Benefits of technology

It realizes efficient parallel reading of database records on data storage devices, reduces resource consumption and development time, and improves the efficiency of database operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489468B_ABST
    Figure CN114489468B_ABST
Patent Text Reader

Abstract

The present invention is entitled "Database Management Architecture for Data Storage Devices". The present invention discloses a method and apparatus for a database management architecture on an SSD. A list of tables is stored in the SSD, and the records of the table are stored across multiple FIMs of the SSD, so that a set of records can be read in parallel by reading from multiple FIMs at the same time. The records of the table are stored on giant blocks, organized as a linked list in an unordered manner. New records are added to the end of the linked list. When the gap memory size reaches about 20% of the table memory size, records with gaps caused by data modifications or bad parts of the NVM tube core are reorganized via garbage collection.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of U.S. Provisional Patent Application Serial No. 63 / 113,092, filed on November 12, 2020, which is incorporated herein by reference. Background Art Technical Field

[0003] Embodiments of the present disclosure generally relate to storing data within a database management architecture of a data storage device.

[0004] Description of Related Art

[0005] Databases are typically implemented on a host system that includes a dedicated processor, memory, and storage. When performing database file operations (such as writing records to a table, deleting records, modifying records, or selecting on a table), the application typically provides instructions to the host system, which in turn calls the data from the storage device, loads the table (and its records) into RAM, and performs the requested operation. The results are provided to the application, and any changes to the records or tables are written to the storage device as needed.

[0006] Developers have not generally sought to implement database operations on data storage devices. These devices are capable of storing large amounts of data and can be scaled using processing power and fast local memory. However, the effort required to build a database file management system to operate on a typical data storage device would be extremely resource intensive and would require years of development time. Furthermore, building a data storage device in a generalized manner to manage SQL databases and non-SQL databases would be similarly resource and time intensive for development.

[0007] What is needed is a system and method for managing and performing database operations on SQL databases and non-SQL databases in a data storage device that overcomes the shortcomings of existing approaches. Summary of the invention

[0008] The present disclosure as a whole relates to methods and apparatus for a database management architecture on an SSD. A list of tables is stored in the SSD, and the records of the table are stored across multiple FIMs of the SSD, so that a set of records can be read in parallel by reading from multiple FIMs at the same time. The records of the table are stored on giant blocks, organized as a linked list in an unordered manner. New records are added to the end of the linked list. When the gap memory size reaches about 20% of the table memory size, records with gaps caused by data modifications or bad parts of non-volatile memory (NVM) tube cores are reorganized via garbage collection. In an embodiment, the NVM tube core can be a NAND tube core, a NOR tube core, or a tube core other tube core that includes a solid-state memory unit capable of storing data.

[0009] In one embodiment, a data storage device is disclosed, the data storage device comprising: a front end (FE); a front end module (FM), the front end module comprising a plurality of flash interface modules (FIMs), a table list and a megablock list, the FM being coupled to the FE; and a controller, the controller comprising a processor, the processor being configured to perform a method for database record management. In an embodiment, the method comprises: writing a first record of a table to a first position on a first FIM of the plurality of FIMs; writing a second record of the table to a second position of a second FIM of the plurality of FIMs; updating a first entry of the megablock list through the first position and updating a second entry of the megablock list through the second position; and updating the table list through a reference to the first position of the megablock list.

[0010] In another embodiment, a controller for a data storage device is disclosed, the controller comprising: an I / O for one or more memory devices; and a processor configured to perform a method for database record management. In an embodiment, the method comprises: storing a first reference to a first memory location of a first flash interface module (FIM); storing a second reference to a second memory location of a second FIM, wherein the first reference is coupled to the second reference; receiving an indication that data at one of the first memory location and the second memory location has been modified, thereby generating a gap in the data; and storing a first gap reference to the gap in the data.

[0011] In another embodiment, a system for storing data is disclosed, the system comprising: a front end (FE) device; a front end module (FM) device, the front end module device comprising a table list and an available block list and a data block list, the available block list comprising a plurality of references to a plurality of locations on one or more flash interface modules (FIMs); and a controller device, the controller device being configured to perform a method for database record management. The method comprises: receiving a table comprising a record; updating the table list to reference the table; receiving a plurality of records from the table; updating the FIM with data from a record in the plurality of records; and updating the data block list to include a reference to a memory location on the FIM comprising the data from the record. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Thus, a detailed understanding of the manner in which the above-described features of the present disclosure are understood, a more particular description of the present disclosure, the above brief overview, may be obtained by reference to the embodiments, some of which are illustrated in the accompanying drawings. It should be noted, however, that the drawings illustrate only typical embodiments of the present disclosure and are therefore not to be considered limiting of its scope, as the present disclosure may admit to other equally effective embodiments.

[0013] Figure 1 is a schematic block diagram illustrating a storage system according to the disclosed embodiments, in which a data storage device may be used as a data storage device of a host device.

[0014] Figure 2 is a schematic block diagram illustrating a database server system according to the disclosed embodiments.

[0015] Figure 3 is a schematic block diagram illustrating an improved data storage device according to the disclosed embodiments.

[0016] Figure 4 is a schematic block diagram illustrating the internal flow of a database data storage device according to the disclosed embodiment.

[0017] Figure 5 is a schematic block diagram illustrating a macroblock array of a database data storage device according to the disclosed embodiments.

[0018] Figure 6 is a flow chart illustrating a method 600 of writing records to a megablock array and modifying records of a megablock array according to the disclosed embodiments.

[0019] To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. It is contemplated that elements disclosed in one embodiment may be beneficially utilized on other embodiments without specific recitation. DETAILED DESCRIPTION

[0020] Hereinafter, reference is made to embodiments of the present disclosure. However, it should be understood that the present disclosure is not limited to the specifically described embodiments. On the contrary, any combination of the following features and elements (whether or not related to different embodiments) is considered to realize and practice the present disclosure. In addition, although the embodiments of the present disclosure can achieve advantages that are superior to other possible solutions and / or superior to the prior art, whether a specific advantage is achieved by a given embodiment is not a limitation to the present disclosure. Therefore, the following aspects, features, embodiments and advantages are merely illustrative, and are not considered to be elements or limitations of the appended claims, unless explicitly stated in the claims. Similarly, reference to "the present disclosure" should not be interpreted as a summary of any inventive subject matter disclosed herein, and should not be considered to be elements or limitations of the appended claims, unless explicitly stated in the claims.

[0021] The present disclosure as a whole relates to methods and apparatus for a database management architecture on an SSD. A list of tables is stored in the SSD, and the records of the table are stored across multiple FIMs of the SSD, so that a set of records can be read in parallel by reading from multiple FIMs at the same time. The records of the table are stored on giant blocks, organized as linked lists in an unordered manner. The terms block and giant block may be used interchangeably herein. New records are added to the end of the linked list. When the gap memory size reaches about 20% of the table memory size, records with gaps caused by data modifications or bad parts of the NVM die are reorganized via garbage collection.

[0022] Figure 1 1 is a schematic block diagram illustrating a storage system 100 according to the disclosed embodiments, wherein a data storage device 106 can be used as a storage device for a host device 104. For example, the host device 104 can utilize a non-volatile memory (NVM) 110 included in the data storage device 106 to store and retrieve data. The host device 104 includes a host DRAM 138. In some examples, the storage system 100 can include multiple storage devices, such as the data storage device 106, that can operate as a storage array. For example, the storage system 100 can include multiple data storage devices 106 that are configured as a redundant array of inexpensive / independent disks (RAID) that are collectively used as a mass storage device for the host device 104.

[0023] The storage system 100 includes a host device 104 that can store data to and / or retrieve data from one or more storage devices such as a data storage device 106. Figure 1 As shown, host device 104 can communicate with data storage device 106 via interface 114. Host device 104 can include any of a variety of devices, including a computer server, a network attached storage (NAS) unit, a desktop computer, a notebook (i.e., laptop) computer, a tablet computer, a set-top box, a mobile phone (such as a so-called "smart" phone, a so-called "smart" tablet), a television, a camera, a display device, a digital media player, a video game console, a video streaming device, or other device capable of sending or receiving data from a data storage device.

[0024] Data storage device 106 includes controller 108, NVM 110, power supply 111, volatile memory 112, interface 114, and write buffer 116. In some examples, for clarity, data storage device 106 may include Figure 1. For example, the data storage device 106 may include a printed circuit board (PCB) to which the components of the data storage device 106 are mechanically attached, and the PCB includes conductive traces that electrically interconnect the components of the data storage device 106, etc. In some examples, the physical size and connector configuration of the data storage device 106 can conform to one or more standard form factors. Some exemplary standard form factors include, but are not limited to, a 3.5" data storage device (e.g., an HDD or SSD), a 2.5" data storage device, a 1.8" data storage device, a peripheral component interconnect (PCI), a PCI extension (PCI-X), a PCI Express (PCIe) (e.g., PCIex1, x4, x8, x16, PCIe Mini card, MiniPCI, etc.). In some examples, the data storage device 106 can be directly coupled (e.g., directly soldered) to a motherboard of the host device 104.

[0025] The interface 114 of the data storage device 106 may include one or both of a data bus for exchanging data with the host device 104 and a control bus for exchanging commands with the host device 104. The interface 114 may operate according to any suitable protocol. For example, the interface 114 may operate according to one or more of the following protocols: Advanced Technology Attachment (ATA) (e.g., Serial ATA (SATA) and Parallel ATA (PATA)), Fibre Channel Protocol (FCP), Small Computer System Interface (SCSI), Serial Attached SCSI (SAS), PCI and PCIe, Non-Volatile Memory Express (NVMe), OpenCAPI, GenZ, Cache Coherent Interface Accelerator (CCIX), Open Channel SSD (OCSSD), etc. The electrical connection (e.g., data bus, control bus, or both) of the interface 114 is electrically connected to the controller 108, thereby providing an electrical connection between the host device 104 and the controller 108, allowing data to be exchanged between the host device 104 and the controller 108. In some examples, the electrical connection of the interface 114 may also allow the data storage device 106 to receive power from the host device 104. For example, Figure 1 As shown, power supply 111 may receive power from host device 104 via interface 114 .

[0026] NVM 110 may include multiple memory devices or memory cells. NVM 110 may be configured to store and / or retrieve data. For example, a memory cell of NVM 110 may receive data and receive a message from controller 108 indicating that the memory cell stores data. Similarly, a memory cell of NVM 110 may receive a message from controller 108 indicating that the memory cell retrieves data. In some examples, each memory cell in the memory cell may be referred to as a die. In some examples, a single physical chip may include multiple dies (i.e., multiple memory cells). In some examples, each memory cell may be configured to store a relatively large amount of data (e.g., 128MB, 256MB, 512MB, 1GB, 2GB, 4GB, 8GB, 16GB, 32GB, 64GB, 128GB, 256GB, 512GB, 1TB, etc.).

[0027] In some examples, each memory cell of NVM 110 may include any type of nonvolatile memory device, such as a flash memory device, a phase change memory (PCM) device, a resistive random access memory (ReRAM) device, a magnetoresistive random access memory (MRAM) device, a ferroelectric random access memory (F-RAM), a holographic memory device, and any other type of nonvolatile memory device.

[0028] NVM 110 may include multiple flash memory devices or storage cells. NVM flash memory devices may include NAND or NOR-based flash memory devices, and may store data based on the charge contained in the floating gate of the transistor for each flash memory cell. In NVM flash memory devices, the flash memory device may be divided into multiple dies, wherein each of the multiple dies includes multiple blocks, which may be further divided into multiple pages. Each of the multiple blocks within a particular memory device may include multiple NVM cells. The rows of NVM cells may be electrically connected using word lines to define pages in multiple pages. The corresponding cells in each of the multiple pages may be electrically connected to the corresponding bit lines. In addition, the NVM flash memory device may be a 2D or 3D device, and may be a single-level cell (SLC), a multi-level cell (MLC), a three-level cell (TLC), or a four-level cell (QLC). The controller 108 may write data to and read data from the NVM flash memory device at the page level, and erase data from the NVM flash memory device at the block level.

[0029] Data storage device 106 includes power supply 111, which can provide power to one or more components of data storage device 106. When operating in standard mode, power supply 111 can use power provided by an external device (such as host device 104) to power one or more components. For example, power supply 111 can use power received from host device 104 via interface 114 to power one or more components. In some examples, power supply 111 may include one or more power storage components that are configured to provide power to one or more components when operating in shutdown mode, such as when power is no longer received from the external device. In this way, power supply 111 can be used as an onboard backup power source. Some examples of one or more power storage components include, but are not limited to, capacitors, supercapacitors, batteries, etc. In some examples, the power that can be stored by the one or more power storage components

[0030] The amount of power can be a function of the cost and / or size (e.g., area / volume) of one or more power storage components. In other words, as the amount of power stored by one or more power storage components increases, the cost and / or size of the one or more power storage components also increases.

[0031] The data storage device 106 also includes a volatile memory 112, which can be used by the controller 108 to store information. The volatile memory 112 may include one or more volatile memory devices. In some examples, the controller 108 may use the volatile memory 112 as a cache. For example, the controller 108 may store cached information in the volatile memory 112 until the cached information is written to the non-volatile memory 110. Figure 1 As shown, the volatile memory 112 may consume power received from the power supply 111. Examples of the volatile memory 112 include, but are not limited to, random access memory (RAM), dynamic random access memory (DRAM), static RAM (SRAM), and synchronous dynamic RAM (SDRAM (e.g., DDR1, DDR2, DDR3, DDR3L, LPDDR3, DDR4, LPDDR4, etc.)).

[0032] The data storage device 106 includes a controller 108 that can manage one or more operations of the data storage device 106. For example, the controller 108 can manage reading data from the NVM 110 and / or writing data to the NVM 110. In some embodiments, when the data storage device 106 receives a write command from the host device 104, the controller 108 can initiate a data storage command to store data to the NVM 110 and monitor the progress of the data storage command. The controller 108 can determine at least one operating characteristic of the storage system 100 and store the at least one operating characteristic to the NVM 110. In some embodiments, when the data storage device 106 receives a write command from the host device 104, the controller 108 temporarily stores the data associated with the write command in an internal memory or write buffer 116 before sending the data to the NVM 110.

[0033] Figure 2 2 is a schematic block diagram illustrating a database server system 200 according to the disclosed embodiment. The database server system includes one or more host devices 202a-202n, wherein each of the one or more host devices 202a-202n can be Figure 1 The host device 104, the cloud network 204, the network switch 206 and one or more network storage systems 210a-210n. Each of the network storage systems 210a-210n includes one or more data storage devices 212a-212n, wherein each of the one or more data storage devices 212a-212n can be Figure 1 Data storage device 106 or Figure 3 The data storage device 304 is discussed below.

[0034] One or more host devices 202a-202n may be connected to the cloud network 204 via a network data transmission method such as Ethernet, Wi-Fi, etc. The cloud network 204 is connected to a network switch 206 via a network data transmission method such as Ethernet, Wi-Fi, etc. The network switch 206 may parse incoming and outgoing data to relevant locations. The network switch 206 is coupled to one or more network storage systems 210a-210n. Data from one or more host devices 202a-202n is stored in at least one of the one or more data storage devices 212a-212n of the one or more network storage devices 210a-210n.

[0035] For example, the one or more network storage systems may be configured to further parse incoming data to the corresponding one or more data storage devices 212a-212n, and retrieve data stored at the corresponding one or more data storage devices 212a-212n to be sent to the one or more host devices 202a-202n. The one or more host devices 202a-202n may be configured to upload and / or download data via the cloud network 204, wherein the data is uploaded and / or stored to at least one of the one or more data storage devices 212a-212n of the one or more network storage systems 210a-210n. It should be understood that "n" refers to the maximum number of components of the database server system 200. For example, the one or more data storage devices 212a-212n can be about 1 data storage device, about 2 data storage devices, or any number of data storage devices greater than about 2.

[0036] Figure 3 is a schematic block diagram illustrating a storage system 300 of an improved data storage device 304 according to the disclosed embodiments. The storage system 300 may be Figure 1 For example, the data storage device 304 may be implemented as one or more data storage devices 212a-212n of one or more network storage systems 210a-210n, and the host device 302 may be implemented as Figure 2 It should be understood that for the sake of clarity, the data storage device 304 may include one or more host devices 202a-202n. Figure 3 In one embodiment, the data storage device 304 may be an E1.L Enterprise and Data SSD Form Factor (EDSFF).

[0037] The data storage device 304 includes a front end (FE) application specific integrated circuit (ASIC) 306, a first front end module (FM) ASIC 310a, and an nth FM ASIC 310n. In the embodiments described herein, "n" refers to the maximum number of the components of the data storage system 304. For example, the data storage device 304 may include about 10 FM ASICs, where the nth or "n" number of FM ASICs is equal to about 10. The data storage device 304 also includes one or more NVM die 316a-316n, 322a-322n. In addition, the data storage device 304 may include a plurality of FM ASICs (indicated by ovals), where each of the FM ASICs in the plurality of FM ASICs is coupled to a corresponding NVM die in the plurality of NVM die 316a-316n, 322a-322n. It should be understood that although multiple FM ASICs and multiple NVM dies coupled to each of the multiple FM ASICs are described, the data storage device 304 may include a single FM ASIC coupled to a single NVM die or a single FM ASIC coupled to multiple NVM dies. In one embodiment, the NVM is a NAND memory, where each of the multiple NVM dies is a NAND die. In one embodiment, the multiple NVM dies 316a-316n, 322a-322n of the data storage device 304 are bit cost scalable (BiCS) 6 NVM dies. The BiCS 6 NVM die may have improved operating speed and lower power consumption compared to previous versions such as the BiCS 5 NVM die.

[0038] Each of the plurality of FM ASICs 310a-310n includes a plurality of low density parity check (LDPC) engines 312a-312n, 318a-318n and a plurality of flash memory interface modules (FIMs) 314a-314n, 320a-320n. Each of the plurality of FIMs 314a-314n, 320a-320n is coupled to a corresponding NVM die in the plurality of NVM dies 316a-316n, 322a-322n. In one embodiment, each FIM is coupled to a corresponding NVM die. In another embodiment, each FIM is coupled to approximately four corresponding NVM dies. The plurality of LDPC engines 312a-312n, 318a-318n may be configured to generate LDPC codes or parity check data. The LDPC code and parity data may be attached to the corresponding incoming data to be written to the corresponding NVM die in the plurality of NVM dies 316a-316n, 322a-322n. In one embodiment, the FM ASIC includes about 14 LDPC engines. In another embodiment, the FM ASIC includes less than about 54 LDPC engines.

[0039] LDPC codes and parity data can be used to find and repair error bits from reading and writing processes for multiple NVM dies 316a-316n, 322a-322n. In one embodiment, a high failure bit count (FBC) corresponds to an error correction code (ECC) or parity data size of about 10.0%. In another embodiment, a low FBC corresponds to an ECC or parity data size of about 33.3%. When the ECC or parity data size increases from about 10.0% to about 33.3%, the FBC decreases because the data includes a greater ability to find and repair failure bits or error bits. In another embodiment, each NVM die in the multiple NVM dies 316a-316n, 322a-322n includes between about 10.0% and about 33.3% of the ECC or parity data associated with the corresponding stored data. Additionally, each of the plurality of NVM dies 316a-316n, 322a-322n may have a bit error rate (BER) of about 0.2 or less. By including more ECC or parity data with the corresponding data stored in the NVM dies 316a-316n, 322a-322n, the BER may be reduced or improved such that the BER has a value closer to about 0. The following table describes power consumption and read performance improvements by increasing the amount of ECC or parity data to be stored on each of the plurality of NVM dies 316a-316n, 322a-322n.

[0040]

[0041] Table 1

[0042] The values ​​listed in Table 1 are not intended to be limiting, but rather to provide examples of possible implementations. Although the total data storage device capacity when the ECC or parity data size is about 33.3% (i.e., FBC low) is lower than the total data storage device capacity when the ECC or parity data size is about 10.0% (i.e., FBC high), the read performance is increased from about 1.2 GB / s to about 4.8 GB / s, and the power consumption is reduced from about 0.200 Watts (using a parity size of about 10.0%, or a high BER engine) to about 0.120 Watts (using a parity size of about 33.3%, or a low BER engine). Therefore, when the ECC or parity data size is larger, the data storage device 304 can have improved power consumption and read performance.

[0043] FE ASIC 306 includes multiple reduced instruction set computer (RISC) processing cores 308a-308n. In the description herein, for exemplary purposes, RISC processing cores 308a-308n may be referred to as processing cores 308a-308n. Although RISC processing cores are described, in embodiments, other types of processing cores may be utilized, such as CISC or other processor architectures. For example, FE ASIC 306 may include multiple processing cores greater than about 5 processing cores. In another embodiment, the number of processing cores is about 256 processing cores and about 512 processing cores. Each of the multiple processing cores 308a-308n is configured to receive a database instruction from the host 302 and execute the database instruction. The database instruction may include one of a selection instruction, an update instruction, and an insert instruction. In addition to the previously mentioned instructions, the database instruction may also include a delete instruction. Furthermore, when receiving a database instruction from the host 302, the FE ASIC 306 may allocate an appropriate number of processing cores among the plurality of processing cores 308a-308n to complete the requested database instruction.

[0044] Figure 4 4 is a schematic block diagram of a macroblock array 400 of a database data storage device according to the disclosed embodiment, depicting the physical organization of a macroblock across one or more NVM dies. The macroblock array includes FM1 and FM2, where FM1 and FM2 may be Figure 3 At least one of the FM ASICs in the multiple FM ASICs 310a-310n of the embodiment. Each FM may include an even number of FIMs assigned to each FM. For example, 32 FIMs are shown in the current embodiment. FM1 includes multiple FIMs (listed as 00h, 01h, 02h, 03h, 04h, 05h, 06h, 07h, 08h, 09h, 0Ah, 0Bh, 0Ch, 0Dh, 0Eh and 0Fh), and each FIM includes multiple giant blocks (listed as 00h, 20h, 40h, 60h, 80h, A0h, C0h, E0h, 100h, 120h and 140h). Similarly, the first 16 FIMs are assigned to FM1 and the last 16 FIMs are assigned to FM2. FM2 includes a plurality of FIMs (listed as 10h, 11h, 12h, 13h, 14h, 15h, 16h, 17h, 18h, 19h, 1Ah, 1Bh, 1Ch, 1Dh, 1Eh, and 1Fh), each of which includes a plurality of macroblocks (listed as 00h, 20h, 40h, 60h, 80h, A0h, C0h, E0h, 100h, 120h, and 140h). It should be understood that the number of FMs, FIMs, and macroblocks shown is not intended to be limiting, but rather to provide examples of possible implementations.

[0045] Each of the multiple megablocks may have a size of about 384KB for holding table entries or records, and the megablocks may be defined as having different sizes suitable for storing table elements. In addition, a specific amount of megablock space may be used for parity data. For example, for a parity data size of about 33%, the remaining space for data is about 288KB. It should be understood that other parity data sizes are contemplated, such as about 10%, and they are applicable to the embodiments described herein. For FM (such as FM1), each of the multiple megablocks of each FIM in the multiple FIMs is a separate unit of the megablock array. For example, the megablock 00h of FIM 00h may be the first unit of the megablock array of FM1, and the megablock 140h of FIM 0Fh may be the last unit of the megablock array of FM1. The address of the first unit of the megablock array of FM1 may be (00h, 00h), and the address of the last unit of the megablock array of FM1 may be (0Fh, 140h).

[0046] In addition, when programming the megablock array, data (e.g., data recorded in the table) may be sequentially programmed to each megablock of the megablock array. For example, sequential programming may occur on the same megablock of adjacent FIMs of FMs or on the same megablock of different FMs. For example, sequential programming in the same FM may occur on the 00h megablock of the 00h FIM and the 00h megablock of the 01h FIM. In another example, sequential programming on the same megablock of different FMs may occur on the 00h megablock of the 00h FIM of FM1 and the 00h megablock of the 00h FIM of FM2. It should be understood that although the examples described relate to sequential programming within the same data storage device, sequential programming may occur in parallel between two or more data storage devices within a single system or across a computing storage system.

[0047] Records may be programmed into each megablock of up to about 64KB in size. Each record may be an entry of a database table, where a record includes one or more data fields. For example, a record may include a "name" field, a "phone number" field, an "email" field, and a "date of birth" field. Each record may also include a hierarchical structure, where one or more related records may be aggregated into a single record. Each record may be stored in a database table according to a schema structure in one or more megablocks.

[0048] Figure 55 is a schematic block diagram showing an internal flow 500 of a database data storage device according to the disclosed embodiment, depicting the logical organization of megablocks. The internal flow 500 may describe a linked list connecting sequential megablocks of various FIMs, FMs, or data storage devices to each other. In some embodiments, a linked list may allow non-sequential megablocks to be read and accessed sequentially. A linked list is a linear data structure in which each element is an independent object containing a reference to the next object, usually by providing the address (also known as a "pointer") of the next object. An example of a linked list is a singly linked list in which each element points to the next element. For example, each megablock may be a separate element and each element includes data and a reference. The reference points to the next megablock or element. The entry point into the linked list is called the head and the last element of the linked list is called empty. For example, three megablocks A, B, and C are written to a database table. The head may be megablock A, where A includes a reference to megablock B, and megablock B includes a reference to megablock C. Because megablock C is the last megablock in the singly linked list, the reference of megablock C points to empty.

[0049] It should be understood that the embodiments described herein are not limited to singly linked lists, and other embodiments such as doubly linked lists, multiply linked lists, circular linked lists, arrays, etc. are also contemplated and applicable to the embodiments described herein.

[0050] Internal stream 500 may be part of a flash translation layer (FTL) to manage and track data of a database data storage device. Internal stream 500 includes: a table list 502 including a plurality of tables (a table 504 of the plurality of tables shown for exemplary purposes), a jumbo block list 506 including a plurality of jumbo blocks (JBs) 508a-508f, and a gap list 510 including a plurality of gaps 512a-512e. The illustrated number of elements of table list 502, jumbo block list 506, and gap list 510 is not intended to be limiting, but to provide examples of possible implementations. In one embodiment, the maximum number of tables in table list 502 may be approximately 256 tables. Table list 502 may be stored in a FM (such as Figure 3 The FM ASICs 310a-310n of the embodiment of the present invention are configured to sequentially read the data by removing any gaps in the data. The sequential read may be accomplished using a linked list. The gap list 510 includes any deleted data on the plurality of megablocks and bad blocks in the plurality of megablocks, where the bad blocks may have an unacceptable bit error rate (as an example).

[0051] In addition, the megablock list 506 may have a first portion, a second portion corresponding to a temporary memory buffer megablock portion 514, a third portion corresponding to a last memory buffer megablock portion 516, and a fourth portion corresponding to empty megablock portions 518a-n, wherein each portion of the empty megablock portions 518a-n corresponds to a FIM in a plurality of FIMs and wherein "n" refers to the number of FIMs. The last memory buffer megablock portion 516 includes a first portion corresponding to a temporary memory buffer megablock portion 514, a second ... an empty megablock portion 518a-n. Figure 1 The temporary memory buffer macroblock portion 514 includes macroblocks that are copied from the NVM to be modified or overwritten to another portion of the NVM due to data storage device operations such as garbage collection. The final memory buffer macroblock portion 516 and the temporary memory buffer macroblock portion 514 may be a data storage device such as Figure 1 The internal memory buffer may be stored in a random access memory (RAM), such as a static random access memory (SRAM) or a dynamic random access memory (DRAM).

[0052] Empty megablock sections 518a-n include megablocks that have not yet been written or previously erased for each FIM. Empty megablock sections 518a-n may include approximately 32 entries per FIM. For example, a first FIM may have a first empty megablock section 518a that includes approximately 32 entries or approximately 32 empty megablocks, limited only by the size of the NVM die coupled to the FIM. The values ​​listed previously are not intended to be limiting, but rather to provide examples of possible implementations. For example, Figure 4 Each FIM described in may include and may have approximately 32 empty macroblocks.

[0053] However, when programming to an empty giant block, a controller (such as Figure 1Controller 108 of the embodiment) and / or processor (such as processing core 308a-308n) can be configured to occupy, for example, by providing pointers to empty giant blocks that meet or maintain sequential read parallelism in the FIM. In an embodiment, the empty giant block pointer of the first FIM can point to the next available giant block (such as the first empty giant block in the first empty giant block part 518a) for programming to the first FIM. For example, the first pointer points to the first empty erased giant block from the last programming entry of the relevant FIM in order to keep the sequential read order of the FIM intact, thereby realizing the read parallelism across the FIM. In an embodiment, the empty block pointer will reference the next available giant block in a first-in-first-out (FIFO) manner to maintain the read parallelism across the FIM. In another embodiment, the first empty erased giant block can be the giant block with the longest period since erasure or can be a giant block that has not yet been programmed. Whenever the first empty giant block of a part of the empty giant block part 518a-518n is programmed, the first pointer is updated to point to the next empty giant block of the relevant part.

[0054] When a giant block is erased during data storage device operation (such as garbage collection when the data associated with gaps 512a-512b exceeds about 20% of the total giant blocks), the erased giant block can be reallocated to the relevant empty giant block portion of the empty giant block portion 518a-n according to the FIM and referenced by the empty giant block pointer in the FIFO manner indicated above to maintain read parallelism across multiple fims and increase giant block endurance. Although in the described embodiment, the empty giant blocks are provided to the FIM in a FIFO manner from the empty giant block queue of the FIM, those skilled in the art may provide the empty giant blocks in a different order.

[0055] When gap list 510 is empty, such as when there are no bad blocks or deleted data, the first entry of gap list 510 includes a linked list of empty gap entries. However, when gap list 510 begins to fill, such as with first gap 512a and second gap 512b, the linked list may link first gap 512a to second gap 512b. Furthermore, if two gaps are adjacent to each other, the two gaps may be merged into one gap that includes data from both gaps.

[0056] The controller and / or processor may be configured to write a first record of the first table 504 to a first position on a first FIM in a plurality of FIMs, and to write a second record of the table 504 to a second FIM in a plurality of FIMs. The controller and / or processor may be configured to update a first entry such as a first JB 508a through a first position and to update a second entry such as a second JB 508b through a second position. The first entry may include a first reference to the second entry, wherein the first reference points to the position of the second entry. The table 504 in the table list 502 is updated with reference to the first position of the megablock list 506. The first position and the second position may be sequential block addresses of the first FIM and the second FIM, so that reading the first record and the second record may be performed in parallel.

[0057] When receiving the third record at the last memory buffer giant block part 516, the controller and / or processor are configured to write the third record to the third position on the third FIM in the multiple FIMs, wherein the third position is a sequential block address relative to the second position. In one embodiment, the third JB 508c can be provided from the empty giant block part 518. In another embodiment, the third JB 508c may have been written previously. The third entry and sub-items such as the third JB508c are updated by the position of the third record, and the second entry and sub-items are updated with reference to the third entry and sub-items. In one embodiment, reference (such as the first reference, the second reference and the third reference) can be stored in the relevant FIM of multiple FIMs.

[0058] When the controller and / or processor receives that the data at one of the first position and the second position has been modified, so that the indication of the gap in the data is generated, the controller and / or processor is configured to store the first gap reference corresponding to the gap in the data. For example, when the first JB 508a data is modified, the first gap 512a can be generated. When the first JB 508 is modified for the second time, the second gap 512b can be generated. The gap list 510 keeps track of the gap. The first gap reference can be attached to the first JB 508a, wherein the first gap reference points to the first gap 512a. Similarly, the first gap 512a includes a second gap reference pointing to the second gap 512b. When reading the first record, the controller and / or processor can read the first record without citing the first gap 512a and / or the second gap 512b, so that the reading of the first record can be sequential and uninterrupted. Due to the sequential writing of the second FIM and the third FIM, the first record can be read in parallel with the second record and the third record.

[0059] When the controller and / or processor receives a request (such as a read request) for the first reference and the second reference, the data associated with the first reference and the second reference stored in the first JB 508a and the second JB 508b is transmitted to the controller and / or processor. In one embodiment, the data provided to the controller and / or processor does not include data associated with the first gap 512a and / or the second gap 512b. When the data associated with the gap 512a-512b exceeds a threshold (such as approximately 20% of the total capacity of a megablock or megablock array), the database storage device may be configured to perform a data storage device operation, such as garbage collection. For example, when garbage collection occurs on the first JB 508a, the relevant data may be transmitted to the temporary memory buffer megablock portion 514, such as to JB 508e, while the data associated with the first gap 512a and the second gap 512 remains in the first JB 508a.

[0060] The controller and / or processor erases the first JB 508a, and the first JB 508a is moved to the empty megablock portion 518. The associated data transferred to the JB 508e is then delivered to the megablock list 506 in the fourth JB 508d. When the data associated with the fourth JB 508d is ready to be programmed to the associated location in the NVM, the data or record associated with the fourth JB 508d is moved to the JB 508f of the last memory buffer megablock 516. Whenever data or records are moved or modified, the associated references and lists 502, 506, 510 are updated.

[0061] In another example, the fourth record is programmed to the fourth JB 508d. Before the fourth record is programmed to the fourth JB, the fourth record data is written to the giant block of the temporary memory buffer giant block portion 514, such as written to JB 508e. The third record is programmed by a link or a third reference to the fourth record. After filling JB 508e, the fourth record is programmed to the fourth JB 508d. When the fourth JB 508d is erased, such as due to garbage collection or other related data management operations, the fourth JB 508d is reoccupied to the relevant part of the empty giant block portion 518a-n. For example, the fourth JB 508d is associated with the first FIM. When the fourth JB 508d is erased, the fourth JB 508d moves to the empty giant block portion corresponding to the first FIM (such as the first empty giant block portion 518a), wherein the fourth JB 508d is the last giant block of the giant block list in the first empty giant block portion 518a. When writing the return megablock list 506 for the first FIM, the next record is programmed to the next empty megablock in the first empty megablock portion 518a corresponding to the first FIM, such as to maintain the sequential order of the FIMs, thereby maintaining the ability to read data from the FIMs in parallel. The pointer of the third record (i.e., the last programmed record of the associated FIM) may point to the first empty megablock of the first empty megablock portion 518a to indicate the next megablock to be programmed.

[0062] Figure 6 is a flow chart illustrating a method 600 of writing records to a megablock array and modifying records of a megablock array according to the disclosed embodiments. Figure 5 Aspects of the internal flow 500 of may be similar to the method 600. At block 602, table data (such as table 504) is written to a table list (such as table list 602), where the table data is updated with reference to a megablock list (such as megablock list 506). The table data may include a plurality of records. At block 604, the controller and / or processor is configured to determine whether there are any additional records to be added or programmed to the NVM.

[0063] If there are records to be added at block 604, then at block 606 the controller and / or processor is configured to select an empty megablock list (such as Figure 5 The next empty megablock for the next record (i.e., the next record to be added) is retrieved by using the empty megablock list 518 of the previous record. At block 608, the next empty megablock associated with the next record is linked to the previous record megablock. When the next empty megablock is linked to the previous record megablock, a reference is written to the previous record megablock, where the reference points to the next empty megablock.

[0064] At block 610, the next empty megablock is moved to the last memory buffer, such as Figure 5The last memory buffer megablock portion 516 of the memory buffer is recorded. The recorded data is programmed to the next empty megablock. At block 612, the next empty megablock is programmed to the relevant location in the NVM by the FIM in the plurality of FIMs. After completing the steps at block 612, the method 600 returns to block 604.

[0065] If there are no more records to add at block 604, then at block 614, the controller and / or processor is configured to determine if there are any records to modify. It should be appreciated that in some embodiments, the method 600 may alternatively transition from block 602 to block 614 before transitioning to block 604. If there are no more records to modify at block 614, then at block 616, the method 600 is complete.

[0066] However, if there is a record to be modified at box 614, the controller and / or processor may generate a command to move the record data and a reference to a temporary memory buffer (such as temporary memory buffer macroblock portion 514) at box 618. The FM ASIC and / or the associated FIM may be configured to execute the command generated by the controller and / or processor. At box 620, the record is updated with the relevant information. At box 622, such as when data is deleted or modified, the controller and / or processor determines whether a gap has been created in the macroblock. If no gap is created in the modified macroblock, the controller and / or processor is configured to write the updated record data to the macroblock on the NVM at box 624, where the relevant position is based on the FIM position. In addition, the reference is updated to reflect the new position of the macroblock programmed at box 624. After completing the steps at box 624, the method 600 is completed at box 616.

[0067] However, if a gap is generated in the megablock at block 622, then the gap list (such as Figure 5 At block 628, the controller and / or processor determines whether the gap in the table is greater than or equal to a threshold value of the table memory size. In one embodiment, the threshold value may be approximately 20%. If the gap is greater than or equal to the threshold value at block 628, then at block 630, a garbage collection operation is performed. For example, when the first gap reference and at least one additional gap reference are greater than or equal to approximately 20% of the table memory size, the controller and / or processor may generate a garbage collection command to reduce the gap size in the table memory. The method 600 continues to block 624. After completing the steps at block 624, the method 600 is completed at block 616.

[0068] If the gap is not greater than or equal to the threshold value of the table memory size at box 628, the controller and / or processor determines at box 632 whether the record has a pre-existing gap. If there is no pre-existing gap at box 632, the controller and / or processor updates the relevant record with a reference to the gap at box 634. However, if the record has a pre-existing gap at box 632, the pre-existing gap is updated with a reference to the gap at box 636. In some embodiments, when the gap is adjacent to the pre-existing gap, the gap and the pre-existing gap may be combined so that a single gap exists in the table. After the steps at boxes 634 and 636, the method 600 continues to the step at box 624, where the method 600 is completed at box 616.

[0069] By storing records of a table across multiple FIMs of a database data storage device and linking non-sequential chunks to each other using a linked list, a set of records may be read in parallel by reading from multiple FIMs simultaneously, thereby improving the operation of the database data storage device.

[0070] In one embodiment, a data storage device is disclosed, the data storage device comprising: a front end (FE); a front end module (FM), the front end module comprising a plurality of flash interface modules (FIMs), a table list and a megablock list, the FM being coupled to the FE; and a controller, the controller comprising a processor, the processor being configured to perform a method for database record management. In an embodiment, the method comprises: writing a first record of a table to a first position on a first FIM of the plurality of FIMs; writing a second record of the table to a second position of a second FIM of the plurality of FIMs; updating a first entry of the megablock list through the first position and updating a second entry of the megablock list through the second position; and updating the table list through a reference to the first position of the megablock list.

[0071] The first entry includes a reference to the second entry. The FM also includes a last memory buffer. The method also includes: receiving a third record of the table to the last memory buffer; writing the third record to a third position on a third FIM of the plurality of FIMs; updating a third entry of the megablock list by the third position; and updating the second entry to be coupled to the third entry. The FM also includes an available megablock list, which includes at least one available position of a FIM of the plurality of FIMs. The method also includes receiving the third position on the third FIM from the available megablock list. The first position and the second position include sequential block addresses of the first FIM and the second FIM. The method also includes reading the first record and the second record in parallel. The FM also includes an available block list, which includes a list of available blocks for each of the plurality of FIMs. The method also includes providing a third position of the third FIM for receiving the third record of the table. The third position includes a sequential block reference on the third FIM relative to the second position of the second FIM.

[0072] In another embodiment, a controller for a data storage device is disclosed, the controller comprising: an I / O for one or more memory devices; and a processor configured to perform a method for database record management. In an embodiment, the method comprises: storing a first reference to a first memory location of a first flash interface module (FIM); storing a second reference to a second memory location of a second FIM, wherein the first reference is coupled to the second reference; receiving an indication that data at one of the first memory location and the second memory location has been modified, thereby generating a gap in the data; and storing a first gap reference to the gap in the data.

[0073] The first reference is updated to include the first gap reference. The method also includes receiving a request for the first reference and the second reference. The method also includes providing data from the first memory location, which is not referenced by the first gap reference. The controller also includes multiple references to multiple memory locations of multiple FIMs. The first reference, the second reference, and the multiple references are coupled as a linked list. The at least one additional gap reference is coupled to one of the multiple references. The method also includes performing garbage collection on the first gap reference and the at least one additional gap reference. The garbage collection is performed when the first gap reference and the at least one additional gap reference reference at least 20% of the memory referenced by the first reference, the second reference, and the multiple references.

[0074] In another embodiment, a system for storing data is disclosed, the system comprising: a front end (FE) device; a front end module (FM) device, the front end module device comprising a table list and an available block list and a data block list, the available block list comprising a plurality of references to a plurality of locations on one or more flash interface modules (FIMs); and a controller device, the controller device being configured to perform a method for database record management. The method comprises: receiving a table comprising a record; updating the table list to reference the table; receiving a plurality of records from the table; updating the FIM with data from a record in the plurality of records; and updating the data block list to include a reference to a memory location on the FIM comprising the data from the record.

[0075] The system also includes updating an additional FIM with data from an additional record in the plurality of records so that reading data from the FIM and the additional FIM will cause the data from the record and the data from the additional record to be read in parallel. The method also includes providing a reference to a last buffer, the last buffer comprising a reference memory location in a random access memory (RAM).

[0076] While the foregoing is directed to embodiments of the present disclosure, other and further embodiments of the present disclosure may be envisaged without departing from the basic scope of the present disclosure, and the scope of the present disclosure is determined by the appended claims.

Claims

1. A data storage device comprising: The front end is FE; A front-end module, namely FM, comprising a plurality of flash memory interface modules, namely FIMs, a table list and a megablock list, the FM being coupled to the FE; and A controller comprising a processor configured to execute a method for database record management, the method comprising: writing a first record of a table to a first location on a first FIM of the plurality of FIMs; writing a second record of the table to a second location of a second FIM of the plurality of FIMs, wherein the second record includes one or more gaps due to data modification, and wherein the records of the table are stored across the plurality of FIMs so that a group of records can be read in parallel; updating a first entry of the megablock list through the first location and updating a second entry of the megablock list through the second location; and The table list is updated with a reference to the first position of the megablock list. 2 . The data storage device of claim 1 , wherein the first entry includes a reference to the second entry.

3. The data storage device of claim 2, wherein the FM further comprises a final memory buffer, the method further comprising: receiving a third record of the table into the final memory buffer; writing the third record to a third location on a third FIM of the plurality of FIMs; updating a third entry of the megablock list with the third position; and The second entry is updated to be coupled to the third entry.

4. The data storage device of claim 3, wherein the FM further comprises an available megablock list comprising at least one available position of a FIM in the plurality of FIMs, the method further comprising receiving the third position on the third FIM from the available megablock list.

5. The data storage device of claim 1, wherein the first location and the second location comprise sequential block addresses of the first FIM and the second FIM.

6. The data storage device of claim 5, wherein the method further comprises reading the first record and the second record in parallel.

7. The data storage device of claim 6, wherein the FM further comprises an available block list comprising a list of available blocks for each of the plurality of FIMs.

8. The data storage device of claim 7, wherein the method further comprises providing a third position of a third FIM for receiving a third record of the table, wherein the third position comprises a sequential block reference on the third FIM relative to the second position of the second FIM.

9. A controller for a data storage device, comprising: I / O to one or more storage devices; and A processor configured to execute a method for database record management, the method comprising: storing a first reference to a first memory location of a first flash interface module, namely a first FIM; storing a second reference to a second memory location of a second FIM, wherein the first reference is coupled to the second reference and wherein the coupled first and second references allow for parallel reading of memory locations of the first and second FIMs; receiving an indication that data at one of the first memory location or the second memory location has been modified, thereby creating a gap in the data; and A first gap reference to a gap in the data is stored.

10. The controller of claim 9, wherein the first reference is updated to include the first gap reference.

11. The controller of claim 10, wherein the method further comprises receiving a request for the first reference and the second reference.

12. The controller of claim 11, wherein the method further comprises providing data from the first memory location, the first memory location not referenced by the first gap reference.

13. The controller of claim 9, further comprising a plurality of references to a plurality of memory locations of a plurality of FIMs.

14. The controller of claim 13, wherein the first reference, the second reference, and the plurality of references are coupled as a linked list.

15. The controller of claim 14, wherein at least one additional gap reference is coupled to one of the plurality of references.

16. The controller of claim 15, wherein the method further comprises performing garbage collection on the first gap reference and the at least one additional gap reference.

17. A controller for a data storage device, comprising: I / O to one or more storage devices; A processor configured to execute a method for database record management, the method comprising: storing a first reference to a first memory location of a first flash interface module (i.e., a first FIM); storing a second reference to a second memory location of a second FIM, wherein the first reference is coupled to the second reference; receiving an indication that data at one of the first memory location and the second memory location has been modified, thereby creating a gap in the data; storing a first gap reference to a gap in the data; and performing garbage collection on the first gap reference and at least one additional gap reference, wherein the garbage collection is performed when the first gap reference and the at least one additional gap reference reference at least 20% of the memory referenced by the first reference, the second reference, and the plurality of references; and A plurality of references to a plurality of memory locations of a plurality of FIMs, wherein the first reference, the second reference, and the plurality of references are coupled as a linked list, and wherein the at least one additional gap reference is coupled to one of the plurality of references.

18. A system for storing data, comprising: The front-end device is the FE device; a front-end module device, i.e., a FM device, comprising a table list and an available block list and a data block list, wherein the available block list comprises a plurality of references to a plurality of locations on one or more flash interface modules, i.e., FIMs, wherein the available block list allows for parallel reading of the plurality of locations on the one or more FIMs; and A controller device, the controller device being configured to perform a method for database record management, the method comprising: receiving a table including records; updating the table list to reference the table; receiving a plurality of records from the table; updating a first FIM with data from a first record in the plurality of records; updating a second FIM with data from a second record of the plurality of records, wherein the second record contains a gap due to a data modification; and The data block list is updated to include references to memory locations on the first FIM and the second FIM that include the data from the first record and the second record.

19. The system of claim 18, further comprising: An additional FIM is updated with data from an additional record of the plurality of records such that reading data from the first FIM and the second FIM and the additional FIM will result in parallel reading of the data from the first and second records and data from the additional record.

20. The system of claim 18, wherein the method further comprises providing a reference to a last buffer, the last buffer comprising a reference memory location in a random access memory (RAM).