System and method of a shared memory hash table with notifications and reduced memory utilization
First Claim
1. A non-transitory machine-readable medium having executable instructions to cause one or more processing units perform a method to read a value from a shared memory data structure, the method comprising:
- receiving a first key that corresponds to the value, the first key used to retrieve the value from the shared memory data structure and the shared memory data structure is written to by a writer and read from by a plurality of readers;
looking up the first key in a local values table, wherein the first key is located at an index in the local values table, the local values table stores a plurality of keys for one of the plurality of readers, and each of the plurality of keys is indexed into an entry in the shared memory data structure; and
retrieving the value from the shared memory data structure using the index, wherein the shared memory data structure is stored in a memory of a network element.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus of a device that includes a shared memory hash table that notifies one or more readers of changes to the shared memory hash table is described. In an exemplary embodiment, a device receives a key that corresponds to the value, where the key used to retrieve the value form the shared memory hash table and the shared memory hash table is written to by a writer and read from by a plurality of readers. In addition, the device retrieves an index from a local values table, where the local values table stores a plurality of indices for one of the plurality of readers and the index is an index into an entry in the shared memory hash table. The device further retrieves the value from the shared memory hash table using the index.
-
Citations
26 Claims
-
1. A non-transitory machine-readable medium having executable instructions to cause one or more processing units perform a method to read a value from a shared memory data structure, the method comprising:
-
receiving a first key that corresponds to the value, the first key used to retrieve the value from the shared memory data structure and the shared memory data structure is written to by a writer and read from by a plurality of readers; looking up the first key in a local values table, wherein the first key is located at an index in the local values table, the local values table stores a plurality of keys for one of the plurality of readers, and each of the plurality of keys is indexed into an entry in the shared memory data structure; and retrieving the value from the shared memory data structure using the index, wherein the shared memory data structure is stored in a memory of a network element. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method to read a value from a shared memory data structure, the method comprising:
-
receiving a first key that corresponds to the value, the first key used to retrieve the value from the shared memory data structure and the shared memory data structure is written to by a writer and read from by a plurality of readers; looking up the first key in a local values table, wherein the first key is located at an index in the local values table, the local values table stores a plurality of keys for one of the plurality of readers, and each of the plurality of keys is indexed into an entry in the shared memory data structure; and retrieving the value from the shared memory data structure using the index, wherein the shared memory data structure is stored in a memory of a network element. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A network element that reads a value from a shared memory data structure, the network element comprising:
-
a processor; a memory coupled to the processor through a bus; and a process executed from the memory by the processor to cause the processor to receive a first key that corresponds to the value, the first key used to retrieve the value from the shared memory data structure and the shared memory data structure is written to by a writer and read from by a plurality of readers, look up the first key in a local values table, wherein the first key is located at an index in the local values table, the local values table stores a plurality of keys for one of the plurality of readers, and each of the plurality of keys is indexed into an entry in the shared memory data structure, and retrieve the value from the shared memory data structure using the index, wherein the shared memory data structure is stored in the memory. - View Dependent Claims (22, 23, 24, 25, 26)
-
Specification