EP4325369B1 - System and method for performing caching in hashed storage - Google Patents
System and method for performing caching in hashed storage Download PDFInfo
- Publication number
- EP4325369B1 EP4325369B1 EP23190352.7A EP23190352A EP4325369B1 EP 4325369 B1 EP4325369 B1 EP 4325369B1 EP 23190352 A EP23190352 A EP 23190352A EP 4325369 B1 EP4325369 B1 EP 4325369B1
- Authority
- EP
- European Patent Office
- Prior art keywords
- tag
- index
- memory
- address
- bits
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0864—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches using pseudo-associative means, e.g. set-associative or hashing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0893—Caches characterised by their organisation or structure
- G06F12/0895—Caches characterised by their organisation or structure of parts of caches, e.g. directory or tag array
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0658—Controller construction arrangements
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1016—Performance improvement
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1032—Reliability improvement, data loss prevention, degraded operation etc
Definitions
- the present disclosure relates generally to memory devices and improving access speed for hashed storage systems.
- Files are a type of data structure that are used by applications to manage user data. As such, efficient processing, storage, security, and general management of the data is important to information technology (IT) systems. Applications use and depend upon file systems, operating systems (OSs), and other such system software for file management and access related operations.
- OSs operating systems
- SSDs solid state drives
- IOT Internet of things
- NAND flash media based SSD storage devices are also components of the IT infrastructure.
- the desired data portions of stored files are accessed.
- the speed at which the desired data portions are accessed may be of particular importance so that the data may be quickly accessed, to improve the overall throughput of the performance and user experience of applications (e.g., gaming and online shopping applications).
- first, second, etc. may be used for describing various elements, the structural elements are not restricted by the terms. The terms are used to distinguish one element from another element. For example, without departing from the scope of the present disclosure, a first structural element may be referred to as a second structural element. Similarly, the second structural element may also be referred to as the first structural element. As used herein, the term "and/or" includes any and all combinations of one or more associated items.
- the electronic device may be one of various types of electronic devices utilizing storage devices.
- the electronic devices may include, for example, a portable communication device (e.g., a smart phone), a computer, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance.
- a portable communication device e.g., a smart phone
- a computer e.g., a laptop, a desktop, a smart phone
- portable multimedia device e.g., a portable multimedia device
- portable medical device e.g., a portable medical device
- camera e.g., a camera
- a wearable device e.g., a portable medical device
- a home appliance e.g., a smart bracelet
- an electronic device is not limited to those described above.
- terms such as “1 st ,” “2 nd ,” “first,” and “second” may be used to distinguish a corresponding component from another component, but are not intended to limit the components in other aspects (e.g., importance or order). It is intended that if an element (e.g., a first element) is referred to, with or without the term “operatively” or “communicatively”, as “coupled with,” “coupled to,” “connected with,” or “connected to” another element (e.g., a second element), it indicates that the element may be coupled with the other element directly (e.g., wired), wirelessly, or via a third element.
- module may include a unit implemented in hardware, software, firmware, or combination thereof, and may interchangeably be used with other terms, for example, “logic,” “logic block,” “part,” and “circuitry.”
- a module may be a single integral component, or a minimum unit or part thereof, adapted to perform one or more functions.
- a module may be implemented in a form of an application-specific integrated circuit (ASIC).
- ASIC application-specific integrated circuit
- a memory storage system may allow a host device to select either an encryption or decryption key for every input/output (IO) command, referred to as key per IO (KPIO).
- KPIO key per IO
- Self-encrypting drives may perform continuous encryption on user accessible data. This is done at interface speeds using a small number of keys generated/held in persistent media by the storage device.
- KPIO may utilize a large number of encryption keys to be managed and securely downloaded into a non-volatile memory subsystem. Encryption of user data may occur on a per command basis (each command may request the use a different key).
- Hash functions take an arbitrarily long string of bytes and produce a shorter fixed size result.
- a first key type may be input to a hash function to output a shorter fixed size result (e.g., a hash value).
- a hash value may be an index for a specific element stored in memory.
- a hash table may be used to store hash values corresponding to the first key type and value pairs in a list that is accessible through its index. The values in the hash table (paired with the hash value of the first key type) may be a second key type used for KPIO.
- the values in the hash table are the second key type used for KPIO, the values may be used to encrypt/decrypt data to perform read/write commands. Additionally, the values in the hash table (paired with the hash value of the first key type) may be include one or more data objects.
- Memory storage systems often require a large number of possible keys for storage but a relatively small fraction of them may be used during memory read/write operations.
- memory storage may be inefficient because larger than required memory spaces may be allocated for storing the large number of keys, thereby increasing the cost and power consumption of such designs.
- inefficient designs may also cause slow reading and writing of data.
- a method to accelerate lookup speed of a frequently used hashed key-value in a 1 st tier e.g., a memory having a relatively fast access time (e.g., static read only memory (SRAM) or on-chip memory)) while complete sets of key-values are stored in a 2 nd tier memory (e.g., a memory having a relatively slow access time (e.g., dynamic read only memory (DRAM))
- a 1 st tier e.g., a memory having a relatively fast access time (e.g., static read only memory (SRAM) or on-chip memory)
- SRAM static read only memory
- DRAM dynamic read only memory
- This cache tag-identification operation may be performed in a smaller-n-packed 1 st tier memory (e.g., a faster memory). Accordingly, memory lookup speed may be improved since it may not necessarily be limited by 2 nd tier memory (e.g., a slower memory) throughput.
- 1 st tier memory e.g., with relatively faster memory access times
- 2 nd tier memory e.g., with relatively slower memory access times
- FIG. 1 is a block diagram illustrating a key per input output (KPIO) system, according to an embodiment.
- KPIO key per input output
- some of the components include a number of bits (b) or bytes (B) corresponding to each component (e.g., Command (64x8 b) and/or encryption key 64 B).
- the number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings.
- the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components.
- the actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system.
- a KPIO system 101 may be a ⁇ key, value ⁇ system.
- the ⁇ key, value ⁇ system may store data as a collection of key-value pairs in which the key serves as a unique identifier to the value.
- the value may be made up of a fixed number of bits (e.g., 512 bits) and may represent a security key (e.g., a private key) for encrypting or decrypting data (Note, the key included in the " ⁇ key, value ⁇ " pair may be a different type of key than the security key included in the "value" field.).
- An Advanced Encryption Standard (AES) decryption key may be stored in volatile read only memory, such as a DRAM.
- the value representative of the security key (e.g., the 512 bit security key) may be addressed by namespace identification (NSID) + key tag.
- NSID namespace identification
- a host may transmit a read or write command 102 to a storage device (e.g., an SSD (e.g., a flash drive)).
- the command 102 may include an NSID + key tag.
- the NSID 103 may identify a memory to read to or write from.
- the NSID 103 may be made up of 8 or more bits.
- the key tag 104 may be a key index used to index an encrypting/decrypting key for a specific NSID.
- the system may be composed of more than one NSID and key tags in different NSIDs can overlap.
- the NSID 103 and the key tag 104 are combined to form data structure 105 (e.g., a key index, a non-overlapping ⁇ key, value ⁇ index, an encryption index, a decryption key index, a lookup table, or an array).
- the data structure 105 may be an AES index.
- the size of the data structure 105 may be composed of 16,777,246 (entries) x 512 bits, and may be partitioned into a predetermined number of name spaces (NSs) (e.g., 256 NSs of 64kb each).
- Each NS may include a number of valid entries which may be linearly incremented. Linearly allocation of valid entries may reduce hit rate and can create a throttle refill due to least recently used (LRU) eviction policy.
- LRU least recently used
- Each NS may be indexed across various portions of the entire data structure 105 (this may be called "sparse indexing"), thereby requiring a large number of look-ups to retrieve the information included in a single NS.
- the data structure 105 is large.
- the data structure 105 includes about 16 million possible entries. However, the system may use 64 thousand valid entries. Thus, the total memory size may be 1 gigabyte (GB), and the total valid memory size may be 4 megabytes (MB). Since the number of valid entries is small relative to the total size of the memory, the memory is sparse.
- Having a pre-defined fixed/max number of valid keys is a characteristic of KPIO encryption that that uses a limited memory size and a maximum number of lookups in the large and sparse source address space, thereby increasing the importance of relying on an efficient throughput calculation for quickly finding and retrieving valid keys.
- the data structure 105 may be used to retrieve a security key 106 (e.g., an AES encryption key or encryption key).
- the security key 106 may be 64 bytes (512 bits). If the security key 106 is 64 bytes, then it may be large, and may need to be saved on a cache memory or an external memory to be accessed.
- a security key 106 may be retrieved and sent to the de/encryption engine 107.
- Decrypted data e.g., unencrypted data
- decrypted data may be read 108 or decrypted data may be written 109 from the host to the SSD, and the security key 106 may be used by the de/encryption engine 107 to read encrypted data 110 or write encrypted data 111.
- the encrypted data 110 or 111 may be 4,096 x 8 bits and stored in memflash.
- the encrypted data 110 or 111 may be stored in a remote server (e.g., a cloud server).
- a direct address lookup table may be used to store key values in the key index 105 in a KPIO system.
- a direct address LUT addresses each command 102 to a specific address space in the key index 105, however the size of the AES encryption key index 105 must be very large, since a fixed portion of the size of the key index 105 can include valid entries.
- CAM lookup may be a solution for efficiently obtaining or retrieving key values in a KPIO system.
- CAM lookup reduces memory storage size of the key index 105 and achieves a fast throughput.
- CAM uses a large number of logic gates to enter or retrieve key values, which is expensive. For example, for 64 thousand valid entries, 64 thousand x 24 bit comparators may be needed to perform logic functions to redirect a source index to a valid key address space in the key index 105.
- hash addressing is used to hash the source index command to a finite size to identify a key storage address of a hash key index (e.g., reducing the index command from 24 to 16 bits).
- Hash addressing advantageously reduces the memory size of a memory by using a hash key index, since hashed indexes can be stored compactly with a reduced length.
- multiple source keys e.g., keys from one or more sources to be input into the hash function
- retrieval of a valid value from the same hash index- may require a conflict resolution operation which may slow throughput.
- the hash conflict resolution operation may involve performing a compare operation when using hash indexes to identify storage indexes in a primary memory. If the compare operation matches a hashed index corresponding to a storage address in the primary memory with a source index (e.g., an NSID + key tag), then a linked list may be used to designate a secondary memory address space to associate the hashed index corresponding to the storage address in the primary memory with the source index. In this manner, multiple entries can be associated with the same hashed index using the linked list. Accordingly, the size of the primary memory may be reduced to a small size, since valid entries may be included. However, when a conflict occurs and a linked list is designated, the memory that is allocated to an entry must be expanded. In addition, due to the compare operation, a conflict may occur and accessing the memory may require multiple operations to obtain data from linked lists.
- a source index e.g., an NSID + key tag
- a peripheral component interconnect express (PCIe) link may be used to access memory.
- the PCIe4x4 standard may use 2 million (M) input/output operations per second (IOPS) or 500 nanoseconds (ns) for one lookup (e.g., read or write).
- the PCIe4x6 standard may use 8M IOPS or 125 ns for one lookup. DRAM access may be about 50-70ns.
- M input/output operations per second
- ns nanoseconds
- DRAM access may be about 50-70ns.
- the present application proposes solutions that can efficiently lookup a memory entry (e.g., an encryption key) using 1 st tier: cache RAM (e.g., a cache storage), thereby reducing the likelihood needing to access a 2 nd tier: external RAM (e.g., a DRAM), which may be slow to access.
- 1 st tier cache RAM (e.g., a cache storage)
- 2 nd tier external RAM (e.g., a DRAM)
- the present application proposes reducing the overall throughput time for obtaining a memory entry and minimizes the number of lookup iterations, thereby improving lookup speeds for systems that rely on PCIe IOPS standards.
- a first type of cache conflict may be referred to as a traditional cache conflict resolution.
- a second type of cache conflict may referred to as a hash cache conflict resolution.
- comparisons are made to identify whether a conflict exists. Each comparison may be, for example, a traditional cache conflict resolution or a hash cache conflict resolution. Other types of comparisons, such as multi-way cache comparisons, may be used too.
- a hash cache comparison may be between two values: 1. The Tag_Address access/index Tag Memory Content (e.g., 24 bits) and 2. The full source address (e.g., 24 bits). This type of comparison may be exemplified by 603 of FIG. 6 , discussed below
- tag memory content refers to a memory content stored in tag memory (e.g., 1 st tier tag RAM).
- tag memory content may refer to a different number of bits (e.g., 14 bits in the case of traditional cache conflict resolution, 24 bits in the case of hash cache conflict resolution, etc.), which may be compared with a part, or all, of the source address.
- FIG. 2 is a block diagram illustrating hash conflict resolution, according to an embodiment.
- some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]).
- the number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings.
- the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components.
- the actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system.
- Hash conflict resolution using a linked list may merge separate chaining linked lists with a hash table to save memory space for unused slots in a primary memory.
- Hash conflict resolution may be applied to a KPIO system, such that a source index (an NSID and key tag) is hashed and used to identify a storage address corresponding to an encryption or decryption key stored in DRAM.
- the operations described in FIG. 2 may be performed by a controller stored in memory, a processor, or computer-implemented instructions.
- a source index comprising an NSID and key tag may be hashed from 24 to 16 bits to generate a hashed index.
- the hashed index represents a storage address of the primary memory (e.g., a hash table).
- a tag portion e.g., 24 bits
- the NSID e.g., 8 bits
- key tag e.g., 16 bits
- the tag portion may represent a local address of the primary memory entry and is compared with the source index comprising the NSID and key tag. As shown in FIG.
- the 24 bit tag stored in memory storage is compared with the source index (e.g., NSID (8 bits) and key tag (16 bits)) at step 201 that a conflict exists (a mismatch), and conflict resolution logic may be performed at step 202.
- a first pointer may be assigned to link access 1 to another storage address in the primary memory, access 2.
- a second pointer may be assigned to link access 2 to another storage address in the primary memory, access 3.
- An entry included in the primary memory may be accessed using a cache index.
- Access 1 access 2, and access 3 denote access attempts to an entry of the primary memory. Each access attempt may initiate the following sequence:
- FIG. 3 is a block diagram illustrating a partial source index as a tag index, according to an embodiment.
- some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]).
- the number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings.
- the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components.
- the actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system.
- a 24 bit source index 301 is provided.
- the 10 lower bits (e.g., least significant bits (LSBs)) of the source index 301 are used as a tag address 302.
- the remaining 14 bits of the source index 301 are stored in the 1 st tier: tag RAM (cache storage) so that the total memory size is 1024 x 14 bits.
- the value may be output from the tag RAM as tag_content (the term “tag_content” may be used interchangeably with the term “tag memory content”) and compared with the corresponding bits of NSID[8] keytag[6] from the source index in step 303 to determine whether there is a conflict. If there is no conflict (cache hit or match), then a corresponding cache 304 entry may be output from cache storage. In this manner, the cache storage is used to improve the hit rate for outputting a storage entry, for example, systems in which valid entries are linearly allocated (e.g., KPIO systems).
- a valid entry is not output via 1 st tier cache RAM.
- 2 nd tier external RAM is accessed to identify a valid entry by hashing the source index 301 to 16 bits and providing it as a hash index 305.
- the hash index 305 may be 16 bits and represent a storage address of the 2 nd tier: external RAM.
- a tag portion of access 1 is compared (e.g., by a controller) to the hashed index of the NSID and key tag representing the storage address of the memory.
- the tag portion of access 1 may represent a local address of the access 1 in a memory entry and is compared with the source index comprising the NSID and key tag.
- step 306 the next pointer may be assigned to link access 1 with access 2 in the storage device in step 307.
- step 308 a tag portion of access 2 is compared (e.g., by the controller) to the hashed index of the NSID and key tag representing the storage address of the memory. If no conflict is identified in step 308 (match), then the entry may be output from the 2 nd tier: external RAM and provided as output at step 309.
- cache memory may be accessed and an entry output much faster than using DRAM to perform the same.
- using cache memory to output an entry is preferable because it has much less latency.
- a characteristic of KPIO may be that a KPIO key in each NS may be linearly incremented upon allocation. For example, if a lower address of each NS is used as an index, then each NS may point to a first index (e.g., index 1), and a 1 st tier: tag RAM, as provided in FIG. 3 , may only store one NS entry (e.g., 1 NS entry of the 256 NS entries).
- FIG. 4 is a block diagram illustrating a multi-way tag address index, according to an embodiment.
- some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]).
- the number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings.
- the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components.
- the actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system.
- FIG. 4 includes a number of components that are similar to FIG. 3 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description of FIG. 4 .
- the 1 st tier: tag RAM is provided as a multi-way tag address. As shown in FIG. 4 , the 1 st tier: tag RAM is duplicated into two tag addresses (Tag0 and Tag1). Accordingly, a first entry 401 and a second entry 402 may be cached in the LSB to one tag address, thereby increasing the hit rate (since, for example, 256 NS entries may be used to provide a match for two entries instead of one). Further, the 1 st tier: tag RAM may also be divided into partitions other than two. For example, the 1 st tier: tag RAM may be allocated as having four entries cached to the LSB, thereby increasing the hit rate even further (since, for example, 256 NS entries may be used to provide a match for four entries instead of two).
- a multi-way cache memory comparison is performed.
- a comparison between tag content e.g., tag_content_1[15]
- a portion of the source index e.g., NSID[8] KeyTag[7]
- a comparison between tag content e.g., tag_content_2[15]
- a portion of the source index e.g., NSID[8] KeyTag[7]
- a multi-way cache memory comparison is notably different than a traditional cache comparison and a hash cache comparison, as described above, because as shown in steps 403-404, a 2-way traditional cache comparison is a comparison between two values: 1.
- Tag_Address access/index Tag Memory Contents 15 bits and 2.
- Source Address 24 bits - 9 bits.
- tag address may be 9 bits since 10 LSBs of source index - 1 bit to distinguish among duplicated tag addresses Tag0 and Tag1.
- an x-way traditional cache memory comparison compares between two values: 1. X entries of the Tag_Address access/index Tag Memory Contents (14+Log2(X) bits) and 2. A portion of the Source Address (24 bits -Tag_Address width (e.g., the Tag_Address width may be a function of the number of duplicated tag addresses)). Also, the tag address may be equal to 10 - log2(x).
- FIG. 5 is a block diagram illustrating a source index configurable to be mapped to a tag address, according to an embodiment.
- some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]).
- the number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings.
- the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components.
- the actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system.
- the 1 st tier: tag RAM is provided as a configurable source index mapped to a tag address.
- a part of the NSID[8] of the source index (denoted as "NSID[Y]”) and a part of the keytag[16] of the source index (denoted as "KeyTag[X]”) may be used to identify a tag address of the cache index.
- a part of the NSID bit can be a part of the tag address, which may reduce the likelihood of their being a conflict since the tag address is reconfigurable.
- a configurable x-way traditional cache memory comparison may be performed.
- the configurable source index may allow the multiple namespaces having valid entries to be identified using the cache index. Each valid entry may be incrementally identified for each namespace, starting from zero.
- a hashed source address may be used as a cache tag address.
- Using the hashed source address as the tag address may improve the hit rate (e.g., a lower possibility of a conflict) for the linear increment source address problem. For example, a valid address may be spread evenly across the cache address space and lower a possibility of a conflict to less than 10%.
- an LSB of the hashed source address (hash index) may be used as the tag address (a cache tag address).
- FIG. 6 is a block diagram illustrating using a hashed index as a tag address, according to an embodiment.
- some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]).
- the number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings.
- the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components.
- the actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system.
- FIG. 6 includes a number of components that are similar to FIGS. 3-5 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description of FIG. 6 .
- a source index is hashed from, for example, 24 bits to 16 bits at step 601.
- tag RAM is set to be equal to a predetermined number of bits (e.g., 10 bits) of the hashed source index.
- the tag memory content is compared to the source index (24 bits to determine whether a valid entry is stored in cache.
- Hashing the source index may include the added benefit of a valid entry corresponding to the hashed index[16] as not being linear (e.g., a hashed valid entry is more likely to be spread across 1 st tier: tag RAM in a randomized manner), thereby resolving the linear-increment allocation problem of KPIO, discussed above, since entries included in a name space will not be incremented linearly.
- the source index may have its entropy crowded to the LSBs. After hashing, however, the hashed source index's entropy may be spread equally across each of the hashed bits. In addition, hashing advantageously reduces the total number of bits (e.g., from 24 bits to 16 bits), thereby minimizing the size of a valid NS entry.
- hashing the source index resolves the linear increment problem and also reduces the total number of bits to minimize the size of a valid NS entry
- a tradeoff may be that the values comprising the hash index may not necessarily be unique, thus the possibility of a hash conflict may still exist.
- a solution to avoiding a hash conflict may be to use the whole tag address to designate the most significant bit (MSB) to perform cache identification to determine whether a conflict exists.
- MSB most significant bit
- FIG. 7 is a block diagram illustrating a multi-way hashed index as a tag address, according to an embodiment.
- some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]).
- the number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings.
- the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components.
- the actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system.
- FIG. 7 includes a number of components that are similar to FIGS. 3-6 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description of FIG. 7 .
- the source index 701 is hashed from 24 bits to 16 bits, and associated with a tag address at 702, then the possibility of a hash conflict using the hash address increases, thereby reducing the hit rate (less likely to be a match). Accordingly, a solution similar to that described with respect to FIG. 4 may be employed by comparing the source index with tag memory content (e.g., Tag 0), which is then compared with tag memory content (e.g., Tag 1) to determine wither the cache storage includes a valid entry.
- tag memory content e.g., Tag 0
- FIG. 8 is a block diagram illustrating a double hash as a cache index, according to an embodiment.
- some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]).
- the number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings.
- the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components.
- the actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system.
- FIG. 8 includes a number of components that are similar to FIGS. 3-7 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description of FIG. 8 .
- performing a double hash function may reduce the likelihood of there being a tag conflict in cache, and improve the hit rate (least likely to result in a miss match).
- the source index is hashed from 24 bits to 16 bits using a first hash function. If the 16 bit first hash entry conflicts with the entry in the tag index, then the source index may be hashed from 24 to 16 bits using a second hash function to identify a second entry location in the tag index. If the 16 bit second hash entry conflicts with the second entry location of the tag index, the source index may be hashed from 24 to 16 bits using a third hash function to identify a third entry location in the tag index.
- tag RAM is not fully occupied
- tag memory content 1, tag memory content 2, and tag memory content 3 are compared to the source index to determine whether the cache memory includes the valid entry.
- the 2 nd tier external RAM may use a hashing function when outputting an entry.
- the hashing function since the hashing function is being used by the 2 nd tier: external RAM, it may be reused as the first, second and third hash functions for hashing the source index from 24 to 16 bits.
- the hashing function is not limited to hashing to or from 24 to 16 bits, and it may hash to a predetermined number of bits greater or lower than 16 when performing hashing.
- FIG. 9 illustrates a table comparing the benefits of the embodiments provided by FIGS. 3-8 , according to an embodiment.
- FIG. 9 includes a number of values and percentages that are provided by way of example in order to show the relative effects of the embodiments provided by FIGS. 3-8 .
- the values and percentages shown in FIG. 9 are not limited to those which are displayed, and various other values and percentages may be employed.
- FIG. 9 compares an average total amount of time (Max 140 ns) for performing 3 hops for each of the embodiments provided by FIGS. 3-8 .
- the average total amount of time is a function of the cache hit rate, hash conflict, and time it takes to access 1 st and 2 nd tier memories. Since 1 st tier memory may be provided as SRAM, the time it takes to access SRAM may be 5ns. Since 2 nd tier memory is provided as DRAM, the time it takes to access DRAM may be 70ns.
- FIG. 10 illustrates a table comparing the sizes of the memories provided by FIGS. 3-8 , according to an embodiment.
- FIG. 10 includes a number of values pertaining to the sizes of the memories provided by the embodiments provided by FIGS. 3-8 .
- the values shown in FIG. 10 are not limited to those which are displayed, and various other values and percentages may be employed.
- FIG. 11 is a block diagram illustrating a redirection table to access a cache entry, according to an embodiment.
- some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]).
- the number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings.
- the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components.
- the actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system.
- FIG. 11 includes a number of components that are similar to FIGS. 3-8 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description of FIG. 11 .
- the hash table is composed of a 65536x4 bit hashed index redirection table (hash redirect table), which significantly reduces the size of the memory because the likelihood of a conflict is reduced by a factor of 4 by using the hashed index redirection table in combination with the cache storage in a primary memory.
- the primary memory may be composed of static read only memory (SRAM), and may be located on an IC (e.g., an ASIC) having read/write speeds that are faster than accessing a DRAM.
- the DRAM may be located off of the integrated circuit (IC) chip and may be large relative to the size of the SRAM.
- the hash redirect table may be referred to as an "on chip" hash redirect table that may quickly be accessed to obtain a redirect address.
- the hash redirect table is a redirection index that redirects to an address of a cache storage.
- the hash redirect table is configured so that an entry of the hash redirect table points to a corresponding first entry in the cache storage.
- the input to the hash redirect table may be 18 bits, and the output may be 11 or more bits.
- the controller may identify a redirection index using a hashed source index to point to the first entry of a corresponding entry in the storage memory (e.g., using a head of line (HOL) pointer).
- the redirection index may be used to identify a storage entry in the secondary memory without first accessing cache memory and, if the cache entry is a miss, then identifying the storage entry in the secondary memory.
- the redirection index speeds up the process of identifying the storage entry when it is stored in the secondary memory (e.g., when it is not stored in cache storage).
- the 2 bits may be used to determine whether there is a cache hit or a cache miss. If there is a cache hit, then the hash redirect table may point to the cache storage device in primary memory to access an entry. However, if there is a cache miss, then the hash redirect table may point to secondary memory to lookup an entry. As discussed above, accessing (performing a lookup in) the secondary memory requires substantially more time than accessing the primary memory. Thus, the hash redirect table improves the lookup time because it reduces the likelihood that the secondary memory will need to be accessed by reducing the likelihood of a conflict.
- the present application improves throughput in memory systems by providing a number of configurations that reduce the need to access slow off-chip memory for hash based KPIO systems, thereby improving throughput and latency, and reducing power consumption that would be necessary to operate a secondary memory (DRAM).
- DRAM secondary memory
- FIG. 12 is a flowchart illustrating accessing a stored memory, according to an embodiment.
- the steps described in FIG. 12 may be performed by a controller stored in memory, a processor, or computer-implemented instructions.
- tag address of a tag memory is identified based, at least partially, on a source index including an NSID and a keytag.
- a cache storage address corresponding to the tag address is accessed.
- the cache storage address may be included in a primary memory.
- the primary memory may be SRAM.
- tag memory content is compared with at least part of the source index to identify whether a conflict exists.
- the tag memory content may be the same number of bits as the at least part of the source index.
- step 1204 information from the cache storage address is obtained in response to identifying whether a conflict does exist in step 1403.
- the obtained information may be an encryption or a decryption key (e.g., an entry) of a predetermined size (e.g., 512 bits).
- a conflict may be obtained directly from the cache storage device. Otherwise, if a conflict does exist then a secondary memory (e.g., 2 nd tier: external ram or DRAM) may need to be accessed to obtain the appropriate entry for output.
- a secondary memory e.g., 2 nd tier: external ram or DRAM
- a conflict does exist, then a number of different options may ensue (e.g., folded linked list, secondary memory linked list, reroute table with a linked list, MFU with a linked list, sequential double hash conflict resolution, concurrent double hash conflict resolution, HOL reroute table with double hash conflict resolution, etc.).
- FIG. 13 is a memory system illustrating structural components for performing embodiments described in the present application, according to an embodiment.
- FIGS. 1-12 may be performed by a controller stored in memory, a processor, or computer-implemented instructions.
- instructions performed by the controller may be implemented using as an FPGA, an ASIC, a general purpose computer, or by a remote processing system (e.g., a cloud computing system).
- the memory system 1300 includes a host 1301, an IC 1302 (e.g., a memory buffer chip) and DRAM (e.g., a nonvolatile memory) 1303. Although DRAM is shown separate from the IC 1302, the DRAM may be included on the IC 1302.
- IC 1302 e.g., a memory buffer chip
- DRAM e.g., a nonvolatile memory
- the IC 1302 includes a host interface 1304, SRAM (e.g., a volatile memory) 1305, storage media (e.g., flash memory) 1306 and a controller 1307.
- the host interface 1304 may communicate information from the host 1301 to the IC 1302 or from the IC 1302 to the host 1301.
- the SRAM 1305 may be relatively small in size compared to the DRAM 1303. However, the SRAM 1305 may have faster read/write speeds than the DRAM 1303.
- the storage media 1306 may store data to be transmitted to or from the host 1301 and/or the DRAM 1303.
- the embodiments described in the present application provide particular configurations to improve accessing stored information and, in particular, accessing stored information for KPIO systems.
- the storage system illustrated in FIG. 13 provides a structure for realizing the embodiments of the present application. It is noted, however, that the embodiments of the present application should not be limited to the structure of FIG. 13 , as one of ordinary skill in the art would recognize that other memory storage systems may be applied to implement the embodiments of the present application.
- FIG. 14 illustrates an electronic device in a network environment, according to an embodiment.
- the electronic device 1401 e.g., a mobile terminal including GPS functionality, in the network environment 1400 may communicate with an electronic device 1402 via a first network 1498 (e.g., a short-range wireless communication network), or an electronic device 1404 or a server 1408 via a second network 1499 (e.g., a long-range wireless communication network).
- the electronic device 1401 may communicate with the electronic device 1404 via the server 1408.
- the electronic device 1401 may include a processor 1420, a memory 1430, an input device 1450, a sound output device 1455, a display device 1460, an audio module 1470, a sensor module 1476, an interface 1477, a haptic module 1479, a camera module 1480, a power management module 1488, a battery 1489, a communication module 1490, a subscriber identification module (SIM) 1496, or an antenna module 1497 including a GNSS antenna.
- SIM subscriber identification module
- antenna module 1497 including a GNSS antenna.
- at least one (e.g., the display device 1460 or the camera module 1480) of the components may be omitted from the electronic device 1401, or one or more other components may be added to the electronic device 1401.
- the components may be implemented as a single IC.
- the sensor module 1476 e.g., a fingerprint sensor, an iris sensor, or an illuminance sensor
- the display device 1460 e.g., a display
- the processor 1420 may execute, for example, software (e.g., a program 1440) to control at least one other component (e.g., a hardware or a software component) of the electronic device 1401 coupled with the processor 1420, and may perform various data processing or computations. As at least part of the data processing or computations, the processor 1420 may load a command or data received from another component (e.g., the sensor module 1476 or the communication module 1490) in volatile memory 1432, process the command or the data stored in the volatile memory 1432, and store resulting data in non-volatile memory 1434.
- software e.g., a program 1440
- the processor 1420 may load a command or data received from another component (e.g., the sensor module 1476 or the communication module 1490) in volatile memory 1432, process the command or the data stored in the volatile memory 1432, and store resulting data in non-volatile memory 1434.
- the processor 1420 may include a main processor 1421 (e.g., a central processing unit (CPU) or an application processor, and an auxiliary processor 1423 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is operable independently from, or in conjunction with, the main processor 1421. Additionally or alternatively, the auxiliary processor 1423 may be adapted to consume less power than the main processor 1421, or execute a particular function. The auxiliary processor 1423 may be implemented as being separate from, or a part of, the main processor 1421.
- auxiliary processor 1423 e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)
- the auxiliary processor 1423 may be adapted to consume less power than the main processor 1421, or execute a particular function.
- the auxiliary processor 1423 may be implemented as being separate from, or a part of, the main processor 14
- the auxiliary processor 1423 may control at least some of the functions or states related to at least one component (e.g., the display device 1460, the sensor module 1476, or the communication module 1490) among the components of the electronic device 1401, instead of the main processor 1421 while the main processor 1421 is in an inactive (e.g., sleep) state, or together with the main processor 1421 while the main processor 1421 is in an active state (e.g., executing an application).
- the auxiliary processor 1423 e.g., an image signal processor or a communication processor
- the memory 1430 may store various data used by at least one component (e.g., the processor 1420 or the sensor module 1476) of the electronic device 1401.
- the various data may include, for example, software (e.g., the program 1440) and input data or output data for a command related thereto.
- the memory 1430 may include the volatile memory 1432 or the non-volatile memory 1434.
- the program 1440 may be stored in the memory 1430 as software, and may include, for example, an operating system (OS) 1442, middleware 1444, or an application 1446.
- OS operating system
- middleware middleware
- application application
- the input device 1450 may receive a command or data to be used by another component (e.g., the processor 1420) of the electronic device 1401, from the outside (e.g., a user) of the electronic device 1401.
- the input device 1450 may include, for example, a microphone, a mouse, or a keyboard.
- the sound output device 1455 may output sound signals to the outside of the electronic device 1401.
- the sound output device 1455 may include, for example, a speaker or a receiver.
- the speaker may be used for general purposes, such as playing multimedia or recording, and the receiver may be used for receiving an incoming call.
- the receiver may be implemented as being separate from, or a part of, the speaker.
- the display device 1460 may visually provide information to the outside (e.g., a user) of the electronic device 1401.
- the display device 1460 may include, for example, a display, a hologram device, or a projector and control circuitry to control a corresponding one of the display, hologram device, and projector.
- the display device 1460 may include touch circuitry adapted to detect a touch, or sensor circuitry (e.g., a pressure sensor) adapted to measure the intensity of force incurred by the touch.
- the audio module 1470 may convert a sound into an electrical signal and vice versa. According to one embodiment, the audio module 1470 may obtain the sound via the input device 1450, or output the sound via the sound output device 1455 or a headphone of an external electronic device 1402 directly (e.g., wired) or wirelessly coupled with the electronic device 1401.
- the sensor module 1476 may detect an operational state (e.g., power or temperature) of the electronic device 1401 or an environmental state (e.g., a state of a user) external to the electronic device 1401, and then generate an electrical signal or data value corresponding to the detected state.
- the sensor module 1476 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.
- the interface 1477 may support one or more specified protocols to be used for the electronic device 1401 to be coupled with the external electronic device 1402 directly (e.g., wired) or wirelessly.
- the interface 1477 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.
- HDMI high definition multimedia interface
- USB universal serial bus
- SD secure digital
- a connecting terminal 1478 may include a connector via which the electronic device 1401 may be physically connected with the external electronic device 1402.
- the connecting terminal 1478 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector).
- the haptic module 1479 may convert an electrical signal into a mechanical stimulus (e.g., a vibration or a movement) or an electrical stimulus which may be recognized by a user via tactile sensation or kinesthetic sensation.
- the haptic module 1479 may include, for example, a motor, a piezoelectric element, or an electrical stimulator.
- the camera module 1480 may capture a still image or moving images.
- the camera module 1480 may include one or more lenses, image sensors, image signal processors, or flashes.
- the power management module 1488 may manage power supplied to the electronic device 1401.
- the power management module 1488 may be implemented as at least part of, for example, a power management integrated circuit (PMIC).
- PMIC power management integrated circuit
- the battery 1489 may supply power to at least one component of the electronic device 1401.
- the battery 1489 may include, for example, a primary cell which is not rechargeable, a secondary cell which is rechargeable, or a fuel cell.
- the communication module 1490 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 1401 and the external electronic device (e.g., the electronic device 1402, the electronic device 1404, or the server 1408) and performing communication via the established communication channel.
- the communication module 1490 may include one or more communication processors that are operable independently from the processor 1420 (e.g., the application processor) and supports a direct (e.g., wired) communication or a wireless communication.
- the communication module 1490 may include a wireless communication module 1492 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 1494 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module).
- a wireless communication module 1492 e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module
- GNSS global navigation satellite system
- wired communication module 1494 e.g., a local area network (LAN) communication module or a power line communication (PLC) module.
- LAN local area network
- PLC power line communication
- a corresponding one of these communication modules may communicate with the external electronic device via the first network 1498 (e.g., a short-range communication network, such as Bluetooth TM , wireless-fidelity (Wi-Fi) direct, or a standard of the Infrared Data Association (IrDA)) or the second network 1499 (e.g., a long-range communication network, such as a cellular network, the Internet, or a computer network (e.g., LAN or wide area network (WAN)).
- the first network 1498 e.g., a short-range communication network, such as Bluetooth TM , wireless-fidelity (Wi-Fi) direct, or a standard of the Infrared Data Association (IrDA)
- the second network 1499 e.g., a long-range communication network, such as a cellular network, the Internet, or a computer network (e.g., LAN or wide area network (WAN)
- These various types of communication modules may be implemented as a single component (e.g.,
- the wireless communication module 1492 may identify and authenticate the electronic device 1401 in a communication network, such as the first network 1498 or the second network 1499, using subscriber information (e.g., international mobile subscriber identity (IMSI)) stored in the subscriber identification module 1496.
- subscriber information e.g., international mobile subscriber identity (IMSI)
- the antenna module 1497 may transmit or receive a signal or power to or from the outside (e.g., the external electronic device) of the electronic device 1401.
- the antenna module 1497 may include one or more antennas, and, therefrom, at least one antenna appropriate for a communication scheme used in the communication network, such as the first network 1498 or the second network 1499, may be selected, for example, by the communication module 1490 (e.g., the wireless communication module 1492).
- the signal or the power may then be transmitted or received between the communication module 1490 and the external electronic device via the selected at least one antenna.
- At least some of the above-described components may be mutually coupled and communicate signals (e.g., commands or data) therebetween via an inter-peripheral communication scheme (e.g., a bus, a general purpose input and output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)).
- an inter-peripheral communication scheme e.g., a bus, a general purpose input and output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)
- commands or data may be transmitted or received between the electronic device 1401 and the external electronic device 1404 via the server 1408 coupled with the second network 1499.
- Each of the electronic devices 1402 and 1404 may be a device of a same type as, or a different type, from the electronic device 1401. All or some of operations to be executed at the electronic device 1401 may be executed at one or more of the external electronic devices 1402, 1404, or 1408. For example, if the electronic device 1401 should perform a function or a service automatically, or in response to a request from a user or another device, the electronic device 1401, instead of, or in addition to, executing the function or the service, may request the one or more external electronic devices to perform at least part of the function or the service.
- the one or more external electronic devices receiving the request may perform the at least part of the function or the service requested, or an additional function or an additional service related to the request, and transfer an outcome of the performing to the electronic device 1401.
- the electronic device 1401 may provide the outcome, with or without further processing of the outcome, as at least part of a reply to the request.
- a cloud computing, distributed computing, or client-server computing technology may be used, for example.
- One embodiment may be implemented as software (e.g., the program 1440) including one or more instructions that are stored in a storage medium (e.g., internal memory 1436 or external memory 1438) that is readable by a machine (e.g., the electronic device 1401).
- a processor of the electronic device 1401 may invoke at least one of the one or more instructions stored in the storage medium, and execute it, with or without using one or more other components under the control of the processor.
- a machine may be operated to perform at least one function according to the at least one instruction invoked.
- the one or more instructions may include code generated by a complier or code executable by an interpreter.
- a machine-readable storage medium may be provided in the form of a non-transitory storage medium.
- non-transitory indicates that the storage medium is a tangible device, and does not include a signal (e.g., an electromagnetic wave), but this term does not differentiate between where data is semi-permanently stored in the storage medium and where the data is temporarily stored in the storage medium.
- a signal e.g., an electromagnetic wave
- a method of the disclosure may be included and provided in a computer program product.
- the computer program product may be traded as a product between a seller and a buyer.
- the computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disc read only memory (CD-ROM)), or be distributed (e.g., downloaded or uploaded) online via an application store (e.g., Play Store TM ), or between two user devices (e.g., smart phones) directly. If distributed online, at least part of the computer program product may be temporarily generated or at least temporarily stored in the machine-readable storage medium, such as memory of the manufacturer's server, a server of the application store, or a relay server.
- a machine-readable storage medium e.g., a compact disc read only memory (CD-ROM)
- an application store e.g., Play Store TM
- two user devices e.g., smart phones
- each component e.g., a module or a program of the above-described components may include a single entity or multiple entities. One or more of the above-described components may be omitted, or one or more other components may be added. Alternatively or additionally, a plurality of components (e.g., modules or programs) may be integrated into a single component. In this case, the integrated component may still perform one or more functions of each of the plurality of components in the same or similar manner as they are performed by a corresponding one of the plurality of components before the integration. Operations performed by the module, the program, or another component may be carried out sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations may be executed in a different order or omitted, or one or more other operations may be added.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Memory System Of A Hierarchy Structure (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
- The present disclosure relates generally to memory devices and improving access speed for hashed storage systems.
- Files are a type of data structure that are used by applications to manage user data. As such, efficient processing, storage, security, and general management of the data is important to information technology (IT) systems. Applications use and depend upon file systems, operating systems (OSs), and other such system software for file management and access related operations.
- Storage devices (e.g., persistent data storage devices such as solid state drives (SSDs)) for modern IT infrastructure are increasing in popularity, as vast amounts of data are being generated by various applications, such as, for example, Internet of things (IOT), social networks, autonomous vehicles, etc. NAND flash media based SSD storage devices are also components of the IT infrastructure.
- When applications require data, the desired data portions of stored files are accessed. The speed at which the desired data portions are accessed may be of particular importance so that the data may be quickly accessed, to improve the overall throughput of the performance and user experience of applications (e.g., gaming and online shopping applications).
- From
US 2015/012719 A1 it is known a data store that has a data array for storing data values and a tag array for storing tag values for tracking which data values are stored in the data array. The associativity of the data array is greater than the associativity of the tag array. Hence, fewer tag entries need to be accessed on each data access than in a conventional data store, reducing power consumption. - The present disclosure has been made to address at least the disadvantages described above and to provide at least the advantages described below.
- The invention is set out in the appended set of claims.
- The above and other aspects, features, and advantages of certain embodiments of the present disclosure will be more apparent from the following detailed description, taken in conjunction with the accompanying drawings, in which:
-
FIG. 1 is a block diagram illustrating a key per input output (KPIO) system, according to an embodiment; -
FIG. 2 is a block diagram illustrating hash conflict resolution, according to an embodiment; -
FIG. 3 is a block diagram illustrating a partial source index as a tag index, according to an embodiment; -
FIG. 4 is a block diagram illustrating a multi-way tag address index, according to an embodiment; -
FIG. 5 is a block diagram illustrating a source index configurable to be mapped to a tag address, according to an embodiment; -
FIG. 6 is a block diagram illustrating using a hashed index as a tag address, according to an embodiment; -
FIG. 7 is a block diagram illustrating a multi-way hashed index as a tag address, according to an embodiment; -
FIG. 8 is a block diagram illustrating a double hash as a cache index, according to an embodiment; -
FIG. 9 illustrates a table comparing the benefits of the embodiments provided byFIGS. 3-8 , according to an embodiment; -
FIG. 10 illustrates a table comparing the sizes of the memories provided by embodiments ofFIGS. 3-8 , according to an embodiment; -
FIG. 11 is a block diagram illustrating a redirection table to access a cache entry, according to an embodiment; -
FIG. 12 is a flowchart illustrating accessing a stored memory, according to an embodiment; -
FIG. 13 is a memory system illustrating structural components for performing embodiments described in the present application, according to an embodiment; and -
FIG. 14 illustrates an electronic device in a network environment, according to an embodiment. - Hereinafter, embodiments of the present disclosure are described in detail with reference to the accompanying drawings. It should be noted that the same elements will be designated by the same reference numerals although they are shown in different drawings. In the following description, specific details such as detailed configurations and components are merely provided to assist with the overall understanding of the embodiments of the present disclosure. Therefore, it should be apparent to those skilled in the art that various changes and modifications of the embodiments described herein may be made without departing from the scope of the present disclosure. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness. The terms described below are terms defined in consideration of the functions in the present disclosure, and may be different according to users, intentions of the users, or customs. Therefore, the definitions of the terms should be determined based on the contents throughout this specification.
- The present disclosure may have various modifications and various embodiments, among which embodiments are described below in detail with reference to the accompanying drawings. However, it should be understood that the present disclosure is not limited to the embodiments, but includes all modifications, equivalents, and alternatives within the scope of the present disclosure.
- Although the terms including an ordinal number such as first, second, etc. may be used for describing various elements, the structural elements are not restricted by the terms. The terms are used to distinguish one element from another element. For example, without departing from the scope of the present disclosure, a first structural element may be referred to as a second structural element. Similarly, the second structural element may also be referred to as the first structural element. As used herein, the term "and/or" includes any and all combinations of one or more associated items.
- The terms used herein are merely used to describe various embodiments of the present disclosure but are not intended to limit the present disclosure. Singular forms are intended to include plural forms unless the context clearly indicates otherwise. In the present disclosure, it should be understood that the terms "include" or "have" indicate existence of a feature, a number, a step, an operation, a structural element, parts, or a combination thereof, and do not exclude the existence or probability of the addition of one or more other features, numerals, steps, operations, structural elements, parts, or combinations thereof.
- Unless defined differently, all terms used herein have the same meanings as those understood by a person skilled in the art to which the present disclosure belongs. Terms such as those defined in a generally used dictionary are to be interpreted to have the same meanings as the contextual meanings in the relevant field of art, and are not to be interpreted to have ideal or excessively formal meanings unless clearly defined in the present disclosure.
- The electronic device according to one embodiment may be one of various types of electronic devices utilizing storage devices. The electronic devices may include, for example, a portable communication device (e.g., a smart phone), a computer, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. According to one embodiment of the disclosure, an electronic device is not limited to those described above.
- The terms used in the present disclosure are not intended to limit the present disclosure but are intended to include various changes, equivalents, or replacements for a corresponding embodiment. With regard to the descriptions of the accompanying drawings, similar reference numerals may be used to refer to similar or related elements. A singular form of a noun corresponding to an item may include one or more of the things, unless the relevant context clearly indicates otherwise. As used herein, each of such phrases as "A or B," "at least one of A and B," "at least one of A or B," "A, B, or C," "at least one of A, B, and C," and "at least one of A, B, or C," may include all possible combinations of the items enumerated together in a corresponding one of the phrases. As used herein, terms such as "1st," "2nd," "first," and "second" may be used to distinguish a corresponding component from another component, but are not intended to limit the components in other aspects (e.g., importance or order). It is intended that if an element (e.g., a first element) is referred to, with or without the term "operatively" or "communicatively", as "coupled with," "coupled to," "connected with," or "connected to" another element (e.g., a second element), it indicates that the element may be coupled with the other element directly (e.g., wired), wirelessly, or via a third element.
- As used herein, the term "module" may include a unit implemented in hardware, software, firmware, or combination thereof, and may interchangeably be used with other terms, for example, "logic," "logic block," "part," and "circuitry." A module may be a single integral component, or a minimum unit or part thereof, adapted to perform one or more functions. For example, according to one embodiment, a module may be implemented in a form of an application-specific integrated circuit (ASIC).
- For secure data storage, user accessible data should be protected, which can require encryption and decryption. A memory storage system may allow a host device to select either an encryption or decryption key for every input/output (IO) command, referred to as key per IO (KPIO).
- Self-encrypting drives (SED) may perform continuous encryption on user accessible data. This is done at interface speeds using a small number of keys generated/held in persistent media by the storage device. KPIO may utilize a large number of encryption keys to be managed and securely downloaded into a non-volatile memory subsystem. Encryption of user data may occur on a per command basis (each command may request the use a different key).
- In order to efficiently store encrypted data, a hash function may be used. Hash functions take an arbitrarily long string of bytes and produce a shorter fixed size result. For example, a first key type may be input to a hash function to output a shorter fixed size result (e.g., a hash value). A hash value may be an index for a specific element stored in memory. A hash table may be used to store hash values corresponding to the first key type and value pairs in a list that is accessible through its index. The values in the hash table (paired with the hash value of the first key type) may be a second key type used for KPIO. Therefore, when the values in the hash table are the second key type used for KPIO, the values may be used to encrypt/decrypt data to perform read/write commands. Additionally, the values in the hash table (paired with the hash value of the first key type) may be include one or more data objects.
- Memory storage systems often require a large number of possible keys for storage but a relatively small fraction of them may be used during memory read/write operations. Thus, memory storage may be inefficient because larger than required memory spaces may be allocated for storing the large number of keys, thereby increasing the cost and power consumption of such designs. In addition, inefficient designs may also cause slow reading and writing of data.
- A method to accelerate lookup speed of a frequently used hashed key-value in a 1st tier (e.g., a memory having a relatively fast access time (e.g., static read only memory (SRAM) or on-chip memory))) while complete sets of key-values are stored in a 2nd tier memory (e.g., a memory having a relatively slow access time (e.g., dynamic read only memory (DRAM))) is provided. For example, at least a part of a hashed index or a source address may be used as an identification tag to locate a cache hit, and to reduce the lookup duration. This cache tag-identification operation may be performed in a smaller-n-packed 1st tier memory (e.g., a faster memory). Accordingly, memory lookup speed may be improved since it may not necessarily be limited by 2nd tier memory (e.g., a slower memory) throughput. 1st tier memory (e.g., with relatively faster memory access times) may be referred to as "primary memory" and 2nd tier memory (e.g., with relatively slower memory access times) may be referred to as "secondary memory".
-
FIG. 1 is a block diagram illustrating a key per input output (KPIO) system, according to an embodiment. ThroughoutFIG. 1 , some of the components include a number of bits (b) or bytes (B) corresponding to each component (e.g., Command (64x8 b) and/or encryption key 64 B). The number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings. In particular, the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components. The actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system. - A
KPIO system 101 may be a {key, value} system. The {key, value} system may store data as a collection of key-value pairs in which the key serves as a unique identifier to the value. The value may be made up of a fixed number of bits (e.g., 512 bits) and may represent a security key (e.g., a private key) for encrypting or decrypting data (Note, the key included in the "{key, value}" pair may be a different type of key than the security key included in the "value" field.). An Advanced Encryption Standard (AES) decryption key may be stored in volatile read only memory, such as a DRAM. The value representative of the security key (e.g., the 512 bit security key) may be addressed by namespace identification (NSID) + key tag. - Referring to
FIG. 1 , a host may transmit a read or writecommand 102 to a storage device (e.g., an SSD (e.g., a flash drive)). Thecommand 102 may include an NSID + key tag. TheNSID 103 may identify a memory to read to or write from. TheNSID 103 may be made up of 8 or more bits. Thekey tag 104 may be a key index used to index an encrypting/decrypting key for a specific NSID. The system may be composed of more than one NSID and key tags in different NSIDs can overlap. TheNSID 103 and thekey tag 104 are combined to form data structure 105 (e.g., a key index, a non-overlapping {key, value} index, an encryption index, a decryption key index, a lookup table, or an array). Thedata structure 105 may be an AES index. The size of thedata structure 105 may be composed of 16,777,246 (entries) x 512 bits, and may be partitioned into a predetermined number of name spaces (NSs) (e.g., 256 NSs of 64kb each). Each NS may include a number of valid entries which may be linearly incremented. Linearly allocation of valid entries may reduce hit rate and can create a throttle refill due to least recently used (LRU) eviction policy. - Each NS may be indexed across various portions of the entire data structure 105 (this may be called "sparse indexing"), thereby requiring a large number of look-ups to retrieve the information included in a single NS. In this regard, the
data structure 105 is large. Thedata structure 105 includes about 16 million possible entries. However, the system may use 64 thousand valid entries. Thus, the total memory size may be 1 gigabyte (GB), and the total valid memory size may be 4 megabytes (MB). Since the number of valid entries is small relative to the total size of the memory, the memory is sparse. Having a pre-defined fixed/max number of valid keys (e.g., 64 thousand) is a characteristic of KPIO encryption that that uses a limited memory size and a maximum number of lookups in the large and sparse source address space, thereby increasing the importance of relying on an efficient throughput calculation for quickly finding and retrieving valid keys. - The
data structure 105 may be used to retrieve a security key 106 (e.g., an AES encryption key or encryption key). Thesecurity key 106 may be 64 bytes (512 bits). If thesecurity key 106 is 64 bytes, then it may be large, and may need to be saved on a cache memory or an external memory to be accessed. - A
security key 106 may be retrieved and sent to the de/encryption engine 107. Decrypted data (e.g., unencrypted data) may be read 108 or decrypted data may be written 109 from the host to the SSD, and thesecurity key 106 may be used by the de/encryption engine 107 to readencrypted data 110 or writeencrypted data 111. The 110 or 111 may be 4,096 x 8 bits and stored in memflash. For example, theencrypted data 110 or 111 may be stored in a remote server (e.g., a cloud server).encrypted data - A direct address lookup table (LUT) may be used to store key values in the
key index 105 in a KPIO system. A direct address LUT addresses eachcommand 102 to a specific address space in thekey index 105, however the size of the AES encryptionkey index 105 must be very large, since a fixed portion of the size of thekey index 105 can include valid entries. - Using a content addressable memory (CAM) lookup may be a solution for efficiently obtaining or retrieving key values in a KPIO system. Advantageously, CAM lookup reduces memory storage size of the
key index 105 and achieves a fast throughput. Unfortunately, CAM uses a large number of logic gates to enter or retrieve key values, which is expensive. For example, for 64 thousand valid entries, 64 thousand x 24 bit comparators may be needed to perform logic functions to redirect a source index to a valid key address space in thekey index 105. - Additionally, hash addressing is used to hash the source index command to a finite size to identify a key storage address of a hash key index (e.g., reducing the index command from 24 to 16 bits). Hash addressing advantageously reduces the memory size of a memory by using a hash key index, since hashed indexes can be stored compactly with a reduced length. Unfortunately, since multiple source keys (e.g., keys from one or more sources to be input into the hash function) may be linked to a single hash index, retrieval of a valid value from the same hash index-may require a conflict resolution operation which may slow throughput.
- The hash conflict resolution operation may involve performing a compare operation when using hash indexes to identify storage indexes in a primary memory. If the compare operation matches a hashed index corresponding to a storage address in the primary memory with a source index (e.g., an NSID + key tag), then a linked list may be used to designate a secondary memory address space to associate the hashed index corresponding to the storage address in the primary memory with the source index. In this manner, multiple entries can be associated with the same hashed index using the linked list. Accordingly, the size of the primary memory may be reduced to a small size, since valid entries may be included. However, when a conflict occurs and a linked list is designated, the memory that is allocated to an entry must be expanded. In addition, due to the compare operation, a conflict may occur and accessing the memory may require multiple operations to obtain data from linked lists.
- A peripheral component interconnect express (PCIe) link may be used to access memory. The PCIe4x4 standard may use 2 million (M) input/output operations per second (IOPS) or 500 nanoseconds (ns) for one lookup (e.g., read or write). The PCIe4x6 standard may use 8M IOPS or 125 ns for one lookup. DRAM access may be about 50-70ns. Thus, using the PCIe4x6 standard, only 1-2 conflict comparisons and/or lookups can be performed per command, which presents a significant bottleneck in lookup speed.
- The present application proposes solutions that can efficiently lookup a memory entry (e.g., an encryption key) using 1st tier: cache RAM (e.g., a cache storage), thereby reducing the likelihood needing to access a 2nd tier: external RAM (e.g., a DRAM), which may be slow to access. Thus, the present application proposes reducing the overall throughput time for obtaining a memory entry and minimizes the number of lookup iterations, thereby improving lookup speeds for systems that rely on PCIe IOPS standards.
- Moreover, the present application proposes using multiple types of cache comparisons to identify a cache conflict (e.g., a mismatch). A first type of cache conflict may be referred to as a traditional cache conflict resolution. A second type of cache conflict may referred to as a hash cache conflict resolution. Throughout the disclosure, comparisons are made to identify whether a conflict exists. Each comparison may be, for example, a traditional cache conflict resolution or a hash cache conflict resolution. Other types of comparisons, such as multi-way cache comparisons, may be used too.
- A traditional cache comparison (traditional cache conflict resolution) may be between two values: 1. The Tag_Address access/index Tag Memory Content (e.g., 14 bits); and 2. A portion of the source address (e.g., 14 bits = 24 bits -10 bits). This type of comparison may be exemplified by
step 303 ofFIG. 3 , discussed below. - A hash cache comparison (hash cache conflict resolution) may be between two values: 1. The Tag_Address access/index Tag Memory Content (e.g., 24 bits) and 2. The full source address (e.g., 24 bits). This type of comparison may be exemplified by 603 of
FIG. 6 , discussed below - For convenience of description, the term "tag memory content" is used in this disclosure. This term refers to a memory content stored in tag memory (e.g., 1st tier tag RAM). Depending on which of the abovementioned comparisons are used, tag memory content may refer to a different number of bits (e.g., 14 bits in the case of traditional cache conflict resolution, 24 bits in the case of hash cache conflict resolution, etc.), which may be compared with a part, or all, of the source address.
-
FIG. 2 is a block diagram illustrating hash conflict resolution, according to an embodiment. ThroughoutFIG. 2 , some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]). The number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings. In particular, the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components. The actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system. - Hash conflict resolution using a linked list may merge separate chaining linked lists with a hash table to save memory space for unused slots in a primary memory. Hash conflict resolution may be applied to a KPIO system, such that a source index (an NSID and key tag) is hashed and used to identify a storage address corresponding to an encryption or decryption key stored in DRAM.
- The operations described in
FIG. 2 may be performed by a controller stored in memory, a processor, or computer-implemented instructions. - Referring to
FIG. 2 , a source index comprising an NSID and key tag may be hashed from 24 to 16 bits to generate a hashed index. The hashed index represents a storage address of the primary memory (e.g., a hash table). Atstep 201, a tag portion (e.g., 24 bits) is compared (e.g., by a controller) to the NSID (e.g., 8 bits) and key tag (e.g., 16 bits) representing the storage address of the primary memory. The tag portion may represent a local address of the primary memory entry and is compared with the source index comprising the NSID and key tag. As shown inFIG. 2 , the 24 bit tag stored in memory storage is compared with the source index (e.g., NSID (8 bits) and key tag (16 bits)) atstep 201 that a conflict exists (a mismatch), and conflict resolution logic may be performed atstep 202. For example, a first pointer may be assigned to linkaccess 1 to another storage address in the primary memory,access 2. In addition, a second pointer may be assigned to linkaccess 2 to another storage address in the primary memory,access 3. An entry included in the primary memory may be accessed using a cache index. -
Access 1,access 2, andaccess 3 denote access attempts to an entry of the primary memory. Each access attempt may initiate the following sequence: - 1. Check the entry(i)'s {NSID(i),KeyTag(i)} pair is matched to the IO command's Source-index {NSID, KeyTag} pair;
- 2. If matched, the 512b encryption key will be used; and
- 3. Else if not matched, the link to the next entry will be used for a next access attempt, access(i+1),
-
FIG. 3 is a block diagram illustrating a partial source index as a tag index, according to an embodiment. ThroughoutFIG. 3 , some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]). The number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings. In particular, the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components. The actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system. - Referring to
FIG. 3 , a 24bit source index 301 is provided. The 10 lower bits (e.g., least significant bits (LSBs)) of thesource index 301 are used as atag address 302. Here, the tag address is 10 bits because the tag RAM (cache storage) includes 1024 entries, and log2(1024)=10. The remaining 14 bits of thesource index 301 are stored in the 1st tier: tag RAM (cache storage) so that the total memory size is 1024 x 14 bits. Once the 14 bits are indexed, the value may be output from the tag RAM as tag_content (the term "tag_content" may be used interchangeably with the term "tag memory content") and compared with the corresponding bits of NSID[8] keytag[6] from the source index instep 303 to determine whether there is a conflict. If there is no conflict (cache hit or match), then acorresponding cache 304 entry may be output from cache storage. In this manner, the cache storage is used to improve the hit rate for outputting a storage entry, for example, systems in which valid entries are linearly allocated (e.g., KPIO systems). - If there is a conflict in
step 303, then a valid entry is not output via 1st tier cache RAM. In this case, 2nd tier external RAM is accessed to identify a valid entry by hashing thesource index 301 to 16 bits and providing it as ahash index 305. Thehash index 305 may be 16 bits and represent a storage address of the 2nd tier: external RAM. Atstep 306, a tag portion ofaccess 1 is compared (e.g., by a controller) to the hashed index of the NSID and key tag representing the storage address of the memory. The tag portion ofaccess 1 may represent a local address of theaccess 1 in a memory entry and is compared with the source index comprising the NSID and key tag. If there's a match, then a corresponding entry may be output from the 2nd tier: external RAM atstep 309. If there's a conflict (miss match) instep 306, the next pointer may be assigned to linkaccess 1 withaccess 2 in the storage device instep 307. - In
step 308, a tag portion ofaccess 2 is compared (e.g., by the controller) to the hashed index of the NSID and key tag representing the storage address of the memory. If no conflict is identified in step 308 (match), then the entry may be output from the 2nd tier: external RAM and provided as output atstep 309. - The time it takes to output an entry via cache memory (at step 304) versus DRAM (at step 309) is notably different. As discussed below, cache memory may be accessed and an entry output much faster than using DRAM to perform the same. Thus, using cache memory to output an entry is preferable because it has much less latency.
- A characteristic of KPIO may be that a KPIO key in each NS may be linearly incremented upon allocation. For example, if a lower address of each NS is used as an index, then each NS may point to a first index (e.g., index 1), and a 1st tier: tag RAM, as provided in
FIG. 3 , may only store one NS entry (e.g., 1 NS entry of the 256 NS entries). -
FIG. 4 is a block diagram illustrating a multi-way tag address index, according to an embodiment. ThroughoutFIG. 4 , some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]). The number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings. In particular, the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components. The actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system. -
FIG. 4 includes a number of components that are similar toFIG. 3 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description ofFIG. 4 . - Referring to
FIG. 4 , the 1st tier: tag RAM is provided as a multi-way tag address. As shown inFIG. 4 , the 1st tier: tag RAM is duplicated into two tag addresses (Tag0 and Tag1). Accordingly, afirst entry 401 and asecond entry 402 may be cached in the LSB to one tag address, thereby increasing the hit rate (since, for example, 256 NS entries may be used to provide a match for two entries instead of one). Further, the 1st tier: tag RAM may also be divided into partitions other than two. For example, the 1st tier: tag RAM may be allocated as having four entries cached to the LSB, thereby increasing the hit rate even further (since, for example, 256 NS entries may be used to provide a match for four entries instead of two). - At steps 403-404, a multi-way cache memory comparison is performed. At
step 403, a comparison between tag content (e.g., tag_content_1[15]) and a portion of the source index (e.g., NSID[8] KeyTag[7]) is performed. Atstep 404, a comparison between tag content (e.g., tag_content_2[15]) and a portion of the source index (e.g., NSID[8] KeyTag[7] is performed. A multi-way cache memory comparison is notably different than a traditional cache comparison and a hash cache comparison, as described above, because as shown in steps 403-404, a 2-way traditional cache comparison is a comparison between two values: 1. Two entries (401 and 402) of the Tag_Address access/index Tag Memory Contents (15 bits) and 2. A portion of the Source Address (15 bits = 24 bits - 9 bits). Also, the tag address may be 9 bits since 10 LSBs of source index - 1 bit to distinguish among duplicated tag addresses Tag0 and Tag1. - Additionally, other multi-way cache memory comparisons are possible. For example, a 4-way traditional cache compares between two values: 1. Four entries of the Tag_Address access/index Tag Memory Contents (16 bits) and 2. A portion of the Source Address (16 bits = 24 bits - 8 bits). Also, the tag address may be 8 bits since 10 LSBs of source index - 2 bits to distinguish among 4 duplicated tag addresses.
- Additionally, a configurable x-way traditional cache memory comparison is possible. For example, an x-way traditional cache compares between two values: 1. X entries of the Tag_Address access/index Tag Memory Contents (14+Log2(X) bits) and 2. A portion of the Source Address (24 bits -Tag_Address width (e.g., the Tag_Address width may be a function of the number of duplicated tag addresses)). Also, the tag address may be equal to 10 - log2(x).
-
FIG. 5 is a block diagram illustrating a source index configurable to be mapped to a tag address, according to an embodiment. ThroughoutFIG. 5 , some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]). The number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings. In particular, the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components. The actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system. -
FIG. 5 includes a number of components that are similar toFIGS. 3-4 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description ofFIG. 5 . - Referring to
FIG. 5 , the 1st tier: tag RAM is provided as a configurable source index mapped to a tag address. Instead of using an LSB to identify a tag address, a part of the NSID[8] of the source index (denoted as "NSID[Y]") and a part of the keytag[16] of the source index (denoted as "KeyTag[X]") may be used to identify a tag address of the cache index. Accordingly, a part of the NSID bit can be a part of the tag address, which may reduce the likelihood of their being a conflict since the tag address is reconfigurable. For example, 7 LSBs of the NSID and 3 LSBs of the keytag may be used to identify the tag entry, and the remaining 14 bits may represent the tag content. Thus, at step 501 a configurable x-way traditional cache memory comparison may be performed. - The configurable source index may allow the multiple namespaces having valid entries to be identified using the cache index. Each valid entry may be incrementally identified for each namespace, starting from zero.
- According to an embodiment, a hashed source address may be used as a cache tag address. Using the hashed source address as the tag address may improve the hit rate (e.g., a lower possibility of a conflict) for the linear increment source address problem. For example, a valid address may be spread evenly across the cache address space and lower a possibility of a conflict to less than 10%. In addition, an LSB of the hashed source address (hash index) may be used as the tag address (a cache tag address).
-
FIG. 6 is a block diagram illustrating using a hashed index as a tag address, according to an embodiment. ThroughoutFIG. 6 , some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]). The number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings. In particular, the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components. The actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system. -
FIG. 6 includes a number of components that are similar toFIGS. 3-5 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description ofFIG. 6 . - Referring to
FIG. 6 , a source index is hashed from, for example, 24 bits to 16 bits atstep 601. Atstep 602, an entry corresponding to the tag address of the 1st tier: tag RAM is set to be equal to a predetermined number of bits (e.g., 10 bits) of the hashed source index. Atstep 603, the tag memory content (24 bits) is compared to the source index (24 bits to determine whether a valid entry is stored in cache. - Hashing the source index may include the added benefit of a valid entry corresponding to the hashed index[16] as not being linear (e.g., a hashed valid entry is more likely to be spread across 1st tier: tag RAM in a randomized manner), thereby resolving the linear-increment allocation problem of KPIO, discussed above, since entries included in a name space will not be incremented linearly. In other words, the source index may have its entropy crowded to the LSBs. After hashing, however, the hashed source index's entropy may be spread equally across each of the hashed bits. In addition, hashing advantageously reduces the total number of bits (e.g., from 24 bits to 16 bits), thereby minimizing the size of a valid NS entry.
- Although hashing the source index resolves the linear increment problem and also reduces the total number of bits to minimize the size of a valid NS entry, a tradeoff may be that the values comprising the hash index may not necessarily be unique, thus the possibility of a hash conflict may still exist.
- According to an embodiment, a solution to avoiding a hash conflict may be to use the whole tag address to designate the most significant bit (MSB) to perform cache identification to determine whether a conflict exists.
-
FIG. 7 is a block diagram illustrating a multi-way hashed index as a tag address, according to an embodiment. ThroughoutFIG. 7 , some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]). The number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings. In particular, the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components. The actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system. -
FIG. 7 includes a number of components that are similar toFIGS. 3-6 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description ofFIG. 7 . - Referring to
FIG. 7 , because thesource index 701 is hashed from 24 bits to 16 bits, and associated with a tag address at 702, then the possibility of a hash conflict using the hash address increases, thereby reducing the hit rate (less likely to be a match). Accordingly, a solution similar to that described with respect toFIG. 4 may be employed by comparing the source index with tag memory content (e.g., Tag 0), which is then compared with tag memory content (e.g., Tag 1) to determine wither the cache storage includes a valid entry. -
FIG. 8 is a block diagram illustrating a double hash as a cache index, according to an embodiment. ThroughoutFIG. 8 , some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]). The number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings. In particular, the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components. The actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system. -
FIG. 8 includes a number of components that are similar toFIGS. 3-7 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description ofFIG. 8 . - Referring to
FIG. 8 , performing a double hash function may reduce the likelihood of there being a tag conflict in cache, and improve the hit rate (least likely to result in a miss match). Atstep 801, the source index is hashed from 24 bits to 16 bits using a first hash function. If the 16 bit first hash entry conflicts with the entry in the tag index, then the source index may be hashed from 24 to 16 bits using a second hash function to identify a second entry location in the tag index. If the 16 bit second hash entry conflicts with the second entry location of the tag index, the source index may be hashed from 24 to 16 bits using a third hash function to identify a third entry location in the tag index. Therefore, so long as the 1st tier: tag RAM is not fully occupied, the cache is nearly guaranteed to have a location to store the entry. Additionally,tag memory content 1,tag memory content 2, andtag memory content 3 are compared to the source index to determine whether the cache memory includes the valid entry. - In addition, the 2nd tier: external RAM may use a hashing function when outputting an entry. In this case, since the hashing function is being used by the 2nd tier: external RAM, it may be reused as the first, second and third hash functions for hashing the source index from 24 to 16 bits.
- In addition, the hashing function is not limited to hashing to or from 24 to 16 bits, and it may hash to a predetermined number of bits greater or lower than 16 when performing hashing.
-
FIG. 9 illustrates a table comparing the benefits of the embodiments provided byFIGS. 3-8 , according to an embodiment. -
FIG. 9 includes a number of values and percentages that are provided by way of example in order to show the relative effects of the embodiments provided byFIGS. 3-8 . The values and percentages shown inFIG. 9 are not limited to those which are displayed, and various other values and percentages may be employed. - The process of accessing a memory address may be called performing a "hop" or "jump". Each time a compare function is used, a hop or jump is performed.
FIG. 9 compares an average total amount of time (Max 140 ns) for performing 3 hops for each of the embodiments provided byFIGS. 3-8 . The average total amount of time is a function of the cache hit rate, hash conflict, and time it takes to access 1st and 2nd tier memories. Since 1st tier memory may be provided as SRAM, the time it takes to access SRAM may be 5ns. Since 2nd tier memory is provided as DRAM, the time it takes to access DRAM may be 70ns. -
FIG. 10 illustrates a table comparing the sizes of the memories provided byFIGS. 3-8 , according to an embodiment. -
FIG. 10 includes a number of values pertaining to the sizes of the memories provided by the embodiments provided byFIGS. 3-8 . The values shown inFIG. 10 are not limited to those which are displayed, and various other values and percentages may be employed. -
FIG. 11 is a block diagram illustrating a redirection table to access a cache entry, according to an embodiment. ThroughoutFIG. 8 , some of the components include a number of bits or bytes corresponding to each component (e.g., NSID [8]). The number of bits or bytes corresponding to each component is exemplary and is provided to aid in the understanding of the drawings. In particular, the size of each of the components may be used for illustrative purposes to help understand the physical relationships among components. The actual number of bits, bytes, or entries for each component may vary, depending on the needs of the system. -
FIG. 11 includes a number of components that are similar toFIGS. 3-8 . Therefore, for convenience of description, similar descriptions of components may be omitted from the description ofFIG. 11 . - Referring to
FIG. 11 , the hash table is composed of a 65536x4 bit hashed index redirection table (hash redirect table), which significantly reduces the size of the memory because the likelihood of a conflict is reduced by a factor of 4 by using the hashed index redirection table in combination with the cache storage in a primary memory. In this case, the primary memory may be composed of static read only memory (SRAM), and may be located on an IC (e.g., an ASIC) having read/write speeds that are faster than accessing a DRAM. The DRAM may be located off of the integrated circuit (IC) chip and may be large relative to the size of the SRAM. Thus, the hash redirect table may be referred to as an "on chip" hash redirect table that may quickly be accessed to obtain a redirect address. - The hash redirect table is a redirection index that redirects to an address of a cache storage. The hash redirect table is configured so that an entry of the hash redirect table points to a corresponding first entry in the cache storage. The input to the hash redirect table may be 18 bits, and the output may be 11 or more bits.
- When the hash redirection table is used, the controller (e.g., the processor) may identify a redirection index using a hashed source index to point to the first entry of a corresponding entry in the storage memory (e.g., using a head of line (HOL) pointer). The redirection index may be used to identify a storage entry in the secondary memory without first accessing cache memory and, if the cache entry is a miss, then identifying the storage entry in the secondary memory. Thus, the redirection index speeds up the process of identifying the storage entry when it is stored in the secondary memory (e.g., when it is not stored in cache storage).
- As shown in
FIG. 11 , after the source index is hashed from 24 bits to 16 bits, plus 2 bits for the hash redirect table, the 2 bits may be used to determine whether there is a cache hit or a cache miss. If there is a cache hit, then the hash redirect table may point to the cache storage device in primary memory to access an entry. However, if there is a cache miss, then the hash redirect table may point to secondary memory to lookup an entry. As discussed above, accessing (performing a lookup in) the secondary memory requires substantially more time than accessing the primary memory. Thus, the hash redirect table improves the lookup time because it reduces the likelihood that the secondary memory will need to be accessed by reducing the likelihood of a conflict. - As described above, the present application improves throughput in memory systems by providing a number of configurations that reduce the need to access slow off-chip memory for hash based KPIO systems, thereby improving throughput and latency, and reducing power consumption that would be necessary to operate a secondary memory (DRAM).
-
FIG. 12 is a flowchart illustrating accessing a stored memory, according to an embodiment. - The steps described in
FIG. 12 may be performed by a controller stored in memory, a processor, or computer-implemented instructions. - Referring to
FIG. 14 , atstep 1201 tag address of a tag memory is identified based, at least partially, on a source index including an NSID and a keytag. - In
step 1202, a cache storage address corresponding to the tag address is accessed. The cache storage address may be included in a primary memory. The primary memory may be SRAM. - In
step 1203, tag memory content is compared with at least part of the source index to identify whether a conflict exists. The tag memory content may be the same number of bits as the at least part of the source index. - In
step 1204, information from the cache storage address is obtained in response to identifying whether a conflict does exist in step 1403. The obtained information may be an encryption or a decryption key (e.g., an entry) of a predetermined size (e.g., 512 bits). - If a conflict does not exist, then an entry may be obtained directly from the cache storage device. Otherwise, if a conflict does exist then a secondary memory (e.g., 2nd tier: external ram or DRAM) may need to be accessed to obtain the appropriate entry for output.
- If a conflict does exist, then a number of different options may ensue (e.g., folded linked list, secondary memory linked list, reroute table with a linked list, MFU with a linked list, sequential double hash conflict resolution, concurrent double hash conflict resolution, HOL reroute table with double hash conflict resolution, etc.).
-
FIG. 13 is a memory system illustrating structural components for performing embodiments described in the present application, according to an embodiment. - The operations described in
FIGS. 1-12 may be performed by a controller stored in memory, a processor, or computer-implemented instructions. For instance, instructions performed by the controller may be implemented using as an FPGA, an ASIC, a general purpose computer, or by a remote processing system (e.g., a cloud computing system). - Referring to
FIG. 13 , amemory system 1300 capable of performing the embodiments described in the present application is shown. Thememory system 1300 includes ahost 1301, an IC 1302 (e.g., a memory buffer chip) and DRAM (e.g., a nonvolatile memory) 1303. Although DRAM is shown separate from theIC 1302, the DRAM may be included on theIC 1302. - The
IC 1302 includes ahost interface 1304, SRAM (e.g., a volatile memory) 1305, storage media (e.g., flash memory) 1306 and acontroller 1307. Thehost interface 1304 may communicate information from thehost 1301 to theIC 1302 or from theIC 1302 to thehost 1301. TheSRAM 1305 may be relatively small in size compared to theDRAM 1303. However, theSRAM 1305 may have faster read/write speeds than theDRAM 1303. In addition, thestorage media 1306 may store data to be transmitted to or from thehost 1301 and/or theDRAM 1303. - The embodiments described in the present application provide particular configurations to improve accessing stored information and, in particular, accessing stored information for KPIO systems. The storage system illustrated in
FIG. 13 provides a structure for realizing the embodiments of the present application. It is noted, however, that the embodiments of the present application should not be limited to the structure ofFIG. 13 , as one of ordinary skill in the art would recognize that other memory storage systems may be applied to implement the embodiments of the present application. -
FIG. 14 illustrates an electronic device in a network environment, according to an embodiment. - Referring to
FIG. 14 , theelectronic device 1401, e.g., a mobile terminal including GPS functionality, in thenetwork environment 1400 may communicate with anelectronic device 1402 via a first network 1498 (e.g., a short-range wireless communication network), or anelectronic device 1404 or aserver 1408 via a second network 1499 (e.g., a long-range wireless communication network). Theelectronic device 1401 may communicate with theelectronic device 1404 via theserver 1408. Theelectronic device 1401 may include aprocessor 1420, amemory 1430, aninput device 1450, asound output device 1455, adisplay device 1460, anaudio module 1470, asensor module 1476, aninterface 1477, ahaptic module 1479, acamera module 1480, apower management module 1488, abattery 1489, acommunication module 1490, a subscriber identification module (SIM) 1496, or anantenna module 1497 including a GNSS antenna. In one embodiment, at least one (e.g., thedisplay device 1460 or the camera module 1480) of the components may be omitted from theelectronic device 1401, or one or more other components may be added to theelectronic device 1401. In one embodiment, some of the components may be implemented as a single IC. For example, the sensor module 1476 (e.g., a fingerprint sensor, an iris sensor, or an illuminance sensor) may be embedded in the display device 1460 (e.g., a display). - The
processor 1420 may execute, for example, software (e.g., a program 1440) to control at least one other component (e.g., a hardware or a software component) of theelectronic device 1401 coupled with theprocessor 1420, and may perform various data processing or computations. As at least part of the data processing or computations, theprocessor 1420 may load a command or data received from another component (e.g., thesensor module 1476 or the communication module 1490) involatile memory 1432, process the command or the data stored in thevolatile memory 1432, and store resulting data innon-volatile memory 1434. Theprocessor 1420 may include a main processor 1421 (e.g., a central processing unit (CPU) or an application processor, and an auxiliary processor 1423 (e.g., a graphics processing unit (GPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is operable independently from, or in conjunction with, the main processor 1421. Additionally or alternatively, theauxiliary processor 1423 may be adapted to consume less power than the main processor 1421, or execute a particular function. Theauxiliary processor 1423 may be implemented as being separate from, or a part of, the main processor 1421. - The
auxiliary processor 1423 may control at least some of the functions or states related to at least one component (e.g., thedisplay device 1460, thesensor module 1476, or the communication module 1490) among the components of theelectronic device 1401, instead of the main processor 1421 while the main processor 1421 is in an inactive (e.g., sleep) state, or together with the main processor 1421 while the main processor 1421 is in an active state (e.g., executing an application). According to one embodiment, the auxiliary processor 1423 (e.g., an image signal processor or a communication processor) may be implemented as part of another component (e.g., thecamera module 1480 or the communication module 1490) functionally related to theauxiliary processor 1423. - The
memory 1430 may store various data used by at least one component (e.g., theprocessor 1420 or the sensor module 1476) of theelectronic device 1401. The various data may include, for example, software (e.g., the program 1440) and input data or output data for a command related thereto. Thememory 1430 may include thevolatile memory 1432 or thenon-volatile memory 1434. - The
program 1440 may be stored in thememory 1430 as software, and may include, for example, an operating system (OS) 1442,middleware 1444, or anapplication 1446. - The
input device 1450 may receive a command or data to be used by another component (e.g., the processor 1420) of theelectronic device 1401, from the outside (e.g., a user) of theelectronic device 1401. Theinput device 1450 may include, for example, a microphone, a mouse, or a keyboard. - The
sound output device 1455 may output sound signals to the outside of theelectronic device 1401. Thesound output device 1455 may include, for example, a speaker or a receiver. The speaker may be used for general purposes, such as playing multimedia or recording, and the receiver may be used for receiving an incoming call. According to one embodiment, the receiver may be implemented as being separate from, or a part of, the speaker. - The
display device 1460 may visually provide information to the outside (e.g., a user) of theelectronic device 1401. Thedisplay device 1460 may include, for example, a display, a hologram device, or a projector and control circuitry to control a corresponding one of the display, hologram device, and projector. According to one embodiment, thedisplay device 1460 may include touch circuitry adapted to detect a touch, or sensor circuitry (e.g., a pressure sensor) adapted to measure the intensity of force incurred by the touch. - The
audio module 1470 may convert a sound into an electrical signal and vice versa. According to one embodiment, theaudio module 1470 may obtain the sound via theinput device 1450, or output the sound via thesound output device 1455 or a headphone of an externalelectronic device 1402 directly (e.g., wired) or wirelessly coupled with theelectronic device 1401. - The
sensor module 1476 may detect an operational state (e.g., power or temperature) of theelectronic device 1401 or an environmental state (e.g., a state of a user) external to theelectronic device 1401, and then generate an electrical signal or data value corresponding to the detected state. Thesensor module 1476 may include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor. - The
interface 1477 may support one or more specified protocols to be used for theelectronic device 1401 to be coupled with the externalelectronic device 1402 directly (e.g., wired) or wirelessly. According to one embodiment, theinterface 1477 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface. - A connecting terminal 1478 may include a connector via which the
electronic device 1401 may be physically connected with the externalelectronic device 1402. According to one embodiment, the connecting terminal 1478 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (e.g., a headphone connector). - The
haptic module 1479 may convert an electrical signal into a mechanical stimulus (e.g., a vibration or a movement) or an electrical stimulus which may be recognized by a user via tactile sensation or kinesthetic sensation. According to one embodiment, thehaptic module 1479 may include, for example, a motor, a piezoelectric element, or an electrical stimulator. - The
camera module 1480 may capture a still image or moving images. According to one embodiment, thecamera module 1480 may include one or more lenses, image sensors, image signal processors, or flashes. - The
power management module 1488 may manage power supplied to theelectronic device 1401. Thepower management module 1488 may be implemented as at least part of, for example, a power management integrated circuit (PMIC). - The
battery 1489 may supply power to at least one component of theelectronic device 1401. According to one embodiment, thebattery 1489 may include, for example, a primary cell which is not rechargeable, a secondary cell which is rechargeable, or a fuel cell. - The
communication module 1490 may support establishing a direct (e.g., wired) communication channel or a wireless communication channel between theelectronic device 1401 and the external electronic device (e.g., theelectronic device 1402, theelectronic device 1404, or the server 1408) and performing communication via the established communication channel. Thecommunication module 1490 may include one or more communication processors that are operable independently from the processor 1420 (e.g., the application processor) and supports a direct (e.g., wired) communication or a wireless communication. According to one embodiment, thecommunication module 1490 may include a wireless communication module 1492 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 1494 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules may communicate with the external electronic device via the first network 1498 (e.g., a short-range communication network, such as Bluetooth™, wireless-fidelity (Wi-Fi) direct, or a standard of the Infrared Data Association (IrDA)) or the second network 1499 (e.g., a long-range communication network, such as a cellular network, the Internet, or a computer network (e.g., LAN or wide area network (WAN)). These various types of communication modules may be implemented as a single component (e.g., a single IC), or may be implemented as multiple components (e.g., multiple ICs) that are separate from each other. Thewireless communication module 1492 may identify and authenticate theelectronic device 1401 in a communication network, such as thefirst network 1498 or thesecond network 1499, using subscriber information (e.g., international mobile subscriber identity (IMSI)) stored in thesubscriber identification module 1496. - The
antenna module 1497 may transmit or receive a signal or power to or from the outside (e.g., the external electronic device) of theelectronic device 1401. According to one embodiment, theantenna module 1497 may include one or more antennas, and, therefrom, at least one antenna appropriate for a communication scheme used in the communication network, such as thefirst network 1498 or thesecond network 1499, may be selected, for example, by the communication module 1490 (e.g., the wireless communication module 1492). The signal or the power may then be transmitted or received between thecommunication module 1490 and the external electronic device via the selected at least one antenna. - At least some of the above-described components may be mutually coupled and communicate signals (e.g., commands or data) therebetween via an inter-peripheral communication scheme (e.g., a bus, a general purpose input and output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)).
- According to one embodiment, commands or data may be transmitted or received between the
electronic device 1401 and the externalelectronic device 1404 via theserver 1408 coupled with thesecond network 1499. Each of the 1402 and 1404 may be a device of a same type as, or a different type, from theelectronic devices electronic device 1401. All or some of operations to be executed at theelectronic device 1401 may be executed at one or more of the external 1402, 1404, or 1408. For example, if theelectronic devices electronic device 1401 should perform a function or a service automatically, or in response to a request from a user or another device, theelectronic device 1401, instead of, or in addition to, executing the function or the service, may request the one or more external electronic devices to perform at least part of the function or the service. The one or more external electronic devices receiving the request may perform the at least part of the function or the service requested, or an additional function or an additional service related to the request, and transfer an outcome of the performing to theelectronic device 1401. Theelectronic device 1401 may provide the outcome, with or without further processing of the outcome, as at least part of a reply to the request. To that end, a cloud computing, distributed computing, or client-server computing technology may be used, for example. - One embodiment may be implemented as software (e.g., the program 1440) including one or more instructions that are stored in a storage medium (e.g.,
internal memory 1436 or external memory 1438) that is readable by a machine (e.g., the electronic device 1401). For example, a processor of theelectronic device 1401 may invoke at least one of the one or more instructions stored in the storage medium, and execute it, with or without using one or more other components under the control of the processor. Thus, a machine may be operated to perform at least one function according to the at least one instruction invoked. The one or more instructions may include code generated by a complier or code executable by an interpreter. A machine-readable storage medium may be provided in the form of a non-transitory storage medium. The term "non-transitory" indicates that the storage medium is a tangible device, and does not include a signal (e.g., an electromagnetic wave), but this term does not differentiate between where data is semi-permanently stored in the storage medium and where the data is temporarily stored in the storage medium. - According to one embodiment, a method of the disclosure may be included and provided in a computer program product. The computer program product may be traded as a product between a seller and a buyer. The computer program product may be distributed in the form of a machine-readable storage medium (e.g., a compact disc read only memory (CD-ROM)), or be distributed (e.g., downloaded or uploaded) online via an application store (e.g., Play Store™), or between two user devices (e.g., smart phones) directly. If distributed online, at least part of the computer program product may be temporarily generated or at least temporarily stored in the machine-readable storage medium, such as memory of the manufacturer's server, a server of the application store, or a relay server.
- According to one embodiment, each component (e.g., a module or a program) of the above-described components may include a single entity or multiple entities. One or more of the above-described components may be omitted, or one or more other components may be added. Alternatively or additionally, a plurality of components (e.g., modules or programs) may be integrated into a single component. In this case, the integrated component may still perform one or more functions of each of the plurality of components in the same or similar manner as they are performed by a corresponding one of the plurality of components before the integration. Operations performed by the module, the program, or another component may be carried out sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations may be executed in a different order or omitted, or one or more other operations may be added.
Claims (12)
- A method for operating a memory device (1300) in a Key Per Input Output, KPIO, system, the method comprising:identifying (1201) a tag address (302) of a tag memory based, at least partially, on a source index (301, 701), wherein the source index (301, 701) is a combination of a namespace identification, NSID, (103) and a key tag (104);accessing (1202) a cache storage address corresponding to the tag address (302);comparing (1203) tag memory content and at least part of the source index (301, 701) to identify whether a match exists or whether a conflict exists; andin response to identifying whether the match exists or whether the conflict exists, obtaining (1204) information from the cache storage address,the method further comprising:hashing the source index (301, 701) to obtain a hashed index using a hash function,wherein the tag address (302) of the tag memory is determined based on the hashed index.
- The method of claim 1, wherein the cache storage address is comprised in a first tier memory, and
wherein comparing (1203) the tag memory content and the at least part of the source index (301, 701) to identify whether the match exists or whether the conflict exists further comprises:
in response to identifying that the match exists, outputting an entry (401, 402) corresponding to the cache storage address. - The method of claim 1 or 2, wherein multiple cache entries (401, 402) correspond to the tag address (302).
- The method of any one of the previous claims, wherein the tag memory provides a reconfigurable tag address using at least one bit of the namespace identification, NSID, and at least one bit of the keytag.
- The method of any one of the previous claims, wherein multiple cache entries (401, 402) correspond to the tag address (302).
- The method of any one of the previous claims, wherein the hash function is a double hash function, and
wherein hashing the source index (301, 701) to obtain the hashed index using the hash function comprises:generating a first hashed index by hashing the source index (301, 701) using a first double hash function,comparing the tag memory content and a full source address to identify whether the match exists or whether the conflict exists, andin response to identifying that the conflict exists, generating a second hashed index by hashing the source index (301, 701) using a second double hash function. - A Key Per Input Output, KPIO, system (1300), comprising:a memory (1306); anda controller (1307) configured to:identify (1201) a tag address (302) of a tag memory based, at least partially, on a source index (301, 701), wherein the source index (301, 701) is the combination of a namespace identification, NSID, (103) and a key tag (104);access (1202) a cache storage address corresponding to the tag address (302);compare (1203) tag memory content and at least part of the source index (301, 701) to identify whether a match exists or whether a conflict exists; andin response to identifying whether the match exists or whether the conflict exists, obtain (1204) information from the cache storage address,wherein the controller (1307) is further configured to:
hash the source index (301, 701) to obtain a hashed index using a hash function,wherein the tag address (302) of the tag memory is determined based on the hashed index. - The system (1300) of claim 7, wherein the cache storage address is comprised in a first tier memory, and
wherein comparing (1203), by the controller (1307), the tag memory content and the at least part of the source index (301, 701) to identify whether the match exists or whether the conflict exists further comprises:
in response to identifying that the match exists, outputting, by the controller (1307), an entry (401, 402) corresponding to the cache storage address. - The system (1300) of claim 7 or 8, wherein multiple cache entries (401, 402) correspond to the tag address (302).
- The system (1300) of any one of claims 7 to 9, wherein the tag memory provides a reconfigurable tag address using at least one bit of the namespace identification, NSID, and at least one bit of the keytag.
- The system of any one of claims 7 to 10, wherein multiple cache entries (401, 402) correspond to the tag address (302).
- The system of any one of claims 7 to 11, wherein the hash function is a double hash function, and
wherein hashing the source index (301, 701) to obtain the hashed index using the hash function comprises:generating, by the controller (1307), a first hashed index by hashing the source index (301, 701) using a first double hash function,comparing, by the controller (1307), the tag memory content and a full source address to identify whether the match exists or whether the conflict exists, andin response to identifying that the conflict exists, generating, by the controller (1307), a second hashed index by hashing the source index (301, 701) using a second double hash function.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202263399025P | 2022-08-18 | 2022-08-18 | |
| US18/087,554 US12147347B2 (en) | 2022-08-18 | 2022-12-22 | System and method for performing caching in hashed storage |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| EP4325369A1 EP4325369A1 (en) | 2024-02-21 |
| EP4325369B1 true EP4325369B1 (en) | 2025-05-07 |
Family
ID=87567099
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP23190352.7A Active EP4325369B1 (en) | 2022-08-18 | 2023-08-08 | System and method for performing caching in hashed storage |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US12147347B2 (en) |
| EP (1) | EP4325369B1 (en) |
| KR (1) | KR20240025455A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20240038418A (en) * | 2022-09-16 | 2024-03-25 | 에스케이하이닉스 주식회사 | Memory controller and storage device including the same |
| US20250335362A1 (en) * | 2024-04-24 | 2025-10-30 | Sk Hynix Nand Product Solutions Corp. | Systems, methods, and media for providing append-only caches |
Family Cites Families (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1994003856A1 (en) | 1992-08-07 | 1994-02-17 | Massachusetts Institute Of Technology | Column-associative cache |
| US7093099B2 (en) | 2002-12-12 | 2006-08-15 | Alacritech, Inc. | Native lookup instruction for file-access processor searching a three-level lookup cache for variable-length keys |
| US20080028139A1 (en) | 2006-07-27 | 2008-01-31 | Cypher Robert E | Content-addressable memory that supports a priority ordering between banks |
| JP5231867B2 (en) * | 2008-05-23 | 2013-07-10 | 株式会社東芝 | Cache memory system |
| US9165005B2 (en) | 2012-02-24 | 2015-10-20 | Simplivity Corporation | Method and apparatus utilizing non-uniform hash functions for placing records in non-uniform access memory |
| US9176856B2 (en) | 2013-07-08 | 2015-11-03 | Arm Limited | Data store and method of allocating data to the data store |
| US9367454B2 (en) * | 2013-08-15 | 2016-06-14 | Applied Micro Circuits Corporation | Address index recovery using hash-based exclusive or |
| US9256549B2 (en) | 2014-01-17 | 2016-02-09 | Netapp, Inc. | Set-associative hash table organization for efficient storage and retrieval of data in a storage system |
| US9524242B2 (en) * | 2014-01-28 | 2016-12-20 | Stmicroelectronics International N.V. | Cache memory system with simultaneous read-write in single cycle |
| KR20150096226A (en) * | 2014-02-14 | 2015-08-24 | 삼성전자주식회사 | Multimedia data processing method in general purpose programmable computing device and multimedia data processing system therefore |
| US9760492B2 (en) * | 2014-11-21 | 2017-09-12 | Mediatek Singapore Pte. Ltd. | Method for controlling access of cache through using programmable hashing address and related cache controller |
| CN104809179B (en) | 2015-04-16 | 2018-10-02 | 华为技术有限公司 | The device and method for accessing Hash table |
| US10157137B1 (en) * | 2015-09-22 | 2018-12-18 | Apple Inc. | Cache way prediction |
| CN105550345B (en) | 2015-12-25 | 2019-03-26 | 百度在线网络技术(北京)有限公司 | File operation method and device |
| US10515064B2 (en) | 2016-07-11 | 2019-12-24 | Microsoft Technology Licensing, Llc | Key-value storage system including a resource-efficient index |
| US10346315B2 (en) | 2017-05-26 | 2019-07-09 | Oracle International Corporation | Latchless, non-blocking dynamically resizable segmented hash index |
| US10803039B2 (en) | 2017-05-26 | 2020-10-13 | Oracle International Corporation | Method for efficient primary key based queries using atomic RDMA reads on cache friendly in-memory hash index |
| EP3866016B1 (en) | 2018-11-20 | 2025-01-08 | Huawei Technologies Co., Ltd. | Method and apparatus for deleting index entry in memory |
| US20200226099A1 (en) | 2019-01-11 | 2020-07-16 | Jyothi Vemulapalli | Method and apparatus for improving hash searching throughput in the event of hash collisions |
| WO2021186367A1 (en) * | 2020-03-18 | 2021-09-23 | Hossein Asadi | Reducing read disturbance error in tag array |
| US12130739B2 (en) | 2020-03-27 | 2024-10-29 | Intel Corporation | Apparatuses, methods, and systems for dynamic bypassing of last level cache |
| US11782895B2 (en) | 2020-09-07 | 2023-10-10 | Mellanox Technologies, Ltd. | Cuckoo hashing including accessing hash tables using affinity table |
| US12007911B2 (en) * | 2022-03-10 | 2024-06-11 | Samsung Electronics Co., Ltd | System and method for efficiently obtaining information stored in an address space |
-
2022
- 2022-12-22 US US18/087,554 patent/US12147347B2/en active Active
-
2023
- 2023-07-17 KR KR1020230092473A patent/KR20240025455A/en active Pending
- 2023-08-08 EP EP23190352.7A patent/EP4325369B1/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| US20240061784A1 (en) | 2024-02-22 |
| US12147347B2 (en) | 2024-11-19 |
| KR20240025455A (en) | 2024-02-27 |
| EP4325369A1 (en) | 2024-02-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12007911B2 (en) | System and method for efficiently obtaining information stored in an address space | |
| US20180173731A1 (en) | Storage system deduplication | |
| US20160110292A1 (en) | Efficient key collision handling | |
| EP4325369A1 (en) | System and method for performing caching in hashed storage | |
| JP2016522942A (en) | System and method for high performance and low cost flash conversion layer | |
| US9558120B2 (en) | Method, apparatus and system to cache sets of tags of an off-die cache memory | |
| US10135928B2 (en) | Network interface device having general-purpose computing capability | |
| US12596579B2 (en) | Method and system for accelerating application performance in solid state drive | |
| CN117591006A (en) | Systems and methods for performing caching in hash stores | |
| US12039053B2 (en) | Secure processor, operating method thereof, and storage device including same | |
| CN116738510A (en) | Systems and methods for efficiently obtaining information stored in address space | |
| US20240303196A1 (en) | Memory device and method for scheduling block request | |
| CN120858359A (en) | Automatic masking for Non-Volatile Memory Express (NVMe) inline encryption | |
| EP4120059B1 (en) | Methods and devices for file read latency reduction | |
| US10664442B1 (en) | Method and system for data consistency verification in a storage system | |
| US20260099275A1 (en) | Method and device for efficient metadata management for large block volume storage | |
| EP4357928B1 (en) | Methods and system for efficient access to solid state drive | |
| US20260056887A1 (en) | Systems and methods for tag-based cache with dynamic index selection | |
| US11892951B2 (en) | Key packing for flash key value store operations | |
| US20250383983A1 (en) | Method and device for increasing logical-to-physical table capacity in data storage management | |
| US20260050552A1 (en) | Method and device for flexible tag filtering | |
| WO2023208087A1 (en) | Data processing method and apparatus and related device | |
| KR20260037003A (en) | Method and device for floating tag utilization in a compressed set-associative cache | |
| CN119225652A (en) | A data processing method, device and storage device for secure mobile storage |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION HAS BEEN PUBLISHED |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
| 17P | Request for examination filed |
Effective date: 20240807 |
|
| RBV | Designated contracting states (corrected) |
Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
| GRAP | Despatch of communication of intention to grant a patent |
Free format text: ORIGINAL CODE: EPIDOSNIGR1 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: GRANT OF PATENT IS INTENDED |
|
| GRAS | Grant fee paid |
Free format text: ORIGINAL CODE: EPIDOSNIGR3 |
|
| GRAA | (expected) grant |
Free format text: ORIGINAL CODE: 0009210 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE PATENT HAS BEEN GRANTED |
|
| INTG | Intention to grant announced |
Effective date: 20250312 |
|
| RIN1 | Information on inventor provided before grant (corrected) |
Inventor name: KIM, YOUNGDEOK Inventor name: JANNYAVULA VENKATA, SUMANTH Inventor name: WU, CHUN-CHU CHEN-JHY ARCHIE |
|
| AK | Designated contracting states |
Kind code of ref document: B1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
| REG | Reference to a national code |
Ref country code: GB Ref legal event code: FG4D |
|
| REG | Reference to a national code |
Ref country code: CH Ref legal event code: EP |
|
| REG | Reference to a national code |
Ref country code: DE Ref legal event code: R096 Ref document number: 602023003331 Country of ref document: DE |
|
| REG | Reference to a national code |
Ref country code: IE Ref legal event code: FG4D |
|
| REG | Reference to a national code |
Ref country code: NL Ref legal event code: FP |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: FI Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 Ref country code: ES Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 Ref country code: PT Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250908 |
|
| PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: DE Payment date: 20250721 Year of fee payment: 3 |
|
| REG | Reference to a national code |
Ref country code: LT Ref legal event code: MG9D |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: NO Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250807 Ref country code: GR Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250808 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: PL Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| REG | Reference to a national code |
Ref country code: AT Ref legal event code: MK05 Ref document number: 1793247 Country of ref document: AT Kind code of ref document: T Effective date: 20250507 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: BG Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: HR Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: AT Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: RS Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250807 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: IS Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250907 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: LV Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| P01 | Opt-out of the competence of the unified patent court (upc) registered |
Free format text: CASE NUMBER: UPC_APP_0014050_4325369/2025 Effective date: 20251119 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: SM Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 Ref country code: DK Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: CZ Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: EE Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: SK Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: IT Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| REG | Reference to a national code |
Ref country code: DE Ref legal event code: R097 Ref document number: 602023003331 Country of ref document: DE |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: RO Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| PLBE | No opposition filed within time limit |
Free format text: ORIGINAL CODE: 0009261 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: NO OPPOSITION FILED WITHIN TIME LIMIT |
|
| REG | Reference to a national code |
Ref country code: CH Ref legal event code: L10 Free format text: ST27 STATUS EVENT CODE: U-0-0-L10-L00 (AS PROVIDED BY THE NATIONAL OFFICE) Effective date: 20260318 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: MC Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20250507 |
|
| 26N | No opposition filed |
Effective date: 20260210 |
|
| PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: LU Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20250808 |