Bug 19543

Summary: BuildManager (bm): Add option to limit cpus for parallel build
Product: Mageia Reporter: Rémi Verschelde <rverschelde>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Normal Keywords: Junior_job
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: bm-3.2-1.mga6 CVE:
Status comment:

Description Rémi Verschelde 2016-10-05 21:21:45 CEST
Quite often I found my laptop lacking CPU power and memory when building a package in the background with -j$max_cpus and doing other stuff.

Having an option in bm to limit the number of cpus that can be used for parallel build would be nice.

It can already be achieved via

  bm --define '_smp_ncpus_max N'

where N is the wanted number.

But the macro's name is so hard to remember that a shorthand like `--cpus N` would be very welcome.
Rémi Verschelde 2016-10-05 21:22:04 CEST

Keywords: (none) => Junior_job