News for hackers. Stuff that matters.
Re:Use `nproc` and not grep /proc/cpuinfo by stewartesmith on Thursday November 26, 2020 @08:26PM (#25224828)
I wasn't talking about the reading of the number of CPUs you could use, but rather how many threads you'd spawn based on that information.

There may be 10 CPUs in the machine, but if your in your container which is restricted to using only 1 of them, it's no use launching 10 threads in that container over just having one.

Re:Use `nproc` and not grep /proc/cpuinfo by catlifeonmars on Thursday November 26, 2020 @09:06PM (#25225002)
Oh I see. My mistake. This makes more sense.