Memory leak when testing deepstream sample app

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): Quadro RTX 4000
• DeepStream Version: 6.1.1
• TensorRT Version: 8.5.3.1
• NVIDIA GPU Driver Version (valid for GPU only): 510.47.03

I experimented on the deepstream_image_meta_test sample. I used CMakeLists to compile the project with -fsanitize option to to enable LeakSanitizer profiler.

cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CUDA_COMPILER /usr/local/cuda-11.5/bin/nvcc)

project(checkLeakMem LANGUAGES CXX CUDA)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -Wall -pthread")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-omit-frame-pointer -fsanitize=leak -g -pthread")

set(CMAKE_CXX_STANDARD 17)

find_package(PkgConfig REQUIRED)
                    
add_executable(${PROJECT_NAME} main.cpp)
pkg_check_modules(Uuid REQUIRED IMPORTED_TARGET uuid)
include_directories(${Uuid_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${Uuid_LIBRARIES})

# cuda
find_package(CUDA REQUIRED)
set(CMAKE_CUDA_ARCHITECTURES 52 60 61 75 CACHE STRING "CUDA architectures")
set_target_properties(${PROJECT_NAME} PROPERTIES CUDA_STANDARD 17)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -O3 --compiler-options -fno-strict-aliasing --ptxas-options=-v --generate-line-info")
include_directories(${CUDA_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${CUDA_LIBRARIES})

# gstreamer
find_package(PkgConfig REQUIRED)
pkg_check_modules(GST_PKG REQUIRED IMPORTED_TARGET gstreamer-app-1.0)
target_include_directories(${PROJECT_NAME} PUBLIC ${GST_PKG_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} PkgConfig::GST_PKG)
target_compile_options(${PROJECT_NAME} PUBLIC ${GST_PKG_CFLAGS_OTHER})

# deepstream
target_include_directories(${PROJECT_NAME} PUBLIC /opt/nvidia/deepstream/deepstream/sources/includes)
target_link_directories(${PROJECT_NAME} PUBLIC /opt/nvidia/deepstream/deepstream/lib)
target_link_libraries(${PROJECT_NAME} -lnvbufsurface -lnvbufsurftransform -lnvdsgst_helper -lnvds_batch_jpegenc 
                                        -lnvdsgst_meta -lnvds_meta -lnvinfer -lnvinfer_plugin -lnvds_inferutils 
                                        -lnvds_utils -lm -lnvds_infercustomparser)
# OpenCV
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})
target_link_libraries(${PROJECT_NAME} -lstdc++fs -lcurl)

# Json-glib
pkg_check_modules(JSON-GLIB REQUIRED json-glib-1.0)
include_directories(${JSON-GLIB_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${JSON-GLIB_LIBRARIES})

The result is shown below indicating that there are a multiple direct leaks

==18434==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 6656 byte(s) in 26 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc456fcb8ed  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1d8ed)

Direct leak of 520 byte(s) in 13 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a926afe1  (<unknown module>)

Direct leak of 216 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc4532672a7  (/usr/lib/x86_64-linux-gnu/libnvparsers.so.8.4.1+0x32a7)
    #2 0x31d6ffffffff  (<unknown module>)

Direct leak of 192 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc4708bda85 in allocate_buffers (/opt/nvidia/deepstream/deepstream/lib/libnvds_batch_jpegenc.so+0x1a85)
    #2 0x7fc4708be2fd in nvds_obj_enc_process (/opt/nvidia/deepstream/deepstream/lib/libnvds_batch_jpegenc.so+0x22fd)
    #3 0x563b3141d888 in pgie_src_pad_buffer_probe /home/martin/minhbq6/checkLeakMem/main.cpp:241
    #4 0x7fc46fc7b287  (/usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0+0x74287)

Direct leak of 184 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9251b54  (<unknown module>)

Direct leak of 112 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9261b3b  (<unknown module>)

Direct leak of 100 byte(s) in 3 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a9262b2e  (<unknown module>)

Direct leak of 40 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9264a33  (<unknown module>)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a9264931  (<unknown module>)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e2c73 in realloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xec73)
    #1 0x7fc3a9261811  (<unknown module>)

Direct leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc4517b526c  (<unknown module>)

Indirect leak of 7135 byte(s) in 13 object(s) allocated from:
    #0 0x7fc4710e2c73 in realloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xec73)
    #1 0x7fc3a9264d7c  (<unknown module>)

Indirect leak of 1632 byte(s) in 51 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc456fcbfd8  (/usr/lib/x86_64-linux-gnu/libfontconfig.so.1+0x1dfd8)

Indirect leak of 808 byte(s) in 2 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9264b4d  (<unknown module>)

Indirect leak of 736 byte(s) in 4 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9251b54  (<unknown module>)

Indirect leak of 519 byte(s) in 50 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc46f2f6a29 in __strdup (/lib/x86_64-linux-gnu/libc.so.6+0x9da29)

Indirect leak of 264 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a924667d  (<unknown module>)

Indirect leak of 240 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9243a57  (<unknown module>)
    #2 0x7ffffffff  (<unknown module>)

Indirect leak of 232 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9260bdf  (<unknown module>)

Indirect leak of 224 byte(s) in 4 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a924b35d  (<unknown module>)

Indirect leak of 176 byte(s) in 2 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9259b1a  (<unknown module>)

Indirect leak of 160 byte(s) in 4 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a926afe1  (<unknown module>)

Indirect leak of 128 byte(s) in 2 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a92610b8  (<unknown module>)

Indirect leak of 112 byte(s) in 6 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a9264fc3  (<unknown module>)

Indirect leak of 112 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9261b3b  (<unknown module>)

Indirect leak of 96 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a92566ff  (<unknown module>)

Indirect leak of 96 byte(s) in 2 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a926b101  (<unknown module>)

Indirect leak of 80 byte(s) in 2 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9264a33  (<unknown module>)

Indirect leak of 80 byte(s) in 2 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a926af8a  (<unknown module>)

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e2c73 in realloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xec73)
    #1 0x7fc3a92569dd  (<unknown module>)
    #2 0xeb5c5c5f623a02ff  (<unknown module>)

Indirect leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a92584d7  (<unknown module>)

Indirect leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9246637  (<unknown module>)

Indirect leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9246648  (<unknown module>)

Indirect leak of 48 byte(s) in 2 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a9264931  (<unknown module>)

Indirect leak of 42 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a9265289  (<unknown module>)
    #2 0xeb5c5c5f623a02ff  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a92588b2  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a9264995  (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e37e3  (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xf7e3)
    #1 0x7fc3a9244601  (<unknown module>)

Indirect leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e2c73 in realloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xec73)
    #1 0x7fc3a9261981  (<unknown module>)

Indirect leak of 7 byte(s) in 1 object(s) allocated from:
    #0 0x7fc4710e2acb in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/liblsan.so.0+0xeacb)
    #1 0x7fc3a9262b2e  (<unknown module>)

SUMMARY: LeakSanitizer: 21299 byte(s) leaked in 211 allocation(s).

There are many 1 object leaks that contribute constant and insignificant leak. However, the most amount of memory leak is found in liblsan.so with the number of object being leaked increase over time. When testing on rtspsrc, after few hours of operating, the memory leaks can accumulate up to 60GB. Can anyone suggest how to fix this problem?

  1. liblsan is not NV’s lib, can you narrow down this issue by removing some code temporarily?
  2. if using rtsp source, please refer to this topic rtsp source, Setting rtspsrc drop-on-latency property can improve the leak problem.

I tried using drop-on-latency option for rtspsrc but it only reduce the amount of memory leak, not prevent it from eventually crashing the program. Furthermore, the image that I get somehow got pixelated

  1. did you modify the code? if yes, could you provide the simplified code?
  2. can you provide more logs by nvmemstat ? it can save the memory usage at intervals.
  3. can you provide more valgrind logs by this method vagrid, it can give memory details.

I did not modify the code. I just add CMakeLists.txt to build with sanitizer option. I used nvmemstat and get the following output

PID: 13974   10:24:12	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 24165.1211 MiB	VmRSS: 2118.9023 MiB	RssFile: 979.0898 MiB	RssAnon: 960.2383 MiB	lsof: 328
PID: 13974   10:24:13	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 24164.9961 MiB	VmRSS: 2121.2305 MiB	RssFile: 981.3242 MiB	RssAnon: 960.3281 MiB	lsof: 328
PID: 13974   10:24:15	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 24164.9961 MiB	VmRSS: 2121.2305 MiB	RssFile: 981.3242 MiB	RssAnon: 960.3281 MiB	lsof: 328
PID: 13974   10:24:16	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 24164.9961 MiB	VmRSS: 2121.2305 MiB	RssFile: 981.3242 MiB	RssAnon: 960.3281 MiB	lsof: 328
PID: 13974   10:24:17	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 24164.9961 MiB	VmRSS: 2121.2305 MiB	RssFile: 981.3242 MiB	RssAnon: 960.3281 MiB	lsof: 328

The time span of this log is too short, did not observer an obvious memory leak.

This is what it looks like when I run longer

PID: 16816   10:26:49	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 289.7422 MiB	VmRSS: 150.3516 MiB	RssFile: 3.3789 MiB	RssAnon: 146.9922 MiB	lsof: 69
PID: 16816   10:26:50	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 381.8086 MiB	VmRSS: 169.3984 MiB	RssFile: 11.8828 MiB	RssAnon: 157.7461 MiB	lsof: 77
PID: 16816   10:26:51	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4575.9844 MiB	VmRSS: 174.7617 MiB	RssFile: 13.0820 MiB	RssAnon: 161.6797 MiB	lsof: 77
PID: 16816   10:26:52	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4575.9844 MiB	VmRSS: 174.7617 MiB	RssFile: 13.0820 MiB	RssAnon: 161.6797 MiB	lsof: 77
PID: 16816   10:26:53	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4575.9844 MiB	VmRSS: 174.7617 MiB	RssFile: 13.0820 MiB	RssAnon: 161.6797 MiB	lsof: 77
PID: 16816   10:26:55	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4575.9844 MiB	VmRSS: 174.7617 MiB	RssFile: 13.0820 MiB	RssAnon: 161.6797 MiB	lsof: 77
PID: 16816   10:26:56	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4575.9844 MiB	VmRSS: 174.7617 MiB	RssFile: 13.0820 MiB	RssAnon: 161.6797 MiB	lsof: 77
PID: 16816   10:26:57	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4575.9844 MiB	VmRSS: 174.7617 MiB	RssFile: 13.0820 MiB	RssAnon: 161.6797 MiB	lsof: 77
PID: 16816   10:26:58	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4575.9844 MiB	VmRSS: 174.7617 MiB	RssFile: 13.0820 MiB	RssAnon: 161.6797 MiB	lsof: 77
PID: 16816   10:26:59	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4575.9844 MiB	VmRSS: 174.7617 MiB	RssFile: 13.0820 MiB	RssAnon: 161.6797 MiB	lsof: 77
PID: 16816   10:27:00	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4838.2656 MiB	VmRSS: 174.9180 MiB	RssFile: 13.0820 MiB	RssAnon: 161.8359 MiB	lsof: 77
PID: 16816   10:27:01	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4854.3320 MiB	VmRSS: 187.1523 MiB	RssFile: 15.2422 MiB	RssAnon: 172.1680 MiB	lsof: 80
PID: 16816   10:27:02	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 4901.9336 MiB	VmRSS: 206.0508 MiB	RssFile: 17.0781 MiB	RssAnon: 188.9727 MiB	lsof: 101
PID: 16816   10:27:04	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 5338.5039 MiB	VmRSS: 232.4492 MiB	RssFile: 17.4648 MiB	RssAnon: 215.2422 MiB	lsof: 101
PID: 16816   10:27:05	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 5878.7891 MiB	VmRSS: 225.3125 MiB	RssFile: 18.3281 MiB	RssAnon: 206.9844 MiB	lsof: 107
PID: 16816   10:27:06	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 5888.9844 MiB	VmRSS: 252.7812 MiB	RssFile: 29.4180 MiB	RssAnon: 223.6211 MiB	lsof: 107
PID: 16816   10:27:07	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 5930.0117 MiB	VmRSS: 279.2852 MiB	RssFile: 30.2812 MiB	RssAnon: 249.2578 MiB	lsof: 107
PID: 16816   10:27:08	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 5938.3828 MiB	VmRSS: 300.9883 MiB	RssFile: 32.6680 MiB	RssAnon: 268.5781 MiB	lsof: 106
PID: 16816   10:27:09	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 5947.2930 MiB	VmRSS: 320.2539 MiB	RssFile: 35.3789 MiB	RssAnon: 284.8750 MiB	lsof: 106
PID: 16816   10:27:10	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 5980.1523 MiB	VmRSS: 340.2305 MiB	RssFile: 36.0664 MiB	RssAnon: 304.1641 MiB	lsof: 106
PID: 16816   10:27:11	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 5984.6641 MiB	VmRSS: 355.3242 MiB	RssFile: 38.1797 MiB	RssAnon: 317.4023 MiB	lsof: 106
PID: 16816   10:27:13	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 5984.9570 MiB	VmRSS: 369.7031 MiB	RssFile: 40.6680 MiB	RssAnon: 329.2930 MiB	lsof: 106
PID: 16816   10:27:14	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 6021.9414 MiB	VmRSS: 391.4102 MiB	RssFile: 43.2930 MiB	RssAnon: 348.1172 MiB	lsof: 106
PID: 16816   10:27:15	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 6026.5430 MiB	VmRSS: 409.0039 MiB	RssFile: 47.6211 MiB	RssAnon: 361.3828 MiB	lsof: 106
PID: 16816   10:27:16	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 6036.9805 MiB	VmRSS: 438.4805 MiB	RssFile: 59.7344 MiB	RssAnon: 379.0625 MiB	lsof: 106
PID: 16816   10:27:17	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 6155.2344 MiB	VmRSS: 464.1133 MiB	RssFile: 65.5117 MiB	RssAnon: 398.6016 MiB	lsof: 138
PID: 16816   10:27:18	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 6233.6133 MiB	VmRSS: 488.2227 MiB	RssFile: 71.9414 MiB	RssAnon: 415.9922 MiB	lsof: 158
PID: 16816   10:27:19	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10352.3945 MiB	VmRSS: 501.1836 MiB	RssFile: 72.9180 MiB	RssAnon: 428.2656 MiB	lsof: 165
PID: 16816   10:27:21	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10352.3945 MiB	VmRSS: 501.1836 MiB	RssFile: 72.9180 MiB	RssAnon: 428.2656 MiB	lsof: 165
PID: 16816   10:27:22	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10352.3945 MiB	VmRSS: 501.1836 MiB	RssFile: 72.9180 MiB	RssAnon: 428.2656 MiB	lsof: 165
PID: 16816   10:27:23	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10352.3945 MiB	VmRSS: 501.1836 MiB	RssFile: 72.9180 MiB	RssAnon: 428.2656 MiB	lsof: 165
PID: 16816   10:27:24	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10352.3945 MiB	VmRSS: 501.1836 MiB	RssFile: 72.9180 MiB	RssAnon: 428.2656 MiB	lsof: 165
PID: 16816   10:27:25	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10352.3945 MiB	VmRSS: 501.1836 MiB	RssFile: 72.9180 MiB	RssAnon: 428.2656 MiB	lsof: 165
PID: 16816   10:27:26	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10352.3945 MiB	VmRSS: 501.1836 MiB	RssFile: 72.9180 MiB	RssAnon: 428.2656 MiB	lsof: 165
PID: 16816   10:27:27	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10352.3945 MiB	VmRSS: 501.1836 MiB	RssFile: 72.9180 MiB	RssAnon: 428.2656 MiB	lsof: 165
PID: 16816   10:27:28	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10484.4844 MiB	VmRSS: 506.2383 MiB	RssFile: 75.1562 MiB	RssAnon: 431.0820 MiB	lsof: 166
PID: 16816   10:27:30	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10452.8008 MiB	VmRSS: 592.3867 MiB	RssFile: 159.2656 MiB	RssAnon: 433.1211 MiB	lsof: 169
PID: 16816   10:27:31	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10452.8945 MiB	VmRSS: 592.7539 MiB	RssFile: 159.2812 MiB	RssAnon: 433.4727 MiB	lsof: 171
PID: 16816   10:27:32	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10452.8945 MiB	VmRSS: 592.7539 MiB	RssFile: 159.2812 MiB	RssAnon: 433.4727 MiB	lsof: 171
PID: 16816   10:27:33	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10452.8945 MiB	VmRSS: 592.7539 MiB	RssFile: 159.2812 MiB	RssAnon: 433.4727 MiB	lsof: 171
PID: 16816   10:27:34	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10452.8945 MiB	VmRSS: 592.7539 MiB	RssFile: 159.2812 MiB	RssAnon: 433.4727 MiB	lsof: 171
PID: 16816   10:27:35	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10452.8945 MiB	VmRSS: 592.7539 MiB	RssFile: 159.2812 MiB	RssAnon: 433.4727 MiB	lsof: 171
PID: 16816   10:27:36	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10452.8945 MiB	VmRSS: 592.7539 MiB	RssFile: 159.2812 MiB	RssAnon: 433.4727 MiB	lsof: 171
PID: 16816   10:27:37	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10452.8945 MiB	VmRSS: 592.7539 MiB	RssFile: 159.2812 MiB	RssAnon: 433.4727 MiB	lsof: 171
PID: 16816   10:27:39	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10452.8945 MiB	VmRSS: 592.7539 MiB	RssFile: 159.2812 MiB	RssAnon: 433.4727 MiB	lsof: 171
PID: 16816   10:27:40	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10515.0820 MiB	VmRSS: 628.5664 MiB	RssFile: 173.3086 MiB	RssAnon: 447.2578 MiB	lsof: 177
PID: 16816   10:27:41	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10515.0820 MiB	VmRSS: 628.5664 MiB	RssFile: 173.3086 MiB	RssAnon: 447.2578 MiB	lsof: 177
PID: 16816   10:27:42	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10515.0820 MiB	VmRSS: 628.5664 MiB	RssFile: 173.3086 MiB	RssAnon: 447.2578 MiB	lsof: 177
PID: 16816   10:27:43	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10515.0820 MiB	VmRSS: 628.5664 MiB	RssFile: 173.3086 MiB	RssAnon: 447.2578 MiB	lsof: 177
PID: 16816   10:27:44	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10515.0820 MiB	VmRSS: 628.5664 MiB	RssFile: 173.3086 MiB	RssAnon: 447.2578 MiB	lsof: 180
PID: 16816   10:27:45	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10515.0820 MiB	VmRSS: 628.5664 MiB	RssFile: 173.3086 MiB	RssAnon: 447.2578 MiB	lsof: 180
PID: 16816   10:27:46	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10515.0820 MiB	VmRSS: 628.5664 MiB	RssFile: 173.3086 MiB	RssAnon: 447.2578 MiB	lsof: 180
PID: 16816   10:27:48	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10515.0820 MiB	VmRSS: 628.5664 MiB	RssFile: 173.3086 MiB	RssAnon: 447.2578 MiB	lsof: 180
PID: 16816   10:27:49	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10595.4453 MiB	VmRSS: 630.5430 MiB	RssFile: 173.6797 MiB	RssAnon: 448.8633 MiB	lsof: 182
PID: 16816   10:27:50	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10619.5898 MiB	VmRSS: 668.3281 MiB	RssFile: 180.9922 MiB	RssAnon: 479.5820 MiB	lsof: 182
PID: 16816   10:27:51	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10648.9922 MiB	VmRSS: 712.9570 MiB	RssFile: 193.3281 MiB	RssAnon: 513.0156 MiB	lsof: 182
PID: 16816   10:27:52	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10682.3203 MiB	VmRSS: 767.2617 MiB	RssFile: 202.5859 MiB	RssAnon: 556.6758 MiB	lsof: 182
PID: 16816   10:27:53	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10737.3359 MiB	VmRSS: 823.4844 MiB	RssFile: 204.6211 MiB	RssAnon: 610.8633 MiB	lsof: 182
PID: 16816   10:27:54	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10755.0391 MiB	VmRSS: 846.1602 MiB	RssFile: 210.6289 MiB	RssAnon: 627.7344 MiB	lsof: 182
PID: 16816   10:27:56	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10790.7266 MiB	VmRSS: 892.2148 MiB	RssFile: 221.5898 MiB	RssAnon: 663.9141 MiB	lsof: 182
PID: 16816   10:27:57	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10829.9688 MiB	VmRSS: 933.7227 MiB	RssFile: 224.0820 MiB	RssAnon: 701.6406 MiB	lsof: 182
PID: 16816   10:27:58	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10871.5469 MiB	VmRSS: 985.4844 MiB	RssFile: 232.5703 MiB	RssAnon: 744.9141 MiB	lsof: 182
PID: 16816   10:27:59	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10908.6602 MiB	VmRSS: 1026.7773 MiB	RssFile: 239.0000 MiB	RssAnon: 779.7773 MiB	lsof: 182
PID: 16816   10:28:00	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 10941.8477 MiB	VmRSS: 1071.0820 MiB	RssFile: 246.1680 MiB	RssAnon: 816.9141 MiB	lsof: 182
PID: 16816   10:28:01	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11044.3555 MiB	VmRSS: 1108.2266 MiB	RssFile: 248.8750 MiB	RssAnon: 851.3516 MiB	lsof: 182
PID: 16816   10:28:02	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11044.6836 MiB	VmRSS: 1121.6758 MiB	RssFile: 251.2539 MiB	RssAnon: 862.7930 MiB	lsof: 182
PID: 16816   10:28:03	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11081.4805 MiB	VmRSS: 1141.9258 MiB	RssFile: 252.5000 MiB	RssAnon: 881.6836 MiB	lsof: 182
PID: 16816   10:28:05	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11081.9141 MiB	VmRSS: 1155.5117 MiB	RssFile: 253.7344 MiB	RssAnon: 894.1523 MiB	lsof: 182
PID: 16816   10:28:06	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11118.5078 MiB	VmRSS: 1175.4102 MiB	RssFile: 254.4844 MiB	RssAnon: 913.1836 MiB	lsof: 182
PID: 16816   10:28:07	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11118.8047 MiB	VmRSS: 1189.1719 MiB	RssFile: 255.2266 MiB	RssAnon: 925.9453 MiB	lsof: 182
PID: 16816   10:28:08	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11123.3320 MiB	VmRSS: 1202.3164 MiB	RssFile: 255.4766 MiB	RssAnon: 939.0977 MiB	lsof: 182
PID: 16816   10:28:09	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11175.0977 MiB	VmRSS: 1237.1250 MiB	RssFile: 256.0312 MiB	RssAnon: 973.0938 MiB	lsof: 182
PID: 16816   10:28:10	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11183.3633 MiB	VmRSS: 1250.4453 MiB	RssFile: 257.2070 MiB	RssAnon: 985.4961 MiB	lsof: 182
PID: 16816   10:28:11	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11183.8906 MiB	VmRSS: 1264.3945 MiB	RssFile: 257.7070 MiB	RssAnon: 998.6875 MiB	lsof: 182
PID: 16816   10:28:12	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11220.5625 MiB	VmRSS: 1283.9414 MiB	RssFile: 258.2070 MiB	RssAnon: 1017.7031 MiB	lsof: 182
PID: 16816   10:28:14	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11241.2227 MiB	VmRSS: 1313.2305 MiB	RssFile: 258.4570 MiB	RssAnon: 1046.7734 MiB	lsof: 182
PID: 16816   10:28:15	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11245.6562 MiB	VmRSS: 1327.4180 MiB	RssFile: 259.5820 MiB	RssAnon: 1059.8359 MiB	lsof: 182
PID: 16816   10:28:16	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11282.6484 MiB	VmRSS: 1348.4375 MiB	RssFile: 260.7656 MiB	RssAnon: 1079.6719 MiB	lsof: 182
PID: 16816   10:28:17	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11286.9453 MiB	VmRSS: 1361.7773 MiB	RssFile: 261.2656 MiB	RssAnon: 1092.5117 MiB	lsof: 182
PID: 16816   10:28:18	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11293.4219 MiB	VmRSS: 1380.1797 MiB	RssFile: 261.7031 MiB	RssAnon: 1110.4766 MiB	lsof: 182
PID: 16816   10:28:19	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11344.0625 MiB	VmRSS: 1410.2031 MiB	RssFile: 261.8281 MiB	RssAnon: 1140.6328 MiB	lsof: 182
PID: 16816   10:28:20	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11521.3242 MiB	VmRSS: 1453.5391 MiB	RssFile: 262.6836 MiB	RssAnon: 1182.8555 MiB	lsof: 185
PID: 16816   10:28:21	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1459.1445 MiB	RssFile: 268.0117 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:23	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1467.3945 MiB	RssFile: 276.2617 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:24	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1475.6445 MiB	RssFile: 284.5117 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:25	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1483.8945 MiB	RssFile: 292.7617 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:26	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1492.1445 MiB	RssFile: 301.0117 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:27	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1500.3945 MiB	RssFile: 309.2617 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:28	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1512.7695 MiB	RssFile: 321.6367 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:29	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1521.0195 MiB	RssFile: 329.8867 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:31	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1529.2695 MiB	RssFile: 338.1367 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:32	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1537.5195 MiB	RssFile: 346.3867 MiB	RssAnon: 1183.1328 MiB	lsof: 183
PID: 16816   10:28:33	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1545.7109 MiB	RssFile: 354.5742 MiB	RssAnon: 1183.1367 MiB	lsof: 183
PID: 16816   10:28:34	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1553.9609 MiB	RssFile: 362.8242 MiB	RssAnon: 1183.1367 MiB	lsof: 183
PID: 16816   10:28:35	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1562.2109 MiB	RssFile: 371.0742 MiB	RssAnon: 1183.1367 MiB	lsof: 183
PID: 16816   10:28:36	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1574.5859 MiB	RssFile: 383.4492 MiB	RssAnon: 1183.1367 MiB	lsof: 183
PID: 16816   10:28:37	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11520.9922 MiB	VmRSS: 1582.8359 MiB	RssFile: 391.6992 MiB	RssAnon: 1183.1367 MiB	lsof: 183
PID: 16816   10:28:38	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11525.1250 MiB	VmRSS: 1593.8125 MiB	RssFile: 399.2773 MiB	RssAnon: 1186.5352 MiB	lsof: 183
PID: 16816   10:28:40	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11525.4844 MiB	VmRSS: 1604.2500 MiB	RssFile: 399.2773 MiB	RssAnon: 1196.9727 MiB	lsof: 183
PID: 16816   10:28:41	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11529.8750 MiB	VmRSS: 1615.6445 MiB	RssFile: 399.5234 MiB	RssAnon: 1208.1211 MiB	lsof: 183
PID: 16816   10:28:42	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11562.3906 MiB	VmRSS: 1631.8086 MiB	RssFile: 399.5859 MiB	RssAnon: 1224.2227 MiB	lsof: 183
PID: 16816   10:28:43	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11567.7656 MiB	VmRSS: 1644.8867 MiB	RssFile: 399.9570 MiB	RssAnon: 1236.9297 MiB	lsof: 183
PID: 16816   10:28:44	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11436.5039 MiB	VmRSS: 1521.0000 MiB	RssFile: 263.6328 MiB	RssAnon: 1249.3672 MiB	lsof: 182
PID: 16816   10:28:45	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11446.4844 MiB	VmRSS: 1536.5625 MiB	RssFile: 264.3750 MiB	RssAnon: 1264.1875 MiB	lsof: 183
PID: 16816   10:28:46	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11479.3047 MiB	VmRSS: 1554.0117 MiB	RssFile: 267.0430 MiB	RssAnon: 1278.9688 MiB	lsof: 182
PID: 16816   10:28:47	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11502.4844 MiB	VmRSS: 1579.1953 MiB	RssFile: 270.9492 MiB	RssAnon: 1300.2461 MiB	lsof: 182
PID: 16816   10:28:49	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11526.3594 MiB	VmRSS: 1608.3203 MiB	RssFile: 279.1055 MiB	RssAnon: 1321.4727 MiB	lsof: 182
PID: 16816   10:28:50	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11544.5469 MiB	VmRSS: 1635.7539 MiB	RssFile: 287.8242 MiB	RssAnon: 1340.5625 MiB	lsof: 182
PID: 16816   10:28:51	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11567.4531 MiB	VmRSS: 1668.4805 MiB	RssFile: 295.5352 MiB	RssAnon: 1364.9453 MiB	lsof: 182
PID: 16816   10:28:52	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11595.7188 MiB	VmRSS: 1703.9609 MiB	RssFile: 301.8203 MiB	RssAnon: 1394.1406 MiB	lsof: 182
PID: 16816   10:28:53	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11623.4062 MiB	VmRSS: 1739.4766 MiB	RssFile: 310.4023 MiB	RssAnon: 1421.0742 MiB	lsof: 182
PID: 16816   10:28:54	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11660.6914 MiB	VmRSS: 1781.9883 MiB	RssFile: 318.1914 MiB	RssAnon: 1458.8906 MiB	lsof: 182
PID: 16816   10:28:55	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11683.9883 MiB	VmRSS: 1812.8164 MiB	RssFile: 323.0391 MiB	RssAnon: 1481.9023 MiB	lsof: 182
PID: 16816   10:28:57	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11712.0039 MiB	VmRSS: 1851.9961 MiB	RssFile: 334.4180 MiB	RssAnon: 1509.8320 MiB	lsof: 182
PID: 16816   10:28:58	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11745.6133 MiB	VmRSS: 1896.4023 MiB	RssFile: 340.1523 MiB	RssAnon: 1548.5078 MiB	lsof: 182
PID: 16816   10:28:59	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11782.9414 MiB	VmRSS: 1937.1016 MiB	RssFile: 345.5781 MiB	RssAnon: 1582.4570 MiB	lsof: 182
PID: 16816   10:29:00	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11810.9414 MiB	VmRSS: 1970.0781 MiB	RssFile: 351.2656 MiB	RssAnon: 1610.8125 MiB	lsof: 182
PID: 16816   10:29:01	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11840.1758 MiB	VmRSS: 2007.1328 MiB	RssFile: 357.7305 MiB	RssAnon: 1641.6602 MiB	lsof: 182
PID: 16816   10:29:02	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11868.0195 MiB	VmRSS: 2042.0781 MiB	RssFile: 365.6758 MiB	RssAnon: 1668.6523 MiB	lsof: 182
PID: 16816   10:29:03	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11905.0039 MiB	VmRSS: 2084.4453 MiB	RssFile: 372.6953 MiB	RssAnon: 1704.0078 MiB	lsof: 182
PID: 16816   10:29:04	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 11941.3945 MiB	VmRSS: 2126.4258 MiB	RssFile: 377.3867 MiB	RssAnon: 1741.0391 MiB	lsof: 182
PID: 16816   10:29:05	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 12059.4062 MiB	VmRSS: 2157.5156 MiB	RssFile: 382.2891 MiB	RssAnon: 1767.4844 MiB	lsof: 184
PID: 16816   10:29:07	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 12089.3789 MiB	VmRSS: 2191.7422 MiB	RssFile: 387.4531 MiB	RssAnon: 1796.6055 MiB	lsof: 183
PID: 16816   10:29:08	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 12129.5664 MiB	VmRSS: 2239.9727 MiB	RssFile: 392.2422 MiB	RssAnon: 1839.7305 MiB	lsof: 183
PID: 16816   10:29:09	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 12156.9648 MiB	VmRSS: 2272.5586 MiB	RssFile: 398.0547 MiB	RssAnon: 1869.5977 MiB	lsof: 183
PID: 16816   10:29:10	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 12200.8359 MiB	VmRSS: 2319.2734 MiB	RssFile: 399.8438 MiB	RssAnon: 1911.4922 MiB	lsof: 183
PID: 16816   10:29:11	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 12248.3047 MiB	VmRSS: 2369.1602 MiB	RssFile: 404.8867 MiB	RssAnon: 1956.3711 MiB	lsof: 183
PID: 16816   10:29:12	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 12280.7148 MiB	VmRSS: 2411.6758 MiB	RssFile: 409.6562 MiB	RssAnon: 1994.7266 MiB	lsof: 183
PID: 16816   10:29:13	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 12331.9336 MiB	VmRSS: 2460.8672 MiB	RssFile: 412.4336 MiB	RssAnon: 2041.9805 MiB	lsof: 183
PID: 16816   10:29:14	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18917.9492 MiB	VmRSS: 2494.6719 MiB	RssFile: 416.2031 MiB	RssAnon: 2068.7266 MiB	lsof: 184
PID: 16816   10:29:16	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:17	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:18	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:19	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:20	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:21	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:22	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:23	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:25	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:26	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:27	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:28	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:29	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184
PID: 16816   10:29:30	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 18933.9492 MiB	VmRSS: 2509.6250 MiB	RssFile: 416.2031 MiB	RssAnon: 2083.4219 MiB	lsof: 184

The output of valgrind looks like this

==16816== Memcheck, a memory error detector
==16816== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==16816== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==16816== Command: ./checkLeakMem file:///home/martin/deepstream-6.0/samples/streams/sample_qHD.mp4
==16816== 
==16816== Warning: noted but unhandled ioctl 0x30000001 with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16816== Warning: noted but unhandled ioctl 0x27 with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16816== Warning: noted but unhandled ioctl 0x25 with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16816== Warning: noted but unhandled ioctl 0x37 with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16816== Warning: noted but unhandled ioctl 0x17 with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16816== Warning: set address range perms: large range [0x200000000, 0x300200000) (noaccess)
==16816== Warning: set address range perms: large range [0x10649000, 0x30648000) (noaccess)
==16816== Warning: set address range perms: large range [0x30000000, 0x497b6000) (defined)
==16816== Warning: set address range perms: large range [0x59e43000, 0x6f403000) (defined)
Now playing: file:///home/martin/deepstream-6.0/samples/streams/sample_qHD.mp4,
==16816== Warning: noted but unhandled ioctl 0x19 with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16816== Warning: set address range perms: large range [0x10006000000, 0x10106000000) (noaccess)
==16816== Warning: noted but unhandled ioctl 0x49 with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16816== Warning: noted but unhandled ioctl 0x21 with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16816== Warning: noted but unhandled ioctl 0x1b with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==16816== Warning: noted but unhandled ioctl 0x44 with no size/direction hints.
==16816==    This could cause spurious value errors to appear.
==16816==    See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
0:00:48.489183345 16816     0x570b16a0 WARN                 nvinfer gstnvinfer.cpp:635:gst_nvinfer_logger:<primary-nvinference-engine> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::initialize() <nvdsinfer_context_impl.cpp:1161> [UID = 1]: Warning, OpenCV has been deprecated. Using NMS for clustering instead of cv::groupRectangles with topK = 20 and NMS Threshold = 0.5
0:00:48.701025326 16816     0x570b16a0 INFO                 nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger:<primary-nvinference-engine> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1914> [UID = 1]: Trying to create engine from model files
WARNING: [TRT]: The implicit batch dimension mode has been deprecated. Please create the network with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag whenever possible.
WARNING: [TRT]: TensorRT was linked against cuDNN 8.4.1 but loaded cuDNN 8.0.5
==16816== Warning: set address range perms: large range [0x302000000, 0x49c000000) (noaccess)
==16816== Warning: set address range perms: large range [0x302000000, 0x49c000000) (noaccess)
==16816== Warning: set address range perms: large range [0x302000000, 0x49a000000) (noaccess)
==16816== Warning: set address range perms: large range [0x302000000, 0x49a000000) (noaccess)
==16816== Warning: set address range perms: large range [0x302000000, 0x49a000000) (noaccess)
==16816== Warning: set address range perms: large range [0xae6be000, 0xdb5e8000) (defined)
^C==16816== 
==16816== Process terminating with default action of signal 2 (SIGINT)
==16816==    at 0x69DACF9: poll (poll.c:29)
==16816==    by 0xBB37BC8: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.48.07)
==16816==    by 0x104940FF: ???
==16816== 
==16816== HEAP SUMMARY:
==16816==     in use at exit: 812,947,158 bytes in 944,773 blocks
==16816==   total heap usage: 2,450,792 allocs, 1,506,019 frees, 2,936,379,911 bytes allocated
==16816== 
^C==16816== 16 bytes in 1 blocks are definitely lost in loss record 11,131 of 191,835
==16816==    at 0x4C2FB0F: malloc (vg_replace_malloc.c:299)
==16816==    by 0xBB37AFF: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.48.07)
==16816==    by 0x104940FF: ???
==16816== 
==16816== 80 bytes in 1 blocks are definitely lost in loss record 81,802 of 191,835
==16816==    at 0x4C2FB0F: malloc (vg_replace_malloc.c:299)
==16816==    by 0xBB37AFF: ??? (in /usr/lib/x86_64-linux-gnu/libcuda.so.515.48.07)
==16816==    by 0x1CA1129F: ???
==16816== 
==16816== 272 bytes in 2 blocks are definitely lost in loss record 158,145 of 191,835
==16816==    at 0x4C2FB0F: malloc (vg_replace_malloc.c:299)
==16816==    by 0x400E859: _dl_map_object_deps (dl-deps.c:438)
==16816==    by 0x4014F98: dl_open_worker (dl-open.c:278)
==16816==    by 0x6A2D51E: _dl_catch_exception (dl-error-skeleton.c:196)
==16816==    by 0x4014819: _dl_open (dl-open.c:605)
==16816==    by 0x4E3CF95: dlopen_doit (dlopen.c:66)
==16816==    by 0x6A2D51E: _dl_catch_exception (dl-error-skeleton.c:196)
==16816==    by 0x6A2D5AE: _dl_catch_error (dl-error-skeleton.c:215)
==16816==    by 0x4E3D744: _dlerror_run (dlerror.c:162)
==16816==    by 0x4E3D050: dlopen@@GLIBC_2.2.5 (dlopen.c:87)
==16816==    by 0xB23B6D8: g_module_open (in /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.5600.4)
==16816==    by 0x627420A: ??? (in /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1405.0)
==16816==    by 0x627520B: gst_plugin_load_by_name (in /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1405.0)
==16816==    by 0x6275BAD: gst_plugin_feature_load (in /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1405.0)
==16816==    by 0x624C36D: gst_element_factory_create (in /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1405.0)
==16816==    by 0x624C69D: gst_element_factory_make (in /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so.0.1405.0)
==16816==    by 0x114202: main (in /home/martin/minhbq6/checkLeakMem/build/checkLeakMem)
==16816== 
==16816== 16,384 bytes in 1 blocks are definitely lost in loss record 191,022 of 191,835
==16816==    at 0x4C2FB0F: malloc (vg_replace_malloc.c:299)
==16816==    by 0x5D08BD8: g_malloc (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5600.4)
==16816==    by 0x5D1374B: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5600.4)
==16816==    by 0x4010782: call_init (dl-init.c:72)
==16816==    by 0x4010782: _dl_init (dl-init.c:119)
==16816==    by 0x40010C9: ??? (in /lib/x86_64-linux-gnu/ld-2.27.so)
==16816==    by 0x1: ???
==16816==    by 0x1FFEFFFA96: ???
==16816==    by 0x1FFEFFFAA5: ???
==16816== 
==16816== LEAK SUMMARY:
==16816==    definitely lost: 16,752 bytes in 5 blocks
==16816==    indirectly lost: 0 bytes in 0 blocks
==16816==      possibly lost: 1,200,611 bytes in 2,290 blocks
==16816==    still reachable: 811,602,803 bytes in 942,028 blocks
==16816==                       of which reachable via heuristic:
==16816==                         stdstring          : 5,167,147 bytes in 69,373 blocks
==16816==                         length64           : 1,152 bytes in 18 blocks
==16816==                         newarray           : 19,256 bytes in 35 blocks
==16816==         suppressed: 0 bytes in 0 blocks
==16816== Reachable blocks (those to which a pointer was found) are not shown.
==16816== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==16816== 
==16816== For counts of detected and suppressed errors, rerun with: -v
==16816== ERROR SUMMARY: 1188 errors from 1188 contexts (suppressed: 0 from 0)

after testing in DeepStream6.2 docker, I did not observe an obvious memory leak problem like yours, here is the logs
memlog.txt (27.9 KB), can you test the latest DS6.2?

Could you test deepstream 6.2 docker using valgrind and leak sanitizer

I run the deepstream_image_meta_test from docker container nvcr.io/nvidia/deepstream:6.2-devel and get the following error. Could you tell me what is the problem here?

0:00:31.962244980  2460 0x5596ac3ae860 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-nvinference-engine> error: Internal data stream error.
0:00:31.962259648  2460 0x5596ac3ae860 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-nvinference-engine> error: streaming stopped, reason not-negotiated (-4)
ERROR from element primary-nvinference-engine: Internal data stream error.
Error details: gstnvinfer.cpp(2369): gst_nvinfer_output_loop (): /GstPipeline:ds-image-meta-test-pipeline/GstNvInfer:primary-nvinference-engine:
streaming stopped, reason not-negotiated (-4)
Frame Number = 2 Number of objects = 5 Vehicle Count = 4 Person Count = 1
Segmentation fault (core dumped)
  1. please find Prerequisites in this link: deepstream docker, NVIDIA display driver version should be 525.85.12.
  2. did you modify the code or configuration file, if yes, please share the diff, could you share more logs? please do “export GST_DEBUG=6” first to modify Gstreamer’s log level, then run again, you can redirect the logs to a file.

I use NVIDIA driver 525.85.12 and docker version 20.10.18. I did not change the code since I run it directly in the sample_apps directory where I install deepstream SDK. The log with GST_DEBUG=3 show the following error

0:00:32.262353941  7222 0x556146b64000 ERROR            egladaption ext/eglgles/gstegladaptation.c:669:gst_egl_adaptation_choose_config:<nvvideo-renderer> Could not find matching framebuffer config
0:00:32.262398761  7222 0x556146b64000 ERROR            egladaption ext/eglgles/gstegladaptation.c:683:gst_egl_adaptation_choose_config:<nvvideo-renderer> Couldn't choose an usable config
0:00:32.262412296  7222 0x556146b64000 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2873:gst_eglglessink_configure_caps:<nvvideo-renderer> Couldn't choose EGL config
0:00:32.262423216  7222 0x556146b64000 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2933:gst_eglglessink_configure_caps:<nvvideo-renderer> Configuring caps failed
0:00:32.262506461  7222 0x7f9f70050c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.262543610  7222 0x7f9f70050c60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.262550155  7222 0x7f9f70050c60 WARN                GST_PADS gstpad.c:4231:gst_pad_peer_query:<nv-onscreendisplay:src> could not send sticky events
0:00:32.263483573  7222 0x7f9f70050c60 WARN            v4l2videodec gstv4l2videodec.c:1836:gst_v4l2_video_dec_decide_allocation:<nvv4l2decoder0> Duration invalid, not setting latency
0:00:32.263503683  7222 0x7f9f70050c60 WARN          v4l2bufferpool gstv4l2bufferpool.c:1082:gst_v4l2_buffer_pool_start:<nvv4l2decoder0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:00:32.264050467  7222 0x7f9f6401cf60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.264577119  7222 0x7f9f6802f000 WARN          v4l2bufferpool gstv4l2bufferpool.c:1533:gst_v4l2_buffer_pool_dqbuf:<nvv4l2decoder0:pool:src> Driver should never set v4l2_buffer.field to ANY
0:00:32.264655675  7222 0x7f9f6802f000 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.264694104  7222 0x7f9f6802f000 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.264712904  7222 0x7f9f6802f000 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.264992870  7222 0x7f9f6401cf60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.265011623  7222 0x7f9f6401cf60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.265019241  7222 0x7f9f6401cf60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.267652006  7222 0x7f9f6401cf60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.267672117  7222 0x7f9f6401cf60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.267679185  7222 0x7f9f6401cf60 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
Frame Number = 1 Number of objects = 6 Vehicle Count = 5 Person Count = 1
0:00:32.470498728  7222 0x556146b64060 ERROR          nveglglessink ext/eglgles/gsteglglessink.c:2978:gst_eglglessink_setcaps:<nvvideo-renderer> Failed to configure caps
0:00:32.470526925  7222 0x556146b64060 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-nvinference-engine> error: Internal data stream error.
0:00:32.470532481  7222 0x556146b64060 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary-nvinference-engine> error: streaming stopped, reason not-negotiated (-4)

Ah, I get it. It seems like I run the sample on remote computer and it is unable to show image on display

yes, it is related to eglglessink, you might replace nveglglessink with fakesink, then rebuild.

valgrind-0404.zip (47.3 KB)
I also used valgrind to test deepstream_image_meta_test, the application processed 1136 frames, from the log, only few bytes are definitely lost in NV lib.

1 Like

I am testing it on a rtspstream and get the following result

PID: 696783   10:36:57	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 46183.9961 MiB	VmRSS: 3225.7266 MiB	RssFile: 724.8164 MiB	RssAnon: 2490.9102 MiB	lsof: 5
PID: 696783   10:36:58	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 46185.4961 MiB	VmRSS: 3227.3828 MiB	RssFile: 724.8164 MiB	RssAnon: 2492.5664 MiB	lsof: 5
PID: 696783   10:36:59	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 46186.2461 MiB	VmRSS: 3228.0664 MiB	RssFile: 724.8164 MiB	RssAnon: 2493.2500 MiB	lsof: 5
PID: 696783   10:37:00	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 46187.3711 MiB	VmRSS: 3229.0391 MiB	RssFile: 724.8164 MiB	RssAnon: 2494.2227 MiB	lsof: 5
PID: 696783   10:37:01	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 46188.6875 MiB	VmRSS: 3230.3008 MiB	RssFile: 724.8164 MiB	RssAnon: 2495.4844 MiB	lsof: 5
PID: 696783   10:37:03	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 46189.2500 MiB	VmRSS: 3229.2656 MiB	RssFile: 725.1094 MiB	RssAnon: 2496.1562 MiB	lsof: 5
PID: 696783   10:37:04	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 47681.8906 MiB	VmRSS: 3479.3984 MiB	RssFile: 796.5469 MiB	RssAnon: 2506.7383 MiB	lsof: 5
PID: 696783   10:37:05	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48178.6680 MiB	VmRSS: 3727.3594 MiB	RssFile: 799.7930 MiB	RssAnon: 2513.4062 MiB	lsof: 5
PID: 696783   10:37:06	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48178.6680 MiB	VmRSS: 3729.4492 MiB	RssFile: 799.7930 MiB	RssAnon: 2515.4961 MiB	lsof: 5
PID: 696783   10:37:07	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48178.6680 MiB	VmRSS: 3729.4492 MiB	RssFile: 799.7930 MiB	RssAnon: 2515.4961 MiB	lsof: 5
PID: 696783   10:37:08	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48178.6680 MiB	VmRSS: 3729.5078 MiB	RssFile: 799.7930 MiB	RssAnon: 2515.5547 MiB	lsof: 5
PID: 696783   10:37:10	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48178.6680 MiB	VmRSS: 3729.5078 MiB	RssFile: 799.7930 MiB	RssAnon: 2515.5547 MiB	lsof: 5
PID: 696783   10:37:11	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.4609 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3203 MiB	lsof: 5
PID: 696783   10:37:12	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.4648 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3242 MiB	lsof: 5
PID: 696783   10:37:13	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.4648 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3242 MiB	lsof: 5
PID: 696783   10:37:14	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.4648 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3242 MiB	lsof: 5
PID: 696783   10:37:16	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.4648 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3242 MiB	lsof: 5
PID: 696783   10:37:17	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.4648 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3242 MiB	lsof: 5
PID: 696783   10:37:18	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.4648 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3242 MiB	lsof: 5
PID: 696783   10:37:19	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.4648 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3242 MiB	lsof: 5
PID: 696783   10:37:20	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.5273 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3867 MiB	lsof: 5
PID: 696783   10:37:22	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3730.5273 MiB	RssFile: 799.9805 MiB	RssAnon: 2516.3867 MiB	lsof: 5
PID: 696783   10:37:23	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.2695 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.1289 MiB	lsof: 5
PID: 696783   10:37:24	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3047 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.1641 MiB	lsof: 5
PID: 696783   10:37:25	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3125 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.1719 MiB	lsof: 5
PID: 696783   10:37:26	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3125 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.1719 MiB	lsof: 5
PID: 696783   10:37:28	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3477 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2070 MiB	lsof: 5
PID: 696783   10:37:29	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3477 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2070 MiB	lsof: 5
PID: 696783   10:37:30	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3477 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2070 MiB	lsof: 5
PID: 696783   10:37:31	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3477 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2070 MiB	lsof: 5
PID: 696783   10:37:32	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3477 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2070 MiB	lsof: 5
PID: 696783   10:37:34	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3477 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2070 MiB	lsof: 5
PID: 696783   10:37:35	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3477 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2070 MiB	lsof: 5
PID: 696783   10:37:36	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3477 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2070 MiB	lsof: 5
PID: 696783   10:37:37	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3477 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2070 MiB	lsof: 5
PID: 696783   10:37:38	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3516 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2109 MiB	lsof: 5
PID: 696783   10:37:40	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3516 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2109 MiB	lsof: 5
PID: 696783   10:37:41	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3516 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2109 MiB	lsof: 5
PID: 696783   10:37:42	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3516 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2109 MiB	lsof: 5
PID: 696783   10:37:43	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3516 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2109 MiB	lsof: 5
PID: 696783   10:37:44	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3516 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2109 MiB	lsof: 5
PID: 696783   10:37:46	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:47	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:48	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:49	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:50	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:52	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:53	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:54	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:55	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:56	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:58	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:37:59	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.3594 MiB	RssFile: 799.9805 MiB	RssAnon: 2518.2188 MiB	lsof: 5
PID: 696783   10:38:00	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:01	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:02	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:03	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:05	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:06	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:07	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:08	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:09	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:11	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:12	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:13	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:14	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5
PID: 696783   10:38:15	Total used hardware memory: 0.0000 KiB	hardware memory: 0.0000 KiB		VmSize: 48242.6680 MiB	VmRSS: 3732.5703 MiB	RssFile: 800.1367 MiB	RssAnon: 2518.2734 MiB	lsof: 5

As you can see it slowly increases over time and I think it corresponds to the person’s objects being encoded that results in the leak. Since not always a person showing up on the camera so it barely increases in a short period. Actually, I have a larger program that requires encoding the entire frame 3840 x 2560 and sending it to kafka server. In this case, the memory leak can be up to 1MB/s. Note that the leak only occur when there is something to be encoded. So, I guess there is something relating to nvds_obj_enc_process here

#define attach_user_meta TRUE
userData.attachUsrMeta = attach_user_meta;
As the code shown, jpg data will be saved as a user meta if attachUsrMeta is true, so the memory usage will go up, you might try attach_user_meta = FLASE。

Actually, I want to attach the image in the user meta to process it in the downstream elements. Is there a way to work around on this one?