-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
How to add the -- shm-size parameter at runtime #1821
Comments
This is interesting, I was not familiar with this option. I'd support adding something like a I would accept a pull request to do something like this. Adding a new extension is slightly involved but if you are interested in doing the work to implement it we can walk you through it. |
Thank you for your reply Should this configuration addition method be similar to --strict-memory-limit and used in conjunction with ramMin in the cwl configuration file. For example, add --set-shm-size, and add the shmSize setting value in the requirements section of the cwl configuration file Or similar to --no-read-only, but increase the parameter setting value. For example, add --set-shm-size 5g to add this configuration when running the tool |
It should be part of the
The gist of what you need to do is:
|
Is there a Singularity/Apptainer equivalent to this? Likewise podman, udocker, ... |
Hi @tetron Thanks for your answer Due to limited capabilities and time, I use the method of adding from the outermost layer to quickly meet my current needs. If other researchers have this requirement, you can consider whether to develop this configuration. My changes are:
Finally, add configuration at runtime: cwltool_run --set-shm-size 5g |
Hi @mr-c Do you mean whether podman and udocker also have a --shm-size configuration ? Due to restrictions on the use of udocker, I only tested podman, and the results also support this configuration. |
Shm errors in running deep learning models within a docker container
Error: Unexpected bus error accounted in worker This might be caused by insufficient shared memory (shm).
Reason: The main reason is that the shm size is too small
When creating an analysis container using cwltool, it is expected to add the parameter – shm-size 4g through configuration
docker run --shm-size 4G
Can you add this configuration? Thank you
The text was updated successfully, but these errors were encountered: