radiobert: set strict CPUAffinity for services
This commit is contained in:
parent
d22d137f04
commit
4a0e9d5cfa
|
@ -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?
|
system.stateVersion = "21.05"; # Did you read the comment?
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue