[dpdk-dev] two different threads polls the same port, different queues, why the throughput is the same
eomereadig at gmail.com
Mon Nov 14 07:13:25 CET 2016
On Mon, Nov 14, 2016 at 2:28 PM, 张伟 <zhangwqh at 126.com> wrote:
> Hi all,
> I have two threads process the packets with different ways. thread A (core 0) is very heavy, thread B (core 1) is very light. If I just run each of them, their throughput is huge different with small packet. Thread A polls queue 0 of port 0, thread B polls queue 1 of port 0. If I run them at the same time, why thread A and thread B get same throughput. This makes me very confused. Does anyone have the same experience or know some possible reasons?
Can you give some examples with numbers? My first thought is that
maybe the two threads are contending for the same physical core. You
don't have any locking/critical sections, do you?
More information about the dev