Docker Insufficient shared memory (shm) Error
When I running a training experiment in docker I got the following error message:
ERROR: Unexpected bus error encountered in worker. This might be caused by insufficient shared memory (shm).
The solution is adding the argument “–ipc=host” when running the docker container.
References:
- https://docs.docker.com/engine/reference/run/#ipc-settings—ipc
- https://discuss.pytorch.org/t/training-crashes-due-to-insufficient-shared-memory-shm-nn-dataparallel/26396
Enjoy Reading This Article?
Here are some more articles you might like to read next: