DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Load-balancing position field in DPDK load_balancer sample app vs. Hash table
@ 2014-11-13 18:29 Kamraan Nasim
  2014-11-14 10:53 ` Bruce Richardson
  2014-11-14 14:44 ` Ananyev, Konstantin
  0 siblings, 2 replies; 13+ messages in thread
From: Kamraan Nasim @ 2014-11-13 18:29 UTC (permalink / raw)
  To: dev; +Cc: Yuanzhang Hu

Hello,

So i've borrowed some code from the DPDK Load balancer sample application,
specifically the load balancing position(byte 29th) to determine which
worker lcore to forward the packet to.

The idea is that flow affinity should be maintained and all packets from
the same flow would have the same checksum/5-tuple value

worker_id = packet[load_balancing_field] % n_workers

Question is that how reliable is this load balancing position? I am tempted
to use Hash tables but I think this position based mechanism may be faster.

How have people's experience with this been in general?


--Kam

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-11-17 10:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-13 18:29 [dpdk-dev] Load-balancing position field in DPDK load_balancer sample app vs. Hash table Kamraan Nasim
2014-11-14 10:53 ` Bruce Richardson
2014-11-14 14:44 ` Ananyev, Konstantin
2014-11-14 16:23   ` Yerden Zhumabekov
2014-11-14 16:50     ` Ananyev, Konstantin
2014-11-14 16:55       ` Yerden Zhumabekov
2014-11-14 16:57       ` Chilikin, Andrey
2014-11-14 17:20         ` Yerden Zhumabekov
2014-11-17 10:15           ` Chilikin, Andrey
2014-11-14 18:49         ` Matt Laswell
2014-11-15  7:10           ` Yerden Zhumabekov
2014-11-15 15:28             ` Matt Laswell
2014-11-17  0:48         ` Zhang, Helin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).