[OE-core] [PATCH 4/5] sstatetests: Use higher parallelism value

Richard Purdie richard.purdie at linuxfoundation.org
Wed Jun 14 10:54:50 UTC 2017


On Tue, 2017-06-13 at 08:55 -0700, Andre McCurdy wrote:
> On Tue, Jun 13, 2017 at 2:49 AM, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
> > 
> > Since the processing code for signature generation is now threaded,
> > use higher thread values as examples in this code for better
> > performance.
> > 
> > Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
> > ---
> >  meta/lib/oeqa/selftest/cases/sstatetests.py | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py
> > b/meta/lib/oeqa/selftest/cases/sstatetests.py
> > index 8d05e30..feadf3c 100644
> > --- a/meta/lib/oeqa/selftest/cases/sstatetests.py
> > +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py
> > @@ -418,7 +418,7 @@ DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
> > 
> >          self.write_config("""
> >  TMPDIR = "${TOPDIR}/tmp-sstatesamehash"
> > -BB_NUMBER_THREADS = "1"
> > +BB_NUMBER_THREADS = "${@oe.utils.cpu_count()}"
> >  PARALLEL_MAKE = "-j 1"
> >  DL_DIR = "${TOPDIR}/download1"
> >  TIME = "111111"
> > @@ -431,7 +431,7 @@ http_proxy = ""
> >          bitbake("world meta-toolchain -S none")
> >          self.write_config("""
> >  TMPDIR = "${TOPDIR}/tmp-sstatesamehash2"
> > -BB_NUMBER_THREADS = "2"
> > +BB_NUMBER_THREADS = "${@oe.utils.cpu_count()-1}"
> What happens here if I have one CPU core?

I'll change it to a +1 :)

Cheers,

Richard



More information about the Openembedded-core mailing list