-
Notifications
You must be signed in to change notification settings - Fork 127
Possible Memory Leak #17
Comments
Thank you for giving feedback! |
Sorry to be out of topic but are you running an NCS 2 on a odroid XU4 ? I thought it was only compatible with raspberry pi beside intel proc. |
Perhaps it works with any CPU that supports the armhf (ARMv7) architecture. $ sudo dpkg --add-architecture armhf
$ sudo apt-get update
$ sudo apt-get install libusb-1.0-0:armhf libudev1:armhf libstdc++6:armhf The cause of the memory leak may be caused by the difference in OpenVINO version.
btw, "SingleStickSSDwithUSBCamera_OpenVINO_NCS2.py" does not use OpenVINO. |
Hi, @PINTO0309 thanks for your code.
But when I run the same code on my PC, it works without memory leak.
It seems to be related to queue operation when camera frames are put into frameBuffer. I did the following experiments:
|
@onion233 It is very strange that the situation will change depending on the CPU/OS difference. |
Memory leak investigation. Real-time monitoring command $ watch -n 1 "cat /proc/meminfo | egrep -e 'Active:|Inactive:|MemFree:'" $ python3 MultiStickSSDwithUSBCamera_OpenVINO_NCS2.py 5 minutes monitoring I observed it for 5 minutes, but as a result, the memory usage did not exceed 300 MB. |
@PINTO0309 Thanks for your investigation! Could you provide your python version and opencv-python version? |
@onion233 Python 3.5.3 |
@PINTO0309 @agtbaskara |
@onion233 ,@agtbaskara |
I have suffer from memory leak when running MultiStickSSDwithRealSense_OpenVINO_NCS2.py with a single stick and USB Webcam.
The memory leak occurs on Laptop and Odroid XU4 with rate about 200MB/minutes.
I can run SingleStickSSDwithUSBCamera_OpenVINO_NCS2.py normally without any memory leak, my guess is the problem is at the multiprocessing where the already processed image didn't removed from the memory.
Laptop Specification:
Ubuntu 18.04.1 (x64)
i7-4710HQ (2.5 GHz / 4 Cores)
GTX 850M (2 GB VRAM)
8 GB RAM
ODROID XU4 Specification:
Ubuntu Mate 16.04 (ARM)
Samsung Exynos5422 Cortex™-A15 2Ghz and Cortex™-A7 (2 GHz / 8 Cores)
Mali-T628 MP6
2 GB RAM
Camera:
Laptop Webcam, Logitech C270, PS3 EYE
The text was updated successfully, but these errors were encountered: