From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 63E59A10 for ; Sat, 8 Aug 2015 02:39:19 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 07 Aug 2015 17:39:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,632,1432623600"; d="scan'208";a="764374371" Received: from pgsmsx103.gar.corp.intel.com ([10.221.44.82]) by fmsmga001.fm.intel.com with ESMTP; 07 Aug 2015 17:39:17 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by PGSMSX103.gar.corp.intel.com (10.221.44.82) with Microsoft SMTP Server (TLS) id 14.3.224.2; Sat, 8 Aug 2015 08:39:16 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.126]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.18]) with mapi id 14.03.0224.002; Sat, 8 Aug 2015 08:39:15 +0800 From: "Ouyang, Changchun" To: Jan Kiszka , "dev@dpdk.org" Thread-Topic: [dpdk-dev] vhost-switch example: huge memory need and CRC off-loading issue Thread-Index: AQHQ0TbvphIOSRoHaU2pbvbdOoHFYJ4BP7Sw Date: Sat, 8 Aug 2015 00:39:14 +0000 Message-ID: References: <55C4EB5C.4080001@siemens.com> In-Reply-To: <55C4EB5C.4080001@siemens.com> 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 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: Sat, 08 Aug 2015 00:39:19 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jan Kiszka > Sent: Saturday, August 8, 2015 1:31 AM > To: dev@dpdk.org > Subject: [dpdk-dev] vhost-switch example: huge memory need and CRC off- > loading issue >=20 > Hi again, >=20 > two findings in the vhost-switch example code that can cause grey hair fo= r > starters: >=20 > - MAX_QUEUES of 512 causes pretty high memory need for the application > (something between 1 and 2G) - is that really needed? I'm now running > 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, :-) >=20 > - hw_strip_crc is set to 0, but either the igb driver or the ET2 quad > port adapter I'm using is ignoring this. It does strip the CRC, so Igb and ET2 should NOT ignore it. > does software, and I'm losing 4 bytes on each unpadded packet. Known > issue? >=20 > Thanks, > Jan >=20 > -- > Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate > Competence Center Embedded Linux