Storage Performance Development Kit (SPDK)
 help / color / mirror / Atom feed
From: Walker, Benjamin <benjamin.walker at intel.com>
To: spdk@lists.01.org
Subject: Re: [SPDK] Can I disable hugepages if I have vfio and IOMMU enabled?
Date: Thu, 30 Aug 2018 17:36:51 +0000	[thread overview]
Message-ID: <db514bcf00e465d47e34878d586a39d41a82f440.camel@intel.com> (raw)
In-Reply-To: CAAPSPUvspvg3PSkUsWP7emDk2uMTyUhj528yRg5KDrins9MkGA@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 1648 bytes --]

On Thu, 2018-08-30 at 16:30 +0300, Itai Fiat Gecht wrote:
> Hello,
> 
> I'm new to SPDK. I have a question about the following manual page:
> http://www.spdk.io/doc/memory.html
> 
> The page says that:
> 
> "SPDK relies on DPDK to allocate pinned memory. On Linux, DPDK does this by
> allocating hugepages (by default, 2MiB). The Linux kernel treats hugepages
> differently than regular 4KiB pages. Specifically, the operating system will
> never change their physical location. This is not by intent, and so things
> could change in future versions, but it is true today and has been for a
> number
> of years (see the later section on the IOMMU for a future-proof solution)."
> 
> The page then explains about IOMMU, and concludes with saying:
> 
> "This is a future-proof, hardware-accelerated solution for performing DMA
> operations into and out of a user space process and forms the long-term
> foundation for SPDK and DPDK's memory management strategy. We highly recommend
> that applications are deployed using vfio and the IOMMU enabled, which is
> fully
> supported today."
> 
> Does this mean that if vfio and IOMMU are enabled I can disable hugepages?

The DPDK memory allocator still only attempts to allocate hugepage memory today
even with vfio and the IOMMU enabled. There is nothing in the hardware or
operating system preventing someone from reworking that memory allocator to
allow for regular 4K pages, but it would be a big undertaking.


> 
> Itai
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk


             reply	other threads:[~2018-08-30 17:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-30 17:36 Walker, Benjamin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-08-30 20:22 [SPDK] Can I disable hugepages if I have vfio and IOMMU enabled? Itai Fiat Gecht
2018-08-30 13:30 Itai Fiat Gecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=db514bcf00e465d47e34878d586a39d41a82f440.camel@intel.com \
    --to=spdk@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox