---
name: "guess_concurrency"
section: "1"
platform: "linux"
package: "guess-concurrency"
version: "0+20250305"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/guess_concurrency"
---

# guess\_concurrency(1)

## NAME

guess\_concurrency.py

## SYNOPSIS

**guess\_concurrency.py** \[-h\] \[--detect METHOD\] \[--max N\] \[--min N\] \[--require-mem MEMLIST\]

## DESCRIPTION

Guess a suitable concurrency level given constraints from the runtime environment. Environment variables such as DEB\_BUILD\_OPTIONS, RPM\_BUILD\_NCPUS and CMAKE\_BUILD\_PARALLEL\_LEVEL are consulted for initial guesses falling back to querying the operating system in order to guess a suitable concurrency level. A user may further restrict the emitted concurrency by specifying a minimum or maximum and by requiring sufficient memory to support a level of concurreny to be available.

## OPTIONS

- **--detect** *METHOD*

  supply a processor count or select a detection method (nproc, python or 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

## AUTHOR

```
Helmut Grohne
```

```
helmut@subdivi.de
```

## DISTRIBUTION

The latest version of guess\_concurrency may be downloaded from ⟨https://salsa.debian.org/helmutg/guess\_concurrency⟩
