5

When doing

bitbake core-image-xxxx

the build task will auto select 8 threads ( since my CPU is 8 cores) to build the image.

my system is 72GB ram, can I force bitbake to run with more threads?

or any way to ask bitbake to use more ram?

GreenTea
  • 769
  • 1
  • 10
  • 36

1 Answers1

11

To increase threads usage: You add following to your local.conf inside the build/conf directory. Replace x and y with your wanted configuration

PARALLEL_MAKE = "-j x"

BB_NUMBER_THREADS = "y"

PARALLEL_MAKE defines how many threads should be used when using make -j command during do_compile.

BB_NUMBER_THREADS defines number of threads for bitbake.

I do not know about increasing memory usage, if you want to increase the speed of the build you could to it with a ramdisk. https://www.linuxbabe.com/command-line/create-ramdisk-linux

https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-PARALLEL_MAKE https://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#var-BB_NUMBER_THREADS

Florian Berndl
  • 1,136
  • 8
  • 27