From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: vhost-switch example: huge memory need and CRC off-loading issue Date: Sun, 09 Aug 2015 10:56:26 +0200 Message-ID: <1801553.GZ2Pizxj8G@xps13> References: <55C4EB5C.4080001@siemens.com> <55C5AD1F.9020902@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Jan Kiszka Return-path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by dpdk.org (Postfix) with ESMTP id 9EB60CF9 for ; Sun, 9 Aug 2015 10:57:40 +0200 (CEST) Received: by wijp15 with SMTP id p15so102800373wij.0 for ; Sun, 09 Aug 2015 01:57:40 -0700 (PDT) In-Reply-To: <55C5AD1F.9020902@siemens.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 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, :-) > > 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 IIUC. 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.