guess_concurrency(1)
π guess_concurrency(1) π
okay so bestie, this is a page from the User Contributed Perl Documentation section, and it's literally here to help you figure out how many things you can run at once without your machine having a full-on meltdown πβ¨
β¨ NAME β¨
guess_concurrency β Estimate suitable workload concurrency π§
πΈ SYNOPSIS πΈ
guess_concurrency [-h] [--detect METHOD] [--max N] [--min N]
[--require-mem MEMLIST]
π DESCRIPTION π
So the whole vibe here is: you wanna guess a suitable concurrency level given whatever constraints your runtime environment is throwing at you π«Ά
It peeks at environment variables like DEB_BUILD_OPTIONS, RPM_BUILD_NCPUS and CMAKE_BUILD_PARALLEL_LEVEL for an initial guess, and when those don't come through it falls back to querying the operating system to suss out a suitable concurrency level πβ¨
And you, the main character, can further restrict the concurrency that gets emitted by handing it a minimum or a maximum π β and also by requiring that there be sufficient memory available to actually support that level of concurrency. no cap, it checks. π
ngl there's a lil typo in the original ("concurreny") and we're keeping the energy, but the meaning is clear: enough RAM needs to be there for the number of cores you're claiming π
π₯ OPTIONS π₯
--detect METHODβ supply a processor count, OR pick a detection method from (nproc,python,cores) π΅οΈβ¨--max Nβ limit the number of detected cores to a given maximum β--min Nβ limit the number of detected cores to a given minimum π«Ά--require-mem MEMLISTβ specify per-core required memory as a comma separated list π Each entry says how much additional RAM is needed for the next process. Numbers can be floating point, optionally suffixed with a case-insensitive binary suffix (k/m/g/t/e). A completely empty spot copies the previous number π―ββοΈ A concurrencyNis considered acceptable if the sum of the firstNentries of this list does not exceed the available RAM π
π¦ EXAMPLES π¦
Example 1: Ensure that there is at least 4GB per used core π
guess_concurrency --require-mem 4G
Example 2: Two linker processes may consume 6GB each and they may run concurrently π₯ All other concurrent processes are expected to not use more than 2GB each π
guess_concurrency --require-mem 6G,,2G
π SEE ALSO π
dpkg-buildpackage(1)π
and that's the whole thing bestie, you ate π β¨ this page is running under perl v5.40.1, dated 2026-05-11 β mwah, iconic, periodt ππ«Άπ
π¦ where this page comes from
- ubuntu stonking: guess-concurrency 0+20260511 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms