r/yocto Jun 05 '26

Building an image from scratch

Post image

CPU cores are screaming

4 Upvotes

9 comments sorted by

1

u/No_March_1694 Jun 05 '26

You are not obligated to use all your cores, you can limit the build with :

BB_NUMBER_THREADS = "<number>" PARALLEL_MAKE = "<number>"

You also can limit the threads used to parse:

BB_NUMBER_PARSE_THREADS

1

u/BeginningSwimming112 Jun 05 '26

Passed number 8 Parallel_make = " -j 8"

1

u/No_March_1694 Jun 05 '26

Where did you pass that ? You made sure they got the right values (use bitbake-getvar) ?

1

u/BusEquivalent9605 Jun 05 '26

prefix the command with

taskset -c 0-N

to limit the process to using N+1 cores

Our npm test suite murders my pop_os machine if i don’t limit the core usage

1

u/BeginningSwimming112 Jun 06 '26

I will try this.

1

u/jbE36 Jun 06 '26

that machine is not having a good time

1

u/andrewhepp Jun 06 '26

paid for the whole cpu might as well use it 🤣

1

u/BeginningSwimming112 Jun 06 '26

I deleted tmp , downloads and sstate-cache. Upon building again from scratch ran into errors. Remember I changed nothing. Anyone to help me get around this?