radiobert: set strict CPUAffinity for services

This commit is contained in:
Astro 2022-11-18 20:23:20 +01:00
parent d22d137f04
commit 4a0e9d5cfa
1 changed files with 9 additions and 0 deletions

View File

@ -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?
}