Storage Performance Development Kit (SPDK)
 help / color / mirror / Atom feed
From: yzhu <yzhu at cs.fsu.edu>
To: spdk@lists.01.org
Subject: [SPDK] Memory Buffer Allocation in SPDK
Date: Mon, 12 Dec 2016 23:13:09 -0500	[thread overview]
Message-ID: <01acc08b07afdca4b70a587cc00c99dd@cs.fsu.edu> (raw)

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

Hi All,

Is there any way to directly use the memory allocated by the malloc() 
function? The spdk_malloc() allocates a pinned memory buffer in huge 
page, and the spdk_nvme_ns_cmd_write also uses the pinned memory for 
write. However, if we allocate a memory buffer by malloc(), how could we 
directly write data to NVMe device by SPDK without copying data to the 
buffer allocated by spdk_malloc()?

Thanks,
Yue

             reply	other threads:[~2016-12-13  4:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-13  4:13 yzhu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-12-13  4:46 [SPDK] Memory Buffer Allocation in SPDK Harris, James R
2016-12-13 15:49 yzhu
2016-12-13 16:05 Harris, James R
2018-02-06 13:32 [SPDK] Memory buffer allocation " Ernest Zaslavsky
2018-02-07  0:11 Harris, James R
2018-02-07  5:51 Ernest Zaslavsky
2018-02-07 15:00 Harris, James R
2018-02-07 15:01 Ernest Zaslavsky

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=01acc08b07afdca4b70a587cc00c99dd@cs.fsu.edu \
    --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