All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [SPDK] How to send Single IO Command?
@ 2018-10-05 13:25 Pelplinski, Piotr
  0 siblings, 0 replies; 3+ messages in thread
From: Pelplinski, Piotr @ 2018-10-05 13:25 UTC (permalink / raw)
  To: spdk

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

Hi Tyler,
I'm not sure if that is going to help you, but recently Xiaodong developed a patch,
that allows sending IO commands to NVMe without writing your own application.

Please look at the patch:
https://review.gerrithub.io/c/spdk/spdk/+/417962

-- 
Best Regards,
Piotr Pelpliński

> -----Original Message-----
> From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Luse, Paul E
> Sent: Wednesday, October 3, 2018 11:53 PM
> To: Storage Performance Development Kit <spdk(a)lists.01.org>
> Subject: Re: [SPDK] How to send Single IO Command?
> 
> Hi Tyler,
> 
> The hello world in the examples for nvme is pretty basic:
> 
> https://github.com/spdk/spdk/blob/master/examples/nvme/hello_world/hello_
> world.c
> 
> as it shows both a write and a read to the nvme device.  Are you trying to use
> the nvme driver directly or go through bdev? If you wanted to share your
> attempts I'm sure someone here could help point out where there might be a
> simple mistake, that might be easier than pointing you to other potentially
> irrelevant examples.
> 
> Thx
> Paul
> 
> 
> -----Original Message-----
> From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Pereira, Tyler
> Sent: Wednesday, October 3, 2018 2:09 PM
> To: spdk(a)lists.01.org
> Subject: [SPDK] How to send Single IO Command?
> 
> Hi All,
> 
> I have been looking at SPDK as a way to run a specific set of NVMe IO
> commands in a specific sequence. I have worked through some of the examples
> such as hello-world, identity, and perf but am still hitting some issues when
> trying to write my own code just trying to run a single IO command. I am
> typically seeing a segmentation fault most likely due to the data structures or
> parameters being passed to the read or write commands.
> 
> Are there any simplified examples available that just show single IO commands
> being created and sent to the device?
> 
> Thanks,
> Tyler Pereira
> 
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk
> _______________________________________________
> SPDK mailing list
> SPDK(a)lists.01.org
> https://lists.01.org/mailman/listinfo/spdk

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

* Re: [SPDK] How to send Single IO Command?
@ 2018-10-03 21:52 Luse, Paul E
  0 siblings, 0 replies; 3+ messages in thread
From: Luse, Paul E @ 2018-10-03 21:52 UTC (permalink / raw)
  To: spdk

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

Hi Tyler,

The hello world in the examples for nvme is pretty basic:

https://github.com/spdk/spdk/blob/master/examples/nvme/hello_world/hello_world.c 

as it shows both a write and a read to the nvme device.  Are you trying to use the nvme driver directly or go through bdev? If you wanted to share your attempts I'm sure someone here could help point out where there might be a simple mistake, that might be easier than pointing you to other potentially irrelevant examples.

Thx
Paul


-----Original Message-----
From: SPDK [mailto:spdk-bounces(a)lists.01.org] On Behalf Of Pereira, Tyler
Sent: Wednesday, October 3, 2018 2:09 PM
To: spdk(a)lists.01.org
Subject: [SPDK] How to send Single IO Command?

Hi All,

I have been looking at SPDK as a way to run a specific set of NVMe IO commands in a specific sequence. I have worked through some of the examples such as hello-world, identity, and perf but am still hitting some issues when trying to write my own code just trying to run a single IO command. I am typically seeing a segmentation fault most likely due to the data structures or parameters being passed to the read or write commands.

Are there any simplified examples available that just show single IO commands being created and sent to the device?

Thanks,
Tyler Pereira

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

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

* [SPDK] How to send Single IO Command?
@ 2018-10-03 21:09 Pereira, Tyler
  0 siblings, 0 replies; 3+ messages in thread
From: Pereira, Tyler @ 2018-10-03 21:09 UTC (permalink / raw)
  To: spdk

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

Hi All,

I have been looking at SPDK as a way to run a specific set of NVMe IO commands in a specific sequence. I have worked through some of the examples such as hello-world, identity, and perf but am still hitting some issues when trying to write my own code just trying to run a single IO command. I am typically seeing a segmentation fault most likely due to the data structures or parameters being passed to the read or write commands.

Are there any simplified examples available that just show single IO commands being created and sent to the device?

Thanks,
Tyler Pereira


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

end of thread, other threads:[~2018-10-05 13:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-05 13:25 [SPDK] How to send Single IO Command? Pelplinski, Piotr
  -- strict thread matches above, loose matches on Subject: below --
2018-10-03 21:52 Luse, Paul E
2018-10-03 21:09 Pereira, Tyler

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.