From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 31A9FA0562; Fri, 3 Apr 2020 10:55:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0B3CB1C193; Fri, 3 Apr 2020 10:55:20 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 806B71C112; Fri, 3 Apr 2020 10:55:17 +0200 (CEST) IronPort-SDR: GUr4Hy5o2rhlD7qPmhwLpS7sItvxtzHg+Gr7PyEYGs50gz9XvOCCf4Vl0yDlzRfc+Y65dllOEw UsKDj/Ut5K6w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2020 01:55:16 -0700 IronPort-SDR: zIED/zr+6tc85hHR9elInRv7vnU1h1FvubuzE5vYNK32zgagEhwmygPHKCgvburGrtR/HYSkb4 /SeGTRwGLnJQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,339,1580803200"; d="scan'208";a="273876132" Received: from dryan13-mobl1.ger.corp.intel.com (HELO [10.251.92.143]) ([10.251.92.143]) by fmsmga004.fm.intel.com with ESMTP; 03 Apr 2020 01:55:15 -0700 To: Venumadhav Josyula , users , dev@dpdk.org References: From: "Burakov, Anatoly" Message-ID: Date: Fri, 3 Apr 2020 09:55:14 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] Using rte_lpm as standalone library w/o mempools or dpdk infra 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 02-Apr-20 1:51 PM, Venumadhav Josyula wrote: > Hi All, > > Idea is following > - create lpm in one process where only rte_lpm and bare minimum is > acessible. Addition into this table will also happen in this process > context. > - Now in the packet processing context based ip of packet the lookup > will happen in the lpm created. > > Is above possible. Please task / Process in which lpm created or lpm > entries added, does not do anything with respect to rte_eal. > > Any pointers, will really be appreciated. > > Cheers, > Venu > It is certainly possible to do that in principle, but it is not possible with current implementation. The LPM library relies on rte_malloc() for initialization, and that in turn relies on EAL structures being initialized, and DPDK hugepage memory being available. If your concern is specifically to not use DPDK-allocated hugepage memory but use one that your application controls, it is possible to not use built-in DPDK memory and lessen the impact of DPDK initialization on the system with a few tricks (run in --in-memory and --no-huge mode with a tiny amount of memory, and use external memory API to create data structures in a memory you control), but you can't avoid it entirely. -- Thanks, Anatoly