nixos/spdk: Move to SPDK 26.09
CI / Check, build and cache nixfiles (push) Failing after 6m19s
Update docs / update (push) Successful in 1m23s

SPDK 26.01 crashes while scanning the PCI bus with DPDK 26.07. Pick
up the fork's bump to SPDK 26.09, which adds the 26.07 compatibility
layer, and drop the 26.01-only DPDK 26.03 workaround.

SPDK 26.09 sizes transport caches from the shared iobuf pool, so the
RDMA transport on `cellar` starved the bdev and accel caches. Set its
caches explicitly and enlarge the pools. Also retry `spdk-tgt` on
failure, as loading its config can fail intermittently at startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jackos1998andClaude Opus 5.5 committed 2026-11-22 15:11:44 +00:00
1 parent 65221ee403
commit f7c733c2d1
3 files changed
+24 -13

No files matched your search

+3 -9
View File
@@ -49,15 +49,6 @@ let
spdk = pkgs.spdk.overrideAttrs (o: {
configureFlags = o.configureFlags ++ (map (withFeature true) [ "rdma" "ublk" ]);
buildInputs = o.buildInputs ++ (with pkgs; [ liburing ]);
# SPDK 26.01 recognizes prerelease DPDK 26.03, but selects the old PCI ABI for its release.
# TODO: Remove after upgrading to SPDK >= 26.05, which handles released DPDK 26.03:
# https://github.com/spdk/spdk/blob/v26.05/lib/env_dpdk/pci_dpdk.c
# nixos-unstable still packages 26.01 without this fix (checked 2026-11-15).
postPatch = (o.postPatch or "") + lib.optionalString (o.version == "26.01") ''
substituteInPlace lib/env_dpdk/pci_dpdk.c \
--replace-fail 'else if (year == 25) {' \
'else if (year == 25 || (year == 26 && month == 3 && minor == 0)) {'
'';
});
spdk-rpc = (pkgs.writeShellScriptBin "spdk-rpc" ''
exec ${pkgs.python3}/bin/python3 ${spdk.src}/scripts/rpc.py "$@"
@@ -111,6 +102,9 @@ in
serviceConfig = {
ExecStartPre = "${spdk.src}/scripts/setup.sh";
ExecStart = "${spdk}/bin/spdk_tgt ${cfg.extraArgs} -c ${configJSON}";
# Loading the config can fail intermittently at startup; an identical retry succeeds
Restart = "on-failure";
RestartSec = "5s";
};
wantedBy = [ "multi-user.target" ];
# Other boxes' root disks; restart by hand when they can do without them