After update compiling kernel only uses 1 cpu

After i updated everything now compiling a kernel takes like 6+ hours, it only uses one thread, i got 12 threads available, the previous version used all cores when compiling and only took 1 hour.
What’s wrong, where do i need to look to fix this?

Hello there

When you run the make command, you can add a -jX parameter, where X is how many threads you want to use. So you can run:

make -j12

If you want to use all 12 (may want to leave a couple open to be used)

Source: The Linux bible

1 Like

yes i know that’s in terminal, i use pamac to install the kernel anywhere i need to check to fix it?

create ~/.config/pacman/makepkg.conf and set key MAKEFLAGS in this file

man makepkg.conf
2 Likes

You could have said that to begin with. What custom kernel are you compiling and why?

https://wiki.archlinux.org/title/Makepkg#Improving_compile_times

This is what I use:

MAKEFLAGS="-j$(($(nproc)+1))"

That will use all available threads and queue the next job for when a thread becomes available. That way, no threads become idle looking for the next job.

1 Like

Thank you, i found it and now it’s cooking again :smiley:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.