All of lore.kernel.org
 help / color / mirror / Atom feed
* [SPDK] Using SPDK to create files
@ 2016-01-29 15:58 Sunny Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Sunny Raj @ 2016-01-29 15:58 UTC (permalink / raw)
  To: spdk

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

Hi all,

After binding SPDK with NVMe, how should I go about using the device
itself? Once the NVMe is using SPDK, the kernel doesn't see it, meaning,
`lsblk` won't show the device. I was successful in getting some meaningful
numbers by running `spdk/examples/nvme/perf/perf`. What would be the next
step? How do I go about actually using the device to perform I/O operations
such as creating files?

Thanks,
Sunny
-- 
Sunny

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 556 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [SPDK] Using SPDK to create files
@ 2016-01-29 16:47 Walker, Benjamin
  0 siblings, 0 replies; 2+ messages in thread
From: Walker, Benjamin @ 2016-01-29 16:47 UTC (permalink / raw)
  To: spdk

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

Hi Sunny,

You can think of SPDK as a static library. Your program will link
against the library and then while your program runs, it will claim the
NVMe devices. When your program exits, it will release them. This is
what all of our examples are demonstrating.

Right now, SPDK only provides the NVMe driver, so you only have direct
block access to the device using our API in include/spdk/nvme.h. Since
it runs in user space, you cannot use any kernel facilities like lsblk
or even file systems to perform I/O. You can only write a program using
our API to do reads and writes from code.

Thanks,
Ben

On Fri, 2016-01-29 at 15:58 +0000, Sunny Raj wrote:
> Hi all,
> 
> After binding SPDK with NVMe, how should I go about using the device
> itself? Once the NVMe is using SPDK, the kernel doesn't see it,
> meaning, `lsblk` won't show the device. I was successful in getting
> some meaningful numbers by running `spdk/examples/nvme/perf/perf`.
> What would be the next step? How do I go about actually using the
> device to perform I/O operations such as creating files?
> 
> Thanks,
> Sunny
> -- 
> Sunny
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-29 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-29 16:47 [SPDK] Using SPDK to create files Walker, Benjamin
  -- strict thread matches above, loose matches on Subject: below --
2016-01-29 15:58 Sunny Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.