From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 7BF3A11F5 for ; Thu, 10 Dec 2015 14:20:01 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 10 Dec 2015 05:19:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,408,1444719600"; d="scan'208";a="868820311" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by orsmga002.jf.intel.com with ESMTP; 10 Dec 2015 05:19:44 -0800 Received: from irsmsx112.ger.corp.intel.com (10.108.20.5) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 10 Dec 2015 13:19:42 +0000 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.23]) by irsmsx112.ger.corp.intel.com ([169.254.1.8]) with mapi id 14.03.0248.002; Thu, 10 Dec 2015 13:19:42 +0000 From: "Iremonger, Bernard" To: "Xie, Huawei" , Yuanhan Liu Thread-Topic: [dpdk-dev] [PATCH v2 1/1] doc: correct Vhost Sample Application guide Thread-Index: AQHRMxc16sl8M0sc20qcJ4VGubdvxJ7D+jdQgAAnA4CAABIScA== Date: Thu, 10 Dec 2015 13:19:41 +0000 Message-ID: <8CEF83825BEC744B83065625E567D7C219F8ED27@IRSMSX108.ger.corp.intel.com> References: <1449664541-9546-1-git-send-email-bernard.iremonger@intel.com> <1449681518-27656-1-git-send-email-bernard.iremonger@intel.com> <20151210065247.GT29571@yliu-dev.sh.intel.com> <8CEF83825BEC744B83065625E567D7C219F8EC44@IRSMSX108.ger.corp.intel.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v2 1/1] doc: correct Vhost Sample Application guide 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: Thu, 10 Dec 2015 13:20:01 -0000 Hi Huawei, > > > I don't think that's a right "correction": vhost-swtich would fail > > > to > > > start: > > > > > > EAL: Error - exiting with code: 1 > > > Cause: Cannot create mbuf pool > > > > > > As vhost-switch creates more mbuf than 1024M can hold. > > > > > > However, I do think that adding this option is necessary, otherwise, > > > all hugepages will be allocated to vhost-switch, leaving no memory > > > for > > starting > > > VM at all. (And this is kind of informatin you need to put into > > > commit > > log). > > > > > > And limiting it to "1024M" is reasonable as well, so that we can run > > > it > > on a > > > desktop (or laptop) without too many memories. You just need fix > > > vhost- switch example to not allocate too many mbufs by default. > > > > > > --yliu > > > > Yes the --socket-mem option is necessary. > > I will add a note that a value of may need to be greater > > than 1024. > > I will submit a patch to vhost-switch to reduce the number of mbufs. > > > I recall we have to allocate mbufs for each queue rather than used queues > only, so memory consumption depends on queue number. After that issue is > fixed, I think 1024MB is enough. For the time being, you could temporaril= y > use 2048M and add an explanation. >=20 I have sent a v3 of this patch which includes a note that the value of 1024= may have to be increased. I would prefer to keep the value of 1024. Regards, Bernard.