From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f48.google.com (mail-oi0-f48.google.com [209.85.218.48]) by dpdk.org (Postfix) with ESMTP id 040702B9C for ; Mon, 23 Apr 2018 11:23:39 +0200 (CEST) Received: by mail-oi0-f48.google.com with SMTP id x9-v6so13605924oig.7 for ; Mon, 23 Apr 2018 02:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lfeVNksuKJUyqvjcM+z6ZcsPEimOtG0i5pAyOlKux1w=; b=W9CEqrpGbwiRO9Zu0KHtR8xuQsNPp4/Anmg17lIpTXanflqB9WbYNCl+esKYX7U5Qq g5jumUUta7v+xe0L2LAb6IBYVEyRbfbbCEtmdZezRHBFSpTjTSxuusg3uZO017i3nMMC dXTXAHwCPRKqMv2FZoAHla3OA8ZXsddgmhOSM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lfeVNksuKJUyqvjcM+z6ZcsPEimOtG0i5pAyOlKux1w=; b=oOKYBRQQRh8Hx/8t5rk6cwiZPL3pcEa+W+EqhDKHOnICkWbd3/AErmVN1JjMHPMieY +MFac6z65W5otLZrBR1GrHSOACdlOytDne1SWrIzVghbWbmtsVVc6o/E6tcsBMYTcXjh r2cm0UgFVxqU5bNKE8OKaEiF1J1h+Tcfl71pzDDPH4b18DbMywUTddwXjVZzbAbrKpnu TX4vPVdsptMTkVS1z+vjwrIi0AWRBV79obMCshe3CrDm2qJ58jzYAb0LbvTG3A5bmuXc ZAoRinq44NPCqt8178dRhWDndw7htLDokCVwDP9Uq/qzPb7lLoHZmCAZDRdUCC23wCK6 fHbQ== X-Gm-Message-State: ALQs6tB3CmWxLGSJ2NdSKdwd5czZB//raBddZS2Rk0D5n9TbVG8lNnzn 2q+QF04rBDd4aYHy2stQFq+2UZh7n9HyIbWCxSvv+w== X-Google-Smtp-Source: AIpwx48L9dwIf+IZTzxgzGkftvDVTVD4pskzSw2eQWlP5FTFLfFRuoQY9th0On5sLSvgiFSed32xnbqBbkcq1E44VBk= X-Received: by 2002:aca:d906:: with SMTP id q6-v6mr11676013oig.349.1524475418512; Mon, 23 Apr 2018 02:23:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:73d1:0:0:0:0:0 with HTTP; Mon, 23 Apr 2018 02:23:37 -0700 (PDT) In-Reply-To: References: <20180328045120.40098-1-ajit.khaparde@broadcom.com> From: Srinath Mannam Date: Mon, 23 Apr 2018 14:53:37 +0530 Message-ID: To: "Burakov, Anatoly" Cc: Ajit Khaparde , dev@dpdk.org, Scott Branden Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Mon, 23 Apr 2018 17:57:16 +0200 Subject: Re: [dpdk-dev] [PATCH] eal: add request to map reserved physical memory 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: Mon, 23 Apr 2018 09:23:40 -0000 Hi Anatoly, Our requirement is, that separate memory segment (speed memory window) need to be allocated outside huge pages segment. your thoughts discussed in the link (dynamic memory allocations in DPDK) are exactly matches with our requirement. We tried to fit our requirement in the existing memory model with minimum changes, So we followed this approach. Memory model in DPDK managed using socket ids. So I also attached new memory segment to un-used socket which allows to allocate memory using rte_malloc. Please add me in your discussions. I am very much interested to join in your discussions and contribute in development. Please point me the sources in DPDK related to this part of implementation. Thank you. Regards, Srinath. On Thu, Apr 12, 2018 at 8:05 PM, Burakov, Anatoly wrote: > On 28-Mar-18 5:51 AM, Ajit Khaparde wrote: >> >> From: Srinath Mannam >> >> Reserved physical memory is requested from kernel >> and it will be mapped to user space. >> This memory will be mapped to IOVA using VFIO. >> And this memory will be provided to SPDK to allocate >> NVMe CQs. >> >> Signed-off-by: Srinath Mannam >> Signed-off-by: Scott Branden >> Signed-off-by: Ajit Khaparde >> --- > > > Hi Srinath, > > I've seen this kind of approach implemented before to add additional memory > types to DPDK (redefining "unused" socket id's to mean something else), and > i don't like it. > > What would be better is to design a new API to support different memory > types. Some groundwork for this was already laid for this release (switching > to memseg lists), but more changes will be needed down the line. My ideal > approach would be to have pluggable memory allocators. I've outlined some of > my thoughts on this before [1], you're welcome to join/continue that > discussion, and make sure whatever comes out of it is going to be useful for > all of us :) I was planning to (attempt to) restart that discussion, and > this seems like as good an opportunity to do that as any other. > > Now that the memory hotplug stuff is merged, i'll hopefully get more time > prototyping. > > So, as it is, it's a NACK from me, but let's work together on something > better :) > > [1] http://dpdk.org/ml/archives/dev/2018-February/090937.html > > -- > Thanks, > Anatoly