I re-implement a more effective and powerful share hash_map based on dpdk. Please see following link:
https://github.com/Jiangwlee/more-effective-dpdk-share-hashmap
Description:
This is an implementation of share hash map in dpdk. I would like to offer a hash map template as std::hash_map. For a user, he only needs to know the interface of this hash map. He could use it easily even does not know the implementation of dpdk.
Build:
-
Download the source codes of dpdk from dpdk.org
-
Read the intel-dpdk-getting-start-guide.pdf to learn how to set up a dpdk develop environment
-
Build and run the helloworld example in dpdk-1.6.0r2/examples/
-
Copy the files under hashmap_mp/mk/ to dpdk-1.6.0r2/mk/ to enable g++ for dpdk
-
Build this program by following command: $ make CC=g++
Run:
-
Make sure you have run dpdk-1.6.0r2/tools/setup.sh to set up your dpdk running environment < You would know what I mean if you have run the helloworld program >
-
Start the primary process $ sudo ./build/hashmap -c 1 -n 4 --proc-type=primary
-
Start the secondary process $ sudo ./build/hashmap -c c -n 4 --proc-type=secondary
Have fun!