hello everyone!!! ![]()
im back at yall again with yet another (noob) question! ![]()
so, before i get a crazy computer for doing all the server and (remote) building stuff, i was thinking… how do i maximise the I/O scheduling performance of the nix builders right now?
so, ive seen(1) some(2) posts(3) about these fairly new little options(4):
nix.daemonIOSchedClass
nix.daemonCPUSchedPolicy
nix.daemonIOSchedPriority
nix.settings.cores
nix.settings.max-jobs
…and they’ve been preset automatically, meaning… there’s more juice left!
but i have no idea how to tweak it correctly! i know, i know, you’re gonna tell me not to, but i wanna! ![]()
for example, i have a laptop. i game on it. but! i dont care about battery life (or have it disconnected and it is always on AC), as in, im always on that "performance" (CPU) scheduling. what must one do to make the build process go fast?
i may be wrong, but here’s what i calculated to be the best setup for a 4 cores, 8 threads computer:
nix.settings.cores = 4
nix.settings.max-jobs = 1
wait. that cant be right, can it? did i miss something, or…? …oh. i mean it kinda does make sense, but at the same time it doesnt? so, since most jobs (in nix terms its called a derivation, apparently) cant use a lot of cores simultaneously (to build stuff) anyway, i guess its fine, especially if you have like.. 8, 12 at best, of them? do they also count towards threads or only logical cores? so… i should be having just 1 simultaneous build task at ONCE? but… right now, with the default settings, i have 4? the buildPhase thing, right? i have 4 of these at the same time, which is pretty slow for me… one buildPhase at once would fit me better, so, once again, i am very confused: what values should those settings be (not just cores and max-jobs, but also the scheduling thingies?
EDIT: oh btw speaking of concurrent tasks. is it possible somehow to change the amount of SIMULTANEOUS DOWNLOADS per build/update? because with my network, the fastest way to download things is to NOT “parallel” it, but rather to download them one by one, and that’d sort it out, i think! thanks in advance!!!
thank you guys for any help in advance
and again sorry for this silly question that is clearly described in the manual…