From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 6D7E3567A for ; Thu, 25 Aug 2016 15:51:41 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 25 Aug 2016 06:51:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,575,1464678000"; d="scan'208";a="753380765" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.221.30]) ([10.237.221.30]) by FMSMGA003.fm.intel.com with ESMTP; 25 Aug 2016 06:51:39 -0700 To: Gopakumar Choorakkot Edakkunni , dev@dpdk.org, olivier.matz@6wind.com References: <57A369E2.6070506@intel.com> <57AB072A.5050206@intel.com> From: Ferruh Yigit Message-ID: <57BEF7EB.5000606@intel.com> Date: Thu, 25 Aug 2016 14:51:39 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <57AB072A.5050206@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] dpdk 16.07, issues with rte_mempool_create and rte_kni_alloc() 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, 25 Aug 2016 13:51:41 -0000 On 8/10/2016 11:51 AM, Ferruh Yigit wrote: > Hi Gopakumar, > > On 8/4/2016 5:14 PM, Ferruh Yigit wrote: >> On 8/1/2016 10:19 PM, Gopakumar Choorakkot Edakkunni wrote: >>> Well, for my purpose I just ended up creating a seperate/smaller pool >>> earlier during bootup to try to guarantee its from one memseg. >>> >>> But I am assuming that this KNI restriction is something thats "currently" >>> not fixed and is "fixable" ? >> >> >>> Any ideas on what the summary of the reason >>> for this restriction is - I was gonna check if I can fix that >> >> KNI expects all mbufs are from a physically continuous memory. This is >> because of current address translation implementation. >> >> mbufs allocated in userspace and accessed from both user and kernel >> space, so mbuf userspace virtual address needs to be converted into >> kernelspace virtual address. >> >> Currently this address translation done by first calculating an offset >> between virtual addresses using first filed of mempool, later applying >> same offset to all mbufs. This is why all mbufs should be in physically >> continuous memory. >> >> I think this address translation can be done in different way which can >> remove the restriction, but not sure about the effect of the >> performance. I will send a patch for this. > > I have sent a patch to remove KNI restriction: > http://dpdk.org/dev/patchwork/patch/15171/ > > Can you please test this patch with a mempool with multiple memzone? > You need to remove following check in KNI manually: > if (mp->nb_mem_chunks != 1) > goto kni_fail; Hi Gopakumar, Off the list. Any chance to test this? Thanks, ferruh