From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6695500616920377880==" MIME-Version: 1.0 From: Walker, Benjamin Subject: Re: [SPDK] Using SPDK to create files Date: Fri, 29 Jan 2016 16:47:07 +0000 Message-ID: <1454086027.61425.94.camel@intel.com> In-Reply-To: CAGJRfpjoOWOZrgf-EeFg8KskAF71BKEHrbxdY454s+UK_nVqoQ@mail.gmail.com List-ID: To: spdk@lists.01.org --===============6695500616920377880== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 > --=C2=A0 > Sunny > _______________________________________________ > SPDK mailing list > SPDK(a)lists.01.org > https://lists.01.org/mailman/listinfo/spdk --===============6695500616920377880==--