-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pharos Slow Build On Ubuntu 18.04 #16
Comments
It sounds like you are running out of RAM. Are you compiling more than one file at once? |
I am running the script/build.bash file
…On Tue, Jun 18, 2019, 2:39 PM sei-eschwartz ***@***.***> wrote:
It sounds like you are running out of RAM. Are you compiling more than one
file at once?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=ABJ7M5JXCNJ5J4ARZ7DJJY3P3ETWRA5CNFSM4HZCGYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX7SLGQ#issuecomment-503260570>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJ7M5O276YXHBNNM2FAP7TP3ETWRANCNFSM4HZCGYJQ>
.
|
That should only compile one file at once. I'm not sure what to suggest other than adding more memory to your machine. We've definitely compiled Pharos using less than 4 GB of RAM though... You could also use our pre-built Docker images: https://hub.docker.com/r/eschwartz/pharos/ |
Actually, the build.bash script defaults to NCPU=-1, which might result in parallel builds. ROSE in particular has several source files that require approximately 4GB of RAM each to compile, and it will fail in small VMs with limited memory. I also recommend that you allocate more RAM, or be very attentive to your system resources during the build. While a full day seems a little excessive, it's in approximately the right order of magnitude (multiple hours) to build all of the depdendencies. This can be addressed with a faster system and multiple processors, but only if there's sufficient RAM to support parallel builds. |
Thank you. How much RAM is sufficient enough?
…On Tue, Jun 18, 2019, 4:48 PM Cory Cohen ***@***.***> wrote:
Actually, the build.bash script defaults to NCPU=-1, which might result in
parallel builds. ROSE in particular has several source files that require
approximately 4GB of RAM *each* to compile, and it will fail in small VMs
with limited memory. I also recommend that you allocate more RAM, or be
very attentive to your system resources during the build. While a full day
seems a little excessive, it's in approximately the right order of
magnitude (multiple hours) to build all of the depdendencies. This can be
addressed with a faster system and multiple processors, but only if there's
sufficient RAM to support parallel builds.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=ABJ7M5MA7NWDY4Z4753SSBTP3FC3LA5CNFSM4HZCGYJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX75NKA#issuecomment-503305896>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJ7M5LFXWHFRFZNOAJ7L73P3FC3LANCNFSM4HZCGYJQ>
.
|
@sei-ccohen Try |
This was resolved when the RAM was increased to 12 GB |
I am attempting to build pharos in a VmWare Ubuntu 18.04 VM. The build takes over 1 day and then starts slowing down to the point where the VM freezes. I have 4 GB RAM and 250 GB hard drive for this VM. None of the builds have completed. I tried building on Ubuntu 16.04 as well and had the same issue.
The text was updated successfully, but these errors were encountered: