From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id E14F51E2B for ; Wed, 6 Dec 2017 15:07:43 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 2715020D5D; Wed, 6 Dec 2017 09:07:43 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Wed, 06 Dec 2017 09:07:43 -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=uFE9o4FOOIFcreOsDiQlKYQZXdvAM4vtprVFmMLbrSo=; b=itSysI3w u534LuKSlaGylPKr3oY+YYNP2MKaVOV0SbpKGuGcExrW/TpEbloK+CqCFPNERx5u v7mg4NIpf4I08PIcXJNeu3jtd/LY2lppDqyvcJ9goRtgDU4I+W44TmncMcvfe21l nvKEn/S/PjoxZmsgwtbV3kkCjMOuxe+tOg8uK1jvdLxCTsRsshGQXc/7P3C52gDW kitoPXveuO66Y42QluSzh6+Wqj7YpM1cimpIoXeSPm589SGe3J7QEwAauvQjyfbh jEjOwAUvE4SYUKC9fDyffbE4VKO57lfX1Ucop3x/wpsZqIg87dFnrYMYCBZMRvW+ +GtdYKe+OdKk0w== 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=uFE9o4FOOIFcreOsDiQlKYQZXdvAM 4vtprVFmMLbrSo=; b=ULIkBb8Lv2R6a25nrlR6KpQuXR9Qs8nQltgwSGcw6GGrz +muf+AUErk3YAxsx9SGW4QOLCacrcz0EBbfzHOLtf6eyQzG7wjob+2udPm1LGWHQ RsuKmu9uE6jl14EjZcdTvVTMMq+4V94IjUjuOxCY39J6l6f0wtl7rZT3Q53LCeK8 ObvvBzxIH2NGLt/K4Es4xii60kXdMAwNNnud0VcEva1aU/t0Gs8lFwz1ghF/xVNF ds1FDNdzTrC2zz5gRbZ8BlyRBKnrY/zqtkBW2AsSYsDHINirKtM4e6k1tFnk39vz QdOkFoOn9vO+r/UbFYUEpeoXk+/ZBgADxRABXpGnA== X-ME-Sender: Received: from yliu-dev (unknown [180.158.55.119]) by mail.messagingengine.com (Postfix) with ESMTPA id 94A9A7F91C; Wed, 6 Dec 2017 09:07:33 -0500 (EST) Date: Wed, 6 Dec 2017 22:06:52 +0800 From: Yuanhan Liu To: Maxime Coquelin Cc: "Wang, Wei 5. (NSB - CN/Hangzhou)" , "dev@dpdk.org" Message-ID: <20171206140652.GB17112@yliu-dev> References: <85be48c8-4d6a-225d-3451-2d9509d96135@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85be48c8-4d6a-225d-3451-2d9509d96135@redhat.com> 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: Wed, 06 Dec 2017 14:07:44 -0000 On Wed, Dec 06, 2017 at 12:23:19PM +0100, Maxime Coquelin wrote: > Hi, > > On 12/05/2017 07:58 AM, 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? > > What document are you referring to? > Actually, a single region is composed of several hugepages, be it 1G or > 2M. I use 2M hugepages daily without issues. He was talking about virtio-user. --yliu > > The limitation comes from the Vhost-user protocol spec. I know there are > discussions to enlarge it, but it would require a new protocol flag not > to break existing implementations, so no workaround possible. > > >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? > > Have you tried to use 2MB pages and faced the NREGIONS > 8 case? > If so, could you tell us more about your setup (QEMU version, VM RAM > size, etc...)? > > Cheers, > Maxime > > > > > >Vivian > >seat: 19009 > >phone: 13738006921 > > > > > >