From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00095.outbound.protection.outlook.com [40.107.0.95]) by dpdk.org (Postfix) with ESMTP id 98EFF7D4A for ; Wed, 6 Dec 2017 03:59:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector2-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=rm6DkQrHCtFkh45KS9iXpYc7mlHN8Sv/T1Sasi7PGqc=; b=TrJ/7fX8tPtY31ylYDLoiIlZfG5fV4cIwHGhspeqglQXYJ3bDY0EMQ82BwYZZWZotkEFffry9dioU6B2pjiU4sjekFvjA1bAqWvSOCRBBayiCUKI0H7L76b11k0l9LTsyN48/FIMxbDOwSLEwNX3iNXvlEyPQHVAPDE6prOrpss= Received: from HE1PR07MB3449.eurprd07.prod.outlook.com (10.170.247.144) by HE1PR07MB3450.eurprd07.prod.outlook.com (10.170.247.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.3; Wed, 6 Dec 2017 02:59:08 +0000 Received: from HE1PR07MB3449.eurprd07.prod.outlook.com ([fe80::6903:c1ed:a83a:dbd7]) by HE1PR07MB3449.eurprd07.prod.outlook.com ([fe80::6903:c1ed:a83a:dbd7%13]) with mapi id 15.20.0282.012; Wed, 6 Dec 2017 02:59:07 +0000 From: "Wang, Wei 5. (NSB - CN/Hangzhou)" To: "Tan, Jianfeng" , Yuanhan Liu CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] The limitation of VHOST_MEMORY_MAX_NREGIONS in virtio-user with vhost-user backend Thread-Index: AdNtcbE2BaObdXMdQWCI5xLg0saOhgAZXYqAABmkaQAAABjtYA== Date: Wed, 6 Dec 2017 02:59:07 +0000 Message-ID: References: <20171205144137.GJ9111@yliu-dev> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [131.228.32.189] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; HE1PR07MB3450; 6:SXAmX6CdkH0OEp8j0z4zLZSZN7GO85RbEPhZHxTBB7icGa/jMXlV/OO5JmEcZnCBJu+3fZjL2cBmulrQflBq8XqpPUUB7mbvpGd8QkT2Xj8L+nI8+QrgiRww9Wlc4VfPsxS4adxcJjE1v2xugTNPa17ZZW7PNhfQ9KMGHaJk2fc4vFCHNcfhOB7teHuG80HjBNcQ7jpQneDN6fYy3wF9Eus1rlCL7xkoKECVVIcpDkP11mA5WdNG3pfTR/QWycziQuZ4fxmkldncIh85tMS809bxtJ/KqfsWlHyD2AnprewKcHlDmC4h0Z8qvv94GiZYnfE2isDIYQ+Qr5meGzRi/6BtjIYgQRM4d+XVwAeNy88=; 5:ArHbL7CCrqt96hr8rBXE4JiZsrcevoE1YnOoP1Xr8GAANSTvLyFLZVQbV6qebEmpI1PJk6qikXPUh9wk9E5jztqbRfp6LhKTL5g3gf2AzYP6fIU6r6pBOMBOWDRCtVNmHlsErc44Mk8Yk1TONO9OKgcvJcqWuAQDo7NOS7d44Y0=; 24:h1nG2oLXX6crokLj7NUbGfIYPBatTpNg+0PktvhmuWEofLZZojcVih74Y8DNLr/RMft8W3nl+hjzfJ4T/CjbSge4+KLURQrYOrRA96J+5Zc=; 7:9MyeGlMiu9EKi0Vd/Q3ygtAcjiapuLzVeIZo9d81neLU4Sb4iCIajhqyeuXbcmbL/WHa+wVCvP2C5TSpU+BByLKpM1kctU/nsicDdID0CI7VAzTnXIWigdrcZFrZVoBO//yDPRwKeHHvAXO7LTnXh+XYfiUz5Tx4HEVxFxw0YTVSaSu6E7LGSlr1y5Tc88dcV9RQhUc9IrquMa6W5M1LbXcQ7sdqJUd3XBzJT5LNE6lS2D2yuGmqs/ieLqK7KlGZ x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: dcffba03-d374-4f39-6c21-08d53c555175 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(48565401081)(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286); SRVR:HE1PR07MB3450; x-ms-traffictypediagnostic: HE1PR07MB3450: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(3231022)(93006095)(93001095)(10201501046)(6055026)(6041248)(20161123558100)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:HE1PR07MB3450; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:HE1PR07MB3450; x-forefront-prvs: 05134F8B4F x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(366004)(346002)(39860400002)(13464003)(24454002)(199004)(189003)(74316002)(86362001)(6246003)(99286004)(478600001)(8936002)(8676002)(6506006)(5660300001)(66066001)(53376002)(3660700001)(25786009)(81156014)(2950100002)(5250100002)(3280700002)(966005)(101416001)(81166006)(68736007)(6436002)(3846002)(229853002)(76176011)(7696005)(97736004)(14454004)(9686003)(4326008)(6306002)(7736002)(53546010)(53936002)(105586002)(6116002)(55016002)(305945005)(102836003)(33656002)(110136005)(2906002)(106356001)(316002)(2900100001)(473944003); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR07MB3450; H:HE1PR07MB3449.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en; received-spf: None (protection.outlook.com: nokia-sbell.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=wei.5.wang@nokia-sbell.com; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nokia-sbell.com X-MS-Exchange-CrossTenant-Network-Message-Id: dcffba03-d374-4f39-6c21-08d53c555175 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2017 02:59:07.7923 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3450 X-Mailman-Approved-At: Wed, 06 Dec 2017 22:12:57 +0100 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:59:09 -0000 Hi,=20 Thank you so much for your information.=20 Vivian seat: 19009 phone: 13738006921 -----Original Message----- From: Tan, Jianfeng [mailto:jianfeng.tan@intel.com]=20 Sent: Wednesday, December 06, 2017 10:56 AM To: Yuanhan Liu ; Wang, Wei 5. (NSB - CN/Hangzhou) Cc: dev@dpdk.org Subject: RE: [dpdk-dev] The limitation of VHOST_MEMORY_MAX_NREGIONS in virt= io-user with vhost-user backend > -----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