-
Notifications
You must be signed in to change notification settings - Fork 3
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
Find a way to override Spark memory allocation from docker run command #4
Comments
I am not sure if this is correct. I am started adam-submit on docker without specifying any parameters and it only allocated 256MB of memory. |
Hi @akhmess, adding more more memory is only going to help you if this is the bottleneck for your use case. |
The thing is so far samtools is outperforming ADAM on flagstat command.
|
Send this comment to Frank at Berkeley Prof April
|
Good point @aapril. Yes since it is a ADAM related issue, you should report it to the ADAM community. |
Memory allocation is hardcoded in
adam-submit
launch scriptIf there is not enough memory allocated to Adam / Spark, Adam may crash. By default, only 512MB is allocated to java processes. Here's a workaround to fix this issue
Download a larger BAM file and start a bash shell in an ADAM container:
Then, start an ADAM container:
Once inside the container, run ADAM with 1.5GB of RAM (the
SPARK_DRIVER_MEMORY
andSPARK_EXECUTOR_MEMORY
variables):[UPDATE: June 2nd 2015]: The
adam-submit
script in Adam 0.16.0 now allocates 4 GB by default see here. If you need more than 4GB, then we need to find a way to override this parameter when running the container. The adam-submit script accepts the--conf spark.executor.memory="1g"
option, but it has no effect.Please contact us if you find a more elegant way to solve this issue.
The text was updated successfully, but these errors were encountered: