Repository navigation
Limit number of CPU cores used? #5187
Unanswered
henrebotha
asked this question in
Q&A
Replies: 2 comments
|
Try export CARGO_BUILD_JOBS=8
export MAKEFLAGS="-j8"
export NIX_BUILD_CORES=8Note change no of core you according to your wish and device capability. |
0 replies
|
@henrebotha you also need to ensure that you have the child process restrictions disabled:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
cargobuild/install commands often cause Termux's shell process to end. I found that limiting cargo to 4 jobs (4 CPU cores) prevents this. I am wondering if there's a general mechanism to do something similar for all processes in Termux — basically preventing any Termux sub-process from using enough CPU to cause it to die.Any tips? I use Zsh, if that matters.
All reactions