Do Docker containers share a single Python GIL? -


when run python script inside docker container, completes 1 execution loop in ~1 minute. spin 2 more containers same image, , run python scripts inside them, slow down crawl , start requiring 5-6 minutes per loop.

none of scripts resource bound; there plenty of ram , cpu cores sitting around idle. happens when running 3 containers on 64-core xeon phi system.

so docker share common python gil lock among containers? options separate gils, each process run @ full potential speed?

thank you!

so docker share common python gil lock among containers?

no.

the gil per python process, docker container may have 1 or many python processes, each it's own gil.

if not multi-threading, should not aware of gil. using threads @ all?


Comments