[dpdk-dev] using hash table in a MP environment

Neil Horman nhorman at tuxdriver.com
Tue Jun 10 13:35:21 CEST 2014


On Tue, Jun 10, 2014 at 11:02:03AM +0300, Uri Sidler wrote:
> Hi,
> I am currently using a hash table in a multi-process environment.
> the master process creates the hash table which is later used by other
> secondary processes.
> but the secondary processes fail to use the hash table since the hash
> function address actually points to a different fucntion. (this makes sense
> since the address of the hash function is in fact different per process).
> How can I solve this issue?
> 
> Thanks,
> Shirley.
> 

Use shared memory.  see shmget

Neil



More information about the dev mailing list