From 3bc8befb7d10c1c48511b5b8cd3a6cb3922dcaea Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Wed, 13 Dec 2023 21:53:10 +0000 Subject: [PATCH] nixos/cellar: Enable SPDK dynamic scheduler --- nixos/boxes/home/palace/vms/cellar/spdk.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/home/palace/vms/cellar/spdk.nix b/nixos/boxes/home/palace/vms/cellar/spdk.nix index b10a931..68a580f 100644 --- a/nixos/boxes/home/palace/vms/cellar/spdk.nix +++ b/nixos/boxes/home/palace/vms/cellar/spdk.nix @@ -13,7 +13,7 @@ in my = { spdk = { enable = true; - extraArgs = "--mem-channels 2 --cpumask 0x3"; + extraArgs = "--mem-channels 2 --cpumask 0xffff"; debugCommands = '' spdk-rpc bdev_nvme_attach_controller -t pcie -a 02:00.0 -b NVMe0 spdk-rpc bdev_nvme_attach_controller -t pcie -a 03:00.0 -b NVMe1 @@ -82,6 +82,13 @@ in ]; in { + scheduler = [ + { + method = "framework_set_scheduler"; + params.name = "dynamic"; + } + ]; + bdev = [ { method = "bdev_set_options";