From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m15-11.126.com (m15-11.126.com [220.181.15.11]) by dpdk.org (Postfix) with ESMTP id F32332C8 for ; Mon, 14 Nov 2016 06:28:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Date:From:Subject:MIME-Version:Message-ID; bh=2g730 kPohNy8YHbHDcuZHZSKJOaXdQsjdbZadPr0Thk=; b=YrEpaA6IIXA5nskqqAqwY t+jBxBqI6bOc7TupKxe2NVXYOjLnyq1yn+g68L78OXL79DpiSrQj0Q9OT7zDTqq6 AY32u9wU4VxJgmooUTFkhFZgZyd5mKBBVJtBH7zhe9LY7v/61c7Cf5Hpz7g3a4ho QYrC+Vu8PKEYcf+32yhbPs= Received: from zhangwqh$126.com ( [128.164.102.227, 54.215.2.217, 10.144.1.72] ) by ajax-webmail-wmsvr11 (Coremail) ; Mon, 14 Nov 2016 13:28:33 +0800 (CST) X-Originating-IP: [128.164.102.227, 54.215.2.217, 10.144.1.72] Date: Mon, 14 Nov 2016 13:28:33 +0800 (CST) From: =?GBK?B?1cXOsA==?= To: dev@dpdk.org X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20160729(86883.8884) Copyright (c) 2002-2016 www.mailtech.cn 126com X-CM-CTRLDATA: il7NxGZvb3Rlcl9odG09NjUwOjU2 MIME-Version: 1.0 Message-ID: <6a6fff02.604d.158614ef009.Coremail.zhangwqh@126.com> X-Coremail-Locale: zh_CN X-CM-TRANSID: C8qowACnXlCCSylY7kh1AA--.55671W X-CM-SenderInfo: x2kd0wxztkqiyswou0bp/1tbifhUi6VgHrLa38wABsg X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] two different threads polls the same port, different queues, why the throughput is the same X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 05:28:38 -0000 SGkgYWxsLCAKCgpJIGhhdmUgdHdvIHRocmVhZHMgcHJvY2VzcyB0aGUgcGFja2V0cyB3aXRoIGRp ZmZlcmVudCB3YXlzLiB0aHJlYWQgQSAoY29yZSAwKSBpcyB2ZXJ5IGhlYXZ5LCB0aHJlYWQgQiAo Y29yZSAxKSBpcyB2ZXJ5IGxpZ2h0LiAgIElmIEkganVzdCBydW4gZWFjaCBvZiB0aGVtLCB0aGVp ciB0aHJvdWdocHV0IGlzIGh1Z2UgZGlmZmVyZW50IHdpdGggc21hbGwgcGFja2V0LiBUaHJlYWQg QSBwb2xscyBxdWV1ZSAwIG9mIHBvcnQgMCwgdGhyZWFkIEIgcG9sbHMgcXVldWUgMSBvZiBwb3J0 IDAuIElmIEkgcnVuIHRoZW0gYXQgdGhlIHNhbWUgdGltZSwgd2h5IHRocmVhZCBBIGFuZCB0aHJl YWQgQiBnZXQgc2FtZSB0aHJvdWdocHV0LiBUaGlzIG1ha2VzIG1lIHZlcnkgY29uZnVzZWQuIERv ZXMgYW55b25lIGhhdmUgdGhlIHNhbWUgZXhwZXJpZW5jZSBvciBrbm93IHNvbWUgcG9zc2libGUg cmVhc29ucz8gIAoKClRoYW5rcywgCndlaQ== >From eomereadig@gmail.com Mon Nov 14 07:13:26 2016 Return-Path: Received: from mail-it0-f43.google.com (mail-it0-f43.google.com [209.85.214.43]) by dpdk.org (Postfix) with ESMTP id 407592C8 for ; Mon, 14 Nov 2016 07:13:26 +0100 (CET) Received: by mail-it0-f43.google.com with SMTP id b123so13025688itb.0 for ; Sun, 13 Nov 2016 22:13:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=X8OhcJ1W9lmYqdUp2Q9mjHgGu9AafIdCLWJe8ePj+8A=; b=rUqVFjC+TrefTP64+giAVa5r8mPeLWMbdLei8jbnuExxbC1IVJhTa3psFO3NtyZWmH QJA097w0t7Dy6H6hdN2GdXHI0WDw5MlyrKBVsf4l70DESaolwEPQuNE+HbnlBevktJma iNw5xHRwvgqEdtdOHYUEepQvEy8lthVO9QrtiaolzeQlJgnXXt34e+q23WyTXblwtnI+ lOW2dMWX5Liy+mZLt53+5gBQ75/S//f4eICKanCapI6ZdDceldHZexgDymUw/qcdEbmf u2/xYi/UAo+jag2S1QCpzJtPpuzBDU3/+vlQQBHv1TGjUZAY35xisIWZhhxfN9V2T2PG ZdEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=X8OhcJ1W9lmYqdUp2Q9mjHgGu9AafIdCLWJe8ePj+8A=; b=h24u0zzd/aEOrocPjMkQ05ab8HQWT+FaYyfaNhRtlwn8pEVS8ofmGAuTv6IKaLiSQQ q1vq4LVC8NKKhtqdcREw7o77HEIUMEf2frKkcqSIXlCymLjlR0ga5DviZLt6suWK0j0R ahRRNblOpVQEQ/Dnr6Lrz+VaQjPL47voH+o/axe9R9Q85QSQE1LVB84f9kAaqmC+YtnG EG5+bwZUXMUtoWGmTXQnbIrxmWRQA7oib61Re159blR7a/kDL38PWuEp62inVtka0fCR KafRqRtyOim7iBidCzLVEsHp8iW6scSC2/TwOwepkV1SWvFcneVXgTnxZOz5FFkDf/ZL dkUA== X-Gm-Message-State: ABUngvfX24K/W7KSXVhbKZ/BgkAgFoh+Eo23zkOQBP+zm/Uo9G/csrlCZFy2MOBi5q1Q2SLOi/ngvndQhNGsBw== X-Received: by 10.36.146.134 with SMTP id l128mr5573860itd.11.1479104005571; Sun, 13 Nov 2016 22:13:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.109.2 with HTTP; Sun, 13 Nov 2016 22:13:25 -0800 (PST) In-Reply-To: <6a6fff02.604d.158614ef009.Coremail.zhangwqh@126.com> References: <6a6fff02.604d.158614ef009.Coremail.zhangwqh@126.com> From: Kyle Larose Date: Mon, 14 Nov 2016 15:13:25 +0900 Message-ID: To: =?UTF-8?B?5byg5Lyf?= Cc: dev@dpdk.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] two different threads polls the same port, different queues, why the throughput is the same X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 06:13:26 -0000 On Mon, Nov 14, 2016 at 2:28 PM, =E5=BC=A0=E4=BC=9F wrot= e: > Hi all, > > > I have two threads process the packets with different ways. thread A (cor= e 0) is very heavy, thread B (core 1) is very light. If I just run each o= f them, their throughput is huge different with small packet. Thread A poll= s 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 ve= ry confused. Does anyone have the same experience or know some possible rea= sons? > 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? > > Thanks, > wei