You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
The current JOBS as in the make -j${JOBS} in the build script is determined by the code listed above.
In short, JOBS is the lower of
the number of logical CPU cores
the size of main memory in GB
However, in building the current develop branch, this configuration is too demanding, at least for my case. My Macbook Pro has an 8-core i9-9880H CPU with a 16GB memory, so it counts as having 16 logical cores, and thus JOBS=16.
Now the eosio_build.shconsistently freezes my Mac (for four times) when it arrives at
[ 77%] Building CXX object libraries/chain/CMakeFiles/eosio_chain.dir/webassembly/privileged.cpp.o
I am attaching a screenshot of the Activity Monitor at the freezing moment.
Workaround
The workaround is to terminate the build script before it comes to the compilation, go to the build folder, and manually run make -j8.
I second this. The memory consumption is too much that ends up to freeze the compilation
Ideally if the script could limits the memory usage of each job, then we would be able to fully use the CPU power (i.e. ncpu) without letting clang eat up all ram.
eos/scripts/.build_vars
Line 43 in 44e216b
eos/scripts/helpers/general.sh
Line 75 in 44e216b
The current
JOBS
as in themake -j${JOBS}
in the build script is determined by the code listed above.In short,
JOBS
is the lower ofHowever, in building the current
develop
branch, this configuration is too demanding, at least for my case. My Macbook Pro has an 8-core i9-9880H CPU with a 16GB memory, so it counts as having 16 logical cores, and thusJOBS=16
.Now the
eosio_build.sh
consistently freezes my Mac (for four times) when it arrives atI am attaching a screenshot of the Activity Monitor at the freezing moment.
Workaround
The workaround is to terminate the build script before it comes to the compilation, go to the
build
folder, and manually runmake -j8
.Suggestion
Consider changing
eos/scripts/.build_vars
Line 43 in 44e216b
into
which counts the number of physical CPU cores.
Or maybe other ways to avoid the freezing in the compilation.
The text was updated successfully, but these errors were encountered: