Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU): Jetson
• DeepStream Version: DS7.1
• JetPack Version (valid for Jetson only): 6.1
• TensorRT Version: 10.3
• Issue Type( questions, new requirements, bugs): questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
When I ran this pipeline for about 3 hours , I was able to verify by using the ps -aux command that it kept raising the physical memory usage without staying at a constant value.
Please tell me how to prevent memory leaks.
The following is a log showing the physical memory usage of gst-launch-1.0 obtained using the ps -aux command.
psinfo.gst2.log (10.6 MB)
I run this command in the docker container.
commnad
export USE_NEW_NVSTREAMMUX=yes
gst-launch-1.0 \
v4l2src device=/dev/video0 ! "video/x-raw, width=1280, height=720, framerate=5/1" ! tee name=t \
t.src_0 ! nvvideoconvert src-crop="0:0:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_0 \
t.src_1 ! nvvideoconvert src-crop="320:0:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_1 \
t.src_2 ! nvvideoconvert src-crop="640:0:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_2 \
t.src_3 ! nvvideoconvert src-crop="960:0:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_3 \
t.src_4 ! nvvideoconvert src-crop="0:180:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_4 \
t.src_5 ! nvvideoconvert src-crop="320:180:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_5 \
t.src_6 ! nvvideoconvert src-crop="640:180:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_6 \
t.src_7 ! nvvideoconvert src-crop="960:180:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_7 \
t.src_8 ! nvvideoconvert src-crop="0:360:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_8 \
t.src_9 ! nvvideoconvert src-crop="320:360:320:18" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_9 \
t.src_10 ! nvvideoconvert src-crop="640:360:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_10 \
t.src_11 ! nvvideoconvert src-crop="960:360:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_11 \
t.src_12 ! nvvideoconvert src-crop="0:540:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_12 \
t.src_13 ! nvvideoconvert src-crop="320:540:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_13 \
t.src_14 ! nvvideoconvert src-crop="640:540:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_14 \
t.src_15 ! nvvideoconvert src-crop="960:540:320:180" copy-hw=2 ! "video/x-raw(memory:NVMM), format=NV12, width=320, height=180" ! nvvideoconvert ! "video/x-raw(memory:NVMM), width=1920, height=1080" ! mux.sink_15 \
nvstreammux name=mux batch-size=16 ! \
queue ! nvvideoconvert ! nvinfer config-file-path="/opt/nvidia/deepstream/deepstream-7.1/samples/configs/deepstream-app/config_infer_primary.txt" model-engine-file="/opt/nvidia/deepstream/deepstream-7.1/samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b30_gpu0_int8.engine" ! \
nvtracker tracker-width=1280 tracker-height=720 ll-lib-file="/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so" ! \
tee ! \
nvstreamdemux name=demux \
demux.src_0 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_1 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_2 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_3 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_4 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_5 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_6 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_7 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_8 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_9 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_10 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_11 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_12 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_13 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_14 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0 \
demux.src_15 ! queue ! tee ! queue ! nv3dsink sync=0 async=0 enable-last-sample=0



