Git Product home page Git Product logo

spdk's Introduction

Storage Performance Development Kit (SPDK)

Linters Docker Travis License Pulls Last Release GitHub stars GitHub Contributors

The Storage Performance Development Kit (SPDK) provides a set of tools and libraries for writing high performance, scalable, user-mode storage applications. It achieves high performance by moving all of the necessary drivers into userspace and operating in a polled mode instead of relying on interrupts, which avoids kernel context switches and eliminates interrupt handling overhead.

This project contains Dockerfile for https://github.com/spdk/spdk

I Want To Contribute

This project welcomes contributions and suggestions. We are happy to have the Community involved via submission of Issues and Pull Requests (with substantive content or even just fixes). We are hoping for the documents, test framework, etc. to become a community process with active engagement. PRs can be reviewed by by any number of people, and a maintainer may accept.

See CONTRIBUTING and GitHub Basic Process for more details.

Installation

There are several ways of running spdk.

Docker

docker pull opiproject/spdk:<version>

You can specify a version like v22.09 or use latest to get the most up-to-date version.

docker run --rm opiproject/spdk:<version>

Compose

โ— docker-compose is deprecated. For details, see Migrate to Compose V2.

docker-compose up --build --force-recreate

Test SPDK RPC proxy

See documentation JSON RPC Proxy

$ curl -k --user spdkuser:spdkpass -X POST -H "Content-Type: application/json" -d '{"id": 1, "method": "bdev_get_bdevs", "params": {"name": "Malloc0"}}' http://127.0.0.1:9009/
{"jsonrpc":"2.0","id":1,"result":[{"name":"Malloc0","aliases":["f1c5d95a-b235-40af-9e4d-2c0b3320de80"],"product_name":"Malloc disk","block_size":512,"num_blocks":131072,"uuid":"f1c5d95a-b235-40af-9e4d-2c0b3320de80","assigned_rate_limits":{"rw_ios_per_sec":0,"rw_mbytes_per_sec":0,"r_mbytes_per_sec":0,"w_mbytes_per_sec":0},"claimed":false,"zoned":false,"supported_io_types":{"read":true,"write":true,"unmap":true,"write_zeroes":true,"flush":true,"reset":true,"nvme_admin":false,"nvme_io":false},"driver_specific":{}}]}

Test Nvme

docker run --rm --network=host --privileged -v /dev/hugepages:/dev/hugepages \
              ghcr.io/opiproject/spdk:main \
              spdk_nvme_perf \
              -r 'traddr:127.0.0.1 trtype:TCP adrfam:IPv4 trsvcid:5555 subnqn:nqn.2016-06.io.spdk:cnode1 hostnqn:nqn.2014-08.org.nvmexpress:uuid:feb98abe-d51f-40c8-b348-2753f3571d3c' \
             -c 0x1 -q 1 -o 4096 -w randread -t 10

spdk's People

Contributors

artek-koltun avatar glimchb avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

artek-koltun

spdk's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: regexManagers[0].datasource, Invalid configuration option: regexManagers[0].depName, Regex Manager contains disallowed fields: datasource, depName

enable `uring`

try

diff --git a/Dockerfile b/Dockerfile
index c26d562..0104202 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -14,10 +14,10 @@ RUN git clone https://github.com/spdk/spdk --branch ${TAG} --depth 1 /root/spdk
 WORKDIR /root/spdk

 RUN git submodule update --init --depth 1 && \
-    ./scripts/pkgdep.sh --rdma
+    ./scripts/pkgdep.sh --rdma --uring

 RUN DEPS="no" LDFLAGS=" " \
-    ./rpmbuild/rpm.sh --target-arch=${ARCH} --without-uring --with-crypto \
+    ./rpmbuild/rpm.sh --target-arch=${ARCH} --with-uring --with-crypto \
     --without-fio --with-raid5f --with-vhost --without-rbd \
     --with-rdma --without-shared --with-iscsi-initiator --without-vtune --with-vfio-user

(END)

see https://spdk.io/doc/jsonrpc.html#rpc_bdev_uring_create

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update pre-commit hook renovatebot/pre-commit-hooks to v37.140.8

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

docker-compose
docker-compose.yml
  • docker.io/curlimages/curl 8.5.0
dockerfile
Dockerfile
  • docker.io/library/fedora 37
  • docker.io/library/fedora 37
github-actions
.github/workflows/commitlint.yml
  • actions/checkout v4
  • ahmadnassri/action-commit-lint v2.1.17
.github/workflows/docker-publish.yml
  • actions/checkout v4
  • docker/setup-qemu-action v3
  • docker/setup-buildx-action v3.0.0
  • docker/login-action v3.0.0
  • docker/login-action v3.0.0
  • docker/metadata-action v5.5.0
  • docker/build-push-action v5.1.0
  • actions/checkout v4
  • docker/setup-qemu-action v3
  • docker/setup-buildx-action edfb0fe6204400c56fbfd3feba3fe9ad1adfa345
.github/workflows/linters.yml
  • actions/checkout v4
  • actions/checkout v4
  • hadolint/hadolint-action v3.1.0
  • actions/checkout v4
  • azohra/shell-linter v0.6.0
.github/workflows/update-copyright-years-in-license-file.yml
pre-commit
.pre-commit-config.yaml
  • pre-commit/pre-commit-hooks v4.5.0
  • renovatebot/pre-commit-hooks 37.131.0
  • alessandrojcm/commitlint-pre-commit-hook v9.11.0
regex
Dockerfile
  • spdk/spdk v23.09

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.