Multiple encoders raises device '/dev/nvhost-msenc' failed during initialization

More than 3 parallel encoders raise “‘/dev/nvhost-msenc’ failed during initialization” error.

• Hardware Platform (Jetson / GPU) GTX1080Ti
• DeepStream Version 5.0.1-1 amd64
• TensorRT Version 7.2.2-1+cuda10.2
• NVIDIA GPU Driver Version (valid for GPU only) 460.32.03-0ubuntu0.18.04.1

How to reproduce:

gst-launch-1.0 uridecodebin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.mp4 ! nvvideoconvert ! tee name=t ! queue ! nvv4l2h264enc ! h264parse ! splitmuxsink muxer=matroskamux location=chunk%01d.mkv t. ! queue ! nvv4l2h264enc ! h264parse ! splitmuxsink muxer=matroskamux location=chunk%01d.mkv t. ! queue ! nvv4l2h264enc ! h264parse ! splitmuxsink muxer=matroskamux location=chunk%01d.mkv
Setting pipeline to PAUSED …
Pipeline is PREROLLING …
Redistribute latency…
Redistribute latency…
Redistribute latency…
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
Got EOS from element “pipeline0”.
Execution ended after 0:00:05.782476470
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …


gst-launch-1.0 uridecodebin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.mp4 ! nvvideoconvert ! tee name=t ! queue ! nvv4l2h264enc ! h264parse ! splitmuxsink muxer=matroskamux location=chunk%01d.mkv t. ! queue ! nvv4l2h264enc ! h264parse ! splitmuxsink muxer=matroskamux location=chunk%01d.mkv t. ! queue ! nvv4l2h264enc ! h264parse ! splitmuxsink muxer=matroskamux location=chunk%01d.mkv t. ! queue ! nvv4l2h264enc ! h264parse ! splitmuxsink muxer=matroskamux location=chunk%01d.mkv
Setting pipeline to PAUSED …
Pipeline is PREROLLING …
Redistribute latency…
Redistribute latency…
Redistribute latency…
Redistribute latency…
ERROR: from element /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc3: Device ‘/dev/nvhost-msenc’ failed during initialization
Additional debug info:
gstv4l2object.c(4070): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc3:
Call to S_FMT failed for NM12 @ 1280x720: Unknown error -1
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to NULL …
Freeing pipeline …

Please check the encoder max number of concurrent sessions Video Encode and Decode GPU Support Matrix | NVIDIA Developer