Score:1

Set number of threads when auto compiling kernel

jp flag

I use Ubuntu as main operating system.

I have found that when a new kernel is included in a system upgrade, during the upgrade, certain kernel-related items are compiled (kernel modules?).

During this process, I check that the processor usage is low, as it is making use of 1 single processor thread.

With multicore technologies available today, is there any way to set that, every time there is a kernel update, all the cores of the system can be used in such compilations? Or at least be able to decide the number of cores desired for the compilation.

Thanks.

vidarlo avatar
ar flag
[Perhaps this Q&A at AskUbuntu answers this?](https://askubuntu.com/questions/534661/how-to-parallelize-dpkg-for-large-dkms-packages)
Ommadawn avatar
jp flag
Yes, I will try! Thanks
Ommadawn avatar
jp flag
Nop... it doesn't work. I apply this yesterday. Today there was a kernel update and my system just used 1 thread to compile the modules :(
vidarlo avatar
ar flag
Was the environment variable correctly set? Remember that `sudo` by default clears environment variables, so you'd have to use `sudo CONCURRENCY_LEVEL='16' apt upgrade`
Ommadawn avatar
jp flag
I wrote `export CONCURRENCY_LEVEL=8` in `/etc/profile` so it was defined in the environment variables at startup
vidarlo avatar
ar flag
`sudo` will reset it afaik.
Ommadawn avatar
jp flag
What will be reset?
vidarlo avatar
ar flag
By default `sudo` resets all environment variables to mitigate some security concerns.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.