Hi,
How exactly does Cargo know how many cpus are available to use and what ratio of jobs/cpu does it use if the number of jobs isn't specified?
Hi,
How exactly does Cargo know how many cpus are available to use and what ratio of jobs/cpu does it use if the number of jobs isn't specified?
I believe cargo uses the num_cpus crate to figure out how many CPUs are available.
By "jobs", I think you are talking about --jobs
argument to cargo build. Is that right? If so, there will be, by default, 1 job running per CPU (because the default value for --jobs
is the number of CPUs on your machine)