From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 8D3582935; Fri, 28 Apr 2017 11:04:15 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Apr 2017 02:04:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,387,1488873600"; d="scan'208";a="962096537" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 28 Apr 2017 02:04:14 -0700 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 28 Apr 2017 02:04:14 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 28 Apr 2017 02:04:13 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.117]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0319.002; Fri, 28 Apr 2017 17:04:11 +0800 From: "Wu, Jingjing" To: Olivier Matz , "dev@dpdk.org" CC: "Richardson, Bruce" , "stable@dpdk.org" Thread-Topic: [PATCH 2/2] app/testpmd: fix number of mbufs in pool Thread-Index: AQHSvPcHPrasUYrGSESlo1kx1RpJ1aHagoUg Date: Fri, 28 Apr 2017 09:04:10 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810D5A19E@SHSMSX103.ccr.corp.intel.com> References: <20170424123358.5959-1-olivier.matz@6wind.com> <20170424123358.5959-2-olivier.matz@6wind.com> In-Reply-To: <20170424123358.5959-2-olivier.matz@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 2/2] app/testpmd: fix number of mbufs in pool X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2017 09:04:17 -0000 > -----Original Message----- > From: Olivier Matz [mailto:olivier.matz@6wind.com] > Sent: Monday, April 24, 2017 8:34 PM > To: dev@dpdk.org; Wu, Jingjing > Cc: Richardson, Bruce ; stable@dpdk.org > Subject: [PATCH 2/2] app/testpmd: fix number of mbufs in pool >=20 > The number of mbufs in pools is not consistent depending on the options p= assed > by the user and the number of ports, especially in numa mode, when the nu= mber > of mbuf is specified by the user. >=20 > When the user specifies the number of mbuf (per pool), it should override= s the > default value. >=20 > - before the patch >=20 > ./build/app/testpmd -- -i > : n=3D331456, size=3D2176, socket=3D0 > : n=3D331456, size=3D2176, socket=3D1 >=20 > ./build/app/testpmd -- --total-num-mbufs=3D8000 -i > : n=3D256000, size=3D2176, socket=3D0 > : n=3D256000, size=3D2176, socket=3D1 > # BAD, should be n=3D8000 for each socket >=20 > ./build/app/testpmd -- --no-numa -i > : n=3D331456, size=3D2176, socket=3D0 >=20 > ./build/app/testpmd -- --no-numa --total-num-mbufs=3D8000 -i > : n=3D8000, size=3D2176, socket=3D0 >=20 > ./build/app/testpmd --vdev=3Deth_null0 --vdev=3Deth_null1 -- -i > : n=3D331456, size=3D2176, socket=3D0 > : n=3D331456, size=3D2176, socket=3D1 >=20 > ./build/app/testpmd --vdev=3Deth_null0 --vdev=3Deth_null1 -- \ > --total-num-mbufs=3D8000 -i > : n=3D128000, size=3D2176, socket=3D0 > : n=3D128000, size=3D2176, socket=3D1 > # BAD, should be n=3D8000 for each socket >=20 > ./build/app/testpmd --vdev=3Deth_null0 --vdev=3Deth_null1 -- --no-numa -i > : n=3D331456, size=3D2176, socket=3D0 >=20 > ./build/app/testpmd --vdev=3Deth_null0 --vdev=3Deth_null1 -- --no-numa \ > --total-num-mbufs=3D8000 -i > : n=3D8000, size=3D2176, socket=3D0 >=20 > - after the patch >=20 > ./build/app/testpmd -- -i > : n=3D331456, size=3D2176, socket=3D0 > : n=3D331456, size=3D2176, socket=3D1 >=20 > ./build/app/testpmd -- --total-num-mbufs=3D8000 -i > : n=3D8000, size=3D2176, socket=3D0 > : n=3D8000, size=3D2176, socket=3D1 >=20 > ./build/app/testpmd -- --no-numa -i > : n=3D331456, size=3D2176, socket=3D0 >=20 > ./build/app/testpmd -- --no-numa --total-num-mbufs=3D8000 -i > : n=3D8000, size=3D2176, socket=3D0 >=20 > ./build/app/testpmd --vdev=3Deth_null0 --vdev=3Deth_null1 -- -i > : n=3D331456, size=3D2176, socket=3D0 > : n=3D331456, size=3D2176, socket=3D1 >=20 > ./build/app/testpmd --vdev=3Deth_null0 --vdev=3Deth_null1 -- \ > --total-num-mbufs=3D8000 -i > : n=3D8000, size=3D2176, socket=3D0 > : n=3D8000, size=3D2176, socket=3D1 >=20 > ./build/app/testpmd --vdev=3Deth_null0 --vdev=3Deth_null1 -- --no-numa -i > : n=3D331456, size=3D2176, socket=3D0 >=20 > ./build/app/testpmd --vdev=3Deth_null0 --vdev=3Deth_null1 -- --no-numa \ > --total-num-mbufs=3D8000 -i > : n=3D8000, size=3D2176, socket=3D0 >=20 > Fixes: b6ea6408fbc7 ("ethdev: store numa_node per device") >=20 > CC: stable@dpdk.org > Signed-off-by: Olivier Matz Acked-by: Jingjing Wu