Skip to content

regrtest: Accept -jN% to target system load percentage, adaptively if possible #161204

Open

Description

@zware

As discussed at the core sprint, extend regrtest's -j option to accept a percentage instead of a fixed number of worker processes. Treat the given percentage as a target system load average (that is, on a system that returns 8 from os.process_cpu_count(), target 4.00 load avg with -j50%) and adaptively raise and lower the allowed worker count to best-effort target that load average.

PR to follow shortly.

Linked PRs

Activity

  1. added
    type-featureA feature request or enhancement
    testsTests in the Lib/test dir
    on Nov 2, 2026
  2. self-assigned this
    on Nov 2, 2026
  3. added a commit that references this issue on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

testsTests in the Lib/test dirtype-featureA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions