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

Setup for AWS AMI Hangs compiling TBB #1362

Closed
ajtrichards opened this issue Dec 16, 2013 · 13 comments
Closed

Setup for AWS AMI Hangs compiling TBB #1362

ajtrichards opened this issue Dec 16, 2013 · 13 comments

Comments

@ajtrichards
Copy link

I'm trying to get HHVM installed on an Amazon Linux 2013.09.1 machine (m1.small) and i'm getting an issue compiling Thread Building Blocks.

The command line show's

./test_atomic.exe

And it just hangs there - I left it for 35 minutes and nothing happens.

Has anyone else had this issue and how did you resolve?

Thanks

@scannell
Copy link
Contributor

Closing this as it's not an HHVM issue. Hopefully someone else can advise though -- we haven't seen this. (I'd suggesting asking in AWS and/or TBB support forums.)

@shivaas
Copy link

shivaas commented Mar 5, 2014

this issue is on the old amazon AMI. Their recent linux AMI (Amazon Linux AMI 2013.09.2) does not have this issue.

@atsushi-fukushima
Copy link

I am now facing on same problem. The AMI is "Amazon Linux AMI release 2013.09"
Please tell me why you believe it is fixed.

@shivaas
Copy link

shivaas commented Mar 24, 2014

@atsushi-fukushima having compiled HHVM 2.4.1, 2.4.2 and the latest master build on the linux AMI, I am confident that it works fine. Are you sure you are compiling the proper TBB version and have all the updates applied to the AMI ?

@schmite
Copy link

schmite commented Apr 2, 2014

I followed https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Amazon-Linux-2013.09.1 and https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Amazon-Linux-2014.03 on amzn-ami-pv-2014.03.0.x86_64-ebs and both issue compiling Thread Building Blocks.
The command line show's

./test_atomic.exe

And it just hangs there.

@shivaas
Copy link

shivaas commented Apr 2, 2014

@schmite what is the size of your AWS instance?

@schmite
Copy link

schmite commented Apr 2, 2014

@shivaas m1.small

@shivaas
Copy link

shivaas commented Apr 2, 2014

@schmite I would recommend upping the size of your instance to a c3.8xlarge and then building tbb with the -j32 flag, where 32 is the number of cores available. let me know if that still hangs up on test_atomix.exe

@shivaas
Copy link

shivaas commented Apr 2, 2014

fyi, you can downgrade the machine size after the build is complete so you don't run up a huge bill :)

@schmite
Copy link

schmite commented Apr 2, 2014

Thank you! It worked!
What does -j32 flag?

@shivaas
Copy link

shivaas commented Apr 2, 2014

@schmite -j is a flag to tell make how many cores to use to parallel compile the files. 32 is the number of cores (4x8) available on 8x large machine on AWS.

@atsushi-fukushima
Copy link

@shivaas Thank you, In my case, build is not really hung up. It just took long time to test during the build process. In case skip the test process, the build will be finished in a reasonable time.

I am now believing this test is too hard, and one of best benchmark on SMP system :-P

@davidbitton
Copy link

Same issue here with the "hang". I upsized my m3.medium to a c3.8xlarge and re-make-ed with -j32. The build process blew right past test_atomic.exe.

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

No branches or pull requests

6 participants