Skip to content

buildbot/compile.py needs to have an option to use fewer cores #2300

Closed
@jeffhammond

Description

@jeffhammond

The compiler.py script should support an argument to limit build parallelism. I attempted to run this script on my Raspberry Pi 4 and it maxed out the CPU temperature and ultimately bricked the device (resolved with a power-cycle).

I try to work on a patch but would be very happy to see someone else do it first.

import multiprocessing
...
DEFAULT_CPU_COUNT = 4
...
def do_compile(args):
    try:
        cpu_count = multiprocessing.cpu_count()
    except NotImplementedError:
        cpu_count = DEFAULT_CPU_COUNT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions