For Dummies guide to setting up ramdisk NVMe/TCP target
eric.curtin at dell.com
Hi Guys,
I'm just getting started with SPDK and wanted to create a fake ramdisk NVMe/TCP target block device, just so I could simulate NVMe/TCP traffic on a single Linux instance for development purposes.
Anybody know how to set up a machine like this for NVMe/TCP development?
Zawadzki
Hi Eric,
For the scenario that you've described three links would provide best pointers:
- https://spdk.io/doc/getting_started.html for SPDK itself
- https://spdk.io/doc/bdev.html#bdev_config_malloc to create malloc bdev
- https://spdk.io/doc/nvmf.html#nvmf_config to setup the NVMe/TCP target Above would provide NVMe-oF target ready to connect initiator.
After that you can use another instance of SPDK to connect via NVMe/TCP initiator.
For RPC https://spdk.io/doc/bdev.html#bdev_config_nvme, but other apps like ./build/examples/perf work too.
CI for SPDK runs per-patch testing contained within single machine, so ./test/nvmf/* scripts can be great examples for development.
The scenario you are describing is part of:
sudo ./test/nvmf/target/nvmf_example.sh --transport=tcp --iso
Thanks,
Tomek
Quoted 17 lines
-----Original Message-----
From: eric.curtin(a)dell.com <eric.curtin(a)dell.com>
Sent: Thursday, October 1, 2020 9:23 AM
To: spdk(a)lists.01.org
Subject: [SPDK] For Dummies guide to setting up ramdisk NVMe/TCP targetHi Guys,
I'm just getting started with SPDK and wanted to create a fake ramdisk NVMe/TCP target block device, just so I could simulate NVMe/TCP traffic on a single Linux instance for development purposes.
Anybody know how to set up a machine like this for NVMe/TCP development?
_______________________________________________
SPDK mailing list -- spdk(a)lists.01.org
To unsubscribe send an email to spdk-leave(a)lists.01.org