From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id D0CE57D05 for ; Wed, 6 Dec 2017 03:57:28 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Dec 2017 18:57:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,366,1508828400"; d="scan'208";a="9947701" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 05 Dec 2017 18:57:27 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 5 Dec 2017 18:57:27 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 5 Dec 2017 18:57:26 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by shsmsx102.ccr.corp.intel.com ([169.254.2.175]) with mapi id 14.03.0319.002; Wed, 6 Dec 2017 10:55:51 +0800 From: "Tan, Jianfeng" To: Yuanhan Liu , "Wang, Wei 5. (NSB - CN/Hangzhou)" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] The limitation of VHOST_MEMORY_MAX_NREGIONS in virtio-user with vhost-user backend Thread-Index: AdNtcbE2BaObdXMdQWCI5xLg0saOhgAImgKAACeBcqA= Date: Wed, 6 Dec 2017 02:55:50 +0000 Message-ID: References: <20171205144137.GJ9111@yliu-dev> In-Reply-To: <20171205144137.GJ9111@yliu-dev> Accept-Language: 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] The limitation of VHOST_MEMORY_MAX_NREGIONS in virtio-user with vhost-user backend 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: Wed, 06 Dec 2017 02:57:29 -0000 > -----Original Message----- > From: Yuanhan Liu [mailto:yliu@fridaylinux.org] > Sent: Tuesday, December 5, 2017 10:42 PM > To: Wang, Wei 5. (NSB - CN/Hangzhou) > Cc: dev@dpdk.org; Tan, Jianfeng > Subject: Re: [dpdk-dev] The limitation of VHOST_MEMORY_MAX_NREGIONS > in virtio-user with vhost-user backend >=20 > On Tue, Dec 05, 2017 at 06:58:53AM +0000, Wang, Wei 5. (NSB - > CN/Hangzhou) wrote: > > > > > > Hi, all > > > > In DPDK document, it it described that Virtio in containers Cannot work > when there are more than VHOST_MEMORY_MAX_NREGIONS(8) > hugepages. In another word, do not use 2MB hugepage so far. Do you know > the reason of this limitation? >=20 > It comes from the vhost-user spec. >=20 > > In my envirionment, the pdpe1gb is not set in cpu flag, so hugepage can= 't > be set to 1GB size. The hugepage number shall be more than 8 > > > > > > So is there any solution or workaround to fix this limitation? Or chang= e > dpdk code to fix this limitation? > > >=20 > AFAIK, there are no workarounds. And I think the DPDK EAL memory code > need be > refactored a bit to fix this limitation. Unforunately, seems there are no= work > on that recently. For more info, you can refer to: http://dpdk.org/dev/patchwork/patch/10406/ Thanks, Jianfeng >=20 > --yliu