[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#663762: debian-policy: default for DEB_BUILD_OPTIONS=parallel=N



On Sun, Mar 25, 2012 at 09:18:18AM +1030, Ron wrote:
> 
> Hi Jakub, Russ,
> 
> On Sat, Mar 17, 2012 at 04:55:19PM -0700, Russ Allbery wrote:
> > Jakub Wilk <jwilk@debian.org> writes:
> > 
> > > How should packages behave if there is no explicit "parallel=N" in
> > > DEB_BUILD_OPTIONS? I saw two different approaches:
> > 
> > > 1) Behave (roughly) like if parallel=1 was set.
> > 
> > > 2) Be clever and try to guess the "right" level of parallelism, e.g. by
> > > using "getconf _NPROCESSORS_ONLN" or parsing /proc/cpuinfo (ugh!).

On an hyperthreaded system, "getconf _NPROCESSORS_ONLN" return the number of threads
and not the number of cores, so it is not always what the user want.

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 



Reply to: