Skip to content
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

Closed
bama4 opened this issue Jun 18, 2019 · 7 comments
Closed

Pharos Slow Build On Ubuntu 18.04 #16

bama4 opened this issue Jun 18, 2019 · 7 comments

Comments

@bama4
Copy link

bama4 commented Jun 18, 2019

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.

@sei-eschwartz
Copy link
Collaborator

It sounds like you are running out of RAM. Are you compiling more than one file at once?

@bama4
Copy link
Author

bama4 commented Jun 18, 2019 via email

@sei-eschwartz
Copy link
Collaborator

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/

@sei-ccohen
Copy link
Contributor

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.

@bama4
Copy link
Author

bama4 commented Jun 18, 2019 via email

@sei-eschwartz
Copy link
Collaborator

@sei-ccohen Try echo ${NCPU:-1} :)
@bama4 I think 8 GB should be enough.

@bama4
Copy link
Author

bama4 commented Jun 20, 2019

This was resolved when the RAM was increased to 12 GB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants