From 4a0e9d5cfaaa73ca036590788f92fffb67981c7a Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 18 Nov 2022 20:23:20 +0100 Subject: [PATCH] radiobert: set strict CPUAffinity for services --- hosts/radiobert/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/radiobert/default.nix b/hosts/radiobert/default.nix index 7112a66f..973e2daf 100644 --- a/hosts/radiobert/default.nix +++ b/hosts/radiobert/default.nix @@ -131,5 +131,14 @@ ''; }; + systemd.extraConfig = '' + # Keep cores 2-3 exclusive for SDR processing + CPUAffinity=0-1 + ''; + systemd.services = { + soapysdr-server.serviceConfig.CPUAffinity = "2-2"; + readsdb.serviceConfig.CPUAffinity = "3-3"; + }; + system.stateVersion = "21.05"; # Did you read the comment? }