fedimint / fedimint

Federated E-Cash Mint
https://fedimint.org/
MIT License
536 stars 209 forks source link

chore: lower scheduling prio of most heavy compilation items #5111

Closed dpc closed 3 weeks ago

dpc commented 3 weeks ago

On Linux chrt and iotop can be used to set the scheduling priority for a process.

We can use it to tactically make all heavy compilation processes have "idle" priority which means they will only execute if nothing else is trying to. AFAIK, this is a global setting and should be respected between cgroups etc.

Since we can now schedule more jobs on a single CI box, such change makes it less likely for time sensitive tasks (tests) to miss some deadline, while still utilizing resources when possible.

dpc commented 3 weeks ago

For macos I used writeShellScript instead of writeShellScriptBin. Fixed.