The situation is I have several processes using OpenGl running concurrently, and as the number of the process increases to a specific value , say 6, the OpenGl api call such as glMakeCurrent will always fail, and also associated with segment fault in the driver.
following is the stack when the segment fault happens:
#1 0x00007f8372f6c1f2 in ?? () from /usr/lib/libnvidia-glcore.so.340.46
#2 0x00007f8372b4f0f8 in ?? () from /usr/lib/libnvidia-glcore.so.340.46
#3 0x00007f8371521eaf in glDrawArrays () …
At this failure, I checked the GPU usage, the loading and GPU memory neither reach a high level, sometimes may only around 30%.
So I’m wondering whether this some limitation for the number of processes using the GPU currently.