Efficient hash table lookup
Abstract
A hash table system, including a plurality of hash tables, associated with respective hash functions, for storing key-value pairs; an overflow memory for storing key-value pairs moved from the hash tables due to collision; and an arbiter for arbitrating among commands including update commands, match commands, and rehash commands, wherein for each system clock cycle, the arbiter selects as a selected command one of an update command, a match command, or a rehash command, and wherein the hash table system completes execution of each selected command within a bounded number of system clock cycles.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A hash table system, comprising a plurality of hash tables, associated with respective hash functions, for storing key-value pairs, wherein each hash table comprises a plurality of buckets, and each bucket comprises a plurality of cells, wherein each cell is operable to store a key-value pair, wherein each key hashes to one of the buckets in each hash table, and wherein when the system performs an install operation for a key-value pair, a bucket in each hash table is determined for the key-value pair to be stored by hashing the key with the respective hash functions, and the key-value pair is stored in a hash-table for which the determined bucket is not full, wherein when all of the buckets determined for a key-value pair to be stored are full, a key-value pair previously stored in one of the determined buckets is evicted and stored in an overflow memory, and the key-value pair to be stored is stored in the bucket from which the key-value pair previously stored is evicted.
- Claim 2Depends on #1
The system according to claim 1, wherein the overflow memory is configured so that a location of a key-value pair stored in the overflow memory is determined by searching for the key of the key-value pair.
- Claim 3Depends on #2
The system according to claim 2, wherein the overflow memory comprises a content addressable memory for storing keys of key-value pairs, and another memory for storing values of the key-value pairs.
- Claim 4Depends on #1
The system according to claim 1, further comprising: the overflow memory for storing key-value pairs moved from the hash tables due to collision; and an arbiter for arbitrating among commands including update commands for installing key-value pairs into the hash tables or uninstalling key-value pairs from the hash tables, match commands for matching keys to locations in the hash tables, and rehash commands for relocating key-value pairs from the overflow memory to the hash tables or relocating key-value pairs from one of the hash tables to another of the hash tables, wherein for each system clock cycle, the arbiter selects as a selected command one of an update command, a match command, or a rehash command, and wherein the hash table system completes execution of each selected command within a bounded number of system clock cycles, wherein the arbiter is a weighted round-robin arbiter.
- Claim 5Depends on #4
The system according to claim 4, wherein a weight applied to commands that are not rehash commands is varied according to an occupancy level of the overflow memory.
- Claim 6Depends on #5
The system according to claim 5, wherein the weight applied to commands that are not rehash commands is set to a first value when the occupancy level of the overflow memory is less than a first threshold, is set to a second value greater than the first value when the occupancy level of the overflow memory is greater than the first threshold and less than a second threshold, and is set to a third value greater than the second value when the occupancy level of the overflow memory is greater than the second threshold.
- Claim 7Depends on #6
The system according to claim 6, wherein the first threshold is an overflow memory high occupied threshold, and the second threshold is an overflow memory almost full threshold.
- Claim 8Depends on #1
The system according to claim 1, further comprising: the overflow memory for storing key-value pairs moved from the hash tables due to collision; and an arbiter for arbitrating among commands including update commands for installing key-value pairs into the hash tables or uninstalling key-value pairs from the hash tables, match commands for matching keys to locations in the hash tables, and rehash commands for relocating key-value pairs from the overflow memory to the hash tables or relocating key-value pairs from one of the hash tables to another of the hash tables, wherein for each system clock cycle, the arbiter selects as a selected command one of an update command, a match command, or a rehash command, wherein the hash table system completes execution of each selected command within a bounded number of system clock cycles, and wherein the rehash commands comprise two types of rehash commands, a candidate generation type of rehash command for selecting a key-value pair as a candida
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present application is a continuation of U.S. patent application Ser. No. 17/833,126, filed on Jun. 6, 2022, the disclosure of which is hereby incorporated herein by reference. BACKGROUND Content Addressable Memory architectures may be employed in systems that require rapid data search. Content Addressable Memories (CAMs) can be searched very quickly due to their parallel nature. However, CAMs are expensive in terms of chip area and power consumption. Accordingly, for many applications CAMs are impractical. BRIEF SUMMARY It has been recognized that in many applications replacing a CAM with an efficient hash table lookup engine provides for rapid data search while overcoming the chip area and power consumption drawbacks associated with attempting to implement a large-scale CAM. It has been further recognized that employing an efficient hash lookup table in a packet-based communication node would improve the speed and efficiency of the node. For example, a chip-based packet node, such as an ASIC, may employ a combination of an on-chip cache memory and an off-chip memory to temporarily store packets while the packets await processing; and when such node needs to access a temporarily stored packet, an efficient hash table lookup engine will enable the node to rapidly determine whether the packet is stored in the on-chip cache memory or in the off-chip memory. In view of the desire for an efficient hash table lookup engine, the presently disclosed technology is provided. In one aspect, the technology provides a hash table system, including a plurality of hash tables, associated with respective hash functions, for storing key-value pairs; an overflow memory for storing key-value pairs moved from the hash tables due to collision; and an arbiter for arbitrating among commands including update commands for installing key-value pairs into the hash tables or uninstalling key-value pairs from the hash tables, match commands for matchi
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (8)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (1)
- Extended European Search Report for European Patent Application No. 22207736.4 dated May 19, 2023. 13 pages.