> -----Original Message----- > From: De Lara Guarch, Pablo > Sent: Friday, October 30, 2015 2:37 PM > To: dev at dpdk.org > Cc: Richardson, Bruce <bruce.richardson at intel.com>; De Lara Guarch, Pablo > <pablo.de.lara.guarch at intel.com> > Subject: [PATCH v3] hash: fix scaling by reducing contention > > From: "De Lara Guarch, Pablo" <pablo.de.lara.guarch at intel.com> > > If using multiple cores on a system with hardware transactional memory > support, thread scaling does not work, as there was a single point in the > hash library which is a bottleneck for all threads, which is the > "free_slots" ring, which stores all the indices of the free slots in the > table. > > This patch fixes the problem, by creating a local cache per logical core, > which stores locally indices of free slots, so most times, writer threads > will not interfere each other. > > Fixes: 48a399119619 ("hash: replace with cuckoo hash implementation") > > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>