News for hackers. Stuff that matters.
Re:Use `nproc` and not grep /proc/cpuinfo by PikachuEXE on Thursday November 26, 2020 @08:03PM (#25224728)
Any doc that suggest this behaviour?
Re:Use `nproc` and not grep /proc/cpuinfo by exciteabletom on Thursday November 26, 2020 @08:32PM (#25224859)
From the man page: > If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.
Re:Use `nproc` and not grep /proc/cpuinfo by stewartesmith on Thursday November 26, 2020 @08:56PM (#25224960)
What this practically means is that a plain "make -j" will spawn all the processes that could run concurrently. So if you're building 1,000 files, it'll spawn 1,000 processes. This can either be fine, or completely terrible, depending on the number of CPUs you have an the amount of memory each process uses.