Database and Solid State Disk (SSD) Controllers

By applying hash functions and binary sequences of slot locators in the SSD controller, the problem of low access efficiency of key-value pairs stored in SSDs is solved, and efficient key-value pair management and conflict resolution are achieved, suitable for NAND Flash memory device.

CN110196784BActive Publication Date: 2024-09-06EAGLE CREEK INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811590705.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-10-11
Filing Date
2018-12-25
Publication Date
2024-09-06
Estimated Expiration
2038-12-25

AI Technical Summary

Technical Problem

Existing technologies are difficult to efficiently access and manage key-value pairs stored in solid-state drives (SSDs), especially when dealing with conflicts and mapping keys to physical addresses.

Method used

Calculate logical and physical addresses by applying a hash function in the SSD controller to determine the bucket number and slot locator, use the binary sequence of the slot locator to resolve conflicts, and perform key-value pairing via a tree structure or permutation function Mapping and retrieval.

Benefits of technology

It achieves efficient key-value pair access and management, reduces the conflict rate, improves storage and retrieval efficiency, and adapts to the characteristics of NAND flash memory devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110196784B_ABST
    Figure CN110196784B_ABST
Patent Text Reader

Abstract

A system, method, and non-volatile computer-readable medium for accessing key-value pairs stored in a solid-state drive (SSD) memory may be provided, the method may include: calculating a first bucket identifier and a first inter-bucket value based on an input key by an SSD memory controller; determining a block cluster storing the key-value pair based on the first bucket identifier, the first inter-bucket value, and first metadata of a first data structure; calculating a second bucket identifier and a second inter-bucket value based on the input key; determining key-value pair retrieval information based on the second bucket identifier, the second inter-bucket value, and second metadata of the second data structure; wherein the second data structure is assigned to the block cluster; and retrieving at least the value of the key-value pair based on the key-value pair retrieval information.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references

[0002] This application claims priority to U.S. Provisional Patent Serial No. 62 / 610,244 filed on December 25, 2017, U.S. Provisional Patent Serial No. 62 / 732,576 filed on September 18, 2018, and U.S. Provisional Patent Serial No. 62 / 744,264 filed on October 11, 2018, all of which are incorporated herein by reference. Technical Field

[0003] The present invention relates to a database and a solid state disk (SSD) controller. Background Art

[0004] There is an increasing need to provide efficient ways for controlling SSDs. Summary of the invention

[0005] A method for accessing a key-value pair stored in a solid-state drive (SSD) memory may be provided, the method may include receiving an input value by an SSD controller; applying a first hash function on the input value to provide a first hash result; determining a bucket number and a slot locator based on the first hash result; determining a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; accessing the key-value pair using the physical address of the key-value pair; wherein the slot locator may be a binary sequence that may indicate multiple conflicting keys that share the first hash result value.

[0006] A method for accessing a key-value pair stored in a solid-state drive (SSD) memory may be provided, the method may include receiving an input value by an SSD controller; converting the input value into an intermediate value; applying a first hash function on the input value to provide a first hash result; determining a bucket number and a slot locator based on the first hash result; determining a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; accessing the key-value pair using the physical address of the key-value pair; wherein the slot locator may be a binary sequence, which may indicate multiple conflicting keys that share the first hash result value.

[0007] A method for accessing a key-value pair stored in a solid-state drive (SSD) memory may be provided, the method may include receiving an input value by an SSD controller; applying a first hash function on the input value to provide a first hash result; determining a bucket number and a slot locator based on the first hash result; determining a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; accessing the key-value pair using the physical address of the key-value pair; and wherein determining the physical address may include (a) counting the number of zero bits based on the most significant bit of the slot locator to find the corresponding logical slot, the number of zero bits being equal to the value of the logical address; (b) determining a plurality of conflicting keys in the logical slot as the number of one bit following a particular zero bit corresponding to Lslot; and (c) setting an identifier of a physical slot storing the key-value pair to a plurality of set bits preceding the particular bit.

[0008] A method for accessing a key-value pair stored in a solid-state drive (SSD) memory may be provided, the method may include receiving an input value by an SSD controller; applying a first hash function on the input value to provide a first hash result; determining a bucket number and a slot locator based on the first hash result; determining a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; accessing the key-value pair using the physical address of the key-value pair; wherein determining the physical address of the key-value pair may include applying a permutation of the order of providing the physical addresses of the key-value pair, wherein the permutation maps different keys to different values.

[0009] The method may include receiving a new key that may be associated with a new conflicting logical slot and recalculating the arrangement to provide a new arrangement that maps the new key and the current key to different values.

[0010] A method for accessing a key-value pair stored in a solid-state drive (SSD) memory may be provided, the method may include receiving an input value by an SSD controller; applying a first hash function on the input value to provide a first hash result; determining a bucket number and a slot locator based on the first hash result; determining a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; accessing the key-value pair using the physical address of the key-value pair; wherein determining the physical address may include scanning a tree of keys mapped to the logical slots, wherein a node of the tree may indicate an index having a key that distinguishes one key from another key.

[0011] A method for accessing a key-value pair stored in a solid-state drive (SSD) memory may be provided, the method may include receiving an input value by an SSD controller; applying a first hash function on the input value to provide a first hash result; determining whether the key-value pair can be associated with metadata stored in a main data structure or an outcast data structure based on the first hash result; wherein, when it is determined that the key-value pair can be associated with the main data structure, determining a bucket number and a slot locator; determining a logical address of the key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; and accessing the key-value pair using the physical address of the key-value pair.

[0012] A non-volatile computer-readable medium may be provided that stores instructions for performing the following: receiving an input value by a solid-state drive controller; applying a first hash function on the input value to provide a first hash result; determining a bucket number and a slot locator based on the first hash result; determining a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; accessing the key-value pair using the physical address of the key-value pair; wherein the slot locator may be a binary sequence that may indicate multiple conflicting keys that share the first hash result value.

[0013] A non-volatile computer-readable medium may be provided that stores instructions for performing the following: receiving an input value by an SSD controller; applying a first hash function on the input value to provide a first hash result; determining a bucket number and a slot locator based on the first hash result; determining a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; accessing the key-value pair using the physical address of the key-value pair; and wherein determining the physical address may include (a) counting the number of zero bits based on the most significant bit of the slot locator to find the corresponding logical slot, the number of zero bits being equal to the value of the logical address; (b) determining a plurality of conflicting keys in the logical slot as the number of one bit that follows a particular zero bit and corresponds to Lslot; and (c) setting an identifier of a physical slot storing the key-value pair to a plurality of set bits preceding a particular bit.

[0014] A non-volatile computer-readable medium may be provided that stores instructions for performing the following: receiving an input value by a solid-state drive controller; applying a first hash function on the input value to provide a first hash result; determining a bucket number and a slot locator based on the first hash result; determining a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; accessing the key-value pair using the physical address of the key-value pair; wherein determining the physical address may include applying a permutation of the order of providing the physical addresses of the key-value pairs, wherein the permutation maps different keys to different values.

[0015] A non-transitory computer readable medium storing instructions for receiving a new key that may be associated with a new conflicting logical slot and recalculating the arrangement to provide a new arrangement that maps the new key and the current key to different values ​​may be provided.

[0016] A non-volatile computer-readable medium may be provided that stores instructions for performing the following: receiving an input value by a solid-state drive controller; applying a first hash function on the input value to provide a first hash result; determining a bucket number and a slot locator based on the first hash result; determining a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; accessing the key-value pair using the physical address of the key-value pair; wherein determining the physical address may include scanning a tree of keys mapped to logical slots, wherein a node of the tree may indicate an index having a key that distinguishes one key from another key.

[0017] A non-transitory computer-readable medium may be provided that stores instructions for performing the following: receiving an input value by an SSD controller; applying a first hash function on the input value to provide a first hash result; determining whether a key-value pair can be associated with metadata stored in a main data structure or an outbound data structure based on the first hash result; wherein, when it is determined that the key-value pair can be associated with the main data structure, determining a bucket number and a slot locator; determining a logical address of the key-value pair associated with a logical slot identified by the bucket number and the slot locator; determining a physical address of the key-value pair based on the slot locator; and accessing the key-value pair using the physical address of the key-value pair.

[0018] A system for accessing key-value pairs stored in a solid-state drive (SSD) memory may be provided, the system may include an SSD controller that may be configured to receive an input value; apply a first hash function on the input value to provide a first hash result; determine a bucket number and a slot locator based on the first hash result; determine a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determine a physical address of the key-value pair based on the slot locator; and access the key-value pair using the physical address of the key-value pair; wherein the slot locator may be a binary sequence that may indicate multiple conflicting keys that share the first hash result value.

[0019] A system for accessing a key-value pair stored in a solid-state drive (SSD) memory may be provided, the system may include an SSD controller that may be configured to receive an input value; apply a first hash function on the input value to provide a first hash result; determine a bucket number and a slot locator based on the first hash result; determine a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determine a physical address of the key-value pair based on the slot locator; access the key-value pair using the physical address of the key-value pair; and wherein determining the physical address may include (a) counting the number of zero bits based on the most significant bit of the slot locator to find the corresponding logical slot, the number of zero bits being equal to the value of the logical address; (b) determining a plurality of conflicting keys in the logical slot as the number of one bit following a particular zero bit corresponding to Lslot; and (c) setting an identifier of a physical slot storing the key-value pair to a plurality of set bits preceding a particular bit.

[0020] A system for accessing key-value pairs stored in a solid-state drive (SSD) memory may be provided, the system may include an SSD controller that may be configured to receive an input value; apply a first hash function on the input value to provide a first hash result; determine a bucket number and a slot locator based on the first hash result; determine a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determine a physical address of the key-value pair based on the slot locator; access the key-value pair using the physical address of the key-value pair; wherein determining the physical address of the key-value pair may include applying a permutation of the order of providing the physical addresses of the key-value pair, wherein the permutation maps different keys to different values.

[0021] The SSD controller may be configured to receive a new key that may be associated with a new conflicting logical slot and recalculate the arrangement to provide a new arrangement that maps the new key and the current key to different values.

[0022] A system for accessing key-value pairs stored in a solid-state drive (SSD) memory may be provided, the system may include an SSD controller that may be configured to receive an input value; apply a first hash function on the input value to provide a first hash result; determine a bucket number and a slot locator based on the first hash result; determine a logical address of a key-value pair associated with a logical slot identified by the bucket number and the slot locator; determine a physical address of the key-value pair based on the slot locator; access the key-value pair using the physical address of the key-value pair; wherein determining the physical address may include scanning a tree of keys mapped to the logical slots, wherein a node of the tree may indicate an index having a key that distinguishes one key from another key.

[0023] A system for accessing key-value pairs stored in a solid-state drive (SSD) memory may be provided, the system may include an SSD controller that may be configured to receive an input value; apply a first hash function on the input value to provide a first hash result; determine whether the key-value pair can be associated with metadata stored in a main data structure or an outbound data structure based on the first hash result; wherein, when it is determined that the key-value pair can be associated with the main data structure, determine a bucket number and a slot locator; determine a logical address of the key-value pair associated with a logical slot identified by the bucket number and the slot locator; determine a physical address of the key-value pair based on the slot locator; and access the key-value pair using the physical address of the key-value pair.

[0024] A method for accessing a key-value pair stored in a solid-state drive (SSD) memory may be provided, the method may include calculating, by an SSD memory controller, a first bucket identifier and a first inter-bucket value based on an input key; determining a block cluster storing the key-value pair based on the first bucket identifier, the first inter-bucket value, and metadata of a data structure selected from a first data structure and a first outflow data structure; calculating a second bucket identifier and a second inter-bucket value based on the input key; determining key-value pair retrieval information based on the second bucket identifier, the second inter-bucket value, and metadata of a data structure selected from a second data structure and a second outflow data structure; wherein the second data structure and the second outflow data structure are assigned to the block cluster; and retrieving at least a value of the key-value pair based on the key-value pair retrieval information. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The subject matter regarded as the invention which is to be protected is particularly pointed out and expressly claimed in the concluding portion of the specification. However, the invention both as to construction and method of operation, together with objects, features, and advantages thereof, may be best understood by reference to the following detailed description when read in conjunction with the accompanying drawings, in which:

[0026] Figure 1 is an example of a simplified insertion process;

[0027] Figure 2is an example of a simplified sorted insertion process;

[0028] Figure 3 is an example of a simplified removal process;

[0029] Figure 4 is an example of a dynamic segment with contiguous logical slots;

[0030] Figure 5 is an example of dynamic segmentation with cumulative segmentation;

[0031] Figure 6 is an example of static segmentation in a dynamic bucket;

[0032] Figure 7 is an example of a disjunct tree with a prefix encoded in each node;

[0033] Figure 8 is an example of a disjunction tree encoded with related prefixes;

[0034] Fig.9A is an example of a primary data structure;

[0035] Fig. 9B is an example of a secondary data structure;

[0036] Fig. 9C is an example of a secondary data structure;

[0037] Fig.10 is an example of a bit sequence;

[0038] Fig.11 is an example of a tree;

[0039] Fig.12 is an example of extension;

[0040] Fig.13 is an example of a method;

[0041] Fig.14 is an example of a method;

[0042] Fig.15 is an example of a method; and

[0043] Fig.16 is an example of a method. DETAILED DESCRIPTION

[0044] In the following detailed description, many specific details are set forth in order to provide a thorough understanding of the present invention. However, it should be understood by those skilled in the art that the present invention can be practiced without these specific details. In other cases, in order to avoid obscuring the present invention, well-known methods, processes and components are not described in detail.

[0045] It should be understood that, for simplicity and clarity of illustration, the elements shown in the drawings are not necessarily drawn to scale. For example, for clarity, the size of some elements may be exaggerated relative to other elements. In addition, reference numerals may be repeated in the drawings to indicate corresponding or similar elements where deemed appropriate.

[0046] Because the illustrated embodiments of the present invention can in most cases be implemented using electronic components and circuits known to those skilled in the art, no detail will be explained to a greater extent than deemed necessary as described above in order to understand and grasp the basic concepts of the present invention and to avoid obscuring or distracting from the teachings of the present invention.

[0047] Any reference to a method in the specification should be applied mutatis mutandis to a system capable of performing the method and should be applied mutatis mutandis to a non-transitory computer-readable medium storing instructions that, once executed by a computer, result in the performance of the method.

[0048] Any reference in the specification to a system shall apply mutatis mutandis to a method executable by the system and shall apply mutatis mutandis to a non-transitory computer-readable medium storing instructions that, once executed by a computer, result in the performance of the method.

[0049] the term

[0050] a.MD-Metadata describing the internal state of the system, control / system information. In SSD controllers, this usually involves address translation related information, block related data, and other information used for system state recovery.

[0051] bP / E (Program / Erase) Cycles, Cycle Count (CC), Erase Count - the number of times a block is erased (and possibly rewritten).

[0052] c. SLC - a non-volatile memory cell that stores a single logical bit value.

[0053] d. MLC - a non-volatile memory cell that stores multiple logical bit values.

[0054] e. Program - write data to flash memory operation (page granularity).

[0055] f. Page - A single programmable unit of NAND FLASH memory that holds user data (e.g., 16K bytes) and redundant information. Pages are programmed sequentially (unless SLC mode is used).

[0056] g. First data structure - a data structure storing information for selecting a second data structure associated with a block cluster. The first data structure may also be referred to as a scatter hash table or a master hash table. The first data structure may include a plurality of first buckets.

[0057] h. First metadata—metadata of the first data structure.

[0058] i. Second data structure - a data structure storing retrieval information about a key-value pair. The first data structure may include a plurality of second buckets.

[0059] j. Second Metadata—Metadata of the second data structure.

[0060] k. Logical slots - Each bucket includes multiple logical slots (also referred to as Lslots or L-slots). A first logical slot (of the first data structure) may include one or more block cluster identifiers. One or more block cluster identifiers may be referred to as physical addresses or physical slots. A second logical slot (of the second data structure) may include retrieval information for one or more key-value pairs.

[0061] 1. A slot locator (also denoted as SL) belongs to a bucket and is metadata of a logical slot used to locate multiple logical slots of a bucket.

[0062] m. Conflict Separation Vector (also denoted as CSV) - metadata of the bucket used to resolve conflicts.

[0063] n. Block - A single erasable unit of NAND FLASH memory. It may contain multiple physical pages.

[0064] o. Planes - Flash devices are typically divided into several planes (2 or 5) to enable parallel flash access operations on all planes simultaneously. This enables parallel data access at double (or greater) granularity. This approach to flash architecture effectively enlarges the page size while still providing the option of writing smaller blocks of data.

[0065] p. CW - code word, the smallest data unit processed by an error correction code (ECC). In some examples, it is assumed that the CW has a fixed size and may include multiple key-value pairs.

[0066] q. Object-key-value pairs (or just the value of a key-value pair) can be called objects.

[0067] Fig.9A A first data structure 100 is shown including N1 first buckets 100 ( 1 )- 100 ( N1 ), each first bucket including a first slot locator, a first CSV, and a first logical slot storing one or more chunk cluster identifiers.

[0068] For example, the first bucket 100(1) includes a first slot locator 101(1), a first CSV 101(2), and N2 first logical slots 101(3,1)-101(3,N2). Fig. 9B In FIG. 1 , the first logical slot 101 ( 3 , 1 ) includes two block cluster identifiers BC1 101 ( 3 , 1 , 1 ) and BC2 101 ( 3 , 1 , 2 ).

[0069] Fig. 9B A second data structure 110 is shown including N1 second buckets 110 ( 1 )- 110 ( N1 ), each second bucket including a second slot locator, a second CSV, and a second logical slot storing retrieval information of one or more key-value pairs.

[0070] For example, the second bucket 110(1) includes a second slot locator 111(1), a second CSV 111(2), and N2 second logical slots 111(3,1)-111(3,N2). Fig. 9B In the example, the second logical slot 111 (3, 1) includes retrieval information of two key-value pairs OB1 111 (3, 1, 1) and OB2 111 (3, 1, 2).

[0071] Fig. 9C A second data structure 120 is shown including N1 second buckets 120 ( 1 )- 120 ( N1 ), each second bucket including a second slot locator, a second CSV, and a second logical slot storing retrieval information of one or more representative (REP) key-value pairs.

[0072] For example, the second bucket 120(1) includes a second slot locator 121(1), a second CSV 121(2), and N2 second logical slots 121(3,1)-121(3,N2). Fig. 9C , the second logical slot 121 (3, 1) includes retrieval information of two representative key-value pairs OB1 121 (3, 1, 1) and OB2 121 (3, 1, 2).

[0073] A computer program product, memory controller, and method for managing a NAND flash memory device having a key-value interface are described below.

[0074] Such a storage device should be able to store objects consisting of a key and a value of arbitrary length.

[0075] Such a storage device should be able to fetch the value to the host / user based on the key stored with the value.

[0076] The key-value storage device should be able to map the key to the physical location where the data is stored so that the key-value storage device can be located when retrieving the data.

[0077] The specifics of NAND Flash memory (write once, read many times, large erase unit, limited program-erase cycles) impose certain requirements and limitations on the mapping mechanism, which are taken into account in the proposed solution.

[0078] The database described for managing such storage devices is an advanced variation of a hash table, which is called a scatter hash table.

[0079] The database resides on random access memory (faster to access than flash memory such as DRAM).

[0080] The database can be optimized for low memory footprint, enabling more key-value pairs (objects) to be mapped and achieving low latency without requiring additional reads from flash to determine the location of objects on the flash.

[0081] The basic operations for accessing a key-value store managed using the database are:

[0082] PUT(key, value, key size, data size) - write an object

[0083] value = GET (key, key size, data size) - read object

[0084] DELETE(key, keysize) - delete an object

[0085] Key-value based database

[0086] Block Clusters

[0087] Disk spans are divided into block clusters.

[0088] A block cluster may include multiple blocks on multiple NAND modules.

[0089] For example, for each database instance, there are 1000 block clusters, each cluster is 2GB and includes 512 NAND blocks.

[0090] This configuration results in a 10-bit block cluster index in the main mapping table.

[0091] The data in each block cluster is ordered by key in some manner described later.

[0092] Conversion Level

[0093] The first level of translation is a first data structure (eg, a main hash table) that maps keys to a second data structure (eg, a block cluster index).

[0094] Block clusters can point to immutable TLC data or to SLC buffers that are currently being filled.

[0095] The main hash table may include 2 regions, the second region being used to resolve overflows or conflicts from the first region.

[0096] The second translation level maps the keys to physical locations in the block cluster

[0097] System key (also called ikey or middle key).

[0098] A user key (also called an input key) of arbitrary length is simplified to a system key (aka key), which is a fingerprint / hash of the user key. For example, a key can be configured to be 128 bits in length.

[0099] Primary key database

[0100] The main hash data structure can include 2 areas

[0101] a. Region-1: Scattered Hash Table

[0102] i. Input: hash(key) from which we get the hash bucket + logical slot #

[0103] ii. Output-1: Flag indicating whether area-2 needs to be checked

[0104] iii. Output-2: Block cluster index

[0105] iv. It can use the extension to expand the size of the bucket

[0106] b. Region-2: This can be achieved using the Outcasts table

[0107] i. Input: Hash(key)→Hash-Bucket+Logical-Slot#(in the abandoner table)

[0108] ii. Output-1: Whether the key is found. If the key is not found, the value in area-1 is used.

[0109] iii. Output-2: If the key is found, then the block cluster index is used

[0110] Scatter Hash Table Details

[0111] Divided into buckets and managed using supporting metadata.

[0112] Each key is mapped to a hash bucket index and a logical slot index by some hash function.

[0113] Hash bucket metadata converts logical slots in a hash bucket into physical slot numbers, while also resolving conflicts.

[0114] Each physical slot holds a block cluster index of, for example, 10 bits (for 1K clusters).

[0115] Slot Arrangement

[0116] Physical slots are occupied by objects according to the relative logical order between arrival order and existing slots. This means that insert operations push the following slots (requiring memory move operations).

[0117] Hash bucket metadata

[0118] Each bucket in MDH is divided into multiple segments: slot locator, conflict separation vector, and physical slots (Pslots). An example of segmented encoding can be found in Fig.10 Found in.

[0119] Slot Locator

[0120] Encodes the physical slot number (the position in the hash bucket), excluding collision distinctions, and the amount of collisions in the slot. That is,

[0121] If there is no conflict in logical slot - provide the physical slot number.

[0122] If there are 't' conflicting objects in slots - provides 't' slots, one of which holds the object with the queried key.

[0123] The slot locator encoding described below is an example, the actual compression scheme may be different.

[0124] The slot locator may be a sequence of zero-separated bits (a run-length code) that indicates the number of conflicting slots by numbering each logical slot as 1.

[0125] Consider the bit sequence "01011001100" (in Fig.10 In order to find the physical slot (P-Slot) corresponding to logical slot (L-Slot) #3 (the 4th slot), we need to count 5 equal amounts of zeros. The following sequence of "1"s tells each how many objects this L-Slot conflicts with (two "1"s mean 2 objects). The number of "1"s at the beginning of the bit sequence indicates the physical slot number (three "1"s mean the third P-Slot).

[0126] For this encoding, inserting a new object requires advancing a "1" bit between already existing bits, i.e., performing a memory move to make room for the bit.

[0127] In this example, the allocated space is 2 bits per object (slot), e.g. 64 bytes per hash bucket (for a hash bucket with 256 slots), which can be expanded to a maximum of 3 bits (for a virtual expansion of 2 times the slots), resulting in a lower collision rate.

[0128] Virtual Extension

[0129] There is an option to virtually allocate L slots so that the number of L-slots is different from the number of P-slots. We can expand or shrink the slot locator to hold more (e.g., 2 times more) or fewer slots, respectively. In this way, we can reduce the number (probability) of conflicts per L slots or reduce the number of bits in the slot locator. This can also reduce the length of the required conflict-separation vector at the expense of a larger slot locator vector.

[0130] In this terminology, a virtual expansion ratio of 2 means that the number of L-slots is twice that of P-slots, for example, 512 versus 256.

[0131] Conflict separation vector

[0132] In case of collisions at each L-Slot, the separation vector helps to establish the exact physical slot (offset within the P-Slot range) for each key. There are two possible implementations:

[0133] Permutation Implementation

[0134] For each L-Slot with a collision, the separation vector holds the index (possibly compressed) to a permutation of the hash parameters that provides a perfect hash function for all keys in that range. During data insertion, the process of finding such a permutation is being performed.

[0135] The generated permutation also determines the internal order of objects placed within the P-slot range. That is, adding a new object may reorder other objects in the L-slot.

[0136] It should be noted that the compression scheme may use different index representations for the number of each conflicting object in slot(t).

[0137] The number of collisions (t) handled with a perfect hash function can have an upper bound, e.g., 6 objects per slot in region - 1. Too many collisions slots will be considered outcasts.

[0138] The process of generating a perfect hash function may fail to find a satisfactory permutation and also cause one of the objects to be relocated to the abandoner table.

[0139] Separation Tree (ST) Implementation

[0140] For each L-slot with conflicts, the split vector holds a split tree (ST) (possibly compressed) that holds what is needed to split the keys in the L-slot.

[0141] The method of resolving conflicts between key lists using the minimum number of bits uses "insert", "delete", and "find" operations. The tree method cuts the key group into two groups each time according to the value of the bit in the selected index. The decision tree consists of "internal nodes" and "leaves".

[0142] The above can be implemented so that the keys will be sorted from left to right based on their values.

[0143] Example of a decision tree

[0144] There are many ways to build a tree that separates the keys, since keys can be inserted and removed from the tree in any order. The tree can be implemented so that the keys are sorted from left to right by their value, such as for the following key: Fig.11 As shown in (tree representation is 150):

[0145] key1=0100111

[0146] key2=0110010

[0147] key3=1011001

[0148] key4=0010010

[0149] key5=1011010

[0150] Here we showed how to easily insert, delete, and find objects in a list. We describe the general algorithm here:

[0151] Find

[0152] To find the object, we follow the index nodes until we reach a leaf at each node, and proceed based on the key bit. Fig.11 In the example described in , if we want to find key3 = 1011001, we do the following:

[0153] a. The first node is index 0. The bit at index 0 is 1, so we turn right

[0154] b. The second node is the right child and represents index 5. The bit at index 5 is 0, so we turn left.

[0155] c. We have reached a leaf, and according to the tree structure the leaf order is 5

[0156] Obviously, the fifth position in the sort is key3.

[0157] Simplify Insert

[0158] There are multiple ways to implement insertion. One way to implement it is to use a simplified insertion, a simple insertion algorithm. By using such an algorithm, we cannot ensure that the keys in the tree will be sorted.

[0159] To insert an object, we first have to fetch the leaf as described in "find" (this operation is called "getting the key"). Then, let's use Fig.11 To insert a new key - key6 = 0110011. The "find" algorithm will lead us to key2. Then

[0160] a. Get the key currently residing in the leaf - get key2 = 0110010.

[0161] b. Find the index where this key and the inserted key differ - this is index 6

[0162] c. Convert the leaf to a node representing the index of 2.

[0163] d. Place the two keys according to the bits in the found index.

[0164] Now replace leaf key2( Figure 1 10 in (replace with Figure 1 Node 12) shown, such as Figure 1 Just as described.

[0165] Category Insert:

[0166] We can enforce the tree so that the keys are kept in order by their values ​​by changing the insertion process and using a slightly more complex process. Suppose we insert key7=1001000.

[0167] a. Similar to the simplified insertion process, it finds the corresponding key. Assume that in our example, the ikey obtained is key3=1011001.

[0168] b. Instead of replacing the leaf with the corresponding key (as done during simplified insertion), the algorithm finds the first index where the retrieved key (key3) and the inserted key (key6) are different. Denote this index by n. In our example, n = 2 (0 in Key 3 and 1 in Key 7).

[0169] c. Then, go to the edge corresponding to these n bits. Such an edge connects the first node and the last node, the first node has an index greater than n (denoted by V and included in Figure 2 14) and the index of the last node is less than n (denoted as U).

[0170] d. Replace the edge with a node with index n and split the edge into 2 subtrees to provide Figure 2 Node 16 in . One subtree is the previous subtree, and the other is the leaf of the key. This is done based on the key being inserted: for example, key 7 in index 2 is equal to 1, so it should be on the right, and the existing subtree (of keys 3 and 5) should be on the left.

[0171] Note: There may be cases where there is no corresponding edge, i.e., every node in the path between the root and the leaf of the key being retrieved has an index less than n (which means Figure 2 Node V does not exist in .) In this case → the insertion algorithm is similar to simplified insertion.

[0172] By using sorted insertion, the tree is ensured to be sorted. In addition, observe that a node of index N exists in the tree if and only if two keys present in the tree differ in the Nth position and the first N-1 bits are the same. Furthermore, this node corresponds to a common prefix (of N-1 bits). Thus, the tree is uniquely defined based on the values ​​of the keys, not the order in which the keys arrive.

[0173] delete

[0174] For deletion, we first assume that the leaf represents the key. The "find" algorithm presents us with the first object. Then -

[0175] i. Verify that the key stored in this leaf corresponds to the requested key to be deleted. This is done by reading flash memory. If the key does not exist - return that the key does not exist.

[0176] ii. Delete the leaf representing the key and the leaf's parent. Connect the leaf's grandparent to the leaf's siblings.

[0177] The deletion process of key4=0010010 is Figure 3 A description is given (node ​​20 before deletion and node 22 after deletion).

[0178] Bucket encoding and extensions

[0179] We can set the size of each bucket in three ways: dynamic buckets, which can have dynamic segmentation or static segmentation, and static buckets.

[0180] Dynamic Bucket

[0181] In dynamic buckets, the size of each bucket changes dynamically. This means that if the bucket is "full" (exact definition will be given later), we link extensions to the bucket to increase the size of the bucket. Each bucket starts with a base containing a pointer to the next extension, and each extension is selected from a pool of free blocks (implemented via a "free list").

[0182] All extensions have the same size and are shorter than the base. The size of each segment is changed dynamically.

[0183] An example of a dynamic bucket is shown in Fig.12 Bucket 154 may include an extension pointer pointing to extension bucket 156, and extension bucket 156 may have a second extension pointer for pointing to another extension bucket or may not have a second extension pointer for pointing to another extension bucket. Bucket 156 may belong to any one of the first data structure or the second data structure. There may be any number of extension data packets.

[0184] Dynamic segmentation with L consecutive slots

[0185] A bucket can be implemented as consisting of L consecutive slots, such as Figure 4 , Figure 5 or Figure 6 shown.

[0186] exist Figure 4 In the figure, there is a bucket 32, which includes N-1 repeated (logical slots, CSV fields and P-slots), followed by the Nth logical slot, the Nth CSV and a first extension pointer pointing to an extension bucket 34, and the extension bucket 34 includes P-slot N, P-slot N is followed by (RN-2) repeated (logical slots, CSV fields and P-slots), which may be followed by the Rth logical slot, the Rth CSV and a second extension pointer, which points to another extension bucket (not shown).

[0187] Each repetition (logical slot, CSV field and P slot) can belong to a logical slot.

[0188] Figure 5 and Figure 6 Bucket 40 and bucket 42 are shown pointing to an extension pool 44. Fields within buckets and extension buckets may have fixed lengths ( Figure 6 ) or variable length ( Figure 6 ). The extension pointer points to the extension bucket.

[0189] In static segmentation, the size of each segment (SL, CSV, Pslots) is constant for each base and extension. If one of these segments overflows, the corresponding Lslot moves to the next extension. Each entry (base or extension) will contain a field called logical counter (LC) which is used to count the number of LSlots in the entry. This is done in Figure 6 Described in .

[0190] Note: Extensions can be implemented using outcast.

[0191] Static Bucket

[0192] We can implement buckets of constant size without extensions. In this case, if the insertion of a key will cause the corresponding overflow (i.e., the size of the bucket of the segment is greater than the given threshold), we move the corresponding key to the abandoner table.

[0193] It should be noted that when the content size metadata segment is full, then when a new key is inserted into the bucket, we add the key to the abandoner table.

[0194] When using Tree CSV, no dropout may be used, and the bucket segmentation is dynamic (with extensions).

[0195] Abandoner Table

[0196] Based on the above, there may be some unresolved situations, such as:

[0197] a. No perfect hashing permutation of the input keys is found (when using permutation implementation)

[0198] b. There are too many conflicts per slot (t overflow).

[0199] c. If one of the segments overflows, the corresponding key will not be moved to the extended part

[0200] d. Conflict separation vector space overflow (in permutation implementation)

[0201] P-Slot space overflow

[0202] In this case, the data will be stored in the outflow table and the counter for the object in the abandoner table area in each hash bucket is updated in the metadata.

[0203] The quitter table absorbs the records that cannot fit in the main scatter hash table.

[0204] Unlike the main hash table, the outcasts database may also hold the "key" of each object (or some compressed version of it) to eliminate (or reduce) the possibility of false detections in that table.

[0205] The abandoner table is expected to contain a much smaller number of objects than the main scatter-hash table, for example, 0.1% of all objects.

[0206] Whenever space is freed in the main hash table, such as when an object is deleted, an attempt should be made to recover the object (relocate the object from region 2 back to region -1).

[0207] For example, the abandoner table can be constructed as some hash table. It can store pairs of keys and corresponding block cluster indexes.

[0208] To ease the recovery of objects from region-2 (abandoned stories) to region-1 (MDH), the key used to access the discard table (called the second key, also called sKey) can be a derivative of the physical location (L-slot) in the region-1 scatter hash table.

[0209] For such a hash, all objects that map to the same scattered hash bucket can be clustered in the abandoner table. Therefore, finding the key to recover will require scanning several adjacent cells in the abandoner table and no random scan in memory is required.

[0210] Block Cluster Mapping

[0211] Objects within a block cluster are sorted by key, and their locations (indexes) are mapped and resolved using a decentralized hashing metadata structure. That is, the kth largest key in a cluster appears before the k+1th largest key.

[0212] All objects linked to hash bucket N will be stored to flash "before" objects in bucket N+1. Objects that map to the same bucket are sorted on flash according to the order of the physical slots of that bucket.

[0213] Block cluster mapping can be achieved by:

[0214] a. Complete Map Order - All objects are kept in chunk clusters and to find the physical location of an object we use its ordinal number (sequential index).

[0215] b. Representation Method - We save a subset of objects in the cluster map, called representatives. Given an object’s key, our goal is to find its corresponding representative.

[0216] Complete map sorting

[0217] To find the physical location of an object, the ordinal number (sequential index) within the block cluster is required as input to the CW-starts-map (described below), which encodes the actual location.

[0218] The cluster map is a scattered hash table representing object order information, similar to MDH→each bucket requires a slot locator, a conflict separation vector and additionally a CW start map.

[0219] In the same way as in the metadata using the main scatter hash table, we generate the ordinal number of the object in the hash bucket. Adding all the slots in the previous bucket (hash_bucket index * slots_per_bucket) will generate the absolute index of the object within the block cluster.

[0220] Hash keys to chunk clusters

[0221] The key used to access the block cluster can be sKey, the same key used for the abandoner table.

[0222] This enables finding all objects that map (collide) to the same L-slot in the main hash table without knowing their actual key, since the sKey is defined only by the L-slot position in the main hash. This way, the key needed to create a new hash permutation (e.g., the next Put transaction causes an object collision on the main hash) can be found by checking the associated block cluster index for each P-slot in the main hash range and finding the associated address in flash via the block cluster map.

[0223] By design, it is possible to have the conflict separation vector in the metadata of a chunk cluster always resolve conflicts for every used sKey (there is no second region mapping in the chunk cluster).

[0224] CW-Starts-Map

[0225] After determining the ordinal number of the object, the additional mapping vector can be used to find the actual object start position (ordinal code number) in the block cluster.

[0226] This CW-Starts-Map describes the number of objects per ECC-CW start and provides the index of the ECC CW to start reading the object from. It also provides the length of the object in the CW, so the reading process can prepare to read the required CW.

[0227] Each block cluster maintains a CW-Starts-Map vector.

[0228] Encoding method

[0229] The encoding method of the CW start map can be unary or binary.

[0230] Unary Encoding

[0231] The data in the CW-Starts-Map can be encoded / compressed using, for example, a run-length code - where a sequence of "1"s encodes the number of objects starting with a CW and CWs separated by zeros. That is, for each CW, possible values ​​are

[0232] i.0 = 0 object in CW

[0233] ii.01 = 1 object in CW

[0234] iii.011 = 2 objects start from CW

[0235] iv.0111 = 3 objects starting from CW, etc.

[0236] Processing steps of CW-Starts-Map:

[0237] i.-->Count of "0" = ECC CW number

[0238] ii.-->Count of "1" = object number

[0239] For example, for the data bits: 0100110100111, there are 3 objects, which start from the 6th CW (CW#5), and the sequence numbers of the objects are 5, 5 and 6.

[0240] The CW-starts-map can be split into segments to make it easier to access and parse.

[0241] CW-starts-map can employ additional compression for special cases, such as for large objects.

[0242] Binary encoding

[0243] An alternative to unary encoding is binary encoding.

[0244] For each CW, we limit the number of objects in the CW. For example, we can limit the number of objects in each CW to objects (n = 2 k For example, n=8).

[0245] Then, the CW-start mapping will allocate k bits for each CW to indicate the number of objects per CW.

[0246] Combining CW launch with block cluster mapping

[0247] We can encode the CW start map within the block cluster map.

[0248] For example, this can be done by adding two segments:

[0249] For each bucket, we encode the ordinal number of the object using the largest key in the previous bucket. In other words, it means the number of CWs in the previous bucket. We call it the Previous CW Count (PCC).

[0250] We encode the ordinal number of each object in the current bucket relative to the PCC. This means that we use the ordinal number n o Encode each object o and use the number n o -PCC o Mark barrel PCC PCC o . Encoding is done using CW-start map encoding.

[0251] Ranking of representative methods

[0252] The representative method sorting is similar to the full order method, but instead of encoding all objects - we only encode a representative from each CW. It is possible to encode only the last object from each CW, or the first object in a CW.

[0253] The bucket structure is similar to the bucket structure in the total sorting method. The slot locator calculates the number of representatives in the L-slot, CSV (Conflict Separation Tree), CSV is implemented by a separation tree with the encoded prefix (described below). Finally, CW starts to encode the representative starting position.

[0254] The goal of the representative method

[0255] The goal of the separation tree is to decide for each given obj of a given ikey which is the corresponding representative. For example, if the representative is the last object in the CW, then for a given key k object, our goal is to find the smallest key k that has a key greater than (or equal to) the given object. r The representative, that is,

[0256] Note that two binary strings satisfy k1 ≥ k2 if and only if there is an index m such that the m-prefix (first m bits) of k1 is greater than the m-prefix of k2. For each representative, we encode the minimal prefix of its key, which can be used to distinguish the representative from all other objects in the cluster. Formally, we encode a minimal m-prefix of m, which is used to distinguish the first object greater than the representative, and the last object less than the representative.

[0257] For example, suppose the ikey represented by k r =1010, while the other objects in the cluster are k1=0000, k2=1000, k3=1100, k4=1110. Then, the 3 bits 101 encoding the representative are enough to distinguish the representative from all other objects. Of course, if we distinguish the representative from the first object that is greater than the representative (i.e. k3=1100) and the last object that is less than the representative (k2=1000), then we distinguish the representative from all other objects in the cluster.

[0258] In GET\Fetch iKey, the prefix represented is driven by Lslot (i.e., if there are 2 k Lslots, then k bits of the prefix are driven). Furthermore, we can encode additional bits in the separating tree, resulting in bits that are sufficient to distinguish the representative from all other objects in the cluster. Separating tree with prefix encoding.

[0259] The separating tree encodes many, but not all, of the bits in the prefix representative. It is useful for distinguishing the representative from other representatives, but may not be sufficient to distinguish representatives from non-representative objects.

[0260] In each internal node in the separation tree, we encode the common prefix corresponding to its right and left subtrees. This is similar to the well-known binary tree. For example, in a tree with two keys key1=1010 and key2=1001, and according to save the common prefix of these keys, i.e. the string 10. A complex example is the prefix tree of the following key, which is depicted in Figure 7 Medium (tree representation is 50).

[0261] key1=0111111

[0262] key2=0110010

[0263] key3=1011001

[0264] key4=0010010

[0265] key5=1011010

[0266] For example, the common prefix of key 1 to key 5 has an empty common prefix. The left subtree, with key 1, key 2, and key 5, has a common prefix of 0, and so on.

[0267] We can store the relative common prefix in each node, such as Figure 8 This means that for each node, we save the common prefix, which does not include the bits of the parent node that drives the node.

[0268] Extension Prefix

[0269] While the separating tree is sufficient to distinguish representatives from other representatives, it may not be sufficient to distinguish representatives from non-representative objects. Therefore, we can encode additional bits in each leaf.

[0270] operate

[0271] Put

[0272] We create block cluster maps in GC\folding.

[0273] We first insert all objects into a Local Dispersed Hashing (LDH), which is implemented similarly to Primary Dispersed Hashing, where CSV is implemented via a split tree where the prefix is ​​encoded.

[0274] From the hash we derive the minimum prefix required for each representative to be distinguishable from every other object.

[0275] Second, we only insert the representation into the block cluster map (similar to MDH), and we can use extended prefixes for other objects.

[0276] GET

[0277] GET is implemented similarly to MDH. However, we may code two edge cases that do not occur in a regular GET:

[0278] Lslot is empty, that is, if there are 2 k Lslots, then no representative starts with the first k bits of the object. There are multiple solutions to this problem. For example, if the representative is the last object in the CW, the algorithm checks new Lslots until the first non-empty Lslot is found. The first representative of an Lslot is the position of the first representative that is larger than the object, and it represents the corresponding CW.

[0279] When looking up the corresponding representative in the tree, 3 options are possible:

[0280] a. The prefix of the object is equal to the prefix in the corresponding node. In this case, we continue searching for the object inside the corresponding subtree.

[0281] b. The object prefix is ​​greater than the prefix in the corresponding node. In this case, the corresponding representative is the first representative greater than the last representative in the subtree.

[0282] c. The object prefix is ​​smaller than the prefix in the corresponding node. In this case, the corresponding representative is the last representative smaller than the first representative in the subtree.

[0283] d. For example, let us take Figure 7 The CSV tree shown.

[0284] e. Assume that the ikey of the object is 10010. Then, when searching for the corresponding representative, we are going right (because the first bit starts with 1). The prefix of the node is 10110, i.e., the prefix of the object is less than the prefix of the node. Therefore, the corresponding representative is the last representative that is less than the first representative in the subtree (the one with key3), i.e., this is the representative with key2.

[0285] Get ikey

[0286] This operation is similar to GET. We assume that through the first sKey bit, we can derive the object location in the cluster.

[0287] Reduce Block Cluster Mapping

[0288] The block cluster mapping can be further reduced using the following optimizations:

[0289] a. Select representatives for each X CW, where X is a power of 2.

[0290] b. For some cases, do not encode the extension prefix.

[0291] Using these methods slightly degrades the read performance of GET operations and Fecth iKey operations (because it reads consecutive CWs), but duplicates the bandwidth between DRAM and NAND. Note that if we do not encode the extended prefix, we may read two consecutive CWs, similar to selecting a representative for every 2 CWs.

[0292] Decentralized hashing metadata enables merging of multiple instances. For example, for garbage collection, the chunk cluster MDs of several chunk clusters can be merged.

[0293] An additional database can be used to map transient data, for example, data can be first inserted into SLC blocks without being sorted according to the key, and then moved to TLC blocks when building block-cluster metadata. This SLC buffer can also use a decentralized hash data structure to map data.

[0294] Fig.13 A method including step 302, step 304, step 306, step 308, step 310, step 312, step 314, step 316, step 318, step 320, step 322, step 324, step 326, step 328, step 330, step 332, step 334 and step 336 is shown.

[0295] Fig.14 A method 400 for accessing key-value pairs stored in a solid state drive (SSD) memory is shown, and the method may include a series of steps 410 , 420 , 430 , 440 , and 450 .

[0296] In step 410 , the SSD storage controller calculates a first bucket identifier and a first inter-bucket value based on an input key.

[0297] Step 410 may be preceded by the SSD controller receiving an input key and converting the input value into an intermediate key.

[0298] Step 410 may include applying a first hash function on the intermediate key to provide a first hash result, and determining a first bucket identifier and a first inter-bucket value based on the first hash result. The first bucket may belong to a first data structure, such as Fig.9A The data structure in .

[0299] Step 410 may include accessing first metadata of a first bucket that may be identified by a first bucket identifier using at least a first inter-bucket value; wherein the first bucket belongs to a first data structure; and selecting a second data structure based on the first metadata.

[0300] Step 420 may include determining a cluster of blocks that may store the key-value pair based on the first bucket identifier, the first inter-bucket value, and the first metadata of the first data structure. Fig. 9B The data structures in ) are assigned to the block clusters.

[0301] Step 430 may include calculating a second bucket identifier and a second inter-bucket value based on the input key.

[0302] Step 430 may include applying a second hash function on the intermediate key to provide a second hash result; and determining a second bucket identifier and a second inter-bucket value based on the second hash result.

[0303] Step 440 , determining key-value pair retrieval information based on the second bucket identifier, the second inter-bucket value, and second metadata of the second data structure; wherein the second data structure may be allocated to the block cluster.

[0304] Step 440 may include accessing second metadata of a second bucket that may be identified by a second bucket identifier using at least a second inter-bucket value; wherein the second bucket belongs to a second data structure; and determining a key-value pair retrieval information based on the second metadata.

[0305] Step 450 , at least the value of the key-value pair (or at least the value of the key-value pair) is retrieved based on the key-value pair retrieval information.

[0306] The first data structure and the second data structure may not store intermediate keys.

[0307] A first bucket of the first data structure may include a first logical slot storing one or more second data structure identifiers. The first metadata may include (a) first slot locator metadata for selecting the first logical slot, and (b) first conflict separation metadata for selecting a second bucket identifier within each conflicting first logical slot, wherein the conflicting first logical slot may map to a plurality of conflicting intermediate keys.

[0308] The first slot locator metadata may include a binary sequence that may indicate a plurality of second bucket identifiers for each first logical slot.

[0309] Selecting the second data structure may include searching for a second data structure identifier.

[0310] Searching for a second data structure identifier may include (a) counting the number of zero bits based on the most significant bit of the binary sequence to find a bit, the number of zero bits being equal to the value of the first bucket value; and (b) setting a plurality of second data structure identifiers belonging to the first logical slot to the number of one bit following the bit.

[0311] The first conflict separation metadata may include permutation metadata; wherein the method may include obtaining a permutation function using the permutation metadata; and wherein selecting the second bucket identifier within the first logical slot includes applying the permutation function on at least a portion of an intermediate value.

[0312] The first conflict separation metadata includes, for each conflicting first logical slot, a tree representing conflicting intermediate keys mapped to the conflicting first logical slot.

[0313] The tree may be an ordered tree.

[0314] The tree may be an unsorted tree.

[0315] For each conflicting first logical slot, each parent node of the tree has child nodes associated with different intermediate key values, wherein each patent node stores information about the order of the first bits that differ between the values ​​of the different intermediate keys.

[0316] For each conflicting first logical slot, each parent node of the tree has child nodes associated with different intermediate key values, wherein each patent node stores information about: (a) the order of the first bits that differ due to the values ​​between different intermediate keys, and (b) at least a portion of a prefix preceding the first bit.

[0317] The second bucket of the second data structure includes second conflict separation metadata for selecting at least one of (a) key-value pair access information and (b) representative key-value pair access within each conflicting second logical slot, wherein the conflicting second logical slot is mapped to multiple conflicting intermediate keys.

[0318] Each bucket includes starting metadata indicating the total number of codewords associated with the bucket preceding the bucket.

[0319] For each conflicting second logical slot, the second conflict separation metadata comprises a tree representing conflicting intermediate keys mapped to the conflicting second logical slot. Alternatively, the second conflict separation metadata may comprise permutation metadata.

[0320] The second data structure stores key-value pair access information about a plurality of code words storing a plurality of key-value pairs.

[0321] The second slot locator metadata may store metadata associated with all of the plurality of key-value pairs.

[0322] The second slot locator metadata may store metadata related only to a representative key-value pair of the plurality of key-value pairs.

[0323] Step 440 may include: (a) selecting a selected representative key-value pair from a plurality of representative key-value pairs that form only a portion of the plurality of key-value pairs, and (b) selecting the key-value pair based on the selected representative key-value pair.

[0324] The second conflict separation metadata includes metadata for selecting the selected representative, and wherein the second metadata includes metadata for selecting between key-value pairs associated with the same representative key-value pair.

[0325] The first conflict separation metadata includes, for each conflicting first logical slot, a tree representing conflicting intermediate keys mapped to the conflicting first logical slot.

[0326] For each conflicting second logical slot, each parent node of the tree has child nodes associated with different intermediate key values, wherein each patent node stores information about: (a) the order of the first bits that differ due to the values ​​between different intermediate keys, and (b) at least a portion of a prefix preceding the first bit; wherein the prefix is ​​used to select between key-value pairs associated with the same representative key-value pair.

[0327] The second metadata includes a second logical slot, a second slot locator, and second conflict separation metadata; wherein at least the second slot locator includes only metadata of representative key-value pairs, which are a subset of multiple key-value pairs stored in the block cluster.

[0328] Fig.15 A method 500 is shown.

[0329] The method 500 may be used to access key-value pairs stored in a solid state drive (SSD) memory.

[0330] Method 500 may begin at step 510 where an input key is received by an SSD controller.

[0331] Step 510 may be followed by step 514 of converting the input value into an intermediate key. An intermediate key is also referred to as an ikey.

[0332] Step 514 may be followed by step 518 of applying a first hash function on the intermediate key to provide a first hash result.

[0333] Step 518 may be followed by step 522 of determining a primary bucket identifier and a primary inter-bucket value based on the first hash result.

[0334] Step 522 may be followed by step 526 of accessing master metadata of a master bucket identified by a master bucket identifier using at least the master inter-bucket value; wherein the master bucket belongs to a master data structure.

[0335] Step 526 may be followed by step 530 of selecting a second data structure that may be assigned to the chunk cluster based on the content of the primary metadata.

[0336] Step 530 may be followed by step 534 of applying a second hash function on the intermediate key to provide a second hash result.

[0337] Step 534 may be followed by step 538 of determining a second bucket identifier and a second inter-bucket value based on the second hash result.

[0338] Step 538 may be followed by step 542 of accessing second metadata for a second bucket, which may be identified by a second bucket identifier, using at least the second inter-bucket value; wherein the second bucket belongs to a second data structure.

[0339] Step 542 may be followed by step 546 of determining object access information based on the content of the second metadata; wherein the object may be a value associated with the input key.

[0340] Step 546 may be followed by step 550 of retrieving the value of the object using the object access information.

[0341] The primary and secondary data structures do not store intermediate keys.

[0342] Fig.16 A method 600 for accessing key-value pairs stored in a solid state drive (SSD) memory is shown, and the method may include a series of steps 610 , 620 , 630 , 640 , and 650 .

[0343] Step 610 may include calculating, by the SSD memory controller, a first bucket identifier and a first inter-bucket value based on the input key.

[0344] Step 610 may be preceded by the SSD controller receiving an input key and converting the input value into an intermediate key.

[0345] Step 610 may include applying a first hash function on the intermediate key to provide a first hash result; and determining a first bucket identifier and a first inter-bucket value based on the first hash result.

[0346] Step 620 may include determining a cluster of chunks that may store the key-value pair based on the first bucket identifier, the first inter-bucket value, and first metadata of the first data structure.

[0347] Step 620 may include accessing first metadata for a first bucket that may be identified by a first bucket identifier using at least a first inter-bucket value; wherein the first bucket belongs to a first data structure; and selecting a second data structure based on the first metadata.

[0348] Step 620 may include searching for a second data structure identifier (identifying a second data structure). The search may include: (a) counting the number of zero bits according to the most significant bit of the binary sequence to find a certain bit, the number of zero bits being equal to the value of the first bucket value; and (b) setting a plurality of second data structure identifiers belonging to the first logical slot to the number of one bit following the certain bit.

[0349] An example of the second data structure is Fig. 9C middle.

[0350] Step 630 may include computing a second bucket identifier and a second inter-bucket value based on the input key.

[0351] Step 630 may include applying a second hash function on the intermediate key to provide a second hash result; and determining a second bucket identifier and a second inter-bucket value based on the second hash result.

[0352] Step 640 may include: determining at least one of key-value pair retrieval information and representative key-value pair retrieval information based on a second bucket identifier, a second inter-bucket value, and second metadata of a second data structure; wherein the second data structure may be assigned to a block cluster; wherein the second metadata may include a second logical slot, a second slot locator, and second conflict separation metadata; wherein at least the second slot locator may include only metadata of a representative key-value pair, which may be a subset of multiple key-value pairs stored in the block cluster.

[0353] Step 640 may include determining only the key-value pair retrieval information.

[0354] Step 640 may include determining only representative key-value pairs to retrieve information.

[0355] Step 650 may include retrieving at least a value of the key-value pair based on at least one of the key-value pair retrieval information and the representative key-value pair retrieval information.

[0356] Step 650 may include retrieving content that may include: (a) a key-value pair, and (b) at least a portion of a representative key-value pair associated with the key-value pair.

[0357] Step 650 may include retrieving content that may include: (a) a key-value pair, (a) the key-value pair, (b) at least a portion of a representative key-value pair before the key-value pair, and (c) at least a portion of a representative key-value pair after the key-value pair.

[0358] Step 650 may include finding a representative key-value pair associated with the key-value pair, and finding the key-value pair based on the representative key-value pair.

[0359] The first data structure and the second data structure do not store intermediate keys.

[0360] The first bucket of the first data structure may include a first logical slot storing one or more second data structure identifiers; wherein the first metadata may include (a) first slot locator metadata, the first slot locator metadata is used to select the first logical slot of the first logical slot and (b) first conflict separation metadata, the first conflict separation metadata is used to select a second bucket identifier within each conflicting first logical slot, wherein the conflicting first logical slot can be mapped to multiple conflicting intermediate keys.

[0361] The first slot locator metadata may include a binary sequence that may indicate a plurality of second bucket identifiers for each first logical slot.

[0362] Selecting the second data structure may include searching for a second data structure identifier.

[0363] The first conflict separation metadata may include permutation metadata; wherein the method may include obtaining a permutation function using the permutation metadata; and wherein selecting the second bucket identifier within the first logical slot may include applying the permutation function to at least a portion of the intermediate value.

[0364] For each conflicting first logical slot, the first conflict separation metadata may include a tree representing conflicting intermediate keys that may be mapped to the conflicting first logical slot.

[0365] The tree may be a sorted tree.

[0366] The tree can be an unsorted tree.

[0367] For each conflicting first logical slot, each parent node of the tree may have child nodes associated with different intermediate key values, wherein each patent node stores information about the order of the first bits that differ between the values ​​of the different intermediate keys.

[0368] For each conflicting first logical slot, each parent node of the tree has child nodes that can be associated with different intermediate key values, wherein each patent node can store information about: (a) the order of the first bits that differ due to the values ​​between different intermediate keys, and (b) at least a portion of the prefix that precedes the first bit.

[0369] The second bucket of the second data structure may include second conflict separation metadata for selecting at least one of (a) key-value pair access information and (b) representative key-value pair access within each conflicting second logical slot, wherein the conflicting second logical slot may be mapped to multiple conflicting intermediate keys.

[0370] Therein, each bucket may include starting metadata indicating a total number of codewords that may be associated with the bucket preceding the bucket.

[0371] For each conflicting second logical slot, the second conflict separation metadata may include a tree representing conflicting intermediate keys that may be mapped to the conflicting second logical slot.

[0372] The second data structure may store key-value pair access information about a plurality of codewords storing a plurality of key-value pairs.

[0373] This application provides significant technical improvements over the prior art - particularly in computer science.

[0374] Any reference to the terms "comprising" or "having" should also be interpreted as referring to "consisting essentially of." For example, a method that includes certain steps may include additional steps, may be limited to certain steps, or may include additional steps that do not materially affect the basic and novel characteristics of the method, respectively.

[0375] The present invention can also be implemented by a computer program for running on a computer system, which at least includes a code portion for executing the steps of the method according to the present invention or enabling the programmable device to run the functions of the device or system according to the present invention when running on a programmable device (such as a computer system). The computer program can cause the storage system to assign the disk drive to the disk drive group.

[0376] A computer program is a list of instructions such as a specific application and / or an operating system. A computer program may include, for example, one or more of the following: a subroutine, a function, a procedure, an object method, an object implementation, an executable application, an applet, a servlet, source code, object code, a shared library / dynamically loaded library, and / or other instruction sequences designed for execution on a computer system.

[0377] The computer program may be stored internally on a computer program product, such as a non-volatile computer-readable medium. All or some computer programs may be permanently provided on a non-volatile computer-readable medium, removably or remotely coupled to an information processing system. Non-volatile computer-readable media may include, for example, but are not limited to, any number of the following items: magnetic storage media, including magnetic disks and tape storage media; optical disk storage media, such as optical disk media (e.g., CDROM, CDR, etc.) and digital video disk storage media; non-volatile memory storage media, including semiconductor-based memory units, such as FLASH memory, EEPROM, EPROM, ROM; ferromagnetic digital memory; MRAM; volatile storage media including registers, buffers or caches, main memory, RAM, etc. A computer process typically includes executing (running) a program or a portion of a program, current program values ​​and state information, and resources used by the operating system to manage the execution of the process. An operating system (OS) is software that manages the sharing of computer resources and provides programmers with an interface for accessing these resources. The operating system processes system data and user input and responds by allocating and managing tasks and internal system resources as services to users and programs of the system. A computer system may, for example, include at least one processing unit, associated memory and a plurality of input / output (I / O) devices. When executing a computer program, the computer system processes information according to the computer program and generates resultant output information through the I / O devices.

[0378] In the foregoing specification, the invention has been described with reference to specific examples of embodiments of the invention. It will, however, be evident that various modifications and changes may be made therein without departing from the broader spirit and scope of the invention as set forth in the appended claims.

[0379] Furthermore, the terms "front", "rear", "top", "bottom", "above", "below", etc., if any, in the specification and claims are used for descriptive purposes and not necessarily for describing permanent relative positions. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in other orientations than those shown or described herein.

[0380] Those skilled in the art will recognize that the boundaries between logic blocks are merely illustrative, and that alternative embodiments may merge logic blocks or circuit elements, or impose alternative decompositions of functionality on various logic blocks or circuit elements. Therefore, it should be understood that the architectures described herein are merely exemplary, and that in fact many other architectures that achieve the same functionality may be implemented.

[0381] Any arrangement of components that achieve the same functionality is effectively "associated" so that the desired functionality can be achieved. Thus, any two components combined herein to achieve a particular functionality may be considered "associated" with each other so that the desired functionality is achieved, regardless of architecture or intermediate components. Likewise, any two components so associated may also be considered "operably connected" or "operably coupled" to each other so as to achieve the desired functionality.

[0382] In addition, it will be appreciated by those skilled in the art that the boundaries between the above operations are merely illustrative. Multiple operations may be combined into a single operation, a single operation may be distributed in an additional operation, and the operation may be performed at least partially overlapping in time. In addition, alternative embodiments may include multiple instances of a particular operation, and the order of the operations may be changed in various other embodiments. Also for example, in one embodiment, the example shown may be implemented as a circuit located on a single integrated circuit or in the same device. Alternatively, the example may be implemented as any number of separate integrated circuits or separate devices interconnected to each other in a suitable manner.

[0383] As another example, the examples or portions of these examples may be implemented as soft or code representations of physical circuitry, or as soft or code representations convertible into logical representations of physical circuitry, such as in any appropriate type of hardware description language.

[0384] Furthermore, the present invention is not limited to physical devices or units implemented in non-programmable hardware, but may also be applied to programmable devices or units capable of performing the desired device functions by operating according to appropriate program codes, such as mainframes, minicomputers, servers, workstations, personal computers, notebooks, personal digital assistants, electronic games, automobiles and other embedded systems, cell phones and various other wireless devices, generally denoted as "computer systems" in this application.

[0385] However, other modifications, changes, and substitutions are possible. Accordingly, the specification and drawings are to be regarded as illustrative rather than restrictive.

[0386] In the claims, any reference symbols in brackets shall not be interpreted as limiting the claims. The word "comprising" does not exclude the existence of other elements or steps listed in the claims. In addition, the terms "a" or "an" as used herein are defined as one or more. In addition, the use of introductory phrases such as "at least one" and "one or more" in the claims shall not be interpreted as implying that the introduction of another claim element by the indefinite article "one" or "an" limits any particular claim containing such introduced claim element to an invention containing only one such element, even when the same claim includes the introductory phrases "one or more" or "at least one" and indefinite articles such as "one" or "an". The same is true for the use of definite articles. Unless otherwise specified, terms such as "first" and "second" are used to arbitrarily distinguish the elements described by these terms. Therefore, these terms are not necessarily intended to indicate the temporal order or other priority of these elements. The mere fact that certain measures are described in mutually different claims does not mean that the combination of these measures cannot be used to benefit.

[0387] Although certain features of the present invention have been illustrated and described herein, many modifications, substitutions, changes and equivalents will now occur to those skilled in the art. It should be understood, therefore, that the appended claims are intended to cover all such modifications and changes that fall within the true spirit of the invention.

Claims

1. A method for accessing a key-value pair stored in a solid state drive (SSD) memory, the method comprising: Calculate, by the SSD memory controller, a first bucket identifier and a first bucket value based on the input key; determining a chunk cluster storing the key-value pair based on the first bucket identifier, the first inter-bucket value, and first metadata of a first data structure; Calculate a second bucket identifier and a second bucket inter-value based on the input key; determining key-value pair retrieval information based on a second bucket identifier, the second inter-bucket value, and second metadata of a second data structure; wherein the second data structure is assigned to the block cluster; as well as At least the key-value pair value is retrieved based on the key-value pair retrieval information.

2. The method according to claim 1, comprising: receiving an input key via the SSD controller; Convert input value to intermediate key; And wherein calculating the first bucket identifier and the first inter-bucket value comprises: applying a first hash function on the intermediate key to provide a first hash result; and determining the first bucket identifier and the first inter-bucket value based on the first hash result.

3. The method according to claim 2, wherein: Determining the block cluster includes: accessing first metadata of a first bucket identified by the first bucket identifier using at least the first inter-bucket value; wherein the first bucket belongs to the first data structure; and selecting the second data structure based on the first metadata.

4. The method according to claim 3, comprising: receiving an input key via the SSD controller; Convert input value to intermediate key; And wherein calculating the second bucket identifier and the second inter-bucket value comprises: applying a second hash function on the intermediate key to provide a second hash result; and determining the second bucket identifier and the second inter-bucket value based on the second hash result.

5. The method according to claim 4, wherein: Determining the key-value pair retrieval information includes: using at least the second inter-bucket value to access second metadata of a second bucket identified by the second bucket identifier; wherein the second bucket belongs to the second data structure; and determining the key-value pair retrieval information based on the second metadata.

6. The method according to claim 5, wherein: The first data structure and the second data structure do not store the intermediate key.

7. The method according to claim 5, wherein: The first bucket of the first data structure includes a first logical slot storing one or more second data structure identifiers; wherein the first metadata includes (a) first slot locator metadata, the first slot locator metadata is used to select the first logical slot of the first logical slot and (b) first conflict separation metadata, the first conflict separation metadata is used to select a second bucket identifier within each conflicting first logical slot, wherein the conflicting first logical slots are mapped to multiple conflicting intermediate keys.

8. The method according to claim 7, wherein: The first slot locator metadata includes a binary sequence indicating a plurality of second bucket identifiers for each first logical slot.

9. The method according to claim 7, wherein: Selecting the second data structure includes searching for a second data structure identifier.

10. The method according to claim 9, wherein: The searching for the second data structure identifier comprises: (a) counting the number of zero bits according to the most significant bit of the binary sequence to find a certain bit, the number of zero bits being equal to the value of the first bucket value; and (b) setting a plurality of second data structure identifiers belonging to the first logical slot to the number of one bit following the certain bit.

11. The method according to claim 7, wherein: The first conflict separation metadata comprises permutation metadata; wherein the method comprises obtaining a permutation function using the permutation metadata; and wherein selecting the second bucket identifier within the first logical slot comprises applying the permutation function on at least a portion of an intermediate value.

12. The method according to claim 7, wherein: The first conflict separation metadata includes, for each conflicting first logical slot, a tree representing conflicting intermediate keys mapped to the conflicting first logical slot.

13. The method of claim 12, wherein the tree is a sorted tree. The method of claim 12 , wherein the tree is an unordered tree.

15. The method according to claim 12, wherein: For each conflicting first logical slot, each parent node of the tree has child nodes associated with different intermediate key values, wherein each patent node stores information about the order of the first bits that differ between the values ​​of the different intermediate keys.

16. The method of claim 12, wherein for each conflicting first logical slot, each parent node of the tree has a child node associated with a different intermediate key value, wherein, Each patent node stores information about: (a) the order of the first digits that differ between values ​​of different intermediate keys, and (b) at least a portion of a prefix preceding the first digit.

17. The method according to claim 5, wherein: The second bucket of the second data structure includes a second logical slot storing one or more key-value pair access information; wherein the second metadata includes: (a) second slot locator metadata for selecting a second logical slot from a plurality of second logical slots, and (b) second conflict separation metadata for selecting key-value pair access information within each conflicting second logical slot, wherein the conflicting second logical slots are mapped to a plurality of conflicting intermediate keys.

18. The method according to claim 17, wherein: Each bucket includes starting metadata indicating the total number of codewords associated with the bucket preceding the bucket.

19. The method according to claim 17, wherein: The second conflict separation metadata includes, for each conflicting second logical slot, a tree representing conflicting intermediate keys mapped to the conflicting second logical slot.

20. The method according to claim 17, wherein: The second data structure stores key-value pair access information about a plurality of code words storing a plurality of key-value pairs.

21. The method according to claim 20, wherein: The second slot locator metadata stores metadata associated with all of the plurality of key-value pairs.

22. The method of claim 20, wherein: The second slot locator metadata stores metadata related only to a representative key-value pair of the plurality of key-value pairs.

23. The method according to claim 22, wherein: Determining the key-value pair access information includes: (a) selecting a selected representative key-value pair from a plurality of representative key-value pairs that form only a portion of the plurality of key-value pairs, and (b) selecting the key-value pair based on the selected representative key-value pair.

24. The method according to claim 22, wherein: The second conflict separation metadata includes metadata for selecting the selected representative, and wherein the second metadata includes metadata for selecting between key-value pairs associated with the same representative key-value pair.

25. The method according to claim 22, wherein: For each conflicting first logical slot, the first conflict separation metadata includes a tree representing conflicting intermediate keys mapped to the conflicting first logical slot.

26. The method according to claim 25, wherein: For each conflicting second logical slot, each parent node of the tree has child nodes associated with different intermediate key values, wherein each patent node stores information about: (a) the order of the first bits that differ due to the values ​​between different intermediate keys, and (b) at least a portion of a prefix preceding the first bit; wherein the prefix is ​​used to select between key-value pairs associated with the same representative key-value pair.

27. The method of claim 1, wherein: The second metadata includes a second logical slot, a second slot locator, and second conflict separation metadata; wherein at least the second slot locator includes only metadata of representative key-value pairs, which are a subset of multiple key-value pairs stored in the block cluster.

28. The method of claim 1, wherein: At least one first bucket is linked to a first extension bucket; and wherein the method includes accessing the first extension bucket.

29. The method of claim 1, wherein: At least one second bucket is linked to a second extension bucket; and wherein the method includes accessing the second extension bucket.

30. The method of claim 1, wherein: The first bucket of the first data structure includes a first metadata field of fixed length.

31. The method of claim 1, wherein: Selecting the second data structure includes searching for a second data structure identifier.

32. A method for accessing a key-value pair stored in a solid state drive (SSD) memory, the method comprising: Calculate, by the SSD memory controller, a first bucket identifier and a first bucket value based on the input key; determining a chunk cluster storing the key-value pair based on the first bucket identifier, the first inter-bucket value, and first metadata of a first data structure; Calculate a second bucket identifier and a second bucket inter-value based on the input key; determining at least one of key-value pair retrieval information and representative key-value pair retrieval information based on the second bucket identifier, the second inter-bucket value, and second metadata of a second data structure; wherein the second data structure is assigned to a block cluster; wherein the second metadata includes a second logical slot, a second slot locator, and second conflict separation metadata; wherein at least the second slot locator includes only metadata of a representative key-value pair, the representative key-value pair being a subset of a plurality of key-value pairs stored in the block cluster; and At least a value of the key-value pair is retrieved based on at least one of the key-value pair retrieval information and the representative key-value pair retrieval information.

33. The method of claim 32, comprising retrieving content comprising: (a) a key-value pair, and (b) at least a portion of a representative key-value pair associated with the key-value pair.

34. The method of claim 32, comprising retrieving content comprising: (a) the key-value pair, (b) at least a portion of a representative key-value pair preceding the key-value pair, and (c) at least a portion of a representative key-value pair following the key-value pair.

35. The method of claim 32, comprising: A representative key-value pair associated with the key-value pair is found, and the key-value pair is found based on the representative key-value pair.

36. The method of claim 32, wherein: Determining at least one of the key-value pair retrieval information and the representative key-value pair retrieval information includes determining only the key-value pair retrieval information.

37. The method of claim 32, wherein: Determining at least one of the key-value pair retrieval information and the representative key-value pair retrieval information includes determining only the representative key-value pair retrieval information.

38. The method of claim 32, comprising: receiving an input key via the SSD controller; Convert input value to intermediate key; And wherein calculating the first bucket identifier and the first inter-bucket value comprises: applying a first hash function on the intermediate key to provide a first hash result; and determining the first bucket identifier and the first inter-bucket value based on the first hash result.

39. The method of claim 33, wherein: Determining the block cluster includes: accessing first metadata of a first bucket identified by the first bucket identifier using at least the first inter-bucket value; wherein the first bucket belongs to the first data structure; and selecting the second data structure based on the first metadata.

40. The method of claim 39, comprising: receiving an input key via the SSD controller; Convert input value to intermediate key; And wherein calculating the second bucket identifier and the second inter-bucket value comprises: applying a second hash function on the intermediate key to provide a second hash result; and determining the second bucket identifier and the second inter-bucket value based on the second hash result.

41. The method of claim 40, wherein: The first data structure and the second data structure do not store the intermediate key.

42. The method of claim 40, wherein: The first bucket of the first data structure includes a first logical slot storing one or more second data structure identifiers; wherein the first metadata includes (a) first slot locator metadata, the first slot locator metadata is used to select the first slot locator metadata of the first logical slot of the first logical slot and (b) first conflict separation metadata, the first conflict separation metadata is used to select a second bucket identifier within each conflicting first logical slot, wherein the conflicting first logical slots are mapped to multiple conflicting intermediate keys.

43. The method of claim 42, wherein: The second slot locator metadata includes a binary sequence indicating a plurality of second bucket identifiers for each first logical slot.

44. The method of claim 42, wherein: Selecting the second data structure includes searching for a second data structure identifier.

45. The method of claim 44, wherein: Searching for the second data structure identifier includes: (a) counting the number of zero bits according to the most significant bit of the binary sequence to find a certain bit, the number of zero bits being equal to the value of the first bucket value; and (b) setting a plurality of second data structure identifiers belonging to the first logical slot to the number of one bit following the certain bit.

46. ​​The method of claim 42, wherein: The first conflict separation metadata comprises permutation metadata; wherein the method comprises obtaining a permutation function using the permutation metadata; and wherein selecting the second bucket identifier within the first logical slot comprises applying the permutation function on at least a portion of an intermediate value.

47. The method of claim 42, wherein: The first conflict separation metadata includes, for each conflicting first logical slot, a tree representing conflicting intermediate keys mapped to the conflicting first logical slot.

48. The method of claim 47, wherein: The tree is a sorted tree.

49. The method of claim 47, wherein: The tree is an unsorted tree.

50. The method of claim 47, wherein for each conflicting first logical slot, each parent node of the tree has a child node associated with a different intermediate key value, wherein, Each patent node stores information about the order of the first digits that differs between values ​​of different intermediate keys.

51. The method of claim 47, wherein: For each conflicting first logical slot, each parent node of the tree has child nodes associated with different intermediate key values, wherein each patent node stores information about: (a) the order of the first bits that differ due to the values ​​between different intermediate keys, and (b) at least a portion of a prefix preceding the first bit.

52. The method of claim 47, wherein: The second bucket of the second data structure includes second conflict separation metadata for selecting at least one of (a) key-value pair access information and (b) representative key-value pair access within each conflicting second logical slot, wherein the conflicting second logical slot is mapped to multiple conflicting intermediate keys.

53. The method of claim 52, wherein: Each bucket includes starting metadata indicating the total number of codewords associated with the bucket preceding the bucket.

54. The method of claim 52, wherein: The second conflict separation metadata includes, for each conflicting second logical slot, a tree representing conflicting intermediate keys mapped to the conflicting second logical slot.

55. The method of claim 52, wherein: The second data structure stores key-value pair access information about a plurality of code words storing a plurality of key-value pairs.

56. A non-volatile computer-readable medium storing instructions, which, when executed by a solid-state drive (SSD) memory controller, cause the SSD memory controller to perform the following steps: calculating, by the SSD memory controller, a first bucket identifier and a first inter-bucket value based on an input key; determining a block cluster storing a key-value pair based on the first bucket identifier, the first inter-bucket value, and first metadata of a first data structure; Calculate a second bucket identifier and a second inter-bucket value based on the input key; determine at least one of key-value pair retrieval information and representative key-value pair retrieval information based on the second bucket identifier, the second inter-bucket value and second metadata of the second data structure; wherein, The second data structure is assigned to the block cluster; wherein the second metadata includes a second logical slot, a second slot locator, and second conflict separation metadata; wherein at least the second slot locator includes only metadata of a representative key-value pair, the representative key-value pair being a subset of a plurality of key-value pairs stored in the block cluster; And retrieving a key-value pair based on at least one of the key-value pair retrieval information and the representative key-value pair retrieval information.

57. A non-volatile computer-readable medium storing instructions, which, when executed by a solid-state drive (SSD) memory controller, cause the SSD memory controller to perform the following steps: calculating, by the SSD memory controller, a first bucket identifier and a first inter-bucket value based on an input key; determining a block cluster storing a key-value pair based on the first bucket identifier, the first inter-bucket value, and first metadata of a first data structure; Calculate a second bucket identifier and a second inter-bucket value based on the input key; determine key-value pair retrieval information based on the second bucket identifier, the second inter-bucket value, and second metadata of the second data structure; wherein, The second data structure is assigned to the block cluster; And retrieving at least the key-value pair value based on the key-value pair retrieval information.

58. A system for accessing a key-value pair stored in a solid-state drive (SSD) memory, the system comprising an SSD memory, the SSD memory being configured to perform the following steps: calculating, by an SSD memory controller, a first bucket identifier and a first inter-bucket value based on an input key; determining a block cluster storing the key-value pair based on the first bucket identifier, the first inter-bucket value, and first metadata of a first data structure; Calculate a second bucket identifier and a second inter-bucket value based on the input key; determine at least one of key-value pair retrieval information and representative key-value pair retrieval information based on the second bucket identifier, the second inter-bucket value and second metadata of the second data structure; wherein, The second data structure is assigned to the block cluster; wherein the second metadata includes a second logical slot, a second slot locator, and second conflict separation metadata; wherein at least the second slot locator includes only metadata of a representative key-value pair, the representative key-value pair being a subset of a plurality of key-value pairs stored in the block cluster; And retrieving a key-value pair based on at least one of the key-value pair retrieval information and the representative key-value pair retrieval information.

59. A system for accessing a key-value pair stored in a solid-state drive (SSD) memory, the system comprising an SSD memory, the SSD memory being configured to perform the following steps: calculating a first bucket identifier and a first inter-bucket value based on an input key by an SSD memory controller; determining a block cluster storing the key-value pair based on the first bucket identifier, the first inter-bucket value, and first metadata of a first data structure; Calculate a second bucket identifier and a second inter-bucket value based on the input key; determine key-value pair retrieval information based on the second bucket identifier, the second inter-bucket value, and second metadata of the second data structure; wherein, The second data structure is assigned to the block cluster; And retrieving at least the key-value pair value based on the key-value pair retrieval information.

60. A method for accessing a key-value pair stored in a solid state drive (SSD) memory, the method comprising: Receiving an input key via the SSD controller; Convert input value to intermediate key; applying a first hash function on the intermediate key to provide a first hash result; determining, based on the first hash result, whether the key-value pair associated with the intermediate key is associated with metadata stored in the first data structure or the outgoing data structure; When it is determined that the key-value pair associated with the intermediate key is associated with metadata stored in the outgoing data structure, accessing the outgoing data structure; When it is determined that the key-value pair associated with the intermediate key is associated with the metadata stored in the first data structure, determining a first bucket identifier and a first inter-bucket value based on the first hash result; accessing first metadata of a first bucket identified by a first bucket identifier using at least the first inter-bucket value; wherein the first bucket belongs to a first data structure; selecting a second data structure assigned to the chunk cluster based on the first metadata; applying a second hash function on the intermediate key to provide a second hash result; Calculate a second bucket identifier and a second bucket value based on the second hash result; accessing second metadata of a second bucket identified by a second bucket identifier using at least the second inter-bucket value; wherein the second bucket belongs to a second data structure; Determining key-value pair access information based on the second metadata; wherein the key-value pair is a value associated with the input key; and The key-value pair is obtained using the key-value pair access information.

61. A method for accessing a key-value pair stored in a solid state drive (SSD) memory, the method comprising: Calculate, by the SSD memory controller, a first bucket identifier and a first bucket value based on the input key; determining a cluster of chunks storing key-value pairs based on the first bucket identifier, the first inter-bucket value, and metadata of a data structure selected from the first data structure and the first outflow data structure; Calculate a second bucket identifier and a second bucket inter-value based on the input key; determining key-value pair retrieval information based on the second bucket identifier, the second inter-bucket value, and metadata of a data structure selected from a second data structure and a second outgoing data structure; wherein the second data structure and the second outgoing data structure are assigned to a chunk cluster; as well as At least the key-value pair value is retrieved based on the key-value pair retrieval information.