From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E516DE72 for ; Mon, 10 Aug 2015 03:10:54 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 09 Aug 2015 18:10:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,641,1432623600"; d="scan'208";a="780148479" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by fmsmga002.fm.intel.com with ESMTP; 09 Aug 2015 18:10:52 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX104.gar.corp.intel.com (10.221.44.91) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 10 Aug 2015 09:10:51 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.126]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.143]) with mapi id 14.03.0224.002; Mon, 10 Aug 2015 09:10:49 +0800 From: "Ouyang, Changchun" To: Thomas Monjalon , Jan Kiszka Thread-Topic: [dpdk-dev] vhost-switch example: huge memory need and CRC off-loading issue Thread-Index: AQHQ0apaMi8Cd2Iplk+lJ0++BkfVgJ4C2RoAgAGWKDA= Date: Mon, 10 Aug 2015 01:10:49 +0000 Message-ID: References: <55C4EB5C.4080001@siemens.com> <55C5AD1F.9020902@siemens.com> <1801553.GZ2Pizxj8G@xps13> In-Reply-To: <1801553.GZ2Pizxj8G@xps13> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] vhost-switch example: huge memory need and CRC off-loading issue 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, 10 Aug 2015 01:10:55 -0000 > -----Original Message----- > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > Sent: Sunday, August 9, 2015 4:56 PM > To: Jan Kiszka > Cc: dev@dpdk.org; Ouyang, Changchun > Subject: Re: [dpdk-dev] vhost-switch example: huge memory need and CRC > off-loading issue >=20 > 2015-08-08 09:17, Jan Kiszka: > > On 2015-08-08 02:39, Ouyang, Changchun wrote: > > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jan Kiszka > > >> - MAX_QUEUES of 512 causes pretty high memory need for the > application > > >> (something between 1 and 2G) - is that really needed? I'm now runn= ing > > >> with 32, and I'm able to get away with 256M. Can we tune this > > >> default? > > > > > > Don't think we need change default just because your platform is 32, > > > Well, my platform is 128, other platform may have other value, :-) > > > > Then let's make it configurable or explore the actual device needs > > before allocating the buffer. The impact on memory consumption is way > > too big to hard-code this, specifically as this is per physical port II= UC. >=20 > You can add a run-time option and/or add a comment in the documentation. > It is just an example, so it must be simple to understand. Agree, that is better than changing the default macro value.