From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id 23F391C00 for ; Tue, 5 Dec 2017 15:41:51 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9402221A67; Tue, 5 Dec 2017 09:41:50 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Tue, 05 Dec 2017 09:41:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=C1JF41kuXTCZ/I2F+usigEC0rD6urBNHLHRvaXeiH/U=; b=QoiWHGLc yD7wByJLT6xlR29CCdH8oE/nTISWg1DI2b8xTnKJFox6PRvMNZ3CoSQnCPlZa2X+ 0HKkV2ffgZ2BZ/e3pC1I6oBxLaewySbmJYF9qrKIlXSLp4Fb/hLMiA+Lh5t9OJqe 3uSzdyP6Q819oYbcnOOKC2N97/klUA0YLS6lCwFgl65USHO94du34O74DA1cpLG6 K700EalD+bvFWO26pK6vAymnk0u7WCFPPMv79kpxddoc4mvMZh2aDq2Aof1wKC29 HgKYugZo88hspiqv01pVSAAs5a1+d/r6tLXqXX+vVEyXQY8XTfmvVUrvHj1wJATM wX0+gx9hxyT+2Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=C1JF41kuXTCZ/I2F+usigEC0rD6ur BNHLHRvaXeiH/U=; b=GnV3Iz6hoyEGRBO02rdFEP90x2z2Toa9RwaiD5h/GAa1d pAgz9ED1NhC4KVQTNNV9LOGBVMl4L2JQcn5rKCgNdo3G7X/xZBomN/R0EBTTMdUM nO+Xp2Ab2o4yD4pjl/mDdW7q5FRODjid0Bx517eTuSG8AnxdsjpvwekY14DVZC65 GjvktKxBAHUWYC2m8OQw0EfA+Oy+T/yPESyodsFmeXCvQjWmFid2O5JTdYGT5xGe BhuE9u5Nqn3ZIU+qxyr+J0xzCKoOmgHR/9Ah15YieutjAxE0fSAUo9y8xt3I7OmW c3srWg3PTN1UoHhMN7nk3YjWRHf7O6cChQ+1WQH4Q== X-ME-Sender: Received: from yliu-dev (unknown [180.158.55.119]) by mail.messagingengine.com (Postfix) with ESMTPA id 26EDD7F91D; Tue, 5 Dec 2017 09:41:45 -0500 (EST) Date: Tue, 5 Dec 2017 22:41:37 +0800 From: Yuanhan Liu To: "Wang, Wei 5. (NSB - CN/Hangzhou)" Cc: "dev@dpdk.org" , "Tan, Jianfeng" Message-ID: <20171205144137.GJ9111@yliu-dev> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) 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: Tue, 05 Dec 2017 14:41:51 -0000 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? It comes from the vhost-user spec. > 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 change dpdk code to fix this limitation? > 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. --yliu